Separating Planning from Execution in Large Models: A Cost-Constrained Test of AI Coding Capabilities
This article evaluates whether current AI coding agents can build a demonstrable spreadsheet application under a controlled budget. By separating system planning from code execution, it examines how task decomposition, milestone design, validation, and context management affect both implementation quality and API cost. It also explores whether structured planning can guide generative visual work, and considers how agent collaboration may reshape software development.
1. Background: From “Generate an App from One Sentence” to Planning-Driven Development
The capabilities of next-generation code-generation models in agent-based development have improved significantly. Community reports include models autonomously developing a 3D game prototype over several days, with API costs reaching hundreds of dollars. Other official demonstrations have shown models building an early operating-system-like prototype in roughly a week.
These examples point to an important shift: modern models are no longer limited to code completion. They can increasingly take on the role of a software engineer.
However, beyond the impressive demonstrations, two questions matter more to developers:
- In practical scenarios, how capable are these models as programmers?
- Under a fixed budget, can they produce results close to official demonstrations, allowing their capabilities to be evaluated more reliably?
The second question is particularly important for enterprise developers. When deciding whether to adopt a model, the key factors are not flashy demos, but the quality and stability of its output within a clearly defined budget.
2. Why Use a Spreadsheet Clone as the Benchmark
To evaluate a model’s programming ability, the target needs to have moderate complexity and objectively verifiable results. We chose to build a simplified spreadsheet application for several reasons:
- A clear complexity anchor: Mature commercial spreadsheets contain codebases measured in millions of lines, while operating systems can reach tens of millions. Even a demonstration-level spreadsheet prototype requires core components such as a grid-rendering engine, formula parser, dependency graph, undo/redo stack, and cell-state management. This makes it a meaningful stress test.
- Verifiable behavior: Spreadsheet operations have well-defined semantics. A test can enter a formula and verify whether the calculated result is correct, without relying on subjective visual judgment.
- A historically difficult task: Similar prototype tasks have challenged open-source models for a long time. A “simple Excel clone” was once a representative benchmark for evaluating agent capabilities, making it useful for observing generational improvements.
A prototype clone should not be confused with reproducing the original software. The two projects are not remotely equivalent in complexity. Nevertheless, the task provides a practical way to estimate the upper limit of what a model can achieve when given sufficient budget.
3. Methodology: Separating Planning from Execution
This evaluation did not ask a model to generate the final product from a single prompt. Instead, the workflow was divided into two stages:
- Planning: A more capable model designed the system and produced a structured planning document.
- Execution: A second model acted as the implementer and built the application step by step according to the plan.
This design was motivated by two considerations:
- It reflects real-world engineering practices: In production development, controlling cost starts with thinking through the problem before implementation. Asking a model to freely iterate toward a final product makes token usage unpredictable and increases the cost of recovering from mistakes.
- Planning is where the key capability gap appears: Differences in basic code-generation ability are narrowing. The more important differentiators are the ability to decompose large tasks, map dependencies, and define coherent milestones.
What a Planning Document Should Include
A useful agent-development planning document should cover at least the following:
# Project Planning Document Structure (Example)1. Goals and acceptance criteria- Define the functional scope of a demonstration-level spreadsheet- List verifiable acceptance cases, such as correct SUM calculations2. Architecture- Divide the system into modules: rendering, formula engine,state management, and interaction- Describe data flows and dependencies between modules3. Task breakdown- Divide the work into independently deliverable milestones- Provide input and output contracts for each task, including interface signatures4. Risks and fallback strategies- Identify likely failure points, such as circular-reference detection- Define rollback and validation procedures
The third section is especially important. Task contracts give the execution model clearly defined work orders rather than an ambiguous vision. This is one of the main mechanisms for controlling both cost and quality.
4. Execution Process and Cost Observations
The clearest observation from the evaluation was that task granularity directly affects the bill. Two well-designed planning tasks could consume an amount close to the full allowance of a subscription plan. By contrast, when the plan was vague and the implementation required repeated rework, the same allowance might not be enough to complete the first milestone.
This leads to several best practices for agent-based development:
- Plan before executing, and spend planning effort where it matters. Planning tokens may appear not to produce code directly, but they significantly reduce uncertainty during execution and can lower the total cost.
- Commit in small increments and validate frequently. The execution model should run test cases after completing each task. Localizing errors prevents a workflow in which an entire generated implementation has to be discarded.
- Review the planning document manually. Model-generated plans can still go off track through overengineering or missing dependencies. Spending a few minutes reviewing the plan before execution is one of the highest-value human interventions.
- Control context growth. In a long session, accumulated history continuously increases cost. A more practical approach is to open a separate session for each execution task and provide only the relevant part of the planning document.
5. Extended Testing: From Coding to Aesthetic Direction
In addition to engineering ability, we also examined the models’ generative creative tendencies. One interesting community example involved a model using Python’s drawing libraries to generate tens of thousands of individual strokes and ultimately produce a highly realistic scene.
This demonstrates a form of computational creativity: visual results can be approximated through a large number of deterministic instructions. The same capability can potentially be applied to practical development tasks.
Our test asked a model to use Python to create a prototype scene in the style of a 2D platform game, then iteratively improve its visual presentation with elements such as lighting, particles, and parallax scrolling.
The results showed that when the planning document clearly specified visual iteration goals, the execution model followed the intended direction relatively consistently. This suggests that aesthetic goals, like engineering requirements, can be constrained and managed through planning.
6. Conclusion: Will Agent Collaboration Become a Standard Development Practice?
Based on the evaluation, three conclusions stand out:
- Capability: Judging from planning quality and prototype completeness, leading models can produce complex, demonstration-level applications when given sufficient budget. Compared with previous generations, the main improvement lies in maintaining consistency across long-running task decomposition and execution.
- Methodology: Separating planning from execution is not merely a demonstration trick. It is an engineering workflow that makes cost more controllable and quality easier to verify, and it deserves consideration as part of team development practices.
- Practice: For individual developers, a useful starting point is to recreate a familiar tool and establish a personal benchmark. Small-budget, small-scope experiments can continuously calibrate expectations about model capabilities, rather than allowing a single impressive demo to determine the overall judgment.
Large models are turning “writing code” into “reviewing plans.” Developers who adapt more quickly to this change in workflow will be better positioned for the next generation of software development.
