Agent Memory Frontmatter

Frontmatter system introduced in Claude Code v2.1.33 (February 2026). Agent files can declare `memory: user | project | local` to specify their persistent memory scope, distinct from the CLAUDE.md system and file-based auto-memory. All three scopes persist from session to session, in three different places: `user` in `~/.claude/agent-memory/<agent>/` (all projects), `project` in `.claude/agent-memory/<agent>/` (this project, meant to be versioned with the repository), `local` in `.claude/agent-memory-local/<agent>/` (this project, kept out of git) ([subagents documentation](https://code.claude.com/docs/en/sub-agents)).

Strengths

Limitations

Best for

Official site

View on Coeurdar