Cairnmind: open-source MCP server enforcing read-before-write for agent memory
Zestyclose_Bus_8031 · reddit · 2026-11-22
Developer piotrwozn released Cairnmind (Apache 2.0), a project-memory MCP server for coding agents built around an enforced read-before-write rule:
- Acknowledge before writing: the first call returns an immutable resume packet with an id and hash; clients must echo the id, hash, and versions of the active plan/task before writes are accepted — enforced server-side so prompts can't skip it.
- Human confirmation: records written by external MCP clients are marked unverified; only a person can confirm a record.
- Checked citations: memory answers include quotes the server verifies literally against sources.
- Task gates: task completion can require a passing test run tied to a fingerprint of the current code.
Works natively with Claude Code and Codex CLI, and with Cursor, Cline, Zed and others via cairnmind mcp --client external. Limits: local single-user only, needs Docker or Java 21; the ack proves receipt, not model comprehension.
More from coding & agent
- Are Gemini 4 Neon fans actually using it in Antigravity? Coder asks — iScienceLuvr · 2026-11-22
- '2,000 lines from Claude, 10-second Codex review': devs fret over AI engineering quality — _jaydeepkarale · 2026-11-22
- Team releases Part 2 of $102,725 AI episode, sharing 50,000-character Claude skill — azed_ai · 2026-11-22
- 20GB open model builds flight simulator offline on a plane in minutes — heyshrutimishra · 2026-11-22
- Entire GTA 6 Apple Maps Site Built by GPT-6.2, Dev Says It Nails Tasks First Try — Dimillian · 2026-11-22
- Dev: Claude Failed a 3D Wall-Building Eval, Needed Manual Fixes in AI-Integrated 3D World — nptacek · 2026-11-22