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.
git clone --depth 1 https://github.com/mbeacom/adrkitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/mbeacom/adrkit/adr-check)<a href="https://agentmods.dev/commands/mbeacom/adrkit/adr-check"><img src="https://agentmods.dev/badge/commands/mbeacom/adrkit/adr-check/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/mbeacom/adrkit/adr-check"><img src="https://agentmods.dev/badge/commands/mbeacom/adrkit/adr-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00025 | $0.00898 |
| Opus 5.5 | $0.00010 | $0.00359 |
| Sonnet 5.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 1mo 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.
- 1mo ago First seen · 79 lines · 25 tokens per session scan A f89a9451b69f
adr-check is a command published in the GitHub repository mbeacom/adrkit (20 stars, last pushed yesterday), licensed Apache-2.0. It adds 25 tokens to every session and 898 once invoked, about $0.0001 per session on Opus 5.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
check
Fail on NET-NEW architecture violations only — the same ratchet ArchSteer runs in CI, run right now.
conformance
Assess architecture conformance — ADR decision implementation, cross-decision consistency, design-principles alignment, architecture drift, technical debt, and custom constraint rules.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
sruja-confidence-report
Generate a post-AI-edit confidence report showing what changed, what evidence was checked, what risks remain, and what to inspect at 3AM.
hld-review
Review High-Level Design (HLD) against architecture principles and requirements.
ground
Verify the Evidence Anchors in a document (defaults to the newest plan file).