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.

A generated cairn: six stones balanced on a pebble beach line
A tall cairn of flat red stones on a pebble beach by calm water

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.

  1. Phase 0Skeleton

    Go module, cairnbook version, Makefile, CI

    Done
  2. Phase 1Contract

    Service interface, CONTRACT.md, conformance suite

    Done
  3. Phase 2Core and local store

    SQLite store, migrations, core rules, identity

    Done
  4. M1Server-mode MCP

    cairnbook mcp over the client and API

    Done
  5. M2Server

    cairnbook serve, key scopes, backup and restore

    Done
  6. M3Web UI + dashboard

    Web pages, sign-in, viewer mode, dashboard

    Done
  7. M4Hooks + CLI

    Claude Code hooks, CLI verbs with --json

    Done
  8. 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
  9. M6Import

    cairnbook import bishop-memory; no code yet

    Planned
  10. M7Pilot

    Two weeks of real use; operator decisions first

    Planned
  11. M8Roll-out

    Every project moves; bishop-memory goes read-only

    Planned
  12. LaterLater

    Review loop, per-harness plugins, public releases

    Later

Facts

StatusIn development

Not released. Built in public on GitHub.

LanguageGo

One binary, cairnbook, with SQLite as the store.

LicenceMIT

© 2026 Donovan Maidens. Source on GitHub.