adr-update

adr-update is a command for Claude Code from zircote-plugins/adr. It costs 15 tokens per session (583 once invoked), scanned A, original, MIT.

A command for changing an existing Architectural Decision Record, a document that records a technical choice, its status, or its supporting details.

In plain words
What is it for?
Use it to accept, reject, deprecate, or supersede a record, or add decision drivers and consequences.
Why use it?
It avoids manually locating and editing records when a decision changes.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the adr plugin — 12 skills, 7 commands, 3 agents shipped together

Good fit Use it to accept, reject, deprecate, or supersede a record, or add decision drivers and consequences.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/zircote-plugins/adr/adr-update
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.

Clone the repo
git clone --depth 1 https://github.com/zircote-plugins/adr

Made for: Claude Code.

Or install adr, the plugin that ships this one along with the rest of its 12 skills, 7 commands, 3 agents.

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-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/zircote-plugins/adr/adr-update/github.svg)](https://agentmods.dev/commands/zircote-plugins/adr/adr-update)
Your own site
<a href="https://agentmods.dev/commands/zircote-plugins/adr/adr-update"><img src="https://agentmods.dev/badge/commands/zircote-plugins/adr/adr-update/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.

agentmods 80×15 button for adr-update

Your own site · 80×15
<a href="https://agentmods.dev/commands/zircote-plugins/adr/adr-update"><img src="https://agentmods.dev/badge/commands/zircote-plugins/adr/adr-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00015 $0.00583
Opus 5.5 $0.00006 $0.00233
Sonnet 5.5 $0.00003 $0.00117
Haiku 4.5 $0.00002 $0.00058

Measured 1mo ago against content hash 539d5249e1a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adr-update 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.

commands/adr-update.md · 107 lines

How it starts

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

Update ADR

Update an existing Architectural Decision Record's status, content, or metadata.

Process

  1. Parse arguments to identify ADR and update type
  2. Find ADR file by ID
  3. Read current content
  4. Apply updates based on arguments
  5. Update index if needed
  6. Git commit if configured

Argument Parsing

Supported arguments:

  • <adr-id>: ADR number (e.g., "0001", "1", "ADR-0001")
  • --status=<status>: Update status (accepted, rejected, deprecated, superseded)
  • --add-driver=<driver>: Add a decision driver
  • --add-consequence=<consequence>: Add a consequence
  • No status flag: Open interactive update mode

ADR Resolution

Find ADR by flexible matching:

  • "1" → finds 0001-*.md
  • "0001" → finds 0001-*.md
  • "ADR-0001" → finds 0001-*.md
  • "use-postgresql" → finds use-postgresql.md

Status Update

When updating status:

To "accepted"

  • Update Status section
  • Add acceptance date if not present
  • Optionally add decision makers

To "rejected"

  • Update Status section
  • Prompt for rejection reason
  • Add rejection date

To "deprecated"

  • Update Status section
  • Prompt for deprecation reason
  • Suggest creating successor ADR

To "superseded"

  • Require superseding ADR ID
  • Update Status section
  • Add "Superseded by ADR-XXXX"
  • Update superseding ADR with "Supersedes ADR-YYYY"

Content Updates

For interactive updates, use AskUserQuestion:

  • What section to update?
  • What is the new content?
  • Any additional changes?

Index Update

After status change:

  1. Read README.md index
  2. Update status in ADR table
  3. Write updated README.md

Git Integration

If git integration enabled:

git add {adr_file}
git commit -m "docs(adr): update ADR-{id} status to {status}"

Output

Report changes made:

  • Previous status → New status
  • Sections modified
  • Related ADRs updated
  • Git commit created (if applicable)

Validation

Before updating:

  • Verify ADR exists
  • Validate status transition is allowed
  • Check for missing required fields

Read the full file on GitHub · 107 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. 1mo ago First seen · 107 lines · 15 tokens per session scan A 539d5249e1a5

Subscribe to this mod's changes

adr-update is a command published in the GitHub repository zircote-plugins/adr (5 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 583 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-31.