Skip to content

shavvimal/cairn

v2.22.0MIT

Local, searchable memory across Claude, Codex, Cursor and Granola.

cairn

Exports, lists, annotates and resumes local AI coding sessions (Claude Code, Codex, Antigravity, Cursor), Granola meetings and service docs as searchable markdown through the cairn CLI; records, supersedes and withdraws decisions; imports Claude Code auto memory; runs and checks scheduled routines. Use when the user says "sync sessions", "export sessions", "export codex", "export cursor", "export granola", "export antigravity", "resume session", "add session note", "close session", "log session", "record that decision", "log what we decided", "replace that decision", "forget that decision", "withdraw that claim", "import claude memories", "sync docs", "sync service docs", "meeting transcripts", "scheduled routine", "pause my journal", "resume the routine", "is my routine healthy", "cairn daily check", "cairn instructions block", or "cairn error code". Also covers doctor, config, cron and hooks. Requires the cairn CLI; install it with the setup skill.

invoke-antigravity

Run Google Antigravity (the agy CLI) headlessly through cairn invoke antigravity for an adversarial second opinion, code review, plan review or an independent Gemini pass, with progress readable mid-run, the conversation resumable later, and the exchange recorded in cairn. Use when the user says "invoke antigravity", "ask antigravity", "ask agy", "antigravity review", "gemini review", "second opinion from antigravity", "antigravity resume", or asks for a cross-model quality gate from Google's agent.

invoke-claude

Run Claude Code headlessly through cairn invoke claude for an adversarial second opinion, code review, plan review or an independent fresh-context pass, with progress readable mid-run, the session resumable later, and the whole exchange recorded in cairn. Use when the user says "invoke claude", "ask claude", "claude review", "second opinion from claude", "claude resume", or asks for a cross-model quality gate from Codex.

invoke-codex

Run OpenAI Codex headlessly through cairn invoke codex for an adversarial second opinion, code review, plan review or test simulation, with progress readable mid-run, the thread resumable later, and the whole exchange recorded in cairn. Use when the user says "invoke codex", "run codex", "ask codex", "codex review", "codex audit", "second opinion from codex", "codex resume", names a Codex model and effort such as "astra high", or asks for a cross-model quality gate before committing a significant change.

recall

Loads context from previous sessions and notes. Temporal queries (yesterday, last week, a date) list sessions chronologically from the shared exported store via the cairn CLI; topic queries search across QMD collections (BM25, plus one hybrid query when asked or when BM25 finds too little) plus an exact-match ripgrep pass; decision queries list recorded decisions. Every recall ends with "One Thing" - the single highest-leverage next action synthesised from the results. Use when the user says "recall", "what did we work on", "load context about", "remember when we", "prime context from past sessions", "what was I doing", "session history", "digest yesterday", "daily digest", "cite the frame", "what did we decide", "list our decisions", "verify journal citations", "missing sessions", "why can't recall see", "deep recall", or "search harder". Requires the cairn CLI and qmd (install with the setup skill); rg is optional.

search

Search previously exported Cairn sessions, notes, meetings and indexed docs using QMD BM25 or exact ripgrep, or one deep search with --deep. Use when the user says "cairn search", "search my sessions", "search past sessions", "search my meetings", "grep my sessions", or "exact search", or otherwise asks to locate material in personal session history. Do not activate for ordinary web searches, repository code searches, or unrelated uses of find/look up. Requires qmd; rg is optional.

setup

Install or update Cairn on this machine, including its engine, plugin, hooks, scheduled sync, and search verification. Preserve existing configuration and stores during updates. Use only when the user explicitly invokes Cairn setup, update, or onboarding. Side-effectful - never auto-invoke.