The most seductive demo in AI software engineering is the uninterrupted run. Give an agent an issue, watch it inspect a repository, edit several files, execute tests, and announce completion. The smoothness implies that fewer human interruptions mean a more advanced system. In production, that is often backwards. The useful agent is not the one that avoids boundaries. It is the one engineered around good boundaries.
Software work contains decisions of different kinds. Some are cheap and reversible: searching symbols, reading logs, drafting a test, or trying a local refactor. Others carry organizational meaning: changing an authorization rule, introducing a dependency, modifying a schema, or deciding that a flaky test is irrelevant. A single autonomy setting treats these unlike actions as if they deserved the same trust.
The better design is a narrow operating envelope with an excellent exit. Inside the envelope, the agent moves quickly and uses tools freely. At the edge, it packages its state so that a person—or another deterministic system—can make the next decision without reconstructing the entire investigation. This is not merely adding an approval dialog. It is designing the work product for handoff.
A patch is not a handoff
Most coding agents finish by presenting a diff and a short summary. That is insufficient because a diff records what changed, not why the change should be trusted. Reviewers need the agent’s evidence: which failure it reproduced, what hypotheses it rejected, which contracts it believes must remain stable, what tests it ran, and what uncertainty remains.
A strong exit package has at least five parts: a concise problem model, the smallest relevant change set, verification results, explicitly unverified assumptions, and a rollback path. These should be generated from the agent’s actual actions rather than invented retrospectively. If the agent claims to have tested a migration, the system should attach the command, environment, and result. Provenance is more valuable than confident prose.
This follows the practical advice in Anthropic’s guide to building effective agents: workflows and agents have different strengths, and complexity should earn its place. An open-ended agent may be appropriate for exploring an unfamiliar failure. Once the failure is understood, a fixed workflow can take over for validation, policy checks, and delivery. Insisting that one autonomous loop perform every stage sacrifices predictability for architectural purity.
Context should be earned, not accumulated
Coding agents are often improved by giving them more context: larger repository windows, longer transcripts, more documentation, and broader tool access. But context has carrying costs. Old hypotheses remain visible after they are disproved. Irrelevant files compete with current evidence. Instructions from different sources collide. The agent can become well-informed in the same way a cluttered desk is well-equipped.
Good systems curate context as work progresses. They preserve durable facts—interfaces, constraints, decisions, test outcomes—while demoting exploratory debris. Anthropic’s discussion of context engineering for agents frames this as managing a finite resource rather than filling a window. For software engineering, the practical unit should be the claim-and-evidence pair: “this function is the failing boundary” beside the trace or test that supports it.
This also suggests a better memory architecture. Instead of one ever-growing conversation, maintain a compact task ledger. Each important claim receives a status such as observed, inferred, disproved, or awaiting review. Tool results can update those statuses. At handoff, the reviewer sees the current model of the problem, not an archaeological record of every thought the agent entertained.
Verification must be asymmetric
Agents should be allowed to generate changes cheaply and forced to justify risky changes expensively. That asymmetry is ordinary engineering discipline. Editing a local branch may require no approval; modifying authentication should trigger focused tests and human review. Adding a dependency should surface license, maintenance, and supply-chain information. Touching a database migration should require forward and rollback checks.
The official SWE-bench project made an important contribution by evaluating changes against real software tasks. Production systems must go further because passing available tests is not identical to preserving intent. Tests encode only the contracts someone thought to write down. An agent should identify the contracts it relied on and flag where the suite provides weak evidence.
Teams can implement this without building an elaborate agent platform. Start with a risk classifier based on paths and change types. Put deterministic gates around formatting, types, unit tests, security scans, and migration checks. Require the agent to stop when evidence conflicts, when the change expands beyond the requested scope, or when it encounters an irreversible operation. Make “I need a decision” a successful terminal state rather than a failure the model is trained to conceal.
Optimize the seam
The productivity gain from coding agents will not come solely from replacing keystrokes. It will come from reducing the cost of moving between exploration, implementation, verification, and review. Today those seams are expensive: developers reread issue threads, infer why files changed, reproduce tests, and discover late that an assumption was never validated.
An excellent agent makes the seam legible. It leaves a repository in a clean state, separates mechanical changes from semantic ones, attaches evidence, and names the decision that remains. Review becomes judgment rather than forensic reconstruction.
That is a less cinematic vision of autonomy, but a more valuable one. Software organizations do not need systems that can run forever. They need systems that know what they may decide, recognize what they cannot prove, and exit in a form that makes the next responsible action obvious.
Advertisement