Developer Tooling
Runtime signal capture and distillation for AI coding agents. Instruments your Python code, distills failure patterns, and feeds them into agent context so the next session knows what broke.
AI coding agents start every session cold. They can read your code, but they don't know what failed last week, which patterns keep recurring, or whether the last fix held. The context window resets. Manual context documents go stale.
Cairn captures structured signal from your running Python code and distills it into agent context that compounds over time:
Signal gets normalized into TruthRecords, distilled into named patterns, and injected into your agent's context before the next session.
With margin installed (pip install cairn-ai[health]), each pattern cluster gets:
Cairn exposes an MCP server with tools for Claude Code, Cline, or any MCP-compatible agent:
cairn_context — full distilled context as Markdowncairn_search — semantic search across the truth storecairn_recent_failures — latest failures, decay-filteredcairn_health — drift, anomaly, causality analysiscairn_synthesis — ranked intervention planZero-config pytest plugin. Auto-distillation via git hooks. Per-project SQLite stores. AGPL-3.0.