agentcairn-setup

Instructions for installing and maintaining AgentCairn, a local system that lets different coding agents share persistent memory.

In plain words
What is it for?
Use them to install, configure, verify, upgrade, or repair AgentCairn for supported coding tools and editors.
Why use it?
They define the supported setup process and help diagnose missing, broken, or outdated memory integrations.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ccf/agentcairn/agentcairn-setup
Any agent
npx skills add ccf/agentcairn --skill agentcairn-setup
Clone the repo
git clone --depth 1 https://github.com/ccf/agentcairn

Made for: Claude Code, Codex.

Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,593 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00091 $0.01593
Opus 5 $0.00046 $0.00796
Sonnet 5 $0.00018 $0.00319
Haiku 4.5 $0.00009 $0.00159

Measured 2d ago against content hash 52339707261a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agentcairn-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agentcairn-setup/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AgentCairn setup

Set up the full AgentCairn integration by delegating to AgentCairn's native, preview-first installer. Treat this skill as a management layer only: installing this skill does not install the AgentCairn runtime, MCP server, plugin, or hooks.

Preserve the boundary

  • Use uvx --from agentcairn cairn install as the source of truth for supported hosts and generated configuration.
  • Do not copy plugin files, write MCP configuration by hand, or reproduce the installer's host-specific logic.
  • Do not claim AgentCairn is ready merely because this setup skill is present.
  • Do not use plain uvx cairn; that resolves an unrelated package. Use uvx --from agentcairn cairn ....
  • Use --vault only for MCP hosts. Configure plugin-host vaults through the plugin or AgentCairn's shared configuration.
  • Do not install or repair every detected host unless the user explicitly asks.
  • Do not write a test memory without the user's approval.

1. Establish the target

Check whether AgentCairn's recall and remember MCP tools are already loaded. If they are available and the user did not request an upgrade or repair, report that the full integration is active and move to verification.

Identify the current or requested host. Use these installer IDs:

Host Installer ID Integration
Claude Code claude-code Native plugin, MCP tools, skill, and hooks
Codex codex Native plugin, MCP tools, skill, and hooks
Cursor cursor MCP configuration and memory skill
OpenCode opencode MCP configuration, commands, and native plugin
Antigravity antigravity Native plugin; requires a local plugin source
VS Code / Copilot vscode MCP configuration
Claude Desktop claude-desktop MCP configuration
Gemini CLI gemini MCP configuration

Treat Hermes Agent separately because it uses a native MemoryProvider, not cairn install:

hermes plugins install ccf/agentcairn/integrations/hermes
hermes memory setup agentcairn

Read the full file on GitHub · 173 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 173 lines · 91 tokens per session scan A 52339707261a

Subscribe to this mod's changes

agentcairn-setup is a skill published in the GitHub repository ccf/agentcairn (48 stars, last pushed 5d ago), licensed Apache-2.0. It adds 91 tokens to every session and 1,593 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.