This directory records how the agents currently supported by mnemo store or load their own memory-like context. It is intended to inform a future mnemo memories ingest / conversion feature, not to replace the canonical mnemo store.
The notes focus on durable surfaces that an importer can reasonably inspect:
Conversation transcripts, opaque editor state, cloud-only state, and model-provider context are out of scope unless the agent exposes a documented export/import path.
| Agent | Native memory surface | Primary import candidates | Conversion confidence |
|---|---|---|---|
| Claude Code | CLAUDE.md, .claude/rules/, auto memory markdown under ~/.claude/projects/<project>/memory/ |
CLAUDE.md, .claude/CLAUDE.md, .claude/rules/**/*.md, CLAUDE.local.md, auto-memory MEMORY.md index plus referenced topic files |
High for markdown files; medium for auto memory classification |
| Codex | AGENTS.md / AGENTS.override.md instruction aggregation |
$CODEX_HOME/AGENTS*.md, repo/nested AGENTS*.md, configured fallback names when discoverable |
High for markdown instructions; no native semantic memory store documented |
| Cursor | Rules (.cursor/rules/*.mdc), User Rules, Team Rules, AGENTS.md |
.cursor/rules/**/*.mdc, AGENTS.md, legacy .cursorrules if present |
High for project rules; low for opaque/editor-managed memories |
| Windsurf | Cascade Memories plus Rules / AGENTS.md |
~/.codeium/windsurf/memories/, ~/.codeium/windsurf/memories/global_rules.md, .windsurf/rules/**/*.md, AGENTS.md, legacy .windsurfrules if present |
Medium for generated Memories; high for Rules |
| OpenCode | AGENTS.md instruction discovery and session instruction deltas |
~/.config/opencode/AGENTS.md, repo/nested AGENTS.md |
High for markdown instructions; low for session internals |
| Pi | AGENTS.md / CLAUDE.md, .pi/SYSTEM.md, .pi/APPEND_SYSTEM.md, Skills, session JSONL, optional MCP extension config |
AGENTS.md, CLAUDE.md, .pi/APPEND_SYSTEM.md, reviewed .pi/SYSTEM.md, optional ~/.pi/agent/* instruction files |
High for markdown instructions; no native semantic memory store documented; session history is out of scope by default |
| fx | AGENTS.md project instructions plus ~/.fx/memories.json |
~/.fx/AGENTS.md, repo/nested AGENTS.md, ~/.fx/memories.json |
High for JSON string memories and AGENTS.md |
flowchart LR
subgraph AgentSurfaces[Agent-native memory surfaces]
Claude[Claude Code<br/>CLAUDE.md + rules + auto-memory index]
Codex[Codex<br/>AGENTS.md hierarchy]
Cursor[Cursor<br/>.cursor/rules/*.mdc + AGENTS.md]
Windsurf[Windsurf<br/>Cascade Memories + Rules]
OpenCode[OpenCode<br/>AGENTS.md + session instructions]
Pi[Pi<br/>AGENTS.md + APPEND_SYSTEM.md + skills]
FX[fx<br/>AGENTS.md + memories.json]
end
subgraph NormalizedMnemo[mnemo normalized memory contract]
Instructions[Instruction-like context<br/>agent rules, guidance, project docs]
Observations[Observation-like memory<br/>facts, decisions, preferences, history]
Provenance[Structured provenance<br/>agent, source path, scope, import time]
end
Claude --> Instructions
Claude --> Observations
Claude --> Provenance
Codex --> Instructions
Cursor --> Instructions
Cursor --> Provenance
Windsurf --> Instructions
Windsurf --> Observations
Windsurf --> Provenance
OpenCode --> Instructions
Pi --> Instructions
Pi --> Provenance
FX --> Instructions
FX --> Observations
FX --> Provenance
| mnemo target concept | Claude Code | Codex | Cursor | Windsurf | OpenCode | Pi | fx |
|---|---|---|---|---|---|---|---|
| Instruction-like context | CLAUDE.md, .claude/CLAUDE.md, .claude/rules/**/*.md |
AGENTS.md hierarchy |
.cursor/rules/**/*.mdc, AGENTS.md |
.windsurf/rules/**/*.md, AGENTS.md |
AGENTS.md hierarchy |
AGENTS.md, CLAUDE.md, .pi/APPEND_SYSTEM.md, .pi/SYSTEM.md |
AGENTS.md hierarchy |
| Observation-like memory | Auto-memory MEMORY.md index plus referenced topic files |
Not documented as a native store | No documented local semantic store | Cascade Memories | Not documented as a native store | Not documented as a native store | ~/.fx/memories.json strings |
| Scope signal | User/project/local memory locations | File hierarchy and fallback names | Rule type/path metadata | Workspace/user memory and rule locations | File hierarchy | File hierarchy plus Pi global/project system prompt paths | Profile-level memories plus project instructions |
| Provenance to preserve | Source file, heading/topic path, auto-memory reference target | Source file and nearest project path | Rule file, frontmatter, referenced @file paths |
Memory/rule path and activation metadata | Source file and nearest project path | Source file, prompt mode, nearest project path, skill source | JSON array entry index and profile path |
This equivalence is intentionally conservative: mnemo should preserve where each memory came from and whether it behaved like an instruction or an observation before turning it into canonical mnemo data.
mnemo can provide a complete runtime memory integration for an agent even when that agent has no native semantic memory store to import. The importer should therefore keep two questions separate:
| Agent | Runtime mnemo support | Native semantic memory import | Import stance |
|---|---|---|---|
| Claude Code | MCP, plugin hooks, instructions, skill link | Yes, auto-memory markdown via MEMORY.md index and topic files |
Importable with index/reference expansion and review |
| Codex | MCP, hooks, instructions, canonical skill path | No documented native semantic store | Import instruction hierarchy only |
| Cursor | MCP, hooks, rules, canonical skill path | No documented local semantic store | Import rules/instructions; preserve rule metadata |
| Windsurf | MCP, hooks, rules, skill link | Yes, Cascade Memories | Import memories/rules with workspace and trigger provenance |
| OpenCode | MCP, plugin hooks, instructions, canonical skill path | No documented native semantic store | Import instructions; ignore session internals by default |
| Pi | MCP through a Pi MCP extension, APPEND_SYSTEM guidance, skill link | No documented native semantic store; sessions are JSONL history, not curated memory | Runtime support is complete; import instructions only unless the user explicitly selects session exports |
| fx | MCP, instructions, canonical skill path | Yes, ~/.fx/memories.json strings |
Import preference strings only with user approval |
| Agent | Has a MEMORY.md-style index? |
Importer note |
|---|---|---|
| Claude Code | Yes | Treat auto-memory MEMORY.md as an index/entrypoint and follow referenced topic files for full memory bodies. |
| Codex | No | AGENTS.md files are direct instruction inputs; hierarchy is scope/precedence, not a memory manifest. |
| Cursor | No central memory index | .mdc rules are direct import units, but rule bodies may reference supporting files with @file links; preserve/follow those separately. |
| Windsurf | No documented memory index | Generated Memories are local workspace items; Rules are direct files with activation metadata, not a manifest. |
| OpenCode | No | AGENTS.md files and discovered nested instructions are direct instruction sources; V2 config instructions entries are parsed but not resolved into model context. |
| Pi | No | AGENTS.md, CLAUDE.md, SYSTEM.md, and APPEND_SYSTEM.md are direct instruction sources; sessions live under ~/.pi/agent/sessions/ but are conversation history, not a memory manifest. Preserve prompt mode because SYSTEM.md replaces the default prompt. |
| fx | No | ~/.fx/memories.json is the direct memory store: a JSON array of strings. AGENTS.md files are scoped instructions. |
.mnemo guardrails authoritative. The importer should not write to mnemo unless it is run for a valid mnemo project or with an explicit project target.