How It Works
MEMORY.md is injected into the agent’s Claude Code system prompt alongside the soul and task list. The agent reads it at the start of every session, so anything written here carries forward even after a respawn. Agents can also write to their own MEMORY.md during a session — for example, recording a debugging insight or noting a project convention they discovered.What to Put in Memory
| Category | Examples |
|---|---|
| Project context | Architecture overview, key dependencies, deployment targets |
| Conventions | Naming patterns, file structure rules, commit message format |
| Learnings | Past debugging insights, workarounds for known issues |
| Known issues | Flaky tests, deprecated APIs, things to avoid |
| Credentials/config | Environment variable names (not values), service URLs, config file locations |
Example
Editing
Open the Memory tab in the Detail Panel to view and edit an agent’s MEMORY.md. You can also edit the file directly on disk.Shared Memory
Pods and teams have their own MEMORY.md files. Shared memory provides group-level context:- Pod MEMORY.md — context shared with all agents within the pod’s canvas bounds
- Team MEMORY.md — context shared with all agents assigned to the team
Soul vs Tasks vs Memory
| Soul | Tasks | Memory | |
|---|---|---|---|
| Purpose | Who you are | What to do | What to know |
| Content | Role, personality, constraints | Checkbox work items | Context, conventions, learnings |
| Changes | Take effect on respawn | Watched continuously | Injected on session start |
| Typical author | You (human) | You and the agent | You and the agent |
| Analogy | Job description | To-do list | Notebook |
Related Pages
- Agents — agent lifecycle and identity files
- Souls — defining agent identity
- Tasks — assigning work items
- Pods & Teams — shared memory files