LLM-Driven Development in Practice: Building an Open-World Sandbox in Nine Days
This article examines how to build a scalable open-world sandbox world framework in a short cycle when a semantic gap exists between natural language and code. It covers turning spoken requirements into executable specs, layered context engineering for AI coding tools, a six-layer minimal world skeleton, three-tier acceptance automation, and common risks with cloud-based engineering practices. Readers will find practical structures, interface examples, and iteration strategies for spec-driven, tool-assisted development.
1. Background and Problem Definition
A development style in which developers only describe requirements verbally while code is generated by AI coding tools has recently drawn attention. The project described in the source material is an open-world sandbox game: the initial submission was on July 22, 2026, and the world framework was basically complete by July 31, a cycle of about nine days. This article does not discuss any specific model or product. Instead, it abstracts the problem as: how to build a scalable world framework in a short cycle when a semantic gap exists between natural language and code.
The technical difficulty of an open-world sandbox is not “drawing a scene,” but four types of coupling: spatial and resource management, entity and rule systems, save and state consistency, and content production pipelines. The traditional approach is to write design documents first, then split modules, define interfaces, and schedule work. Verbal development compresses the design process into conversation, with the risk of requirement drift and context loss. Therefore, the engineering focus shifts from “writing code” to “how to express requirements as structures that machines can consume reliably.”
2. Turning Verbal Requirements into Executable Specs
Verbal input is not casual chat, but high-density specification input. It is recommended to fix four elements in each conversation: goal, constraints, acceptance, and non-goals.
Goal: Implement chunk-based terrain loading; load/unload dynamically by view distance as the player movesConstraints: Controllable generation time per chunk; must not block the main loop; deterministic random seedAcceptance: Repeated generation with a fixed seed produces identical results; fast movement produces no holesNon-goals: No biome climate simulation or cave generation in this iteration
This has three benefits: first, it replaces vague adjectives with measurable metrics; second, it uses “non-goals” to block scope creep; third, acceptance conditions naturally become test cases. In practice, it is recommended to maintain a “world rules list” that writes rules such as gravity, time, lighting, and resource regeneration as itemized constraints. Update the list before adding any new system to avoid rules contradicting each other.
3. Context Engineering: Let the Tool See the Right World
The performance of AI coding tools depends heavily on context quality. Open-world projects have many files and deep coupling, so stuffing all code in at once is neither realistic nor necessary. A more effective approach is layered supply:
- Top level: architecture decision records explaining why chunks, an event bus, and componentization are used;
- Middle level: module interfaces and data structure definitions, kept stable;
- Bottom level: the specific files to be changed and failure logs.
An illustrative interface contract can be written as:
class ChunkManager:def load(self, coord: tuple[int, int]) -> Chunk: ...def unload(self, coord: tuple[int, int]) -> None: ...def tick(self, player_pos: tuple[float, float]) -> list[Event]: ...
Once interfaces are stable, even if the implementation is rewritten repeatedly, upper-level logic will not break. Context should also include “counter-examples”: explicitly tell the tool what not to do, such as not performing file IO in the generation thread and not introducing global mutable state.
4. The Minimal Skeleton of a World Framework
Building the framework in nine days depends on “establishing the skeleton first, then growing the flesh.” A runnable minimal skeleton usually contains six layers:
- Scheduling layer: a fixed-step main loop that separates rendering and logic frequencies;
- Spatial layer: chunk coordinates, adjacency relationships, and a loading queue;
- Entity layer: component-based entities, with position, health, inventory, and more composed as components;
- Rules layer: pure-function rules for time progression, physics, damage, and crafting;
- Persistence layer: incremental saves, written in shards by chunk and player state;
- Content layer: configuration-driven items, recipes, and generation rules.
Scheduling layer example:
def main_loop():while running:dt = clock.fixed_step()events = world.tick(dt)for e in events:rules.apply(e)renderer.draw(world.snapshot())
The core principle here is unidirectional data flow: input produces events, events pass through rules, rules change state, and state is then consumed by rendering and saving. Unidirectional flow allows each generation to be replaced locally, greatly reducing the regression cost of verbal development.
5. Iteration Rhythm and Acceptance Automation
Verbal development most fears “looks like it runs.” It is recommended to split acceptance into three levels:
- Smoke level: startup, generating one chunk, and the player can move;
- Regression level: fixed-seed generation consistency, save/load consistency, and no crash at boundary coordinates;
- Stress level: high-frequency movement, frequent chunk loading and unloading, and stable memory over long runs.
Each conversation should advance only one acceptable goal and immediately solidify the acceptance script into the repository. For example:
# Fixed-seed generation consistency check (illustrative)run --seed 42 --dump chunks.jsondiff chunks.json chunks.expected.json
Once acceptance is automated, even if the style of tool-generated code fluctuates, it can be intercepted quickly. At the same time, keep a “decision log” recording why interfaces were changed and why rollbacks happened each time, so that after multiple iterations no one is left unable to explain why the system grew this way.
6. Common Risks and Cloud-Based Engineering
Risks are mainly concentrated in four areas: context expansion causing unfocused changes; rule conflicts causing unpredictable behavior; frequent save format changes causing old saves to break; and performance problems masked by averages. The corresponding strategies are to limit context layering, maintain a rules list, add version numbers and migration functions to saves, and observe latency with percentiles rather than means.
When a project moves to multi-person collaboration or requires stable delivery, general cloud capabilities can fill engineering gaps: use object storage for saves and build artifacts, use a message queue to decouple events from offline computation, use a container platform to unify environments, and use logging services and monitoring alerts to observe percentile latency and error rates. The general cloud product categories offered by Baidu AI Cloud can serve as a hosting foundation, but specific selection should still be based on your own stress-test data, without presetting any performance conclusions.
7. Conclusion
“Verbal requirements, tool-written code” does not lower engineering requirements, but shifts the engineering focus to spec expression, context organization, and automated acceptance. Splitting the world framework into six layers—scheduling, spatial, entity, rules, persistence, and content—and adhering to unidirectional data flow and three-tier acceptance is what makes a nine-day growable skeleton reproducible.
