LLM-Assisted Programming: Separating Planning from Execution in Practice

    This article examines a workflow that uses a strong reasoning model for architecture and task decomposition, then hands a versioned planning document to a lower-cost coding model for implementation. It covers why planning quality is a better differentiator than one-shot code generation, a spreadsheet-prototype experiment, lessons from long-horizon projects, aesthetic evaluation, and cost controls.

    Introduction: From One-Shot Generation to Plan-Then-Execute

    Over the past two years, the coding capabilities of large models have advanced rapidly. Early models could complete only a single line of code; today, they can produce an operating system prototype within days. The pace at which capability boundaries are expanding is striking. Some community demos have used AI coding tools to generate a complete 3D shooter, with API call costs for a single project reaching hundreds of dollars. Such demos are impressive, but for working developers the more valuable questions are different: First, what level of engineering capability do these models actually have on practical software? Second, can that capability be verified at a controllable cost rather than being deterred by expensive demo bills?

    This article focuses on a collaboration pattern that is gaining recognition: separating planning from execution. A model with the strongest reasoning ability handles architecture design and task decomposition, the plan is captured as an on-disk document, and a lower-cost model carries out the actual coding. This division of labor aligns with cost-control logic in real production, and it also exposes the real gaps between models more clearly. Code completion can rely on pattern memory, but high-quality global planning genuinely tests reasoning depth.

    1. Why Planning Capability Is the Real Differentiator

    When evaluating coding models, many teams habitually look at whether a single generation produces runnable code. That metric has reference value, but it can be misleading: for common scenarios heavily represented in training corpora, the model is often retrieving rather than designing. The dimension that truly separates models is planning quality on unfamiliar, complex tasks. This shows up in four areas:

    1. Completeness of requirement decomposition: Can the model break a vague goal into clearly bounded, independently verifiable subtasks without missing key modules?
    2. Dependency mapping: Are module ordering, interface contracts, and data flows clearly defined?
    3. Reasonableness of technical choices: Does the model choose suitable architecture and data structures under given constraints instead of piling on trendy solutions?
    4. Risk anticipation and milestone definition: Can it identify performance bottlenecks and compatibility traps in advance, and set measurable acceptance criteria for each stage?

    A practical test is to have the model produce a planning document first, then have another executor with no context—either a human or a weaker model—implement strictly from that document. If execution rarely requires going back to the planner with follow-up questions, the plan quality passes. This “plan transferability” is a hard indicator of a model’s reasoning capability.

    2. Experiment Design: Rebuilding a Spreadsheet Prototype

    To test this pattern in practice, we chose a classic and sufficiently complex target: replicating the core prototype of spreadsheet software. The spreadsheet component in mainstream office suites is commonly estimated in the industry to be in the million-line range. A full replication is obviously unrealistic, but a demo-level prototype that is close to feature-aligned is enough to probe the upper limit of a model’s engineering capability.

    Do not underestimate this target. A spreadsheet looks simple but contains many engineering challenges:

    • Formula engine: lexical analysis, syntax tree construction, and operator precedence handling;
    • Dependency graph and recalculation: cells form a directed graph; changing one cell requires topological sorting followed by cascading recalculation, plus circular-reference detection;
    • Large-scale rendering performance: scrolling through 100,000 rows must be virtualized, drawing only the visible area;
    • Selection, fill handle, undo/redo: the interaction state machine is far more complex than intuition suggests.

    In past tests, even a “simple” spreadsheet prototype challenged open-source models for a considerable time, which shows how much discriminative power the task has.

    Our process had two steps:

    Step 1: Planning. Describe the goal to a strong reasoning model and ask for a complete development planning document, including module breakdown, core algorithm descriptions (such as pseudocode for formula parsing and dependency recalculation), milestone breakdown, and acceptance test cases.

    Step 2: Execution. Give the planning document to a lower-cost coding model to implement module by module, with the planning document as the only authoritative context.

    The cost structure is also healthy: the planning phase has few calls at a higher unit price, while the execution phase has frequent calls at a lower unit price, so the overall spend is far below using a flagship model throughout. Some subscription-based AI coding tools offer a fixed monthly fee with a usage-based quota. Using such plans sensibly can keep a complete experiment within tens of dollars, without paying separately for every API call.

    3. Lessons from Long-Horizon Tasks: An OS Prototype in Eight Days

    Another public case worth analyzing is a frontier model that spent about eight days continuously developing an operating system prototype. Setting brand factors aside, the case offers three lessons for engineering practice:

    First, context management is the lifeline of long-horizon tasks. No model can remember all the code produced over eight days. A workable approach is to have the model maintain a “state document” after each iteration: completed modules, TODOs, key design decisions, and the reasons behind them. This essentially externalizes the model’s short-term memory to the file system, similar to how human teams write design docs and changelogs.

    Second, planning documents need versioned evolution. An initial plan cannot cover every detail. The model should be allowed to revise the plan at the end of each milestone, forming a closed loop of plan—execute—review—revise.

    Third, a runnable intermediate state matters more than a perfect final state. Each milestone should produce a version that compiles and can be demonstrated, so that even if quota runs out or direction changes midway, existing results do not reset to zero.

    4. Testing Aesthetic Ability: When Code Becomes a Brush

    Evaluation of coding models should not stop at functional correctness. Visual and aesthetic capability is becoming a new arena. One impressive community example is a model using scripted brushstrokes—about 700,000 strokes—to generate a photorealistic, real-scene-style image. This suggests that a model’s “understanding” of light and shadow, color, and brushwork can already be translated into executable drawing logic.

    Our validation approach steered this toward a practical scenario: have the model use scripts to reproduce the visual atmosphere of a rainy city from a well-known side-scrolling game—continuous rain, a blue-gray palette, reflective puddles, and layered distant buildings. This kind of task tests three abilities at once: abstractly describing the target style, translating aesthetic features into parameterized drawing code, and patiently iterating through multiple rounds of feedback.

    In practice, the first round often captures the shape but not the spirit. Concrete aesthetic constraints need to be added gradually to the prompt—palette range, light direction, particle density, parallax layers—before the model approaches the target effect. The process itself is a quantitative test of the model’s aesthetic steerability.

    5. Cost Awareness: Two Tasks Nearly Exhaust a Monthly Plan

    One point must be stated frankly: cost. In our experiments, just two tasks—the spreadsheet prototype and visual rendering—nearly exhausted all the credits included in a subscription plan. This reveals a reality: the capability ceiling of frontier models is already high, but call cost remains a core constraint on large-scale adoption.

    Here are several practical recommendations:

    1. Use strong models only for planning and key reviews; assign coding, refactoring, and test generation to lightweight models.
    2. Make good use of subscription quota mechanisms and concentrate high-cost experiments within the quota cycle.
    3. Write planning documents and intermediate artifacts to disk to avoid repeatedly spending quota to rebuild context.
    4. During planning, require both a “minimum viable version” and a “full version” so trade-offs can be made dynamically according to budget.

    Conclusion

    Separating planning from execution is likely to become a standard workflow in the AI-assisted programming era. It is not only a cost-optimization technique but also a more scientific capability-evaluation framework: the quality of the planning document is direct evidence of reasoning capability, while the quality of code produced according to the plan tests the overall effectiveness of the collaboration chain. For developers, learning to direct models to plan and review has more long-term value than learning to write a few clever prompts. As inference costs continue to fall, this pattern is expected to move from experiments into daily production.