Evaluating Long-Horizon Coding Agents: Delivery Quality and Cost Control
Long-horizon coding agents should be judged on independent delivery, not runtime. This article explains how to evaluate planning, implementation, and verification with a bookkeeping app, separate reasoning failures from environment issues, and measure cost only after independent acceptance.
Independent delivery matters more than runtime
A code completion usually needs only the current file and a local request. A full engineering task requires the agent to keep switching among requirement breakdown, implementation, testing, and repair. The longer the task, the more early decisions matter. If a bookkeeping app never agrees on amount precision and rounding, later forms, lists, and stats pages can still fail at reconciliation.
Longer continuous runtime does not mean stronger capability. It can mean a larger rework surface. Evaluation should first define “done”: a runnable application, core business rules passing independent acceptance, and a clear split between finished work and open issues when the agent is blocked. Autonomous runtime is process data, not quality. Two runs of nearly an hour are not equal if one covers the main business flow and the other only retries the same environment error.
Use a bookkeeping app to test planning, implementation, and verification
A bookkeeping app is a good long-horizon task because data design, business logic, and user actions constrain each other. Adding a transaction must persist data and show up in the list and totals. Changing an amount must update aggregates. Deleting a category still referenced by transactions must follow an explicit rule instead of leaving unexplained history.
A reference run of nearly one hour without human intervention started with an open brief. The agent proposed eight modules, six tables, and ten verification items, then executed the plan. After delivery, adding a record produced no page error. That shows the agent can turn an open request into a usable app and complete at least one add flow under those conditions. A single UI trial does not prove persistence, statistical accuracy, invalid-input handling, or regression coverage. Module, table, and checklist counts are process notes, not design targets for other tasks.
To make the experience reproducible, split the work into three stages:
- Fix acceptance criteria before implementation. Define how income and expense are represented, how statistic windows are bounded, and whether a referenced category can be deleted. Unspecified details may use reasonable defaults, but assumptions must be recorded so implementation bugs can be separated from requirement ambiguity.
- Check progress along the business path. First complete “add transaction — read it back — update totals,” then category maintenance, filters, and edits. A vertical slice earlier is better than waiting until every page exists.
- Accept with independent cases. After a page refresh, the record should still exist. After an amount edit, totals should change by the expected delta. Invalid amounts should leave data unchanged. If deletes are allowed, records and totals must stay in sync. The agent may write tests, but evaluators should keep independent cases so implementation and tests do not share the same wrong assumption.
Log “implementation generated,” “project runs,” and “business acceptance passed” separately. Unrun checks should be marked unverified, not passed because the agent claimed completion.
Test complex reasoning and simple judgment together
Long engineering tasks and short questions probe different skills. The former can use tools and stepwise correction; the latter may require catching a single goal or constraint. Strong results on complex situational reasoning can coexist with repeated or wrong answers on hard math and misses on simple items. Anecdotes are not a ranking, and answer length does not prove “overthinking.”
Different item types should expose different failure signals. For constraint reasoning, check that the conclusion is consistent with every given condition. For math, check both the answer and key steps so a lucky guess does not hide a broken argument. For simple decisions, use paired items that change one critical condition. If the goal is to wash a car, the car must reach the shop; if the goal is only to ask about price, it need not. Paired items test whether the system tracks the actual goal.
Short items also inform routing. Facts that are clear and reversible can get a direct answer. Tasks with many constraints and costly mistakes deserve more verification. Extra reasoning budget should depend on whether extra checks reduce errors, not on whether a problem looks complex.
Separate retries, environment failures, and implementation bugs
A long-task failure may be a wrong program, missing dependencies, silent tools, or insufficient permissions. “Did not finish” does not say whether to change the model setup, the environment, or the brief. Keep plan changes, tool results, test summaries, and human intervention points, and rerun the same task, environment, and acceptance bar. One success shows feasibility, not stability.
For retries, set stop rules: if the same error repeats with no new diagnosis, stop patching the same path and decide whether the issue is environment or implementation. If work cannot continue, deliver a reproducible error, verified features, and what is needed next. Partial delivery is more usable than a dead directory after the budget is spent.
Human intervention should be counted separately. Clarifying an ambiguous rule is not the same as needing a human to fix code. Pre-agreed confirmations, such as overwriting existing data, are not model failures. If the experimenter injects a key implementation idea mid-run, the result is not fully independent.
Cost until acceptance, not until generation ends
Long-horizon coding involves many tool calls. History, requirements, and tool output re-enter context. Input caching can reduce some repeated input cost when hit conditions are met, but hits and pricing must follow auditable usage and the actual billing rules. Caching does not remove new output, tool execution, or failed reruns, and a run that fails acceptance is not a valid delivery.
Compare strategies on three metrics:
- Acceptance rate: independent-acceptance passes divided by valid runs. Generation complete is not success.
- Human time: clarification, incident handling, and manual repair, split into routine confirmation versus rework.
- Cost per successful delivery: total cost of the experiment group divided by accepted runs. Include failed attempts. If tool resources and human time are included, use the same conversion. If nothing passes, report spent cost and failure reasons, not a meaningless average.
Cut work that produces no new evidence: keep diagnostic logs instead of full history every turn; do not rewrite independently accepted modules unless later changes affect them; stop stalled attempts and preserve the scene. That reduces usage and the time a human needs to take over.
Whether to expand coding-agent use should follow repeatable delivery. Start with internal tasks that are easy to roll back and check, then increase length and dependency complexity. Longer autonomous runtime is useful only when acceptance rate, human intervention, and successful-delivery cost meet the team’s agreed bar.
