The pain
“All tests pass, task done!” Except the agent edited a file 12 minutes after the tests ran.
With Cairnmind
Cairnmind blocks “done” until your local tests actually pass on the current code.
Memory as evidence, not notes
Free, open-source, and local. Works beside Claude Code, Codex CLI, Cursor, and Copilot. It blocks “done” until tests pass on current code, makes every answer quote your repo or say “unknown”, and carries plans between agents.
$ uvx cairnmind try uvx leaves nothing installed src/checkout.py (12m after last test run) mcp.next_task("checkout-tax", state="done") ✕ BLOCKED BY CAIRNMIND
src/checkout.py changed after the last passing test run.
Checks stale · Run cairnmind check run unit to attach fresh proof.
$ cairnmind check run my-app unit --task checkout-tax
✓ PASS (sha256 pinned) · Task marked done
Works automatically. Your agent hits the gate on its own, with nothing to watch in another terminal.
Sound familiar?
The pain
“All tests pass, task done!” Except the agent edited a file 12 minutes after the tests ran.
With Cairnmind
Cairnmind blocks “done” until your local tests actually pass on the current code.
The pain
Your assistant invents a config flag, port, or CLI option that does not exist in the repo.
With Cairnmind
Every answer must quote a real line from your current files, or explicitly say “unknown”.
The pain
A new session, or a switch from Claude Code to Codex or Cursor, forgets yesterday’s decisions.
With Cairnmind
Versioned plans, decisions, and task progress carry cleanly between agents without pasting chat logs.
See Cairnmind Live
--turbo-cache-flag → unknown + verbatim quote ·
0:06–0:13 edit store.py → BLOCKED (fingerprint_mismatch) ·
0:13–0:20 fresh check run unlocks verified done cairnmind brief shop flagging [machine] Checks stale right after editing checkout.py.
terminal_theme.py. On Linux/WSL2/macOS, tmux runs Codex CLI & Claude Code beside this inspector. On native Windows, it launches standalone with zero tmux.
Sessions & test gates
Active Plan v4 · Test Gates
Verbatim Quote Provenance · SHA-256
MATCH · src/cairnmind/verification.pyui/src/mocks/fixtures.ts. Preview the live interactive browser cockpit locally with cairnmind ui --port 4310 --mock (loopback-only, never phones home).
How it works
Work normally in your terminal or editor. Only you can confirm decisions or publish team memory.
Connects over local MCP. Must confirm it read the latest plan before editing or saving state.
Checks cited lines against live files on disk and rejects “done” if code changed after tests ran.
Code graph, plans, and check logs stay on disk. Never commits to Git, never phones home.
Built on: SQLite (instant try / lightweight) · ArcadeDB 26.11 (optional full graph) · Tree-sitter + SCIP (12 languages) · Ollama (optional local models).
Capabilities
Swipe cards to explore all 6 →
Ask “what breaks if I change checkout.py?” and trace callers, architecture decisions, and affected tests across 12 languages (3 Tree-sitter + 9 SCIP) locally.
Assistants and scripts can only suggest rules. Only you, at your keyboard, can confirm decisions or publish team memory. Secrets never leave your machine.
Answers cite live source lines checked against disk and auto-follow code refactors. Works with zero GPU in deterministic search mode, or with local Ollama models.
Bind tasks to your existing test commands, catch stale checks in under 500 ms in pre-push or CI, and replay logged answers to catch regressions.
Agents must confirm they read the latest plan before writing, preventing silent overwrites across Claude Code, Codex CLI, Cursor, Copilot, and any MCP client.
Review memory in the terminal (Linux, macOS, native Windows) or local browser cockpit, and share confirmed team decisions through Git without credentials.
Measured Proof
Test gates, verbatim search, and the code graph need zero GPU. Optional 9B-model evals ran on an NVIDIA RTX 4080 Super (16 GB), WSL2 Ubuntu, Python 3.12. Reproduce on your own repo:
cairnmind eval repository .
Golden recall accuracy
20 of 20 on v0.12.0 (101 s) and v0.11.0 (89 s). 100% across 6 of 6 runs on v0.8.0.
Real repository Q&A
19 of 20 on v0.12.0 (440 files) and 20 of 20 on v0.11.0. Zero complete-and-wrong answers.
Absent-feature refusal
20 of 21 refused in v0.12.0. 24 of 24 refused on main (22 Nov 2026) after subject and names checks.
Extraction noise share
8 of 28 proposals rejected/duplicate across 3 runs (down from 36 of 55 in v0.10.0), 15/15 kept found.
How It Compares
| Capability | Cairnmind | CLAUDE.md / AGENTS.md | Built-in memory | RAG / MCP plugin |
|---|---|---|---|---|
| Who writes & confirms it | Model proposes, only a person confirms. Every record is tied to a source. | You, by hand | The model | The model |
| Checked against live source files | Every cited quote must match a current file verbatim, or the answer is “unknown” | No | Usually no | Usually no |
| Works across coding assistants | Claude Code, Codex CLI, Cursor, Copilot, and any MCP client | Separate file per tool | No (vendor-locked) | Depends on plugin |
| "Done" requires fresh test proof | Fresh local check run bound to current code fingerprint (1-line edit = stale) | No | No | Usually no |
| Code graph & CI health checks | Tree-sitter + 9 SCIP languages, blast-radius impact, <500 ms pulse & CI scan | No | No | Text vectors only |
| Setup footprint | 15 s uvx cairnmind try (SQLite) or Java 21 / Docker + uv (Ollama & tmux optional) | None | None | Usually 1 command |
Who writes & confirms it
Cairnmind: Model proposes, only a person confirms. Every record is tied to a source.
CLAUDE.md: You, by hand · Built-in: The model · MCP plugin: The model
Checked against live source files
Cairnmind: Every cited quote must match a current file verbatim, or the answer is “unknown”
CLAUDE.md: No · Built-in: Usually no · MCP plugin: Usually no
Works across coding assistants
Cairnmind: Claude Code, Codex CLI, Cursor, Copilot, and any MCP client
CLAUDE.md: Separate file per tool · Built-in: No (vendor-locked) · MCP plugin: Depends on plugin
"Done" requires fresh test proof
Cairnmind: Fresh local check run bound to current code fingerprint (1-line edit = stale)
CLAUDE.md: No · Built-in: No · MCP plugin: Usually no
Code graph & CI health checks
Cairnmind: Tree-sitter + 9 SCIP languages, blast-radius impact, <500 ms pulse & CI scan
CLAUDE.md: No · Built-in: No · MCP plugin: Text vectors only
Setup footprint
Cairnmind: 15 s uvx cairnmind try (SQLite) or Java 21 / Docker + uv (Ollama & tmux optional)
CLAUDE.md: None · Built-in: None · MCP plugin: Usually 1 command
Honest Limits
Does not replace your coding assistant
Codex CLI, Claude Code, Copilot, Cursor, and API agents still write code under their own billing and tool permissions. Cairnmind is the local memory, verification, and hand-off service beside them.
Does not guarantee an LLM understood what it acknowledged
Read-before-write ACK proves a session received and echoed the exact plan, task, and state_hash versions. It does not prove the model reasoned flawlessly about them.
Does not stage, commit, or push Git changes
Cairnmind reads Git status, commits, and diffs to compute code fingerprints and impact, and writes published memory directories cleanly on disk, leaving every Git operation to you.
Does not load third-party plugins inside its own processes
Because Cairnmind holds local service and database credentials, all extension surfaces (check profiles, external MCP clients, third-party MCP tool servers, history converters) run strictly out of process.
Does not verify semantic interpretation beyond source quotes
Passing tests prove the declared check profile succeeded on the current code fingerprint. They do not prove that every acceptance criterion was met or reviewed by a human.
Get Started
Ephemeral in-memory SQLite over a bundled sample project. Writes zero files and needs no Java, Docker, or GPU.
$ uvx cairnmind try
No uv? → pipx run cairnmind try
Start light on local SQLite and auto-generate MCP presets for Claude Code, Codex CLI, Cursor, Windsurf, or VS Code.
$ uv tool install cairnmind
$ cairnmind init --backend sqlite
$ cairnmind mcp generate \
--auto --write When you want full code-graph impact across 12 languages or local Ollama Q&A, migrate with zero data loss.
$ cairnmind migrate --to server
$ cairnmind models pull
Exact output when you run uvx cairnmind try
Cairnmind Try Sandbox (ephemeral SQLite :memory:, zero files touched in your cwd)
================================================================================
Indexed 4 sample files in an isolated temporary directory.
[1/3] Guarantee 1: Your agent does not guess
Q: Does trail_notes support --turbo-cache-flag?
A: unknown (no verbatim confirmation in the current project files)
Q: How does read_note handle notes written before tags existed?
A: Verified verbatim quote -> `note.setdefault("tags", [])` (trail_notes/store.py)
[2/3] Guarantee 2: Your agent cannot lie that it finished
1. Ran check profile `unit` -> PASS (fingerprint: 193de0e7914e...)
2. Edited trail_notes/store.py after tests passed.
3. Tried marking task `done` -> BLOCKED (fingerprint_mismatch):
Task completion requires fresh machine check evidence: no successful matching run for current code, profile and task definition
[3/3] Fresh check unlocks verified done
1. Re-ran `unit` on updated code -> PASS (fingerprint: c7cb171f638d...)
2. Marked task `done` -> SUCCESS (task v2, state=done, pinned check_run=e0f24b6a) Why I built this
I got tired of coding agents claiming “all tests pass” after a quick cleanup edit, or inventing config values that never existed. So I built a local gatekeeper that treats every claim as untrusted until verified against live files and fresh local test runs.
Cairnmind’s own 221 Python modules, 4,409 CI tests, and 44 frozen contract fixtures are developed by coding agents operating under Cairnmind’s own test gates and human-only confirmation key.
Last release: v0.12.0 · Nov 19, 2026
No. Models are completely optional. Without Ollama or a configured model server, Cairnmind runs in deterministic-only mode: plans, versioned tasks, fingerprint-bound test checks, code graph indexing, blast-radius impact, brief, pulse, and full-text passage search all work normally, while ask returns status: unavailable with matching passages instead of fabricating answers. You can add local Ollama models (qwen3.5:9b + qwen3-embedding:0.6b, ~7 GB) or an HTTPS OpenAI-compatible server whenever you want cited synthesis and background extraction.
Run uvx cairnmind try. It executes a 15-second sandbox over the bundled examples/sample-project using an ephemeral in-memory SQLite store. It needs only Python 3.12+ and uv, and writes zero files into your working directory. For persistent local projects without Java or Docker, you can also start with cairnmind init --backend sqlite (Preview) and migrate losslessly to ArcadeDB later via cairnmind migrate --to server.
Yes. Cairnmind runs natively on Windows 10/11 via PowerShell (pwsh -File scripts/install-windows.ps1), stores data in %LOCALAPPDATA%\cairnmind, opens the standalone Textual workspace directly in Windows Terminal without tmux, and enforces "only a person confirms" via an owner-only Windows Named Pipe. Both Windows fast tests and full Windows ArcadeDB tests run in CI. WSL2 Ubuntu 24.04, Linux, and macOS Apple silicon are also supported.
No. Confirming or disputing a record, resolving a conflict, confirming a plan, releasing past the secrets gate, accepting unknown transcript record kinds, and deleting project memory all require the in-memory person key held exclusively by the open terminal workspace (the tmux server on POSIX, or an owner-only Named Pipe on native Windows). CLI flags, MCP tools, and service-token HTTP calls are refused by the store.
If Cairnmind saves you from even one fake “Done” or hallucinated flag, a ★ on GitHub helps other developers find it.
$ uvx cairnmind try