← Reddit

Kauri: Deterministic Decision Records for agents and humans alike

Reddit · mhashim6 · April 24, 2026
Kauri is a local-first decision record store for LLM agents and humans that tracks architectural choices, conventions, and constraints while being version-controlled with git and injected into agent context at session start. The system manages records through lifecycle states (draft, active, superseded, deprecated) and includes file association tracking with staleness detection, full-text search capabilities, and a controlled tag taxonomy.

Detailed Analysis

Kauri is an open-source, local-first decision record store designed to serve both LLM agents and human developers by providing a structured, versioned repository of architectural choices, conventions, and constraints within a software project. Hosted on GitHub under the handle mhashim6, the tool commits decision records directly alongside source code in a repository, leveraging Git's native versioning to track the evolution of decisions over time. Its most distinctive capability is the injection of these records into agent context at the start of each session, meaning AI coding assistants such as Claude Code gain immediate awareness of a project's documented reasoning before taking any action. Records are organized through a formal lifecycle — draft, active, superseded, and deprecated — providing both humans and agents with a reliable signal about which decisions remain authoritative versus which have been retired.

The technical design of Kauri reflects a maturing understanding of what AI agents actually need to operate effectively within real codebases. File associations with staleness detection mean that when source files change significantly, linked decision records can be flagged as potentially outdated, prompting review rather than silent drift. Full-text search and a controlled tag taxonomy further distinguish Kauri from ad-hoc documentation practices, imposing enough structure to make records machine-queryable without requiring a heavyweight external database. By remaining local-first and Git-committed, the tool avoids cloud dependencies and keeps the decision record corpus as portable and auditable as the code itself — properties that matter greatly in security-sensitive or offline development environments.

The broader context for Kauri is the rapidly growing practice of using Architecture Decision Records (ADRs) in conjunction with AI coding assistants. Developers working with tools like Claude Code have increasingly adopted patterns — including structured CLAUDE.md files, CHANGELOG.md conventions, and ADR plugins — to give agents persistent memory of project-specific context across sessions. Without such mechanisms, agents operating on long-running or complex codebases repeatedly lose institutional knowledge between sessions, leading to inconsistent decisions and redundant explanations from human collaborators. Kauri formalizes and automates this handoff, treating decision records not merely as human documentation artifacts but as first-class inputs to the agent's operating context.

This development connects to one of the central challenges in deploying LLM agents for software engineering: the tension between the stateless nature of model inference and the deeply stateful nature of real software projects. Anthropic's own research into long-running agentic workflows has highlighted the need for persistent memory structures, and community tooling like Kauri represents a grassroots response to that need. By giving agents a structured, versioned, and searchable record of "why things are the way they are," tools in this category aim to make agent behavior more deterministic and aligned with project intent — reducing the risk that an agent will, for instance, refactor away a design pattern that was deliberately chosen for compliance or performance reasons, the rationale for which was never visible in the code itself.

The emergence of Kauri and similar tools signals that the software development community is beginning to treat agent context management as a first-class engineering problem rather than an afterthought. Just as linters, formatters, and CI pipelines evolved to encode team conventions into automated systems, decision record stores like Kauri encode the reasoning behind those conventions in a form that both humans and AI agents can reliably consume. As agentic coding assistants become more autonomous — capable of opening pull requests, refactoring modules, and making dependency decisions without per-action human approval — the quality and accessibility of this kind of structured project memory will increasingly determine whether agent behavior is trustworthy or erratic.

Read original article →