AI Coding Agents: Evaluating Long-Running Tasks and Delivery Costs
Evaluating AI coding agents requires more than judging generated interfaces or initial answers. This article outlines a practical approach to assessing end-to-end delivery, sustained execution, verification, and cost using a financial reporting monitoring application. It covers acceptance criteria, testing, single-agent and multi-agent workflows, permission boundaries, deployment considerations, and repeatable experiments that produce auditable results.
1. Evaluate Complete Tasks, Not Individual Answers
When evaluating models that can write code and use tools, developers often focus on two questions: Does the generated interface look good, and is the first response accurate? Both are useful signals, but neither establishes whether an agent is ready for a real development workflow.
Engineering tasks rarely consist of generating code once. They involve understanding requirements, inspecting a project, designing a solution, modifying code, running tests, diagnosing failures, and making further repairs. A failure at any stage can leave an impressive-looking result undeliverable.
The evaluation should therefore shift from answer quality to end-to-end task completion, with four priorities:
- Delivery completeness: Does the result satisfy the agreed functionality and edge cases, rather than just the parts that are easy to demonstrate?
- Sustained execution: Can the agent maintain its goal through multiple revisions, failed attempts, and changes in context?
- Verification credibility: Does it actually run checks and provide evidence that can be independently reviewed?
- Cost per accepted deliverable: How much money, time, and human intervention does a task require before it meets the acceptance criteria?
Together, these dimensions determine productivity. Strong performance on a single generation does not establish reliability on long-running tasks. A lower invocation price does not necessarily mean a lower delivery cost.
2. Define Verifiable Boundaries with a Financial Reporting Monitoring App
A financial reporting monitoring application is a useful evaluation task because it combines interfaces, data, state management, backend services, and testing while remaining divisible into manageable stages.
A basic version might need to:
- Display company names, reporting periods, expected disclosure dates, and processing status.
- Filter records by date range, company name, and status.
- Show a report’s summary, key metrics, and source information.
- Save followed companies and show changes when data is updated.
- Handle loading, empty results, errors, and retries.
These requirements still leave important questions unanswered. Before starting, specify whether data comes from sample files or an actual collection process, whether the watchlist is stored only on the current device or synchronized across devices, and whether “complete” includes deployment and automated tests.
Create an acceptance matrix:
| Feature | Acceptance criteria | Verification method |
|---|---|---|
| Record list | All required fields are present; dates and missing values are displayed consistently | Sample-data checks and UI tests |
| Filtering | Combined filters return the correct results | Input-output assertions |
| Report details | Summaries, metrics, and sources are linked correctly | Data consistency checks |
| Data persistence | Records remain available after a service restart | Restart and read-back tests |
| Error handling | Failed requests display an error and allow retries | Fault simulation |
| Update workflow | Reprocessing does not create duplicate records | Idempotency tests |
The matrix prevents an agent from treating “it can be displayed” as “it is complete.” If a phase requires only a frontend prototype, explicitly exclude live data integration. If the goal is a complete runnable application, backend services, persistence, and failure handling cannot be silently deferred.
3. Assess UI Completeness and System Completeness Separately
AI coding agents can often generate clear layouts and rich interactions quickly. This is valuable for exploring requirements: a prototype helps a team agree on information hierarchy, filtering behavior, and user flows while reducing early communication costs.
However, a visible button does not prove that the underlying business operation works. Common gaps include:
- A save action changes only in-memory state, so data disappears after a refresh.
- Search covers only currently loaded records rather than the full dataset.
- Report details use fixed sample data without a real relationship to list entries.
- Update status is simulated in the frontend without a corresponding background task.
- Error messages cover predefined scenarios but not actual timeouts or invalid responses.
Record UI completeness and system completeness separately at delivery. The former concerns presentation, interaction, and state feedback. The latter concerns data flow, authorization, persistence, and operational reliability.
A financial reporting monitoring application can use a general layered structure:
Data acquisition → Raw material storage → Parsing and normalization → Data storage → Query service → Frontend presentation
Raw materials should retain their sources, acquisition timestamps, and version information. Parsed records should link back to the original materials for traceability. Define deduplication rules for repeated retrieval of the same report, and distinguish newly added data from revisions to existing reports.
This structure improves reliability and reduces repeated restructuring when the agent extends the application later.
4. Long-Running Capability Depends on Feedback, Not Runtime
An agent working continuously for a long period is not necessarily executing well. What matters is whether it responds to environmental feedback while keeping its adjustments aligned with the original goal.
A reliable execution loop typically includes:
- Inspect the current state: Read the project structure, configuration, dependencies, and existing tests to identify constraints.
- Plan the work: Break down the task and explain the scope of changes, risks, and acceptance checks.
- Implement changes: Prioritize small, verifiable modifications.
- Run checks: Execute relevant tests and inspect build results and runtime logs.
- Explain failures: Distinguish implementation defects from environment problems and ambiguous requirements.
- Repair and retest: Make evidence-based changes rather than expanding the scope through guesswork.
- Summarize delivery: Report completed items, verification results, unresolved issues, and known limitations.
Failure analysis is especially easy to overlook. A failed test may result from a missing dependency, an occupied port, unexpected sample data, or a genuine logic defect. If the agent repeatedly changes code without identifying the cause, it may introduce additional problems.
Long-running tasks also need explicit stopping conditions. If an agent repeatedly fails the same check or needs permissions beyond its authorization, it should pause and request human confirmation rather than retry indefinitely.
Maintain a concise task log in the workspace, updating the goal, completed steps, current failure point, and next action. Such records help reduce information loss in long contexts, but they do not replace tests or inspection of the actual environment.
5. Automated Tests Must Verify Behavior, Not Just Page Presence
Automated testing is an important indicator of an agent’s engineering value, but test count alone does not measure test quality.
For a financial reporting monitoring application, testing can be organized into three layers.
Logic Tests: Verify Local Rules
Cover date filtering, status transitions, monetary units, duplicate detection, and missing-field handling. Financial data requires explicit currencies, units, and reporting periods to avoid comparing values measured on different bases.
Integration Tests: Verify Component Connections
Check that the query service reads stored data correctly, written records can be retrieved, and errors follow the agreed contract. Include empty datasets, duplicate requests, invalid parameters, and unavailable storage.
End-to-End Tests: Verify User Journeys
Simulate opening the application, setting filters, viewing a report, saving a watchlist entry, and refreshing the page to check the result. Tests should verify that state actually changes, not merely assert that particular text appears.
One failure mode deserves special attention: an agent may modify both the implementation and the test expectations so that the tests match its current code. The checks may pass while the result diverges from the original requirements.
A safer approach is to preserve key acceptance criteria independently, review changes to test expectations, and require explanations for those changes.
The final delivery should include records of checks actually executed. If an environment limitation prevents a test from running, label it unverified. Static checks are not a substitute for an unexecuted test.
6. Choose Single-Agent or Multi-Agent Workflows by Task Structure
A single agent is well suited to focused tasks with tightly coupled dependencies, such as repairing an application’s data flow or completing a related set of endpoints. Its advantages are consistent context and lower coordination overhead. Its limitations include dependence on one approach and the absence of inherently independent review.
Multi-agent collaboration is better suited to work that can be divided, executed in parallel, and merged. For financial report research, roles might include material collection, metric extraction, summary preparation, and quality review.
More roles do not automatically produce better results. Common risks include:
- Multiple agents retrieve the same materials, increasing costs.
- Agents use inconsistent field definitions or financial measurement conventions.
- Individually plausible outputs contradict one another when merged.
- Several outputs depend on the same incorrect source, creating apparent agreement.
- Coordination consumes excessive context and waiting time.
Address these risks with shared input-output contracts and clear responsibility boundaries. Financial analysis outputs should include, at minimum, the reporting period, metric definition, unit, source location, and uncertainty notes.
Review agents should prioritize original evidence rather than relying only on other agents’ summaries. Otherwise, collaboration may simply reprocess the same incorrect information.
7. Measure Full-Task Cost, Not Just Invocation Prices or Quotas
Coding agents repeatedly read files, call tools, run tests, and repair errors. Their cost should therefore be measured across complete tasks.
A useful metric is:
Cost per accepted deliverable = (Total expenses + Cost of human time) ÷ Number of tasks meeting acceptance criteria
Total expenses may include model calls, execution environments, data storage, networking, and testing resources. Human time includes writing requirements, reviewing code, restoring environments, and fixing omissions.
Quota adequacy also requires comparable task conditions. Low consumption across a small sample describes only that sample; it does not establish long-term sufficiency. Account types, context lengths, concurrency patterns, and failed retries can all affect resource use.
At minimum, record:
- Completion time and final acceptance result for each task.
- Number of human interventions and their causes.
- Retry counts and repeated execution steps.
- Actual charges or observable resource consumption.
- Limits, timeouts, and recovery behavior during extended runs.
Report task conditions and the scope of the measurements. Avoid turning a short-term experience into a general conclusion.
8. Establish Permission and Recovery Boundaries Before Real-Environment Access
Once an agent can modify files, execute commands, or access external resources, its risks extend beyond incorrect answers. It can affect repositories, data, and runtime environments.
A cautious integration approach includes:
- Running tasks in isolated workspaces rather than directly modifying critical production environments.
- Granting minimum permissions by default and requiring separate confirmation for sensitive operations.
- Separating credentials from ordinary project files and restricting what the agent can read.
- Requiring approval for file deletion, permission changes, and data migrations.
- Preserving change records for review and rollback.
- Setting limits on execution time, resource consumption, and retries.
Environmental awareness also needs dedicated testing. Can the agent identify its current directory, check whether dependencies exist, detect service port conflicts, and distinguish test data from production data? Successfully completing one coding task does not establish safe execution across all machine environments.
Treat external materials as untrusted input. Text in reports, web pages, or logs must not become execution instructions, justify expanded permissions, or trigger disclosure of local information.
9. Check Deployment and Usage Conditions for Open Models Separately
Whether a model is open and whether it works well as a coding agent are different questions. When evaluating open models, separately verify the license, available files, runtime requirements, and commercial-use conditions. “Available to download” does not mean “unrestricted use.”
Deployment costs extend beyond compute. Consider model loading, concurrency capacity, resource pressure from context length, and service monitoring and maintenance. Evaluate the model’s capabilities separately from tool-use workflows, task orchestration, and runtime permissions.
Without clear public documentation, do not infer a specific model’s deployment requirements or degree of openness. Verify the available materials first, then run a small-scale evaluation in the target environment.
10. Replace General Impressions with Reproducible Experiments
A practical evaluation can begin with three task types:
- Generate an application prototype with clearly defined boundaries.
- Fix a problem in an existing project.
- Complete a data organization task with source traceability.
Give all candidates the same requirements, initial environment, and acceptance criteria. Record the full execution process, then compare delivery quality, human intervention, failure recovery, and cost. Repeat important tasks to assess consistency instead of preserving only the best run.
The most valuable capability of an AI coding agent is not producing more code or running continuously. It is making sustained progress within clear boundaries, using evidence to identify problems, and delivering a result that can be verified.
For developers, the guiding principles are straightforward: define completion before evaluating the execution loop; verify the real system before judging the interface; and measure cost per accepted deliverable before claiming a price advantage. This is how an impressive initial experience becomes sustainable, auditable engineering productivity.
