Let a coding agent decide which design decisions become ADRs

Tetsuo Tanaka let Claude Code choose what to record as ADRs over five months, ending with 52. It worked for routine records, but one ADR captured the implementation rather than his intent and went unnoticed for 39 days.

Done withClaude Code· Nov 24, 2026

What they did

Tanaka, who builds JSVisualizer and its JavaScript interpreter through Claude Code alone, wanted a record of past design decisions. Claude suggested Architecture Decision Records in docs/adr/, backfilled the first 15 from three weeks of git history and design notes, and from then on wrote them itself. At each stopping point he said only to document and commit, and Claude chose whether a change deserved an ADR or just a CLAUDE.md edit. He occasionally asked for a specific decision to be recorded and read almost none of the ADRs.

How it went

By early November the visualizer had 52 ADRs, mostly written the same day as the decision. Claude recorded conventions, feature removals and language-semantics fixes, and turned a casual 'make a note' into a full record of a decision not to fix a recursion limit, with measurements. It skipped two bug fixes he wanted recorded, so he asked. One ADR said to draw only arrays with a detected index variable, which matched the code and the approved plan but not what he meant. A class assignment exposed it 39 days later, and Claude rewrote the follow-up ADR as a correction to the record rather than a policy change.

Worth knowing

The faulty condition was in a 4,700-character plan he skimmed and approved, buried among function names. An agent-written ADR records what the agent saw: code, plan and its reading of instructions. His proposed fix, not yet tried, is to have the agent report each decision's effect on users in two or three lines before approval.

Try it

With Claude Code· 3 parts to fill in

Keep Architecture Decision Records for [my project] in [docs/adr]. When a change involves a design choice, a convention, a feature removal or a fix that depends on how a spec is read, write an ADR in the same commit with context, decision, consequences and alternatives. Ordinary edits go in [CLAUDE.md] instead. After writing each ADR, tell me in two or three plain lines what users will and will not see because of it, and wait for my yes before committing. If a bug traces back to an existing ADR, ask me whether that ADR matched my intent, and add a note to the old record rather than rewriting it.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related