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.
git clone --depth 1 https://github.com/isaacriehm/cairnWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/isaacriehm/cairn/cairn-resume)<a href="https://agentmods.dev/commands/isaacriehm/cairn/cairn-resume"><img src="https://agentmods.dev/badge/commands/isaacriehm/cairn/cairn-resume/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/isaacriehm/cairn/cairn-resume"><img src="https://agentmods.dev/badge/commands/isaacriehm/cairn/cairn-resume.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.01394 |
| Opus 5 | $0.00010 | $0.00697 |
| Sonnet 5 | $0.00004 | $0.00279 |
| Haiku 4.5 | $0.00002 | $0.00139 |
Grade A, and why
cairn-resume 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/cairn:cairn-resume
You are resuming a Cairn task in a fresh-context session. The
operator just /cleared mid-task and pasted this command to rebuild
state. The argument is the task_id (format: TSK-<slug>-<7-hex>)
or omitted (defaults to the most-recently-touched active task).
Step 1 — preload tools
ToolSearch(select:mcp__plugin_cairn_cairn__cairn_resume,mcp__plugin_cairn_cairn__cairn_mission_resume,mcp__plugin_cairn_cairn__cairn_in_scope,mcp__plugin_cairn_cairn__cairn_decision_get,mcp__plugin_cairn_cairn__cairn_invariant_get)
Step 1.5 — mission frame (when an active mission exists)
Call cairn_mission_resume({}) first. If active: true, render the
returned body verbatim BEFORE the task resume block — it's the
mission-level context (cursor phase + exit_criteria, last 3
graduated tasks across the mission, in-flight tasks under the
cursor, the spec.md slice for the current phase, next 1-2 upcoming
phases). Combined with the task frame from Step 2, total prime
budget is ≤2500 tokens.
If active: false, skip this step entirely — the operator is on a
non-mission task and the task journal alone primes the session.
Step 2 — fetch the resume payload
Call cairn_resume. If the operator passed a task_id argument, pass
it through; otherwise omit and let Cairn pick the most-recent active
task:
cairn_resume({ task_id: "<task_id>" }) // or {} if no arg supplied
The tool returns:
{
ok: true,
task_id: "TSK-…",
scope: "active" | "done", // see Step 2.5
completed_at: "<ISO-8601>" | null,
title: "<spec H1>",
goal: "<spec ## Goal section>",
in_scope_decisions: ["DEC-…"],
in_scope_invariants: ["INV-…"],
target_path_globs: ["…"],
recent_entries: [
{ ts, session_id, summary, next_step?, files_touched?, decisions_loaded? }
],
next_step: "<last entry's next_step or null>",
total_entries: <number>,
files_touched: ["<repo-rel path>", …] // deduplicated union across recent_entries (most-recent first)
}
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.
- 9d ago First seen · 147 lines · 21 tokens per session scan A 2f9e50b8233a
cairn-resume is a command published in the GitHub repository isaacriehm/cairn (6 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 1,394 once invoked, about $0.0001 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-31.
Other commands, from other repositories
update
Update the Hivemind plugin to the latest version.
tour
Tour this project's memory — what's captured, where it lives, how to recall it (core-memory-kit).
plan
Show or update the work ledger — what is done, in flight, and next.
rosetta-grill
Grill the user about a plan or design — but grounded in Rosetta's resolved decision state — then RECORD the outcome as an ADR/PDR. Use when the user wants to stress-test a decision, says "grill me on this", or wants a decision interrogated and captured. Integrates grill-me-style interrogation with Rosetta's…
rosetta-preflight
Produce Rosetta's deterministic preflight JSON for a scoped change: optional RA1 structural report, decision-state resolution, and local Rosetta gates. Use before handing execution to a loop runner.
seed
Inspect the codebase and propose starter areas + topics for the wherefore log.