A Framework for Evaluating AI Coding Assistants: Results from a One-Month Test with ~3 Billion Tokens Consumed

    This article presents a practical evaluation framework for AI-assisted programming, based on a one-month, high-intensity test that consumed roughly 3 billion tokens and produced about 110,000 lines of code. It defines five assessment dimensions—solution design, coding accuracy, defect diagnosis and repair, autonomous end-to-end test closure, and quota durability—along with observable criteria for each. It also treats usage quota as a first-class engineering constraint, shares stage-by-stage findings, and shows how to turn evaluation results into prompt rules, context governance, and circuit breakers, so tool selection becomes a reproducible engineering decision rather than a subjective impression.

    1. Why You Need a Quantifiable Evaluation Method

    A month of intensive use, roughly 3 billion tokens consumed, and about 110,000 lines of code produced make a high-intensity sample. The value of such a sample is not in deciding “which tool is stronger.” It is in exposing the capability boundaries of AI coding tools in real engineering work.

    Most teams still choose tools based on scattered experiences: write a function, modify a script, and draw a conclusion by feel. This approach cannot answer the questions an engineering lead actually cares about:

    • Can it produce stable output on an existing codebase?
    • Can it self-correct after making a mistake?
    • Can it complete the test loop unattended?
    • Will the quota hold up under repeated trial and error?

    This article therefore abstracts the original practice into an evaluation framework: first define the dimensions and judgment criteria, then record observable metrics, and finally turn the conclusions into process constraints. The discussion does not point to any specific product. It only covers general capability tiers and engineering methods.

    2. Evaluation Framework: Five Dimensions and Judgment Criteria

    Dimension Sub-dimension Judgment criterion
    A. Solution design and code structure Consistency among directory, file, and path naming and the initial plan Deviation rate between the proposed plan and the actual structure
    B. Coding accuracy Compile/startup success rate, runtime crash frequency First-run success ratio, crashes per unit of code
    C. Defect localization and repair Whether a single interaction delivers the root cause and a minimal change Convergence rounds, lines changed, regression introduction rate
    D. Autonomous end-to-end test closure Whether analyze logs → modify → retest can run unattended Closure completion rate, number of manual interventions
    E. Quota durability Whether it supports long-running repeated trial and error Tokens/quota consumed per unit of effective output

    The key design principle is that every dimension must be observable, reproducible, and attributable.

    For example, dimension B does not judge whether the code “looks good.” It only checks whether the first compile or startup passes and how frequently exceptions occur at runtime. Dimension C does not judge whether the explanation “sounds nice.” It only checks whether a root cause is given, whether the change is minimal, and whether new regressions are introduced.

    3. Resource Model: Treat Quota as an Engineering Constraint

    In high-intensity practice, resource consumption must be managed as a first-class constraint, not as an after-the-fact bill.

    Make the resource model explicit: subscription tier, quota per cycle, actual consumption, and output scale (such as total tokens and lines of code). On top of that, calculate two engineering metrics:

    • Cost per unit of effective output: quota consumed ÷ lines of code merged or number of effective commits;
    • Trial-and-error budget: the quota ceiling reserved for the “localize → modify → retest” loop.

    When the trial-and-error budget is exhausted in advance, the evaluation conclusion becomes distorted. What you measure is no longer the capability ceiling, but the degraded behavior after the quota runs dry. Therefore, when comparing across cycles, you must ensure the quota conditions of the two samples are comparable. Otherwise, the conclusion is invalid.

    4. Stage-by-Stage Observations

    4.1 Design and Coding Stage

    The two tool types perform similarly on the general capability tier. Both can read an existing codebase, produce a structured plan, and list the paths of new and modified files. The proportion of directory structures that match expectations is relatively high (above 80% in practice).

    The shared problem is a tendency to generate redundant or over-engineered code, introducing unnecessary abstraction layers and configuration items. After tightening the engineering conventions and adopting a plugin-style extension approach, this redundancy drops significantly.

    Conclusion: the difference at this stage is not significant. The two should be treated as the same capability tier, and this dimension should not carry too much weight in selection.

    4.2 Defect Diagnosis and Repair

    This is the stage with the clearest difference. The observable metrics are as follows:

    Metric Type 1 Type 2
    Localization depth Tends to give a design-level root cause in one shot Often stays at surface-level code errors
    Convergence rounds About 1.x rounds Often needs 3–5 rounds of guidance
    Solution completeness Offers multiple options for confirmation Tends to modify code directly and needs mid-way interception
    Probability of patching the wrong spot Low Relatively high, easily triggering new problems in a chain

    The engineering implication is direct: surface-level patching leads to “patch stacking,” where every change increases coupling and the regression surface. In evaluation, “lines changed” and “regression introduction rate” should be treated as hard metrics, rather than only checking whether the problem temporarily disappears.

    4.3 Autonomous End-to-End Test Closure

    The core of this dimension is unattended capability: extracting the key stack trace from a failure log, locating the specific assertion, making a minimal change, and rerunning until it passes or clearly reporting why it cannot be fixed automatically.

    The evaluation should track the closure completion rate and the number of manual interventions, and set a maximum iteration count and a timeout threshold to avoid infinite loops consuming quota.

    5. Turning Conclusions into Engineering Constraints

    The value of evaluation lies in implementation. The following prompt skeleton can constrain model behavior (illustrative):

    1. Role: Senior engineer responsible for incremental development on an existing codebase
    2. Constraints:
    3. 1. Output the plan first: list of new/modified files and directory structure; wait for my confirmation before writing code
    4. 2. Minimal changes: no more than N lines per change; no unrelated refactoring
    5. 3. Defect handling: give root-cause hypotheses and verification methods first, then 2 options
    6. 4. Verification loop: read test logs → modify → rerun, at most K rounds; report the blocking point on failure
    7. Output: Markdown, with three sections: [Plan] [Changes] [Verification Results]

    Equally important is context governance:

    • Feed only the files and log snippets relevant to the task, and strip unrelated historical conversation;
    • Establish staged commits and rollback points for long tasks;
    • Write “maximum iterations, timeout, and quota ceiling” into the runtime parameters to form a hard circuit breaker.

    6. Common Pitfalls

    • Only looking at generation speed while ignoring the regression introduction rate, causing maintenance costs to spiral later;
    • Drawing cross-tool conclusions when quota conditions are not comparable, which distorts the sample;
    • Failing to intercept over-engineering; once the code bloats, the model’s comprehension cost rises, creating a negative feedback loop;
    • Lacking a circuit breaker, so an unattended loop becomes a quota black hole.

    7. Conclusion

    The most valuable conclusion from a month of high-intensity practice is not a ranking, but a method: put AI coding tools into a five-dimension framework and quantify them, treat quota as an engineering constraint, and turn prompts and context governance into process.

    When the dimensions, metrics, and circuit breakers are all in place, tool selection shifts from subjective experience to a reproducible engineering decision. Only then can a team strike a stable balance between efficiency and controllability.