published fresh until

ADR template: how should agents use it?

Summary As of October 2026, use a short MADR template in the repo, let the agent propose records with evidence, and have people accept or supersede them; adr-tools is optional numbering and linking support (checked 2026-10-28). Start with adr init.

Not for A pull request template for reviewing routine bug fixes; an ADR records a significant architecture decision.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Keep short ADRs beside the code, have the agent draft them as proposed, and require human review before accepting or superseding a decision.

Not for: A pull request template for reviewing routine bug fixes; an ADR records a significant architecture decision.

What changed

  • Current reference, checked 2026-10-28: MADR provides templates; adr-tools manages files and links. They solve different parts of the workflow; adopting the template does not require installing a CLI.
  • The AWS ADR lifecycle, checked 2026-10-28, preserves accepted decisions and supersedes them through a new reviewed record. Agent maintenance should preserve that history.

How to set it up

1. Reuse the repo's existing ADR directory. Otherwise choose docs/decisions/, add an index, and link it from the contributor guide and the agent instruction file. This path is a recommendation, not a standard. For an adr-tools log, run adr generate toc to print a Markdown index. Record only significant decisions: persistence, public contracts, security boundaries, deployment topology or costly dependencies. 2. Copy the MADR minimal template (4.0.0, checked 2026-10-28), keeping context, considered options and decision outcome. Add status and consequences if your chosen variant omits them. Keep the record about one decision. 3. Use the adapted outline below. Fill the constraints from issues, code and named reviewers; mark unknown rationale as unknown. Do not let the agent invent rejected alternatives or claim a meeting approved a choice. 4. Open a pull request with the ADR and relevant code together. Ask a decision owner to review alternatives, negative consequences and confirmation criteria. Keep it proposed until approval; record who accepted it in prose. 5. On a later change, propose a new ADR and link both ways. Update the index and old record's supersession pointer, preserving its original rationale. During code review, ask which accepted ADRs the diff affects; an unrelated bug fix needs no ADR.

A small adapted template, written as headings to keep it easy to edit:

# Choose one persistence owner for billing
## Status
Proposed; decision owner and reviewers still to confirm.
## Context and problem
What constraint requires a decision? Link evidence and affected code.
## Considered options
List real alternatives and the tradeoff that separates them.
## Decision outcome
State the proposed choice and why it meets the constraints.
## Consequences
Name benefits, costs, risks and any follow-up work.
## Confirmation
How will reviewers verify the decision works? What would trigger review?
## Related decisions
Link predecessors and any superseding record.

For optional CLI support, the adr-tools quick start documents adr init doc/architecture/decisions, adr new Implement as Unix shell scripts and adr new -s 9 Use Rust for performance-critical functionality. Substitute your agreed directory and actual decision. Its default directory is doc/adr. Set VISUAL or EDITOR to choose which editor adr new opens. Inspect generated status before review; file generation is not acceptance. A custom template is looked up at the ADR directory's templates/template.md, confirmed by Nat Pryce in issue 33. Do not assume a MADR file is a drop-in CLI template without checking placeholder and link handling.

Versions, licences and when to pick

Each entry checked 2026-10-28; these are documentation references, not a requirement to upgrade an existing log.

OptionOfficial referencePick whenNot for
MADR 4.0.0 (checked 2026-10-28)Release; MIT OR CC0-1.0 (checked 2026-10-28)You need consistent context, options and rationale with no runtimeAutomating approval or enforcing architecture
adr-tools 3.0.0 (checked 2026-10-28)Release; GPL-3.0-or-later; generated content CC BY 4.0 (checked 2026-10-28)You want sequential files and supersession links from a CLIA decision-making service or a mandatory MADR dependency
Plain MarkdownUse the same reviewed outline without a CLIA small repo needs the least machineryReplacing issue tracking or general agent memory

Evidence and review practice

Michael Nygard argues for small records that preserve the forces behind a decision. Martin Fowler emphasizes brevity, serious alternatives and superseding accepted records. These are practitioner arguments for the process, not measurements of agent productivity. The GDS team puts service-specific decisions in the application's version-controlled repository. Our recommendation is to apply that review discipline to agent drafts.

What to test and pitfalls

Check that the index and supersession links resolve, the code follows the accepted choice, and each consequence has an owner or an explicit acceptance. Ask a new contributor to explain why the choice was made from the ADR alone. Avoid one ADR per small refactor, pages of generated prose, and rewriting historical reasoning to match today's code. A checker can find broken links; it cannot verify that the team really considered an option.

A prompt to give your agent

Your training data may predate our ADR format. Read https://adr.github.io/madr/ and the linked minimal template, then inspect our contributor guide, agent instructions and existing ADRs. Propose one short ADR using our directory and naming convention. Cite repo evidence for constraints; mark missing rationale as unknown. Keep status proposed, identify reviewers and affected accepted ADRs, and give a confirmation checklist. Do not accept a decision or rewrite an accepted record's rationale. If it changes an accepted decision, propose a superseding record with reciprocal links.

Limits

No CLI installation, generated-link test or team review was run. The agent workflow is a recommendation derived from ADR practice; the cited practitioner sources do not establish that automated ADR writing improves decisions. Template compatibility with an existing adr-tools customization needs a local trial.

Started from a post by @npryce, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# ADR template: how should agents use it?
Summary: As of October 2026, use a short MADR template in the repo, let the agent propose records with evidence, and have people accept or supersede them; adr-tools is optional numbering and linking support (checked 2026-10-28). Start with `adr init`.
Copy for agent
get the whatworks thread adr-template-madr-adr-tools-agent-repo-review and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread adr-template-madr-adr-tools-agent-repo-review
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks