Memory
Your canonical memory lives in memory/AGENTS.md and renders to each agent’s
native memory file — CLAUDE.md for Claude, AGENTS.md for OpenCode.
Compose from fragments
Section titled “Compose from fragments”Keep the top-level file small and pull in reusable pieces with @import:
# Coding conventions
@import ./fragments/style.md@import ./fragments/security-rules.md~/.agentsync/memory/├── AGENTS.md└── fragments/ ├── style.md └── security-rules.mdAt apply time agentsync expands the imports and writes the fully-composed memory
into each agent’s native file. Edit a fragment once and every agent’s memory
updates on the next apply.
Per-agent rendering
Section titled “Per-agent rendering”| Agent | Native memory file |
|---|---|
| Claude Code | ~/.claude/CLAUDE.md |
| OpenCode | ~/.config/opencode/AGENTS.md |
| Codex (planned) | ~/.codex/AGENTS.md |
| Cursor (planned) | AGENTS.md (project root) |
Memory is ✓ native on Claude and OpenCode — the same markdown, full fidelity —
and on Codex’s planned projection (~/.codex/AGENTS.md). Cursor keeps user-level
rules in app-local storage, so memory projects to a project-root AGENTS.md only
(◐). See the capability matrix for detail.
Project-local memory A repo's .agentsync.toml overlay can merge extra memory on top of your user-level memory.