Tamper-proof witnessed AI agent work. Stones stacked to mark "I was here."
cairn captures the complete lifecycle of AI agent sessions through content-addressed Fragment trees (built on fragmentation), with eager writes, deterministic key derivation, and mandatory verification.
Two modes:
- Socket mode -- cairn spawns claude, captures stdout as thought Shards, handles MCP tool calls, verifies on exit, commits to git.
- Daemon mode -- long-lived stdio MCP server installed into Claude Code. Bias witnessing + git tools + gestalt resources.
Read order: docs/INDEX.md
- What Cairn Is -- the concept, the two modes, the session lifecycle.
- Witnessed -- trust model, key derivation, tamper detection.
- Modules -- how the nine modules compose.
- Agent Guide -- what agents need to know.
# Daemon mode (stdio MCP server)
gleam run --module cairn/daemon
# Tests
gleam testgleam add cairn@1import cairn
import cairn/daemon
import cairn/sessionLICENSE.md contains the Apache-2.0 licence required by Hex. The actual
governing terms are the systemic.engineering License v1.0.