adrkit
Decision memory for human- and agent-authored plans — architecture decision
records that are machine-readable, enforceable in CI, and legible to agents,
without leaving git.

Most ADR tooling is a markdown template and a static site generator. That
records a decision; it doesn't make the decision do anything. adrkit treats a
record as typed data with a markdown body and adds one field — affects —
so a tool can answer "which decisions govern this pull request?" and put the
answer where the next decision is being made.
An 80-second tour, from the terminal to the pull request to the GitHub Copilot
app:
https://github.com/user-attachments/assets/2ab466f9-53f0-4274-a87c-98d8d5e5ecdf

A still of the final screen. Select it to watch the 15-second recording.
On a pull request, the governing-decisions Action
posts that answer as a comment, and GitHub Copilot code review can cite a record
because it lives in the repository:
mbeacom/adrkit-demo is a small
payments-ledger repository with these pull requests open, a managed ARB queue
issue, and recordings of every command.
Quickstart
The CLI is published as @adrkit/cli
and exposes the adr binary. Published artifacts target Node 22+:
npx @adrkit/cli lint # validate the corpus in docs/adr
npx @adrkit/cli explain src/payments/api.ts # which decisions govern this file?
Or add it to a project (Bun-first repos can use bun add -D @adrkit/cli / bunx):
npm i -D @adrkit/cli
The pure library surfaces install independently:
npm i @adrkit/core @adrkit/evaluator.
Try it on the demo repository
No corpus of your own yet? mbeacom/adrkit-demo
is a tiny payments-ledger API with nine records, including a superseded decision and
an open proposal, so every command has something real to show:
git clone --depth 1 https://github.com/mbeacom/adrkit-demo && cd adrkit-demo
npx @adrkit/cli lint # 9 records, 0 errors
npx @adrkit/cli explain src/money/amount.ts # one governing decision
npx @adrkit/cli explain src/ledger/legacy-balance-row.ts # governing, proposed, and historical
npx @adrkit/cli explain src/ledger/events.ts --as-of 2025-09-01 # what governed it then
In your own repository, adr lint exits 2 until a docs/adr/ directory
exists; adr new creates it along with the first record.
See the Quickstart guide and the full
command reference.
Choose a starting point