Setting 12 rules for coding agents to stop unnecessary code changes
11/29/2026 — 11/29, 12:17·1 sources (all)·1 reports (all)
Key takeaways
- The author noticed that coding agents often make unrequested extra changes, so they wrote 12 rules to define what “done” means. The rules in…
Background & analysis
On November 29, 2026, DEV Community's AI section published a post in which the author laid out a set of 12 rules for coding agents, drawn from his own experience using them. The behavior he describes is familiar: the agent does what it was asked, then keeps going. It renames a function nobody asked it to rename, rewrites an entire file to fix a single line, or produces an interface that looks like every other generated page on the internet. The author then spends the afternoon undoing the extra work.
His diagnosis is that the model is not the problem. The problem is that the agent has no rules defining what "done" means, so it guesses, and its guesses lean toward more: more code, more abstraction, more polish nobody requested. The 12 rules are meant to fix that by setting a clear standard for completion. According to the summary, they include changing only the minimum necessary code, naming things honestly, testing before claiming something works, and making error messages actionable. Each rule is tied to a specific behavior and to the mistake it is meant to prevent.
The record stops at publication. The rules were put forward and shared publicly by this one author; the material does not say whether other developers or tools have adopted them, and there are no later updates.
AI-generated from 1 reports · updated 2 hours ago
- Heat index
- 95
- All sources
- 1
- All reports
- 1
- First seen
- 2 hours ago
Reports on this story headlines open the original
The author found their coding agent kept making unrequested changes, so they wrote 12 rules to define what "done" means. The rules include making the smallest necessary change, naming things honestly, testing before claiming something works, and writing actionable error messages. Each rule maps specific behaviour to the mistakes it prevents.
DEV Community · AIAI score 57
Other stories people are talking about
- Heat index 763RisingOpenAI countersues Apple over trade secrets and supplier pressure14 sources
- Heat index 367SurgeAnthropic Denies Claims Claude Sabotages ML Research5 sources
- Heat index 293Musk says Google is interested in renting more compute from SpaceX5 sources
- Heat index 166RisingGoogle ships Workspace MCP servers and CLI, mandating agent access path2 sources
- Heat index 166Claude Code adds /ship command for automated PR review3 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

