adr

adr is a command for coding agents from HigorAlves/orc. It costs 42 tokens per session (825 once invoked), scanned A, original, MIT.

A command for writing an Architecture Decision Record (ADR), a dated document that explains an important, lasting software-design choice and its alternatives.

In plain words
What is it for?
Use it to create a numbered ADR, supersede an existing ADR, or change an ADR's status.
Why use it?
It gives architectural decisions a consistent record and can mark an older decision as replaced.

Command

Part of the orc plugin — 13 skills, 30 commands, 14 agents, 5 hooks shipped together

Install

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.

agentmods
npx agentmods add commands/higoralves/orc/adr
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

Or install orc, the plugin that ships this one along with the rest of its 13 skills, 30 commands, 14 agents, 5 hooks.

Wrote 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.

agentmods badge for adr

README.md
[![agentmods](https://agentmods.dev/badge/commands/higoralves/orc/adr.svg)](https://agentmods.dev/commands/higoralves/orc/adr)
Your own site
<a href="https://agentmods.dev/commands/higoralves/orc/adr"><img src="https://agentmods.dev/badge/commands/higoralves/orc/adr.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 825 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00825
Opus 5 $0.00021 $0.00413
Sonnet 5 $0.00008 $0.00165
Haiku 4.5 $0.00004 $0.00082

Measured 3d ago against content hash fc0d11558527, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adr 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 3d 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.

orc/commands/adr.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/orc:adr

Author a new ADR (or update an existing one's status) following orc:adr-writing.

Arguments

  • <title> — optional. Short noun phrase describing the decision (e.g. "use Postgres for primary store"). If omitted, prompts via AskUserQuestion.
  • --supersede NNNN — optional. Marks an existing ADR as superseded and authors a new one whose Context cites the predecessor.

Workflow

Phase 1 — Confirm an ADR is warranted

Invoke orc:adr-writing. Apply its "all of these are true" test:

  • architectural (multi-module / boundary / convention)
  • non-obvious (real alternatives exist)
  • durable (≥ 3 months expected lifetime)

If borderline, print the Gate headline (**⛔ Gate — is this ADR-worthy?**, one line on which criterion is borderline, per orc:callouts), then AskUserQuestion:

  • "Yes, write the ADR"
  • "Smaller — propose a single-paragraph design note in the relevant code instead"
  • "Skip — this isn't really an architectural decision"

Phase 2 — Locate docs/adr/

If the directory doesn't exist, create it and add a one-line docs/adr/README.md linking to the convention. Find the next sequence:

ls docs/adr 2>/dev/null | grep -E '^[0-9]{4}-' | sort | tail -1

Increment to get the new four-digit sequence (0001 if first).

Phase 3 — Draft

Author docs/adr/NNNN-<kebab-title>.md using the template from orc:adr-writing. Fill every section with real content. Don't leave TBD or placeholder text — delete sections that genuinely have no content.

If --supersede NNNN was passed:

  1. Read docs/adr/NNNN-*.md. Update its status to Superseded by <new-NNNN> and bump its date.
  2. The new ADR's Context MUST cite the predecessor and explain why the situation changed.

Phase 4 — Review

Print the Gate headline (**⛔ Gate — ADR review**), show the draft, then AskUserQuestion:

  • "Looks good — commit"
  • "Edit before commit" (loop back to Phase 3)
  • "Save as draft (Status: Proposed)" — commits with status flag flipped

Read the full file on GitHub · 81 lines

Changes

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.

  1. 3d ago First seen · 81 lines · 42 tokens per session scan A fc0d11558527

Subscribe to this mod's changes

adr is a command published in the GitHub repository HigorAlves/orc (6 stars, last pushed 7d ago), licensed MIT. It adds 42 tokens to every session and 825 once invoked, about $0.0002 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-31.