Borrowing it
Nothing to install: this file belongs to cairn-framework/cairn. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/cairn-framework/cairn/main/.claude/commands/cairn-vibe.mdgit clone --depth 1 https://github.com/cairn-framework/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/cairn-framework/cairn/cairn-vibe)<a href="https://agentmods.dev/commands/cairn-framework/cairn/cairn-vibe"><img src="https://agentmods.dev/badge/commands/cairn-framework/cairn/cairn-vibe/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/cairn-framework/cairn/cairn-vibe"><img src="https://agentmods.dev/badge/commands/cairn-framework/cairn/cairn-vibe.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.00032 | $0.04046 |
| Opus 5.5 | $0.00013 | $0.01618 |
| Sonnet 5.5 | $0.00006 | $0.00809 |
| Haiku 4.5 | $0.00003 | $0.00405 |
Grade A, and why
Cairn Vibe Session 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 2mo 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 — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Run a Cairn Vibe Session: the attended, director-style cousin of /cairn-loop.
The human is the director whose hands are off the keyboard, driving worker CLI
sessions (a fast low-latency model for mechanical work, a good strong model
for judgment) and verifying their output by reading. Never take a worker's word:
open the touched files and confirm the change meets the success criterion.
Whereas /cairn-loop is autonomous and works one unit at a time, /cairn-vibe
picks a release-sized themed block of work, gets the maintainer's approval of
the direction and the release plan together up front, then executes the whole
arc hands-off, landing each unit as an independently-reviewed PR, and finishes
by releasing per the pre-approved plan.
Input: the argument after /cairn-vibe is an optional theme hint, area, or
direction (e.g. /cairn-vibe webui findings). With no argument, derive a theme
from live graph state (cairn status, its open-todo list, cairn next, and
per-node cairn todos <node>). cairn frontier is an optional secondary signal
for ghost-node / architecture pressure only; it is not the todo source.
Setup
Cairn must reflect current source. Do all director build and query work in a
dedicated director worktree, never the main checkout. Running cairn scan or a
build in the main checkout rewrites the tracked, committed map.json snapshot
and dirties it. Create the worktree first. Each tool call is independent: the
cwd and environment do not carry across calls. A lone cd or export PATH
does not affect the next call, so bind every director command to its concrete
path in the same call.
Pick and record a unique concrete director worktree path, never a fixed shared
name. This example uses /tmp/cairn-director-1699999999; substitute a unique
suffix and reuse that exact literal in every Setup/Orient command and at
teardown.
(<main-checkout> is the path to your primary clone, e.g. the repo root;
substitute the real path in every command.)
git -C <main-checkout> fetch origin
git -C <main-checkout> worktree add --detach /tmp/cairn-director-1699999999 origin/main
( cd /tmp/cairn-director-1699999999 && cargo build --release )
Use /tmp/cairn-director-1699999999 only for Setup and Orient. Run every
Setup/Orient cairn command via
/tmp/cairn-director-1699999999/target/release/cairn <args> (or cd /tmp/cairn-director-1699999999 && ./target/release/cairn <args> in each call).
Do not rely on an exported PATH, a persisted cwd, or a $DIRECTOR_WT variable
across calls.
Roles (RACI)
- Workers: implement the unit, add or extend tests, push the feature branch,
and open the unit PR (
gh pr create). Mechanical units go tofast; design or judgment units go togood. - Director: runs Setup and Orient (read-only cairn queries plus the local
cargo build --release) in the dedicated director worktree, never the main checkout, and runs a fresh localcargo build --releasein each post-merge verification worktree. The director commissions the two reviewer subagents, adjudicates, and squash-merges when CI is green and review is satisfied. For release, the director (directly or via a dedicated release worker) opens the release-prep PR and creates the tag, only after the phase-2 disposition and after confirming no material divergence. The director MUST NOT implement unit or product code.
Steps
Work the six phases in order. Do not advance until a phase's exit criterion is
met. Ephemeral in-session phase tracking is fine for this session's own
progress. Durable cross-session work items go through cairn todo new <slug> --node <id> and status edits via cairn todo set on the resulting
meta/todos/todo.<slug>.md (this repo's native tracker), not bd.
- Orient - in the dedicated director worktree from Setup, never the main
checkout, run
/tmp/cairn-director-1699999999/target/release/cairn status,/tmp/cairn-director-1699999999/target/release/cairn change list,/tmp/cairn-director-1699999999/target/release/cairn next,/tmp/cairn-director-1699999999/target/release/cairn lint --json, and (per candidate node)/tmp/cairn-director-1699999999/target/release/cairn todos <node>. Optionally glance at/tmp/cairn-director-1699999999/target/release/cairn frontieras a secondary signal for ghost-node / architecture pressure; do not treat it as a todo backlog. Record the baseline:/tmp/cairn-director-1699999999/target/release/cairn linthas no new findings (the one accepted deferred Info is fine) and exits 0;/tmp/cairn-director-1699999999/target/release/cairn hook allexits 0; and/tmp/cairn-director-1699999999/target/release/cairn scanmust be zero findings (run it now if not already clean). Triage any pre-existing scan finding or new lint finding before proposing a block. Name the open unblocked todos and which todos are already blocked on maintainer authorisation or an external dependency. At Orient's end, immediately remove the director worktree:git -C <main-checkout> worktree remove --force /tmp/cairn-director-1699999999. It exists only for Setup and Orient. Exit criterion: if there are no open unblocked todos and no actionable next unit, report the state and stop (do not manufacture work); otherwise proceed to phase 2 with a written backlog snapshot.
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.
- 2mo ago First seen · 284 lines · 32 tokens per session scan A 19740e162d39
Cairn Vibe Session is a command published in the GitHub repository cairn-framework/cairn (53 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 4,046 once invoked, about $0.0001 per session on Opus 5.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.
Cairn Vibe Session compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Cairn Vibe Sessioncairn-framework/cairn | Command | 53 | yesterday | Apache-2.0 | A | 32 | Claude Code |
| spec-researchfengshao1227/ccg-workflow | Command | 6.0k | 4d ago | MIT | A | 16 | Claude Code |
| triagen8n-io/n8n | Command | 210k | yesterday | none | A | 7 | Claude Code |
| landgmickel/flow-next | Command | 717 | yesterday | MIT | A | 13 | Claude Code |
| syncgmickel/flow-next | Command | 717 | yesterday | MIT | A | 15 | Claude Code |
| slack-gif-creatorhamr0/agentic-toolkit | Command | 23 | 6d ago | Apache-2.0 | A | 57 | Claude Code |
| webapp-testinghamr0/agentic-toolkit | Command | 23 | 6d ago | Apache-2.0 | A | 35 | Claude Code |