According to reports from developer theBigGavin on Dev.to and GitHub, a new open-source repository named arch-rule-packs aims to solve the widespread issue of AI coding assistants over-engineering small tasks. By enforcing mandatory "Violate when:" exit clauses on every architecture rule inside an AGENTS.md file, early dogfooding benchmarks showed design quality scores rising from 3 out of 10 to 8 out of 10.
The Dogma Problem in AI Coding Agents
Developers utilizing AI coding tools such as Claude Code, Codex, Cursor, and the Gemini CLI frequently encounter commits where agents blindly apply textbook software design patterns to trivial codebases. According to the source materials, an agent might wrap a single Stripe client in an interface to satisfy open-closed principles or construct a four-layer Clean Architecture around a simple 200-line cron job. These behaviors are not hallucinations; rather, the models strictly obey standard architecture guidelines provided in configuration files without evaluating whether the rules actually apply to the current scale.
Enforcing Machine-Checkable Escape Hatches
To counter this rigid adherence, the arch-rule-packs repository introduces 21 standalone plain-text rules that require explicit conditional boundaries. As detailed in the repository documentation and release notes, every rule incorporates both an application guideline and a mandatory "Violate when:" clause. For instance, a rule concerning vendor boundary interfaces specifies that a concrete class is completely acceptable if a client has only one active implementation and no secondary implementation is planned for the current quarter. The agent must cite either the rule or its exit clause within its commit messages, introducing a machine-checkable prose constraint without requiring complex binaries, runtime dependencies, or CI plugins.

Why Conditional Rules Change AI-Assisted Development
The introduction of conditional architectural guidance addresses a fundamental psychological quirk of large language models trained to demonstrate active problem-solving: they default to affirmative actions because producing nothing can resemble failure. When rules lack contextual exit boundaries, models constantly prioritize visible ceremony, such as extra files and unnecessary abstractions, over pragmatic simplicity. This matters deeply for engineering teams relying on AI agents for day-to-day feature development, as bloated codebases accumulate technical debt rapidly without delivering tangible architectural benefits. While s1 and s2 highlight that the package is designed as a lightweight nudge rather than a comprehensive god-mode solution, the implications extend to how developers structure agent instructions across multiple AI ecosystems. By shifting the focus from absolute dogmatic constraints to boundary-aware rules, teams can better align autonomous coding assistants with real-world project constraints. Furthermore, comparing this approach with alternatives like seam-arch or agent-rules-books reveals a broader industry movement toward minimalist, text-based guardrails rather than heavy runtime linting, suggesting that prompt engineering for software architecture is evolving past simple rule dumps into sophisticated contextual frameworks.
Benchmarks, Limitations, and Availability
Regarding performance metrics, the author reports a score increase from 3 to 8 out of 10 across 10 small design tickets evaluated with hidden scoring checks. Both sources note that the repository includes an over-design probe designed to penalize speculative abstractions, ensuring the rule pack does not merely swap under-engineering for unnecessary ceremony. However, the author explicitly cautions that these numbers reflect specific dogfooding runs and model configurations, noting that individual outcomes will vary across different codebases and LLMs. The package is currently available as a free MIT open-source beta, with a hosted version providing per-repo drift checks in active preparation.
Editorial graphic and headline text by Signal Titans.
Source: We put a 'Violate when:' exit clause on every AGENTS.md rule — agent over-engineering dropped from 3/10 to 8/10 · GitHub – theBigGavin/arch-rule-packs: An AGENTS.md architecture pack where every rule ships a Violate-when exit clause – the anti-dogma Clean Architecture ruleset for AI coding agents, with a design b

Leave a Reply