Strong Planning Models for Building Complex Software Prototypes: A Practical Approach

    This article challenges the idea of generating an entire system from a single prompt and proposes a two-stage workflow that separates planning from implementation. A strong planning model produces engineering documents, while a cost-efficient execution model implements the project milestone by milestone. Two experiments—a spreadsheet prototype and procedural visual rendering—show how to define scope, control cost, and set acceptance criteria. The article also lists common pitfalls and practical engineering recommendations for teams.

    1. Background: Why “Generate a System from One Sentence” Is a False Promise

    Discussion about large models generating complete software in one shot has been intense lately, with demonstrations that use natural language to produce 3D games or operating system prototypes. A single experiment can consume API credits worth hundreds of dollars. These demos are impressive to watch, but they offer limited value to engineering teams for three reasons:

    1. Not reproducible: Prompts, context organization, and retry strategies are often undisclosed, so results cannot be replayed reliably.
    2. Uncontrollable cost: Betting the entire budget on one long generation chain means a failure sinks everything.
    3. Vague acceptance criteria: There is an order-of-magnitude gap in engineering effort between “it runs” and “it is usable.”

    A more interesting but often overlooked capability is planning. In real production environments, the core difference between senior engineers and beginners is not typing speed, but the ability to break vague requirements into a task sequence with clear module boundaries, explicit dependencies, and incremental verification. This is why the experiment design in this article deliberately decouples planning from implementation.

    2. Experiment Design: Two Separate Stages That Spend the Budget Where It Matters

    2.1 Stage One: A Strong Planning Model Produces Engineering Documents

    The first stage only asks the model to output documents, not implementation code. The deliverables are saved as local Markdown files and must cover at least:

    • Requirement clarification and scope boundaries (explicitly stating what will not be done)
    • Data models and core data structure definitions
    • Module division and dependency direction (avoiding circular dependencies)
    • Milestone breakdown and acceptance test cases for each stage
    • Risk list and fallback plans

    2.2 Stage Two: An Execution Model Implements the Documents

    In the second stage, a model with stronger execution ability implements the project milestone by milestone. Each time, it is fed only the “current milestone document + relevant interface contracts” instead of the entire context at once. This keeps context noise low and allows failures to be rolled back locally.

    2.3 Scheduling and Cost Control

    The experiment is driven by the credit quota provided by a subscription-based AI coding tool (equivalent to slicing a monthly budget into fixed shares), which is more suitable for budget-versus-output analysis than pay-as-you-go billing. Practical cost-control measures include:

    • Use a high-capability model for planning and a cost-efficient model for implementation;
    • Split long tasks into small, independently verifiable tasks to avoid full restarts;
    • Solidify stable interface contracts into documents to reduce repeated explanation costs.

    3. Case One: Feasibility Probe for a Complex Spreadsheet Prototype

    A spreadsheet is chosen as the benchmark because its complexity structure is highly representative: a cell is the smallest unit addressed in two dimensions, but the real difficulty lies in the dependency graph and recalculation order.

    3.1 Breaking Down the Core Challenges

    • Expression parsing: Lexical analysis → syntax analysis → abstract syntax tree, handling operator precedence, range references, and cross-sheet references.
    • Dependencies and topological sorting: References like A1=B1+C1 form a directed graph; cycles must be detected and reported with readable errors.
    • Recalculation scheduling: Dirty-region marking plus incremental recalculation to avoid refreshing the entire sheet on every edit.
    • Rendering virtualization: Hundreds of thousands of cells cannot all be turned into DOM nodes, so rendering must be windowed to the visible area.
    • Editing and selection state machine: Switching between input state, selection state, and drag-fill state.

    3.2 Illustrative Core Structure

    1. class Cell:
    2. __slots__ = ("raw", "value", "dirty", "refs")
    3. class Sheet:
    4. def __init__(self):
    5. self.cells = {} # (row, col) -> Cell
    6. def set(self, r, c, raw):
    7. cell = self.cells.setdefault((r, c), Cell())
    8. cell.raw, cell.dirty = raw, True
    9. self._invalidate_dependents(r, c)
    10. def recalc(self):
    11. order = topo_sort(self.dependency_graph())
    12. for r, c in order:
    13. self.cells[(r, c)].value = evaluate(self.cells[(r, c)])

    3.3 Acceptance Criteria (Example)

    Milestone Acceptance Test Case Pass Line
    Expression evaluation Precedence, parentheses, range summation All cases pass
    Dependency recalculation Chained references, circular reference errors Accurate cycle detection
    Large data volume Edit latency with 100,000 cells No noticeable interaction lag
    Compatibility Import/export of basic formats and formulas Key fields preserved without loss

    Concluding judgment: In the prototype stage, the three main lines of “parsing + dependencies + rendering” can run within budget. However, reaching production-level compatibility (legacy file formats, edge-case functions, formatting details) will amplify code volume and test volume by more than an order of magnitude. This is exactly the level that must be distinguished when evaluating any “reproduction” claim.

    4. Case Two: Testing Aesthetic Capability in Procedural Visual Rendering

    The second experiment puts the capability of “mass repetitive drawing” into a practical scenario: using code to generate a city night scene with realistic light and shadow layers stroke by stroke, then iteratively beautifying it.

    Key engineering points:

    1. Layered structure: Distant silhouettes, mid-ground building blocks, near-ground details, and foreground occlusion, with stroke density controlled separately.
    2. Lighting consistency: Define the light source direction and color temperature first, then unify highlights and shadows across layers to avoid a “pasted texture” look.
    3. Stroke budget: Keep the total number of strokes in the hundreds of thousands, and use a random seed to ensure reproducibility.
    4. Iterative beautification: Converge in four rounds—composition → light and shade → color → grain and fog—adjusting only one category of parameters per round.
    1. for layer in layers: # from far to near
    2. for _ in range(layer.strokes):
    3. x, y = layer.sample_point(rng)
    4. shade = lighting(x, y, layer.depth)
    5. canvas.line(x, y, shade, layer.width)

    This experiment shows that aesthetics is not mystical, but an engineering problem that can be parameterized and accepted in stages.

    5. Common Pitfalls and Engineering Recommendations

    • Treating planning documents as one-off deliverables: Documents must be version-controlled and evolve with the implementation.
    • Filling the context all at once: Long contexts dilute key constraints; feeding in segments is more stable.
    • Only watching demos, not tests: Any generated result should come with a test suite and regression scripts.
    • Ignoring reproducibility: Fix random seeds, fix dependency versions, and record complete prompts and document snapshots.
    • Mismatched cost structure: Using a high-capability model for planning and a cost-efficient model for implementation is a more sustainable budget allocation.

    6. Conclusion

    The real value brought by a strong planning model is not “writing the system for you,” but translating requirements into an executable and verifiable engineering blueprint. For teams, the pragmatic path is to let the model handle structured decomposition and boilerplate code, while humans take charge of boundary judgment, acceptance design, and quality assurance. If more complete engineering support is needed, prototype artifacts can be hosted on object storage, container platforms can ensure environment consistency, and logging services and monitoring alerts can close the loop—this is the key step to turning experimental conclusions into production capability.