AI Autonomous Development: A 30-Day Technical Retrospective with 3 Billion Tokens and 110K Lines of Code

    This article shares a 30-day experiment on AI autonomous development under a black-box workflow, comparing two AI coding tools across five evaluation dimensions: design and code structure, coding accuracy, defect diagnosis, end-to-end test closure, and quota persistence. It covers the experimental setup, measured results, common failure patterns such as surface-level patching, the preconditions for unattended test loops, and six actionable engineering recommendations for teams moving AI-assisted development from demos to stable delivery.

    1. Experiment Background: Putting “AI Autonomous Development” into a Measurable Framework

    Over the past year, the capability boundaries of AI coding tools have been debated repeatedly, but most discussions stay at the level of “can it autocomplete a function.” The question that actually challenges engineering teams is a different one: with almost no manual code review, can AI independently complete the full loop from solution design, coding, and debugging to end-to-end verification, and reliably deliver a runnable service?

    This experiment was designed around that question. The overall constraints can be summarized in four points:

    1. Black-box workflow: Humans only assign tasks and accept results; they do not read the generated code line by line.
    2. Single role: One “orchestrator” role breaks down tasks and distributes them to containerized execution units, which complete coding and self-testing in isolated environments.
    3. Narrow scope: Only backend and algorithm logic are included, with no frontend interface. The core deliverables are a runnable service and supporting scripts.
    4. Objective acceptance: Whether the final test scripts pass is the sole success criterion. Code style, readability, and comment completeness are not scored.

    On resource investment, one side used the highest-tier coding subscription of a certain AI coding tool and consumed roughly 3 billion tokens in total; the other side used the periodic free quota of another AI coding tool, which was completely exhausted for four consecutive weeks. Together, the two sides produced about 110,000 lines of code. Note that token consumption and code volume are not metrics of the same dimension: the former reflects the intensity of trial and error, while the latter reflects delivery volume. Only by combining them can we characterize “effective output per unit of cost.”

    2. Evaluation Framework: Five Dimensions That Form a Reusable Baseline

    To keep the comparison from being purely subjective, the evaluation framework was fixed before the experiment. The framework itself is more reusable than the conclusions and can be directly applied to internal tool selection.

    Dimension Focus Criterion
    A. Solution design and code structure Directory organization, file and path naming, solution consistency Deviation rate from the initial agreed design
    B. Coding accuracy Build/startup success rate, runtime crash frequency Number of failures per task
    C. Defect localization and patching Whether root cause is provided, whether changes are minimal Number of interaction rounds needed to converge
    D. Autonomous end-to-end test closure Whether log analysis → fix → retest can run unattended Number of manual interventions
    E. Quota and persistence Whether it can support long, repeated trial and error Sustainable runtime

    The key point of this design: A and B measure the ability to “get it right the first time,” C and D measure the ability to “self-correct after getting it wrong,” and E is a hard constraint on engineering usability. In practice, D should carry the highest weight—in real projects, the probability of getting it right in one pass is far lower than the probability of converging through repeated iterations.

    3. Measured Results: Similar Capability Tiers, Differences in Error Correction

    3.1 Design and Coding: Within the Same Capability Tier

    Both sides demonstrated three shared abilities: understanding the structure and conventions of an existing codebase; producing a structured Markdown plan that clearly lists new and modified file paths; and maintaining basic consistency in interface naming across multi-file scenarios.

    Quantitatively, the rate of directory structures matching the initial plan was above 80%. Common problems were equally clear: a tendency to generate redundant code and over-engineered abstraction layers. In the experiment, after removing a certain class of spec-driven plugins, redundant output dropped significantly, suggesting that stuffing too much specification text into the context actually induces the model to pile up structure.

    Low-level implementation errors (missed boundary conditions, missing exception branches, improper concurrency handling) appeared steadily on both sides and required multiple rounds of local fixes. The difference at this stage is not enough to separate the two and can be treated as normal variation within the same capability range.

    3.2 Defect Diagnosis and Repair: Where Differences Emerge

    Metric Tool on Side A Tool on Side B
    Localization depth Tends to give a design-level root cause in one pass Often stays at surface-level code errors
    Rounds to converge Average 1.x rounds Often needs 3–5 rounds of guidance
    Solution completeness Presents multiple options for confirmation first Tends to modify code directly, requiring mid-course interception
    Probability of wrong patches Low Relatively high; easily triggers cascading new problems

    The difference at this stage is the most valuable finding of the experiment. The typical failure mode of surface-level patching is: the error disappears but the root cause remains, and the problem resurfaces in a downstream module in another form, creating a “patch → new error → patch again” loop in which token consumption rises nonlinearly. In contrast, the strategy of attributing the cause before acting takes longer per round but converges faster overall.

    The engineering takeaway is direct: use prompts to constrain the tool to “output root-cause hypotheses and verification methods first, then output the patch,” turning uncontrollable trial and error into controllable hypothesis testing.

    3.3 Autonomous End-to-End Test Closure: The Dividing Line for Unattended Operation

    The real difficulty is not writing code but closing the loop. The ideal autonomous cycle is: run tests → read failure logs → locate the relevant module → submit a minimal change → rerun tests → determine pass/fail. In the experiment, whether this cycle could be completed reliably depended on three preconditions:

    • Parseable logs: Structured logs and unified error codes let the model accurately extract key information.
    • Reproducible environment: Containerized execution units ensure consistent dependencies for every retest, eliminating environment noise.
    • Revertible changes: Version control granularity fine enough to prevent erroneous modifications from polluting the baseline.

    When all three are in place, the unattended pass rate improves markedly; missing any one causes manual interventions to rise quickly, and the black-box workflow breaks down.

    3.4 Quota Persistence: An Underestimated Engineering Constraint

    One side remained continuously available for four weeks, while the other exhausted its quota early, forcing the latter half of the experiment to slow down. This points to a frequently overlooked conclusion: the main cost of autonomous development is not a single call but the accumulation of failed retries. To deploy this in a production workflow, mechanisms such as cache reuse, accumulation of failed test cases, and task priority queues are needed to compress wasted consumption.

    4. Actionable Engineering Recommendations

    1. Build a tiered evaluation set: Turn historical defects into fixed test cases and run regression after every tool change to form a comparable capability baseline.
    2. Enforce root-cause-first: Hard-code a three-part “hypothesis → verification → fix” output requirement into workflow templates.
    3. Narrow task granularity: Keep each task within a scope that can be verified in one pass, reducing the probability of cross-module cascading failures.
    4. Improve observability: Unified log formats and error codes are a prerequisite for an unattended loop, not ancillary work.
    5. Keep human gates: Set mandatory reviews at high-risk points such as architecture changes and data migrations. Black-box does not mean unsupervised.
    6. Make cost observable: Track token consumption and lines of code produced per task, replacing raw call counts with “effective output per unit of cost.”

    5. Conclusion

    Under the intensity of 30 days, 3 billion tokens, and 110,000 lines of code, the two types of AI coding tools sit in the same capability tier for solution design and coding accuracy. The real dividing line appears in root-cause localization, loop autonomy, and quota persistence. For teams, rather than chasing single-shot generation quality, it is better to focus on the evaluation framework, observability infrastructure, and workflow constraints—these are the decisive factors that move AI autonomous development from a demo to stable delivery.