Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/mbeacom/adrkit/adr-checkgit clone --depth 1 https://github.com/mbeacom/adrkitWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00025 | $0.00898 |
| Opus 5 | $0.00013 | $0.00449 |
| Sonnet 5 | $0.00005 | $0.00180 |
| Haiku 4.5 | $0.00003 | $0.00090 |
Grade A, and why
adr-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Resolve the CLI first
Try, in order: $ADRKIT_CLI, then ./node_modules/.bin/adr, then adr on
PATH. @adrkit/cli is normally a dev dependency, so a bare adr is not on
PATH in most projects — trying only that and concluding "no CLI is available"
is a false negative. If all three fail, say so and tell the user to install
@adrkit/cli. Never fall back to reading ADR frontmatter by hand: it cannot
expand glob matchers, cannot read inbound @adr markers, and has no exit code,
so it produces an answer that looks complete and is not.
Reconcile $ARGUMENTS against the decision record that governs it.
-
Establish the target paths.
-
Arguments that are paths are the target set.
-
An argument that is a plan or spec document: read it and extract the paths it touches.
-
No arguments: use the working tree's changed paths — both tracked and untracked:
git diff --name-only HEAD git ls-files --others --exclude-standardThe second command is not optional.
git diffreports only tracked files, so a brand-new source file — the case most likely to introduce something a decision governs — is invisible to it, and the check would report a clean result for a change it never looked at.If both are empty, say the check is unscoped and ask for paths rather than checking everything and reporting noise.
-
-
Run the check.
adr check <paths...> --jsonOr call
get_decision_context(files: [...])on theadrkitMCP server. -
Add the non-binding context:
adr queuefor decisions stillproposed, andsearch_decisionswithstatus: ["rejected"]for anything already ruled out. Do not uselist_supersededfor that — it returns only records whose status issuperseded, never a rejected one, so it answers the rejected-option question with a well-formed empty result. Re-proposing a rejected option is a finding even when it conflicts with nothing currently binding. -
Run
adr lintbefore you report anything as ungoverned.adr checkreports findings only for the paths you passed it, and a record that fails to parse or validate is dropped from the corpus entirely — so a malformed ADR that intends to govern your path yields "No decisions govern the changed files" at exit0. Treat "nothing governs this" as unverified wheneveradr lintis not clean, and name the broken records. -
Give one verdict per governing decision, never one verdict for the whole change:
complies,departs,supersedes,unreconciled, orre-proposes-rejected. For anything other thancomplies, state what the decision requires, what the work does instead with apath:line, and which resolution applies — comply, justify the departure in the plan, or supersede the record. -
Close with the honest gaps: paths that resolved to nothing,
affectsmatchers too coarse to be conclusive, and whether a corpus error finding is polluting the result.
Interpret the exit code rather than collapsing it: 0 clean; 1 findings, with
a complete report still worth reading — for check that means a changed ADR
record carries an error-severity finding, since a governed source file changing
is reported rather than failed; 2 usage error or unreachable corpus.
Read-only. If the answer is "this needs a new ADR," say so and stop — use
/adr-draft deliberately rather than writing a record as a side effect.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 79 lines · 25 tokens per session scan A f89a9451b69f
adr-check is a command published in the GitHub repository mbeacom/adrkit (11 stars, last pushed 3d ago), licensed Apache-2.0. It adds 25 tokens to every session and 898 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
release-adr-kit
You are running the adr-kit release for version $ARGUMENTS (if empty, ask which version to release).
adr-export
Export ADRs to HTML, JSON, or PDF format.
adr-search
Search ADRs by content, status, tags, or date.
adr-setup
Interactive setup for ADR configuration in this project.
adr-supersede
Create a new ADR that supersedes an existing one.
adr-list
List all ADRs with optional status filtering.