adr-list

A command for listing Architectural Decision Records (ADRs), which are documents explaining important software design choices.

In plain words
What is it for?
Use it to list ADRs, filter them by status such as accepted or proposed, and view the results as a table, JSON, or brief summary.
Why use it?
It gives you a quick view of recorded decisions without opening files one by one.

Command

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/zircote-plugins/adr/adr-list
Clone the repo
git clone --depth 1 https://github.com/zircote-plugins/adr
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 575 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.00011 $0.00575
Opus 5 $0.00005 $0.00287
Sonnet 5 $0.00002 $0.00115
Haiku 4.5 $0.00001 $0.00057

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

Security

Grade A, and why

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

commands/adr-list.md · 96 lines

What it actually says

List ADRs

List all Architectural Decision Records with optional filtering by status.

Process

  1. Read configuration from .claude/adr.local.md
  2. Scan ADR directories for all .md files matching ADR pattern
  3. Parse each ADR to extract metadata
  4. Apply filters if specified
  5. Format output as table

Argument Parsing

Supported arguments:

  • --status=<status>: Filter by status (accepted, proposed, deprecated, superseded, rejected)
  • --format=<format>: Output format (table, json, brief)
  • No arguments: List all ADRs

ADR Discovery

Find ADRs in configured paths:

{adr_path}/[0-9]*.md
{adr_path}/[0-9][0-9][0-9]*.md

For each file, extract:

  • ID (from filename)
  • Title (from H1 heading)
  • Status (from Status section)
  • Date (if present)
  • Superseded by (if applicable)

Output Format

Table Format (default)

| ID   | Title                           | Status    | Date       |
|------|---------------------------------|-----------|------------|
| 0001 | Use PostgreSQL for Storage      | accepted  | {date}     |
| 0002 | Adopt Event-Driven Architecture | accepted  | {date}     |
| 0003 | Use Redis for Caching           | proposed  | {date}     |

Brief Format

0001: Use PostgreSQL for Storage [accepted]
0002: Adopt Event-Driven Architecture [accepted]
0003: Use Redis for Caching [proposed]

JSON Format

{
  "adrs": [
    {"id": "0001", "title": "...", "status": "accepted", "date": "2025-01-10"},
    ...
  ],
  "total": 3,
  "filtered": 3
}

Statistics Summary

After listing, include summary:

Total: 25 ADRs
- Accepted: 20
- Proposed: 3
- Deprecated: 1
- Superseded: 1

Error Handling

  • If no ADR directory exists, report and suggest /adr-setup
  • If no ADRs found, report empty state
  • If parsing fails, report file and continue with others
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. 2d ago First seen · 96 lines · 11 tokens per session scan A dff8f3d670a4

Subscribe to this mod's changes

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