Skip to content

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.

Keep the top-level file small and pull in reusable pieces with @import:

~/.agentsync/memory/AGENTS.md
# Coding conventions
@import ./fragments/style.md
@import ./fragments/security-rules.md
layout
~/.agentsync/memory/
├── AGENTS.md
└── fragments/
├── style.md
└── security-rules.md

At 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.

AgentNative 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.