Cairnbook
In developmentNot released yet · now building M5, Plugin
An operating record for coding agents
Agents record the task they are on, the steps they take and what they learned. The next agent reads it back before it starts, and an operator turns the best lessons into rules. Cairnbook is the next memory for Bishop, my agent harness.


Why the name Cairnbook
A cairn is a pile of stones left on a trail for whoever comes next. Nobody signs it, and it lasts because it balances.
Each task in Cairnbook leaves the same kind of marker: what worked, what went wrong, and the rules the next agent must follow.
It was called Cairn until November 2026. Another project already used the name cairn-memory, so it became Cairnbook. The stones stayed.
What it is for
Four jobs, one record.
Task state
The current task, its plan, its steps and a journal. A new session continues where the last one stopped.
Learning
Agents propose findings and patterns. The operator accepts or rejects each one, and accepted findings become directives: rules agents read before they work.
Recall
Before a task starts, Cairnbook returns the directives, lessons and similar past tasks that apply to it.
Review
A web page to follow tasks, decide on findings and ratify directives, with a read-only viewer mode.
How it fits together
Agents propose. The operator decides.
Any agent harness
- Claude Code, through MCP and hooks
- OpenCode, pi and others, through the CLI
- Bishop, as one more client
One binary: cairnbook
- MCP server, CLI and hook helper
- The HTTP server, with agent, operator and viewer keys
- A SQLite database as the source of truth
The operator
- Follows tasks on a dashboard
- Accepts or rejects findings
- Ratifies directives for one project or all of them
Roadmap
Built from the outside in. Each milestone ends with a check someone else can run.
Status as of 30 November 2026. Nothing here is released yet; live progress is on the GitHub milestones.
- Phase 0Skeleton
Go module,
Donecairnbook version, Makefile, CI - Phase 1Contract
Service interface, CONTRACT.md, conformance suite
Done - Phase 2Core and local store
SQLite store, migrations, core rules, identity
Done - M1Server-mode MCP
Donecairnbook mcpover the client and API - M2Server
Donecairnbook serve, key scopes, backup and restore - M3Web UI + dashboard
Web pages, sign-in, viewer mode, dashboard
Done - M4Hooks + CLI
Claude Code hooks, CLI verbs with
Done--json - M5Plugin
Plugin tree, skill text, CI validate and install guide (#25) merged to main 2026-11-21 (PR #229); live check (#26) done 2026-11-17 for the tool names and session start, not for the marketplace install or PreCompact; the exit check (install guide section 7a) not yet run
Building now - M6Import
Plannedcairnbook import bishop-memory; no code yet - M7Pilot
Two weeks of real use; operator decisions first
Planned - M8Roll-out
Every project moves; bishop-memory goes read-only
Planned - LaterLater
Review loop, per-harness plugins, public releases
Later
Building Cairn
The build, written up as it happens.
Facts
Not released. Built in public on GitHub.
One binary, cairnbook, with SQLite as the store.
© 2026 Donovan Maidens. Source on GitHub.