Cairnmind

Frequently Asked Questions

Concrete technical answers

Short, verifiable answers grounded in the repository’s code and contracts. Every item below is rendered as static HTML and published as structured FAQPage metadata.

Core & Architecture

What does Cairnmind do beyond storing coding agent memory?

Cairnmind is a complete local verification, planning, code-intelligence, and memory layer for coding agents. Beyond verified Q&A with verbatim quotes, it enforces read-before-write resume packets and optimistic concurrency across assistants, blocks "done" on test-gated tasks until fresh local checks match the current code fingerprint, builds a 12-language Tree-sitter + SCIP code graph for blast-radius impact analysis, provides <500 ms CI pulse and serverless scan checks, and ships both a cross-platform terminal workspace and an optional local Obsidian web inspector.

See all 6 capability pillars →

Which coding assistants and editors work with Cairnmind?

Cairnmind has first-class managed launchers for Codex CLI, Claude Code (including the optional cairnmind-recorder subagent), GitHub Copilot SDK, and built-in API agents (OpenAI, Anthropic, Ollama, and OpenAI-compatible servers). For editors and external MCP clients (Cursor, Cline, Windsurf, VS Code, Roo Code, Claude Desktop, Gemini CLI, Zed, and generic stdio clients), cairnmind mcp generate writes atomic, backed-up presets with server-enforced origin_evidence: degraded attribution.

External clients documentation →

What does the 1.0 stable contract promise not to break?

Across all 1.x releases, Cairnmind locks documented CLI commands, exit codes, and --json shapes (35 frozen fixtures), all 8 MCP tools and the v2 resume packet, lossless store schema upgrades, logical backups (.cairnmind.json.gz), portable snapshots (v1), published team memory (FORMAT.json v1), external transcript converters, config.json / CAIRNMIND_* env vars, and core safety invariants. Preview surfaces (SQLite backend, NLI/VCR verifier, cairnmind ui) are clearly separated and explicitly documented.

Read the full 1.0 Stable Contract →

Setup & Platforms

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.

Deterministic-only mode in INSTALL.md →

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.

View all install paths →

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.

Native Windows setup guide →

Verification & Safety

How does Cairnmind prevent agents from hallucinating answers or lying about "done"?

Two separate mechanisms enforced in the local service, never by prompts alone. First, every ask answer must quote live source text verbatim and pass deterministic subject checking, support verification, and product-names checking (refusing 24 of 24 questions about absent technologies on main) or return unknown. Second, tasks marked requires_test cannot transition to done without fresh local cairnmind check run evidence tied to the current worktree code fingerprint. Any one-line code edit immediately marks earlier test passes as stale.

See measured evaluation figures →

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.

Safety invariants in STABLE_CONTRACT.md →

Does Cairnmind ever commit to Git or load third-party plugins?

No on both counts. Cairnmind reads Git state and writes reviewable directories such as .memory/cairnmind-published/, but it never stages, commits, or pushes. It also never loads third-party plugin code inside its own processes. Check profiles, external MCP clients, third-party MCP tool servers, and custom transcript converters (cairnmind importer add) all run strictly out of process with scrubbed credentials.

Extension surfaces & security model →

Project & Licensing

Why is it called Cairnmind?

A cairn is a stack of stones hikers leave on a ridge to mark a verified trail for the next walker. Cairnmind does the same for coding agents: durable, source-checked decisions, plans, and fresh test proof left cleanly by one session for the next.

Read how Cairnmind is built →

Who builds Cairnmind and what license is it under?

Cairnmind is an independent open-source project under the Apache License 2.0, created and directed by Piotr Woźnicki. It is dogfooded to build itself: its 221 Python modules, 4,409 automated CI tests, and 44 frozen CLI/MCP fixtures are developed by coding agents operating under Cairnmind’s own test gates and human-key confirmation. ArcadeDB is licensed separately under Apache 2.0.

Inspect the release gate process →