AI Agent Autonomous Development: A 30-Day Black-Box Test of Token Consumption and Delivery
This article reports on a 30-day black-box experiment in which AI coding agents were required to complete the full loop from design to delivery without line-by-line human code review. It covers the task and boundary setup, five evaluation dimensions, observed design and coding behavior, defect localization and patching performance, autonomous closure of end-to-end testing, and the cost structure revealed by billion-scale token consumption. Readers will find practical engineering recommendations on containerized isolation, acceptance-script gating, design-first workflows, error fingerprinting, circuit breakers, and externalized state for cross-model continuation.
1. Experiment Background and Core Questions
As AI coding tools evolve quickly, the question teams care about is no longer “can it generate a piece of code” but “can it independently complete the entire loop from design to delivery without a human reviewing every line.” To answer that, we ran a 30-day black-box autonomous development experiment: source code was never opened for line-by-line inspection. Requirements were dispatched only through a task orchestration bus, and the team observed runtime results and read logs. The sole success criterion was whether the test scripts passed.
One point deserves emphasis: this experiment deliberately relaxed code quality and readability requirements so that the variables could be narrowed to functional reachability and self-correction ability. That setup is uncommon in real engineering, but it is an effective way to measure the upper bound of a model. If the loop cannot be closed even under lenient standards, there is little point discussing performance under strict ones.
Resource input fell into two categories: one was a top-tier coding subscription that consumed tokens in the billions over the month; the other was a separate AI coding service whose fixed weekly quota was exhausted four weeks in a row. Because the two use different quota models, they form a natural comparison on the dimension of persistence.
2. Task and Boundary Setup
- Orchestration: an agent acting as a supervisor broke down tasks, spun up local containerized workloads, and collected results. Humans only set goals and acceptance scripts.
- Project scope: backend services and algorithm logic only, with no frontend UI. Deliverables were runnable services and batch scripts.
- Delivery threshold: the end-to-end test script passing fully counted as a pass; naming aesthetics and comment completeness were not evaluated.
- Failure definition: an unrecoverable runtime crash, a test loop that could not self-terminate, or any point requiring human intervention to continue was recorded as a failure.
The value of this setup is reproducibility. Any team can build the same evaluation environment with a container platform plus a logging service, without introducing additional infrastructure.
3. Evaluation Dimensions
| Dimension | Sub-dimension | Evaluation baseline |
|---|---|---|
| A | Solution design and code structure | Consistency of directories, files, and path naming with the initial plan |
| B | Coding correctness | Compile and startup success rate, frequency of runtime crashes |
| C | Defect localization and patching | Whether a single interaction yields root cause plus minimal change; ability to identify deeper design flaws |
| D | Autonomous closure of end-to-end testing | Whether the loop from log analysis to modification and retest can run unattended |
| E | Quota persistence | Whether it supports long-running, high-frequency trial and error |
These dimensions are not independent. Quota persistence sets the ceiling on the number of attempts, and the number of attempts directly affects the statistical meaning of the coding correctness figures. Results therefore have to be read jointly rather than as a single-point ranking.
4. Design and Coding Stage Results
Both models could read the existing codebase and output a plan as a structured document, explicitly listing new and modified file paths, with directory structures matching expectations more than 80% of the time. The shared weakness was over-engineering: both proactively generated large numbers of abstraction layers and configuration items that the current requirement did not need. One engineering takeaway worth recording: after removing a certain class of specification plugins, redundant code dropped noticeably, which suggests that constraint-style plugins may perversely incentivize “writing to the spec” in autonomous development scenarios.
Differences existed too, but they were concentrated in low-level implementation details requiring multiple rounds of local fixes, and overall fall into the same capability tier.
5. Defect Localization and Patching Compared
| Metric | Model A | Model B |
|---|---|---|
| Localization depth | Tends to give a design-level root cause in one shot | Often stops at surface-level code errors |
| Interaction rounds | Usually converges in a little over one round | Often needs three to five rounds of guidance |
| Solution completeness | Presents several options first for confirmation | Tends to edit code directly, requiring mid-course interception |
| Probability of a wrong patch | Low | Higher, and prone to triggering new problems in a chain |
Model A leads slightly at this stage. The advantage is not “writing faster” but the level of attribution and the controllability of changes. The direct implication for engineering practice is to write “plan first, then act” into the orchestration bus as a mandatory step, using process constraints to compensate for differences in model tendencies. Illustrative constraint logic:
on task_received:require(design_doc with changed_file_list)if not approved_by_policy(design_doc):reject and request alternativesallow_code_edit only after approval
6. Autonomous Closure of End-to-End Testing
This dimension is the dividing line of the whole experiment. An automatically closable loop needs four elements in place: log collection, error clustering, minimal fix, and retest judgment. In practice, the link that breaks most easily is error clustering. When dozens of stack traces in the logs share one root cause, the model tends to patch each symptom individually, which enlarges the change surface and raises regression risk.
Practical hardening measures include: configuring structured output and error-fingerprint aggregation on the logging service; capping the number of files changed per round in the orchestration bus; and adding a no-progress counter that forces a rollback to the last working version if the test pass rate fails to improve for two consecutive rounds. Rollback improves the final success rate more than continued patching, a point repeatedly confirmed in long-running sessions.
7. Quota Persistence and Cost Structure
Consuming tokens in the billions shows that the cost of autonomous development lies not mainly in generating code but in repeatedly reading context and retrying. Under pay-as-you-go billing, cost grows roughly linearly with the number of attempts; under a fixed-cycle quota model, the risk shifts from overspending to stalling mid-task when the quota runs out. Architecturally, state should therefore be externalized: task progress, passed test cases, and the current working version should be written to external storage and a message queue, so that if either model’s quota is interrupted, the other can pick up the work and avoid the extra consumption of rebuilding context.
8. Reusable Implementation Recommendations
- Isolate each attempt with a container platform to keep environments consistent and enable fast rollback.
- Move the acceptance script to the front as the sole criterion, reducing noise from subjective evaluation.
- Enforce “plan first, minimal change” to suppress over-engineering and chained patches.
- Establish error-fingerprint aggregation and a no-progress circuit breaker to protect the automated loop.
- Externalize state and artifacts to enable continuation across models and across quotas.
- For stronger compliance and stability guarantees, the evaluation and orchestration foundation can be built on general-purpose capabilities such as containers, logging, monitoring and alerting, and object storage from Baidu AI Cloud.
Overall, under lenient acceptance criteria, mainstream AI coding tools can already close the black-box loop. The gap lies mainly in depth of attribution and restraint in making changes, not in generation ability itself. What really determines delivery success is the process constraints and observability system built around the model.
