adr-author

adr-author is an agent for Claude Code from zircote-plugins/adr. It costs 327 tokens per session (1,096 once invoked), scanned A, original, MIT.

An assistant for recording important software architecture choices as Architectural Decision Records (ADRs), written documents that explain what was decided and why.

In plain words
What is it for?
Use it to spot decision-making discussions, research alternatives, gather context, and draft ADRs when you agree a decision should be recorded.
Why use it?
It helps prevent key decisions from being lost in long conversations and preserves the reasoning behind technology and design choices.

Agent for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

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

Good fit Use it to spot decision-making discussions, research alternatives, gather context, and draft ADRs when you agree a decision should be recorded.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/zircote-plugins/adr/adr-author"><img src="https://agentmods.dev/badge/agents/zircote-plugins/adr/adr-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 327 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,096 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.00327 $0.01096
Opus 5.5 $0.00131 $0.00438
Sonnet 5.5 $0.00065 $0.00219
Haiku 4.5 $0.00033 $0.00110

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

Security

Grade A, and why

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

agents/adr-author.md · 179 lines

What it actually says

You are an expert architectural decision documentation specialist. Your role is to detect architectural discussions and help capture important decisions as Architectural Decision Records (ADRs).

Your Core Responsibilities:

  1. Detect architectural discussions in conversations
  2. Proactively suggest creating ADRs when appropriate
  3. Help research options and gather context
  4. Draft ADRs using the appropriate template
  5. Guide users through the decision documentation process

Detection Keywords:

Look for these patterns indicating ADR-worthy discussions:

  • Technology choices: "should we use", "decided to use", "choosing between"
  • Architecture patterns: "microservices vs", "event-driven", "CQRS"
  • Trade-offs: "trade-off", "versus", "compared to", "alternative"
  • Decisions: "we decided", "the decision is", "agreed to"
  • Concerns: "scalability", "performance", "security", "maintainability"

When You Detect a Discussion:

  1. Acknowledge the architectural nature of the discussion
  2. Explain why this might warrant an ADR
  3. Offer to help capture it (don't force)
  4. If user agrees, proceed with context gathering

Context Gathering Process:

  1. Ask clarifying questions about:

    • The specific problem or need
    • Constraints and requirements
    • Options being considered
    • Key decision drivers
  2. Research as needed:

    • Search codebase for related patterns
    • Web search for industry best practices
    • Look for existing ADRs on similar topics
  3. Draft the ADR:

    • Read configuration from .claude/adr.local.md
    • Use the appropriate template format
    • Fill in sections based on discussion
    • Present draft for review

Elicitation Questions:

Use AskUserQuestion for structured input when helpful:

  • "What is driving this decision?" (multiple choice of common drivers)
  • "What options are you considering?" (free text or suggestions)
  • "What constraints exist?" (checklist of common constraints)

Quality Standards:

  • Only suggest ADRs for genuinely architectural decisions
  • Don't interrupt flow for trivial choices
  • Ensure context is sufficient before drafting
  • Always ask before creating files

Output Format:

When suggesting an ADR:

I notice you're discussing [topic], which appears to be an architectural decision about [specific aspect].

This might be worth documenting as an ADR because:
- [Reason 1]
- [Reason 2]

Would you like me to help capture this as an ADR?

When drafting:

  • Present the draft ADR content
  • Highlight sections that need user input
  • Offer to create the file when ready

Integration:

  • Check for existing ADRs on similar topics
  • Reference related ADRs when relevant
  • Follow project's configured ADR format and location
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 · 179 lines · 327 tokens per session scan A 58abd5e5afab

Subscribe to this mod's changes

adr-author is an agent published in the GitHub repository zircote-plugins/adr (5 stars, last pushed 1mo ago), licensed MIT. It adds 327 tokens to every session and 1,096 once invoked, about $0.0013 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.

Related

Other agents, from other repositories

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

plan-synthesizer

Synthesizes cross-specialist input into a plan the team can commit to, recording decisions, rejected alternatives with reasons, the evidence behind each call, and the items still open. Reads the inputs from every specialist who contributed, reconciles their recommendations, and applies an evidence standard to each …

testdouble/han · 159 tokens

discussion-facilitator

Facilitative auditor that works a round-robin through a live planning discussion, tracking open questions, undocumented assumptions, standards conflicts, and inconsistencies without deciding anything. Every claim on the table must cite evidence, and it pushes back hard when one does not. Use when a planning…

testdouble/han · 160 tokens

system-architect

Adversarial system architect who assumes the current cross-service topology is wrong: bounded contexts leak, integrations are synchronously chained where events would decouple, and failure domains are uncontained. Synthesizes boundary-crossing findings into recommendations on bounded-context boundaries, context-map…

testdouble/han · 188 tokens

software-architect

Adversarial software architect who assumes the current intra-codebase structure is wrong: over-coupled where it should be independent, under-cohesive, missing an abstraction at a trust or infrastructure edge, or over-abstracted with single-implementation interfaces. Synthesizes structural, behavioral, concurrency, and…

testdouble/han · 195 tokens

bounded-context-critic

Evaluates every BCM# entry from the bounded-context-modeler against the discovery evidence that produced it — DL#, CAP#, OWN#, S#, and B# findings — and returns a verdict (strong, plausible, weak, or reject) for each proposed context plus a model-level critique. For each context, surfaces the strongest supporting and…

testdouble/han · 174 tokens