Testing the Planning Capability of an AI Coding Tool: The Effects and Costs of Upfront Planning
As competition among AI coding models shifts from raw code generation speed toward system planning and task decomposition, we designed a closed-loop "plan, execute, verify" test to evaluate a new model's claimed planning ability across two real-world tasks. This article covers our methodology—a division of labor where the tested model produced architecture plans while a cheaper model wrote the code—along with results from a spreadsheet prototype replication and a parametric visual rendering task, plus findings on cost, efficiency, applicable boundaries, and guidance for running your own evaluation.
Testing the Planning Capability of an AI Coding Tool: The Effects and Costs of Upfront Planning
As AI-assisted programming evolves rapidly, the competitive focus among models has shifted from code generation speed to system planning and task decomposition. A new intelligent coding model has attracted attention for its claimed strong planning ability, with official demos envisioning the development of an operating system prototype within a week. But there is often a gap between marketed results and real development scenarios. To understand how this capability actually performs, we designed a closed-loop “plan, execute, verify” test focused on engineering outcomes.
1. Test Approach and Scope
Asking a model to generate a complete project in one shot consumes a large number of tokens, and when the model lacks a global view, the quality of the output code is often unstable. For this test, we therefore adopted a division of labor: the model under test was responsible for overall architecture design and task decomposition, producing a detailed development plan, while a lower-cost code generation model implemented each module according to that plan. This setup mirrors how real teams collaborate. It also centers the comparison on the design blueprint, since planning quality typically determines the ceiling of the final product.
It should be noted that this test covered only two tasks over a period of several days. We did not pin model versions or publish the full runtime environment. The results below therefore describe observations under this specific set of conditions and should not be read as general indicators of the model’s capability.
2. Experiment 1: Replicating a Spreadsheet Prototype
The first task was to replicate the core prototype of a mainstream desktop spreadsheet application. This type of software is functionally complex, involving cell rendering, a formula engine, data visualization, and interaction logic. Even a stripped-down version carries enough complexity in frontend architecture and state management to test a model’s software engineering fundamentals.
Planning phase: After receiving the task, the model under test first produced a technical plan rather than jumping straight into code. The plan had three key points. First, modular decomposition: the system was divided into a data layer (sheet storage and computation engine), a view layer (Canvas or DOM rendering), and a control layer (user interaction and command parsing), with the goal of keeping coupling between modules low. Second, data structure design: instead of a simple two-dimensional array, the plan used a sparse matrix or dictionary-based mapping to reduce memory usage for sparse sheets. Third, an incremental development plan: V1.0 would implement static rendering, V1.1 would add formula parsing, and V1.2 would introduce interactions such as drag-to-fill. Staged delivery kept the debugging scope of each step small.
Execution and verification: The code model’s implementation largely followed the interfaces defined in the plan. Problems did appear in complex formulas—for example, nested VLOOKUP contained several bugs. Because module boundaries had been clearly defined during planning, issues could be located quickly, and the team resolved these defects by adding unit tests. The final prototype supported basic cell editing and arithmetic operations, and also implemented simple chart linkage. In terms of feature completeness, the result was above the minimum expectation we had set for this task. However, this only shows that the prototype runs—it does not mean it can replace mature commercial software.
3. Experiment 2: Complex Visual Creation
The second task examined the ability to translate aesthetics and creativity into working code. The requirement was to use a Python drawing library to render a cityscape from a game scene: Gothic architecture, buildings at varied heights and depths, and an atmospheric use of light and shadow.
The difficulty of this task lies in the fact that the model must decompose “good-looking” into computable parameters. Code generated by ordinary models often just assembles geometric shapes, producing images that lack a sense of depth.
Planning and structure: The model’s code defined modular functions for parameters such as a perspective contraction coefficient, a light source direction vector, and material reflectivity. Instead of mechanically repeating windows and spires, it divided the scene into three rendering layers: the background skyline, the mid-ground cluster of main buildings, and foreground street details. Each layer used different color gradient algorithms and stroke-width parameters.
Acceptance and results: We set three checkable acceptance criteria for this task: whether building outlines were recognizable, whether the near-far relationship among the three layers was clear, and whether the light source direction was consistent with the shadows. Against these three criteria, the layering and the hazy, heavy texture of the image were identifiable and broadly met the requirements. The large number of drawing instructions indicated fine-grained control over strokes. That said, “visual impact” and “artistic mood” are subjective, and this article does not claim the output reached the standard of professional game concept art.
4. Cost and Efficiency
The two experiments consumed a substantial amount of API quota—enough to exhaust a full month of subscription credits. The quota was mainly spent on two activities: generating the planning document, and the model reading error messages and self-correcting its plan. This shows that high-quality planning itself carries a cost.
On efficiency, compared with previous “blind generation” tests, upfront planning noticeably reduced the number of debugging rounds in this run. However, the tasks and environments across the two sets of tests were not identical, and we did not run a controlled timing experiment, so we cannot give a precise savings figure. Under our test conditions, upfront planning reduced ineffective iterations. Whether it is worth the cost depends on task complexity, and on whether the team can assign planning work to the right people.
5. Key Findings
- The clarity of the planning document correlates with the consistency of the resulting code. In the spreadsheet experiment, interfaces and module boundaries were well defined, and defects were located quickly. This finding comes from only two tasks, so the sample is very small.
- The division-of-labor model proved viable in this test. Using a stronger model for architecture and a lower-cost model for coding is a combination worth trying. Whether it is the optimal approach requires more samples and controlled experiments to determine.
- The visual creation task showed that the model can decompose aesthetic requirements into parameterized functions. However, judging the final image still requires human evaluation—there is currently no reliable automated standard for aesthetic assessment.
6. Applicable Boundaries and Risk Notes
The limitations of this test include: only two tasks; model versions and runtime environment not fixed; subjective elements in visual evaluation; and costs that vary with pricing rules. These results should not be generalized into industry-wide conclusions.
Generated code also requires review. Readers should check for security vulnerabilities, dependency licenses, and performance issues, and should not ship a prototype directly to production just because it runs.
7. How to Run Your Own Evaluation
If you want to evaluate similar tools, we recommend recording at least the following:
- Model name, version, and invocation parameters
- Input specifications and acceptance criteria for each task
- Number of iterations, token consumption, and time spent on manual fixes
- Rules for determining failure
- A comparison against direct generation on the same task
Only by recording this data can your conclusions be reproduced and verified by others.
Conclusion
Planning capability does affect the quality of outcomes on complex tasks, but this test can only show that, under specific tasks and conditions, upfront planning has some value. For development teams, the more practical approach is to run small-scale validation with your own tasks before deciding whether to adjust your development workflow.
