adr-kit

Architecture decisions your AI coding agents actually follow.
Coding agent? Installing ADR Kit: read
INSTALL-AGENT.md and stop there: it is the complete
client-neutral runbook. Working in a project that already has ADR Kit: the
agent contract is the whole brief.
Your codebase is full of decisions: the database you migrated to, the layer
nothing may bypass, the framework you committed to, the pattern you
standardized on. Almost none of it is visible in the code. It lives in the
heads of the people who were there, and a coding agent has no head. It is
fast, confident, and starts every session with total amnesia. Left alone it
reintroduces the driver you dropped, bypasses the repository layer, and makes
new architectural decisions without telling anyone.
adr-kit makes architecture decisions executable. Architecture Decision
Records stop being documentation nobody re-reads and become guardrails that
run: the decisions relevant to the current task are retrieved and injected
while the agent works, the governing decision is delivered before a file is
edited, every commit is checked against declarative rules with file:line
citations, and a guardian watches for decisions that have drifted out of date.
One toolkit covers the whole lifecycle (capture, enforce, maintain, retire)
across Claude Code, OpenAI Codex, the standalone GitHub Copilot CLI, OpenCode,
and OMP (oh-my-pi); see Supported clients.
For the agent, it removes the guessing. Instead of reading every ADR, or
none, it queries a generated index and gets a ranked, explained shortlist for
the task in front of it. It receives the binding decision as context at the
moment it writes the file, not as a review comment three days later. And it
gets a deterministic pass/fail at commit time that no amount of confident
prose can talk its way around.
For you, writing a decision down finally pays off the same week. The ADR
you record on Monday blocks the violation on Thursday without you being in the
room. Half-formed intent becomes a real decision record through a guided
interview that asks one evidence-backed question at a time. The guardian tells
you which decisions have gone stale, which were made but never recorded, and
which are ready to retire, so the decision log stays worth reading instead of
becoming another folder of dead markdown.
The engines are deterministic, stdlib-only Python 3.10+: no build step, no
service, no API key on any default path. The LLM passes run on the model of
the coding agent you already use, never in a hook hot path, and can be switched
off or pointed at a model on your own machine; see
LLM passes.
Pre-1.0: functional and in daily use, but conventions may still evolve before v1.0.0. Pin a tag if you need stability across upgrades.
Audit posture: the 2026-07-18 source audit drove fail-closed enforcement, exact staged-snapshot handling, transaction-safe lifecycle/state updates, and cross-platform packaging fixes. ADR Kit remains a development guardrail, not a sandbox, branch-protection replacement, or sole merge control.
Start here
| You are | Start at |
|---|
| A human setting this up | Install, then the lifecycle. Claude Code users: four commands and you are done. |
| A human evaluating it | Why, What's new, Comparison, ROADMAP.md. |
| A coding agent installing ADR Kit | INSTALL-AGENT.md and stop there. It is the complete client-neutral runbook for detection, preview, installation, initialization, and verification. Do not read the rest of this README first. |
| A coding agent working in a project that already has ADR Kit | The agent contract directly below. |
| A maintainer cutting a release | docs/RELEASING.md and /release-adr-kit. |
Agent contract
Three rules cover almost everything an agent needs in an ADR Kit project.
Full reference: docs/README.md.
1. Find the decisions for a task by querying the index, not by reading the
set.
python bin/adr-context --format json "<task description>"