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-contextgit 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.00022 | $0.00621 |
| Opus 5 | $0.00011 | $0.00311 |
| Sonnet 5 | $0.00004 | $0.00124 |
| Haiku 4.5 | $0.00002 | $0.00062 |
Grade A, and why
adr-context 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 yesterday.
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.
Load the decision record governing $ARGUMENTS into context, so the plan that
follows is informed by it rather than corrected at review time.
-
Treat every argument as a repo-relative path the work will touch. Real paths give a far sharper answer than none.
-
Resolve the governing decisions.
- With the
adrkitMCP server connected, callget_decision_context(files: [...]). - Otherwise run
adr check $ARGUMENTS --json. - With no arguments, run
adr queueinstead: every decision stillproposed, with its SLA state. Those are the questions already open. Planning against them as if settled is the mistake this command exists to prevent.
- With the
-
Also pull the already-rejected records, with
search_decisionsandstatus: ["rejected"](oradr graph), so a rejected option is not re-proposed as a fresh idea.list_supersededwill not do here: it returns only records whose status issuperseded, never a rejected one. -
Report what you loaded, in three groups, and keep them distinct:
- Binding (
governedBy/governing) — follow these, or say plainly in the plan that you are departing from one and why. - In flight (
activeProposals) — not binding. Name any the work touches; never assume one will land. - History — superseded and rejected. This is where "we already tried that" lives.
- Binding (
-
On a non-zero exit, read stderr and report it verbatim. Exit
1means the corpus has error-severity findings — the report is still complete and still worth reading. Exit2means a bad invocation or an unreachable corpus. Neither is "nothing governs this."
Read-only: this command writes nothing. The corpus defaults to docs/adr and is
overridable with ADRKIT_DIR.
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.
- yesterday First seen · 50 lines · 22 tokens per session scan A 86a945dab133
adr-context is a command published in the GitHub repository mbeacom/adrkit (11 stars, last pushed 2d ago), licensed Apache-2.0. It adds 22 tokens to every session and 621 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-update
Update an existing ADR (status, content, or metadata).