AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Institutional memory for coding agents: one CLI, one MCP server, one page — a code map, spec-driven workflow, temporal fact graph, durable memory and session capture, built in.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Institutional memory for coding agents. Run one command in a repository. You and your agents get
a map of the code, the intent behind it, what happened to it, what the team learned and what earlier
agent sessions did. All of it comes through one CLI, one MCP server and one page.檢視完整 README ↗Institutional memory for coding agents. Run one command in a repository. You and your agents get a map of the code, the intent behind it, what happened to it, what the team learned and what earlier agent sessions did. All of it comes through one CLI, one MCP server and one page.
uv tool install --python 3.12 cairn-brain
cd your-repo
cairn
Coding agents are capable, but they forget everything between sessions. They re-read the same files, miss the caller three hops away, re-apply the change that was reverted last spring and never hear about the convention the team agreed on in review. Cairn keeps that context for them, and every commit, spec and session adds to it.
uv tool install --python 3.12 cairn-brain
# or: pipx install --python 3.12 cairn-brain
The --python 3.12 pin is required: kuzu ships no macOS/Windows wheels for 3.14 yet. You need Python 3.11, 3.12 or
3.13 and git. You don't need Docker, a database server or an API key.
The first sync downloads a small local embedding model (about 70 MB) once. Without network access,
Cairn uses a built-in hashing embedder instead, so search still works, only less semantically.
cd your-repo
cairn
The first run sets the repository up without asking any questions:
.cairn/workflow/ and the /cairn.* agent commands).cairn MCP server and adds a Cairn block to AGENTS.md.
Claude Code also gets session capture hooks, a session-start briefing, a status line, /cairn:*
commands, four sub-agents and the session skills.After that, cairn shows status. Setup is idempotent, and cairn uninstall removes what it added.
None of this needs a model:
cairn impact <file|symbol>: dependents, tests likely affected, files that usually change
together, past fixes and reverts, the spec task that owns the code, team conventions, recent agent
work and a risk level.cairn why <file|symbol>: rationale comments, the commits behind the lines, the requirement and
task that produced the code, and recorded decisions.cairn drift: done tasks whose files are missing, requirements that no task covers, and code that
changed after its task was closed.cairn trace path|explain|query, cairn hubs, cairn areas, and cairn graph for views,
the report, the wiki and exports..cairn/sessions.db.
It's on for Claude Code by default. For other agents, run cairn sessions integrate install <agent>.
Without a model, the events are turned into deterministic observations.cairn ui: one page with the map, specs, timeline, memory and sessions.Cairn finds a model on its own ([models] provider = "auto"). It uses the first of these that works:
ANTHROPIC_API_KEY (or CAIRN_API_KEY)OPENAI_API_KEY, or a [models] base_url for any OpenAI-compatible endpoint, including local onesclaude on your PATH), which runs on your own plan with no keyWith a model, Cairn adds:
cairn impact --explain, cairn why --explain, cairn ask)cairn drift --deep)cairn graph extract)Each job goes to the cheapest model tier that does it well. Every call is recorded in a ledger
(cairn models --ledger). Model work runs on its own when a model is available, and it spends that
provider's quota (or your Claude Code plan):
[recall] worker_spawn = false. You can process them later with cairn sessions worker.[deep] budget_tokens, or turn this off with [deep] enabled = false.See models and cost.
| Layer | Answers | Built from |
|---|---|---|
| Map | What is the code? | Tree-sitter ASTs (25 grammars built in, more as extras), docs, schemas, rationale comments |
| Specs | What did we intend? | The spec-driven workflow: constitution, spec, plan, tasks, traced to files |
| Timeline | What happened? | Git history, co-change, fixes and reverts; with a model, facts with validity windows |
| Memory | What did we learn? | Conventions, decisions, gotchas and preferences from people, agents and the repository |
| Sessions | What did agents do? | Captured agent sessions: observations, summaries and the files they touched |
The same server can serve a whole team. It adds sign-in, roles, API tokens, git projects that re-sync on push, and an audit log:
cairn team init --email [email protected] --name "Your Name" # first owner; prints a one-time password
cairn serve --team # behind your HTTPS reverse proxy
cairn project add https://github.com/acme/api.git # cloned on the server; first sync from the page
cairn team invite [email protected] --role member # prints a one-time invite link
Developers point their agents at the server with
cairn agents connect --server https://cairn.example.com --project <project id> and export
CAIRN_TOKEN. See teams.
| Command | What it does |
|---|---|
cairn | Set up (first run) or show status |
cairn impact <target> / cairn why <target> | The two questions to ask before an edit |
cairn ask "<question>" | Evidence pack, plus a narrated answer when a model is available |
cairn search <query> | Search every layer |
cairn remember "<text>" --kind convention / cairn recall <query> | Team memory |
cairn specs [id] / cairn drift [id] | Intent traced to code, and where the code drifted from it |
cairn spec … | The spec workflow: init, integrations, extensions, presets, workflows, bundles |
cairn graph … / cairn trace … / cairn hubs / cairn areas | Explore the map |
cairn timeline / cairn timeline search <q> | What happened, and what was true when |
cairn sessions / cairn sessions search <q> | What agents did |
cairn memory … | The memory engine: add, search, history, import, seed |
cairn ui / cairn up / cairn down / cairn serve | The page and the server |
cairn doctor / cairn models --ledger | Health, models and cost |
cairn team / cairn token / cairn project / cairn user | The team platform |
Full reference: docs/cli.md.
cairn init wires for each agent, session capture, commands and sub-agentsCairn builds itself spec-first. Its constitution is in
.cairn/workflow/memory/constitution.md, and its spec,
plan and tasks are in specs/001-cairn-core/.
Apache-2.0 (see LICENSE). Cairn includes software from other open-source projects. Their notices are in NOTICE and their licence texts are in licenses/.