hebel. today · 23 November 202623 / 79
Agentic Engineering · AI engineering
Moving from agent prototypes to production-grade specifications
GitHub found that most agent files fail because they are too vague, leading 45 percent of developers to report that AI-generated code is only almost right and requires more time to fix than to…
From 5 newsletters · 1 min read · one thing to try
GitHub found that most agent files fail because they are too vague, leading 45 percent of developers to report that AI-generated code is only almost right and requires more time to fix than to write from scratch (UX Collective). To solve this, teams are adopting a specification-driven loop where a working prototype acts as a disposable specification rather than a final product. By building and watching the prototype fail, engineers extract the precise boundary conditions, naming rules, and forbidden operations needed to harden the system. These constraints are then encoded into the agent harness—the instructions, permissions, and tests—that keeps the agent within production-grade guardrails.
This transition mimics the shift from mid-level to senior engineering, where the focus moves from solving a handed-down task to defining the actual problem and owning the outcome end-to-end (Javarevisited by Javin Paul). At Block, Angie Jones implemented an issue-first process for the coding agent Goose, requiring contributors to agree on the problem and design before generating any patches (The New Stack). Similarly, Replit used a swarm of 32 agents to optimize slow code 19 times faster than a single agent, but only after providing clear goals and an independent judge to verify the results (Rich Holmes from Department of Product). The most effective engineers now manage these token budgets and agent swarms as founders of their own internal startups, focusing on architecture and testing rather than manual code generation (Peter Yang from Behind the Craft).
Try today · 30 min
Audit your current agent's 'agents.md' or system prompt to replace vague goals with three specific constraints derived from your last five failures.
Identify the precise boundary condition or naming rule that caused the agent to output 'almost right' code.
You need
- The agent's last five failed outputs
- Repository 'agents.md' or system prompt file
Steps
- Review the last five failed agent executions.
- Identify one specific rule the agent violated in each failure.
- Draft a constraint for the system prompt that explicitly forbids the identified failure mode.
- Update the 'agents.md' file with these new boundary conditions.
- Run the agent against the same test case to verify the correction.