By ccf
Local-first agent memory for Claude Code — recall, remember, and ambient capture into a Markdown vault you own.
Distill recent sessions into the vault now.
Show agentcairn memory health (vault + index status).
Search agentcairn memory and show cited results.
Persist a durable memory into the vault.
Show how much context agentcairn has saved you.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
index_pathDuckDB index location (rebuildable cache).
${user_config.index_path}vault_pathFolder for your Markdown memory vault (auto-created on first session).
${user_config.vault_path}Local-first memory for AI agents — that you can actually read, edit, and own.
cairn /kɛən/ · noun — a stack of stones raised to mark a trail or a place worth remembering, left for whoever comes next.
agentcairn gives your coding agent durable, high-quality memory — but instead of locking it in an opaque database or a cloud service, your memories live as plain Markdown in an Obsidian vault you own. A fast, rebuildable DuckDB index sits on top for retrieval. Open your vault, read what the agent remembered, fix a wrong fact by hand, or drop in your own notes — and the agent picks it all up.
Most agent-memory systems make a database or cloud store the source of truth and treat files (if any) as a one-way export. agentcairn inverts that:
[[wikilinks]]. Edit it in Obsidian; the index honors your edits.cairn reindex). Your memory survives a model upgrade, a corrupted index, a schema change, or uninstalling the tool — zero data loss, because the truth is just files on disk.[[wikilinks]] and frontmatter are the graph — no LLM extraction, no hallucinated entities.cairn CLI and an on-demand MCP server.benchmarks/ — with real numbers, ablations, and explicit caveats instead of one cherry-picked headline (see below).The easiest way to use agentcairn is the Claude Code plugin — one install wires up the MCP server, ambient memory (recall at session start, capture at session end), a memory skill, and slash commands:
claude plugin marketplace add ccf/agentcairn
claude plugin install agentcairn@agentcairn
On install you pick a vault path (default ~/agentcairn); it's auto-created on the first session — no Obsidian setup required. From then on agentcairn surfaces relevant memory at the start of each session, distills each session into your vault, and gives you /agentcairn:recall, /remember, /memory, /savings, and /ingest. Nothing to pip-install — the plugin runs the published package via uvx.
Not on Claude Code? agentcairn is also a standalone MCP server + CLI for any host — see Using it directly.
flowchart LR
T["Session transcripts<br/>(out-of-band)"]
H["You · Obsidian<br/>(hand edits)"]
V["📂 Obsidian vault<br/>Markdown + frontmatter + wikilinks<br/><b>source of truth</b>"]
I["♻️ DuckDB index<br/>vector + BM25 + graph<br/><b>rebuildable cache</b>"]
M["MCP tools<br/>remember · recall · search · build_context · recent"]
T -- "redact → dedup → distill" --> V
H -- "edit" --> V
V -- "parse / reconcile-on-spawn" --> I
I -- "READ_ONLY hybrid recall" --> M
M -. "remember (redacted write)" .-> V
classDef truth fill:#eaf1ff,stroke:#317cff,color:#191919;
classDef cache fill:#f5f5f3,stroke:#999999,color:#191919;
class V truth
class I cache
npx claudepluginhub ccf/agentcairn --plugin agentcairnLegacy system modernization: incremental migration, framework upgrades, and systematic refactoring
LLM application development: RAG systems, prompt engineering, AI agents, and production LLM patterns
Memory compression system for Claude Code - persist context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns