Skip to content

Memory & Persistence

Your agent has both short-term and long-term memory. Understanding how these work helps you get the most out of your agent.

During a conversation, your agent maintains context in a session file. Each channel (Email, Telegram, Slack, Web Chat) gets its own session, stored as a JSONL file containing:

  • Your messages
  • Agent responses
  • Tool calls and results

Sessions persist across turns within a conversation. When you send a message, the agent continues from where you left off.

CommandEffect
/clearStart a new session (old ones preserved)
/resumeList recent sessions with hashes
/resume abc1Resume a specific session by hash
/compactCompress session to save tokens

Each model has a context window limit (currently 200k tokens for all Claude models). When your session approaches the limit, use /compact to summarize older messages and free up space.

/data/MEMORY.md is your agent’s persistent memory. It survives:

  • Session changes
  • /clear commands
  • Platform updates
  • Channel switches

The default MEMORY.md includes:

  • Agent identity (name, email, owner)
  • Email response instructions
  • Available tools and skills
  • Persistent storage layout
  • Behavior rules

Ask your agent to edit its memory:

“Add to your memory that I prefer concise responses”

Or:

“Show me your MEMORY.md file”

Then tell it what to change.

Agent preferences like model selection are stored in /data/config.json:

{
"model": "sonnet"
}

The default model is Sonnet. Change it with /model haiku or /model sonnet, or just ask your agent to switch.

All channels (Email, Telegram, Slack, Web Chat) share the same:

  • MEMORY.md — Persistent memory
  • Storage/data directory

Each channel has its own session, but they all read from the same MEMORY.md. Start a task on email, check progress on Telegram — your agent remembers everything.

When your session gets large, use /compact to reduce token usage:

  1. The agent summarizes the conversation history
  2. Old messages are replaced with the summary
  3. Recent messages are preserved
  4. You continue with full context of what happened
/compact focus on the code changes we discussed

Tells the agent what to prioritize in the summary.

Your data is yours:

  1. View anytime — Ask your agent to show files
  2. Self-host — The agent runtime (crawdad) is open source

We don’t lock you in.

  • Persistent preferences
  • Project context that spans sessions
  • Standing instructions
  • Important information to always remember
  • Active conversations
  • Work in progress
  • Temporary context

Don’t dump everything in MEMORY.md. It’s read every turn, so keep it concise and relevant.