Cairnmind
v0.12.0 · What’s new

Memory as evidence, not notes

Your coding agent says “Done”. Cairnmind makes it prove it.

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
Star on GitHub
▶ Watch the 20-second demo Read the docs → No uv? → pipx run cairnmind try
✓ Free & Apache-2.0 ✓ No account, no cloud, no GPU ✓ 0 files written to your repo ✓ uvx leaves nothing installed
Live MCP Gate · Claude Code
14:12 · Agent edits src/checkout.py (12m after last test run)
Agent calls → 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.

Works with your agents & editors
  • Claude Code
  • Codex CLI
  • Cursor
  • GitHub Copilot
  • Windsurf
  • VS Code
  • Zed
  • Cline
  • Gemini CLI
  • + Roo Code, Claude Desktop & any MCP client

Sound familiar?

Three daily agent failures, stopped outside the prompt

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.

See how it works →

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”.

See how it works →

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 how it works →

See Cairnmind Live

Watch it catch a fake “Done”

$ uvx cairnmind try · Real 20-second terminal recording
Animated 20-second real terminal recording of uvx cairnmind try: refusing a nonexistent flag with unknown, blocking done after editing trail_notes/store.py with fingerprint_mismatch, and unlocking verified done after a fresh check run.
0:00–0:06 nonexistent --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 60-second before & after comparison

How it works

A local referee between your agent and your repo

Full architecture diagram →
1. You

Approve rules & plans

Work normally in your terminal or editor. Only you can confirm decisions or publish team memory.

2. Your Agent

Claude, Codex, Cursor…

Connects over local MCP. Must confirm it read the latest plan before editing or saving state.

3. Cairnmind

Verifies quotes & tests

Checks cited lines against live files on disk and rejects “done” if code changed after tests ran.

4. Your Machine

100% local repo & store

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).

Measured Proof

Proven on real code, including what failed

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 .

All 6 evals & caveats →
100% 20/20 · v0.12

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.

$ cairnmind eval run
19 / 20 0 wrong · 20/20 v0.11

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.

$ cairnmind eval repository .
20 / 21 24/24 on main

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.

$ cairnmind eval repository . --questions docs/evaluation/absent-questions.json
29% down from 65%

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.

$ cairnmind eval extraction --runs 3
Built seriously: 4,409 automated CI tests (383 suites) · 3 OSes (Linux, Windows, macOS) · Contract frozen for 1.0 (44 real JSON fixtures)
Inspect live CI outputs →

How It Compares

Why not just CLAUDE.md or built-in memory?

Full comparison guides →

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

What Cairnmind does not do

Full OS & client support matrix →

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

Start in 15 seconds. Scale only if you want.

Linux / macOS / Windows / Docker →
Step 1 · 15 seconds Python 3.12+

Run the zero-risk sandbox

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

Step 2 · 2 minutes SQLite + MCP

Connect your repo & agent

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
Step 3 · Optional Lossless scale

Scale to 12-language graph & local LLM

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

Full Linux / macOS / Windows / Docker install →
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

Dogfooded to build itself

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.

Avatar of Piotr Woźnicki, creator of Cairnmind
Piotr Woźnicki @piotrwozn ↗

Last release: v0.12.0 · Nov 19, 2026

Quick answers

All 11 FAQs →
Do I need a GPU, Ollama, or local LLMs to use Cairnmind? +

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.

How can I try Cairnmind without installing Java, Docker, or Ollama? +

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.

Does Cairnmind work on native Windows without WSL2 or tmux? +

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.

Can a coding agent confirm its own findings, resolve conflicts, or bypass the secrets gate? +

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.

Free · Apache-2.0 · Local-first

Stop taking your agent’s word for “Done”.

If Cairnmind saves you from even one fake “Done” or hallucinated flag, a ★ on GitHub helps other developers find it.

Star on GitHub
$ uvx cairnmind try