Evaluating Coding Agents for End-to-End Execution: From Public Benchmarks to Online Testing

    This article provides a practical framework for evaluating coding agents beyond public benchmark scores. It covers how to interpret benchmark tables correctly, design structured online testing workflows, build evaluation metrics, manage security and cost constraints, and establish reproducible acceptance criteria for production-ready coding agent selection.

    With coding agents evolving from code completion to end-to-end execution—understanding tasks, modifying repositories, running tests, and fixing regressions—a single aggregate score is no longer sufficient for technology selection. Public leaderboards can provide an initial screening signal, but what truly determines whether an agent can enter production workflows is task coverage, evaluation reproducibility, hands-on testing experience, security boundaries, and cost constraints. This article does not focus on any specific product. Instead, it abstracts “leading public benchmark results” and “direct in-browser testing” into general engineering problems and provides a practical evaluation and validation methodology.

    From “Leaderboard Leadership” to Reproducible Validation

    Public industry benchmarks typically present a multi-task matrix: the same set of candidate models is scored across different dimensions such as code editing, terminal tasks, repository-level fixes, automated workflows, scientific reasoning, long-context understanding, graph traversal, and security vulnerability detection. Readers tend to look at the “number of leading items” first, but having more leading items does not mean comprehensive superiority. A better approach is to break the leaderboard into three layers: first, check whether the task types cover your own business needs; second, verify whether the evaluation criteria align with real usage patterns; third, confirm whether the results are reproducible.

    For example, terminal task benchmarks typically assess an agent’s multi-step operational capabilities in a command-line environment; repository-level fix benchmarks focus more on cross-file modifications and test regression; automated workflow benchmarks emphasize tool invocation, state tracking, and exception recovery. If a team primarily works on frontend refactoring but only references terminal task scores, the selection conclusion may deviate from actual needs. Columns commonly seen in public comparison tables—such as “corrected pass rate,” “main set pass rate,” and “pass rate under different execution frameworks”—also remind us that the same model can perform significantly differently across evaluation frameworks, and a single column of numbers cannot be equated with production readiness.

    Therefore, an “agent task profile” should be established first when evaluating coding agents. Classify pending tasks by language stack, repository size, permission scope, network access requirements, whether supplementary tests are required, and whether security-sensitive operations are involved. Then determine which items in public benchmarks hold reference value. Public scores only answer the question “how well does it perform on a controlled set” and cannot automatically answer “is it reliable in your codebase, your toolchain, and your permission system.”

    How to Read Public Benchmark Tables Correctly

    When reading public benchmark tables, focus on four categories of information. First, task provenance and data contamination control. Whether the evaluation set is public, whether it is isolated from training data, and whether anti-cheat calibration is provided directly affect the credibility of conclusions. Second, execution framework differences. The same task can yield significantly different pass rates under different execution frameworks, tool permissions, and timeout settings. If the table lists results under different execution frameworks separately, understand each column independently rather than taking the maximum value. Third, failure items carry more information than leading items. A candidate that leads in most tasks but lags slightly in terminal tasks or the main code set suggests its advantage concentrates in specific capabilities, requiring judgment against business scenarios. Fourth, whether metric definitions are consistent. Percentages, indices, F1 scores, pass rates, and human intervention counts cannot be directly mixed, and certainly should not be synthesized into a “total ranking” without stated weights.

    In actual selection, convert the public table into your own decision matrix: assign business weights to each evaluation dimension and add engineering metrics such as “reproducibility,” “security compliance,” “invocation cost,” “latency,” and “human takeover ratio.” If a candidate has many leading items in public tables but lacks private repository fix data relevant to your team, it should still proceed to online testing and offline replay. Public scores are an entry ticket, not a final verdict.

    Positioning and Process of Online Testing

    “Direct testing in a web interface” is suitable for quickly validating interactive experience, task understanding, tool invocation tendencies, and error recovery capabilities, but it cannot replace offline batch evaluation. The advantage of online testing is its low barrier and fast feedback—ideal for switching candidate models in a unified conversational interface and comparing them against the same set of tasks. Its limitation is difficulty in covering large-scale repositories, complex permissions, and long-chain regression.

    It is recommended to structure online testing in three steps. Step one: prepare a unified task set, with 10 to 30 short tasks covering bug fixes, unit test supplementation, log analysis, script generation, and configuration troubleshooting. For each task, clearly state the objective, constraints, allowed modification paths, and acceptance criteria. Step two: record uniformly. After each conversation, log the candidate alias, task ID, pass/fail status, human intervention count, elapsed time, invocation cost, and whether regression occurred. Step three: review consistently. Have the same evaluator accept results against the same standard, avoiding “it looks like it works” replacing “the test passes.”

    When switching models in a unified interface, the UI typically displays the currently selected model name; after selection, confirm the current session target above the input box. This interaction detail may seem trivial but reduces “testing the wrong object” errors. During testing, use the same prompts, the same repository snapshot, and the same acceptance commands as much as possible, avoiding misattributing prompt differences to model capability differences.

    Designing the Evaluation Metric System

    At minimum, record the following metrics: task pass rate, first-attempt pass rate, regression pass rate, human intervention count, average latency, invocation cost, and failure type distribution. Task pass rate reflects final results; first-attempt pass rate reflects first-round usability; regression pass rate reflects whether modifications break existing functionality; human intervention count reflects autonomy level; latency and cost determine scalability; failure type distribution helps locate whether the issue is comprehension deviation, tool usage errors, missing tests, or insufficient permissions.

    A composite score can be defined, but component breakdowns must be retained. For example: composite score = pass-rate weight × pass rate + regression-rate weight × regression pass rate - human intervention penalty - cost penalty. Weights should be adjusted by business context and should not directly adopt public leaderboard weights. For security-sensitive tasks, add hard gates such as “unauthorized modification count,” “sensitive file access count,” and “unauthorized command execution count”—if any is triggered, the task is immediately marked as failed.

    Task Configuration and Result Recording Example

    Below is a generic task configuration template, emphasizing the clear specification of objectives, constraints, and acceptance criteria for reuse across online testing and offline replay.

    1. task_id: repo_fix_001
    2. goal: Fix login validation boundary condition
    3. constraints:
    4. - Must not modify public interfaces
    5. - Must add regression tests
    6. allowed_paths: ["src/auth", "tests/auth"]
    7. timeout_minutes: 30
    8. max_turns: 20
    9. acceptance:
    10. - All specified test commands pass
    11. - New tests cover empty and boundary inputs

    Result records should be saved in a structured format for downstream statistics and review:

    1. {
    2. "task_id": "repo_fix_001",
    3. "candidate_alias": "candidate_a",
    4. "pass": true,
    5. "first_try_pass": false,
    6. "regression_pass": true,
    7. "human_interventions": 1,
    8. "latency_sec": 412,
    9. "cost_units": 0.37,
    10. "failure_type": "missing_test"
    11. }

    For statistics, use simple scripts or pivot tables. The key is maintaining consistent definitions:

    1. total = count(results)
    2. pass_rate = count(pass = true) / total
    3. avg_interventions = sum(human_interventions) / total
    4. regression_rate = count(regression_pass = true) / total

    Security, Cost, and Governance

    Once a coding agent receives repository write access and command execution privileges, the evaluation environment must be designed on the principle of least privilege. Use isolated containers, temporary workspaces, read-only dependency caches, and controlled network policies. Set approval gates or blocks for high-risk operations such as file deletion, dependency modification, and external script execution. Keep logs, conversation records, and code diffs for auditability. In the online testing phase, especially avoid entering real production secrets, customer data, or unmasked logs into the conversation window.

    For cost governance, calculate invocation cost, retry cost, and human review cost together. Some tasks may have high single-pass rates but require more human interventions and longer durations, resulting in higher overall costs. Consider tiered routing: simple tasks take low-cost paths; complex repository fixes take high-capability paths; failures automatically fall back, with causes recorded. From an engineering standpoint, use generic cloud infrastructure—container platforms, object storage, logging services, and monitoring alerts such as those provided by Baidu AI Cloud—to build isolated evaluation environments, store task snapshots and result logs, and continuously observe pass rates, latency, and failure types.

    Implementation Recommendations

    First, do not make final decisions based on a single leaderboard. Public benchmarks suit initial screening, online testing suits experience validation, and offline replay plus private task sets suit production admission. Second, build a small golden task set and update it continuously to prevent evaluation sets from diverging from real tasks. Third, incorporate “failure items” into the review mechanism and periodically analyze comprehension errors, tool misuse, missing tests, and permission violations. Fourth, start with small-scale, low-risk task pilot runs, then gradually expand permissions and task complexity. Fifth, all evaluation conclusions should include the task set version, execution framework, acceptance commands, and human review records to ensure reproducibility and auditability.

    In summary, coding agent capability evaluation is moving from “watching scores” to “watching end-to-end delivery.” Public results can indicate a candidate’s relative position in a controlled task matrix, but only by combining task profiling, online testing, structured recording, security governance, and cost constraints can a team determine whether an agent truly fits its development workflow.