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.
npx agentmods add commands/shenchangmin/cairnkit/flow-rungit clone --depth 1 https://github.com/shenchangmin/cairnkitWhat 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 | $0.00020 | $0.00813 |
| Opus 5 | $0.00010 | $0.00407 |
| Sonnet 5 | $0.00004 | $0.00163 |
| Haiku 4.5 | $0.00002 | $0.00081 |
Grade A, and why
flow-run 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.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/flow-run
Start or resume the delivery workflow for this project.
Steps
-
Verify the project is initialised. Run
cairn --root . config show.- Exit
2means there is no validcairnkit.yaml: tell the user to use theteam-initentrypoint first and stop. - Exit
0: readhas_runfrom the JSON.
- Exit
-
Inspect before deciding start vs resume. If
has_runis true, first runcairn --root . state show. Exit4means corrupt STATE: surface the engine repair guidance and stop. Never decide fromhas_runalone. -
Start a genuinely new run. If
has_runis false, or the existing state's stage isDONE, derive<run-id>as<YYYY-MM-DD>-<short-slug>from today's date and the original user request. It must be 1–128 characters, start with an ASCII letter or digit, and then contain only ASCII letters, digits,_, or-; never use a path separator,.,.., whitespace, a control character, or raw request text. Then run:For the first run use
cairn --root . state init --run-id <run-id>. When the prior stage isDONE, usecairn --root . state new --run-id <run-id>so the engine archives the completed STATE safely. The engine rejects an existing workflow directory; on that collision, add a numeric suffix (-2,-3, ...) while staying within 128 characters and retry with a new ID. Never reuse or delete the old directory. -
Resume only the same active intent. When
state showreports a non-DONEstage, resume only if this invocation explicitly asks to resume that run and its original request is known or the user supplies it. If the invocation contains a distinct new task, stop, show the active run ID and stage, and ask the user to choose between resuming it or abandoning it for a new run; never substitute the new request into the active run. Runstate new --forceonly after the user explicitly chooses to abandon/reset the active run; derive a unique new run ID as above. Do not force or reset implicitly.
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.
- 2d ago First seen · 59 lines · 20 tokens per session scan A 970cdee9c37a
flow-run is a command published in the GitHub repository shenchangmin/cairnkit (1 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 813 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
issue-amend
Re-snapshot the active issue's scope from the spec, clear verified and reviewed receipts, and record the change as a permanent amendment.
init
Scaffold a new MindBase project (v2 layout). Usage: /mb:init [template] [-- mission ...].
q-research
Read the research-mode skill's SKILL.md for the full ruleset before proceeding. Follow all constraints, the source lookup cascade, the token budget, and the "what counts as cited" rules exactly.
graphify
Turn your vault into a clustered knowledge graph with HTML and JSON outputs.
genesis
Initialize cortex vault — set up config, vault structure, and rebuild index.
export-project
Export a single registered Gnosys project to a portable .json.gz bundle (round-trips with gnosys import project).