
AI agents break code: ANSS standard reduces iterations by half
The AI-Native System Specification (ANSS) standard, developed after AI agents broke three components in a codebase, promises to cut back-and-forth iterations by half [Dev.to].
After AI agents broke three unrelated components in a codebase following a human-written spec, the author published the AI-Native System Specification (ANSS) standard on GitHub [Dev.to]. ANSS is a three-tier spec format that treats the AI agent as a first-class reader, with documents divided into tagged sections: [D] Domain (what to build), [E] Engineering (how to build), and [A] Agent (how the AI should operate) [GitHub]. Every invariant is expressed as a machine-verifiable rule, such as INV-001: No external npm packages, which forces the agent to reject any require() of a non-vendored module. The spec also includes a Check field that the agent must satisfy before generating code. By adopting ANSS, the author's iteration counts fell from 5-7 to 2-3, and the agent flagged five contradictions in a draft spec before writing code [Dev.to]. Two real-world examples, for a SaaS API and a regulated banking service, are bundled with the repository and have been tested with Claude Code, Cursor, and GitHub Copilot. The ANSS standard reduces rework by cutting the average number of review cycles by roughly 60%, translating to dozens of saved engineering hours per project. It also enables early defect detection by forcing the agent to audit the spec for contradictory sections, missing edge cases, and invariant violations [GitHub]. Additionally, the explicit Check rules eliminate ambiguous language, such as “keep the codebase minimal,” which previously gave agents leeway to add unnecessary npm packages [Dev.to].
Subscribe to the broadcast.
Daily digest of the day's most important tech news. No fluff. Engineering signal only.
// delivered via substack · double-opt-in confirmation


