Planning-Capable Coding Models: Dual-Task Stress Test and Cost Observations

    This article examines planning-capable coding models through two complex tasks—a spreadsheet prototype and a script-drawn rainy-night game scene—using a two-stage workflow that separates high-capability planning from lower-cost execution. It evaluates task decomposition, interface contracts, acceptance criteria, risk control, visual convergence, and quota consumption, and summarizes cost-control practices for complex engineering workflows.

    1. Background: From “Writing Code” to “Planning Engineering Work”

    Recently, coding models with strong planning capabilities have continued to emerge. Public demonstrations already show cases such as “generating an operating system prototype over several days” and “drawing high-density brushstroke images with a scripting language.” Such demos can easily give readers the intuition that once a goal is provided, the model can complete complex software in one click. From an engineering practice perspective, however, what really determines whether a complex project can land is not the speed of a single code generation, but whether the model can decompose the goal into an engineering plan that is executable, verifiable, and rollback-able.

    This article examines two tasks: first, the planning and development of a spreadsheet software prototype; second, the generation and beautification of a game scene through script drawing. The test uses a two-stage workflow: a high-capability planning model first outputs a local planning document, and a lower-cost execution model then completes the concrete development according to the document. This design has two purposes: first, it is closer to the cost-control logic of actual production; second, it isolates “planning capability” to observe the model’s real level in task decomposition, interface contracts, data flow design, acceptance criteria, and risk control.

    It is important to note that complex tasks can easily hit quota limits under a limited monthly plan. The reason is usually not the high cost of a single call, but the continuous accumulation of multi-round planning, code review, test repair, and visual iteration. Therefore, “two tasks burning through a monthly plan” is not merely a cost phenomenon, but a stress test of model planning quality and invocation strategy for complex engineering tasks.

    2. Dual-Task Design and Two-Stage Workflow

    To avoid degrading the test into “one sentence generates the final result,” this observation uses a “planning first, execution separated” process. The high-capability model does not directly take on all coding. Instead, it produces a structured planning document; the execution model implements milestone by milestone according to the document. The pseudocode is as follows:

    1. plan = planner.generate(goal, constraints)
    2. write("spec.md", plan)
    3. for milestone in plan.milestones:
    4. code = executor.implement(milestone.spec, plan.contracts)
    5. tests = executor.generate_tests(milestone.acceptance)
    6. result = run(tests)
    7. if not result.passed:
    8. executor.repair(code, result.logs, plan.contracts)
    9. write("build_report.md", result)

    The key to this workflow is that the planning document must contain executable information rather than vague descriptions. At a minimum, it should cover: scope, non-goals, module division, data model, interface contracts, acceptance criteria, test strategy, cost budget, and risk rollback. If the planning document lacks these contents, the execution model will repeatedly guess during implementation, ultimately leading to rework and wasted quota.

    The two tasks correspond to different capability dimensions:

    • Spreadsheet software prototype: examines structured modeling, formula dependencies, interaction state, rendering performance, and test coverage.
    • Script-drawn game scene: examines visual aesthetics, brushstroke control, layered composition, color management, and iterative convergence.

    Together, they form a composite pressure on planning-capable models: the former leans toward engineering logic, while the latter leans toward visual and generation control.

    3. Task 1: Planning and Implementation of a Spreadsheet Prototype

    A spreadsheet appears simple but actually contains multiple highly coupled subsystems. A demonstrable prototype at least needs a cell model, row and column indexing, formula parsing, dependency calculation, selection interaction, copy and paste, undo and redo, persistence, and basic styling. If the goal is closer to a complete product form, it will also involve a function library, conditional formatting, frozen panes, multiple worksheets, and performance optimization.

    During the planning stage, the model should be required to first output module boundaries and acceptance criteria. For example:

    1. Data model: how cell values, formulas, styles, and merged regions are represented.
    2. Formula engine: which functions are supported, how the dependency graph is built, and how circular references are detected.
    3. Rendering layer: visible-area calculation, scroll reuse, and switching between edit and display states.
    4. Interaction layer: keyboard navigation, selection expansion, fill handle, and clipboard protocol.
    5. Test layer: formula correctness, dependency updates, undo and redo, and boundary inputs.

    When the execution model develops by milestone, the interface contracts in the planning document are especially important. For example, the formula engine should expose a stable interface to “parse expressions, build dependencies, and recalculate affected cells,” while the rendering layer only consumes calculation results. Without contracts, the execution model can easily scatter formula logic across UI events, and repair costs will rise quickly.

    From the observation perspective, the value of a strong planning model is mainly reflected in three points: first, it can split a “spreadsheet” into independently verifiable subsystems; second, it can identify risks such as circular dependencies, batch recalculation, and scroll rendering in advance; third, it can provide acceptance criteria for the execution model and reduce blind trial and error. Even if the final result is only a demo-level prototype, as long as the planning document is rigorous enough, it can still probe the depth of the model’s engineering understanding to some extent.

    4. Task 2: Script Drawing and Visual Control for Game Scenes

    The second task is to use script drawing to generate a rainy-night city scene in a Metroidvania-style game and then further beautify the visuals. This task examines not only coding ability but also aesthetic control. In public cases, models have drawn images close to real-scene effects through hundreds of thousands of brushstrokes, showing that script drawing can achieve strong expressiveness under high-density iteration. But an engineering test should not only look at a “stunning image”; it should also examine whether the process is controllable.

    The planning document should clearly define visual goals: composition layers, main light source direction, warm-cool contrast, rain and fog particles, building silhouettes, foreground occlusion, and depth of field. The execution stage can split the drawing process into: base color laying, large light and shadow blocks, building structure, light reflections, rain streaks and fog effects, and detail refinement. Each round of iteration should have comparable acceptance items, such as “whether the main visual is concentrated in the midground,” “whether the rainy-night atmosphere is established jointly by a cool-color background and warm point lights,” and “whether the foreground retains enough dark areas.”

    This type of task is more sensitive to quota consumption because visual iteration often requires multiple rounds of generation and human judgment. If the planning model only gives descriptions such as “draw a beautiful scene,” the execution model will keep trying randomly. Conversely, if the planning document converts aesthetic goals into checkable constraints, such as palette range, brushstroke density, layer order, light source angle, and contrast interval, the execution model is more likely to converge.

    5. Planning Capability Evaluation Dimensions

    Evaluating a planning-capable model should not only look at the final code volume, but at the following dimensions:

    • Whether task decomposition is executable: whether milestones can be completed independently within a limited context.
    • Whether interface contracts are stable: whether modules have clear inputs and outputs.
    • Whether acceptance criteria are testable: whether each stage has clear pass conditions.
    • Whether risks are identified in advance: whether performance, dependency, interaction, and visual convergence risks are pointed out.
    • Whether cost awareness is present: whether it suggests implementing first with lower-cost models and then upgrading key modules.
    • Whether rollback capability is designed: whether failures can be located to a specific milestone and retried.

    These dimensions reflect the real gap better than “how many lines of code are generated.” In complex projects, poor planning quality amplifies execution costs; high planning quality allows lower-cost models to complete a large amount of implementation work.

    6. Quota Consumption and Cost Control Practices

    Under a limited monthly plan, the dual-task stress test can easily hit the quota limit. Cost control should start with invocation strategy:

    1. Use high-capability models intensively during the planning stage, but limit rounds and require a structured document in one output.
    2. Use lower-cost models during execution, submit small steps by milestone, and avoid generating a large project all at once.
    3. Separate testing and repair: run automated acceptance first, then let the model repair only failed items.
    4. Set an iteration cap for visual tasks, adjust only one dimension per round, and avoid endless beautification.
    5. Keep local planning documents and build reports to reduce repeated context injection.

    For engineering deployment, planning documents, build artifacts, and test reports can be placed in general-purpose object storage and logging services, with isolated execution on container platforms. General-purpose service categories such as object storage, logging, and container platforms—including those offered by Baidu AI Cloud—can support this type of workflow. This can both control model invocation costs and allow planning outputs to accumulate as team assets.

    7. Conclusion

    Two complex tasks quickly consume quota under a limited monthly plan. On the surface, this is a cost issue; in substance, it is a test of planning quality for complex engineering. The value of a strong planning model is not to replace all development, but to transform vague goals into executable plans, interface contracts, and acceptance criteria. The spreadsheet prototype tests structured engineering capability, while the script-drawn game scene tests visual control capability; together, they provide a more comprehensive observation of the model’s upper bounds and boundaries in a real development workflow. For teams, a more reusable method is: high-capability models do planning, low-cost models do execution, automated testing drives convergence, and quota budgets provide constraints.