Prompt Engineering in the LLM Era: From a One-Line Wish to a Working Application
Learn how "wish-style programming" works with modern LLMs: why the model–harness combination matters, how to evaluate task-level costs instead of token prices, and how a structured prompt turned a vague wish into a polished 3D racing game in just two iterations.
1. Background: When “Making a Wish” Becomes a Programming Paradigm
A recent trend in the AI community has been dubbed “wish-style programming.” The idea is simple: instead of writing detailed requirement documents and technical designs upfront, the developer states the goal in a single natural-language sentence and lets the model autonomously handle design, coding, and debugging.
This paradigm rests on two prerequisites:
- A leap in baseline model capability. New-generation large language models have made significant progress in code generation, multi-step reasoning, and tool calling, and can now handle the full loop of “describe — plan — implement — self-check.”
- Maturation of the execution environment (harness). Model output is only the first step. Real agent tasks need a runtime framework that can execute commands, read and write files, run tests, and iterate with feedback. Optimization at the harness layer often improves the final experience more than raw parameter increases in the model itself.
In this article, we look at the technical logic behind this paradigm and validate it with a concrete case: recreating a racing game.
2. Evaluating Model Updates: Look Beyond Benchmarks to Capability Structure
When a model version is updated, vendors usually publish a set of benchmark scores. Benchmarks are only a reference, but which metrics changed significantly often reveals the focus of the update.
For this kind of update, the notable changes typically cluster around three categories of benchmarks:
- Terminal-operation benchmarks: measure the model’s ability to work in a command-line environment, including command selection, error recovery, and environment probing. This capability directly determines whether an agent can actually “get its hands dirty.”
- Automated-task benchmarks: measure stability in long, multi-step workflows — for example, whether the model can sustain dozens of tool-call rounds without drifting off target.
- Programming problem-solving benchmarks: measure end-to-end capability from requirements to runnable code.
These three capabilities share a common trait: they are all closely tied to the harness. In other words, a valuable version update is often not just a refresh of model weights, but the result of co-optimizing the model with its execution environment — for instance, making the model better aware of tool boundaries, reducing unproductive exploratory output, and converging faster inside iteration loops.
3. Beyond Unit Price: Pareto Improvements in Task-Level Cost
On the cost topic, many developers focus only on token unit prices, but that’s a misconception. For agent scenarios, the real cost = unit price × total tokens needed to complete the task.
What does a typical agent task look like? Not “one request, one response,” but rather:
User goal→ Model planning→ Tool calls (file read/write / command execution)→ Observe result → Correct → Call again→ …… loop N times ……→ Final delivery
Every loop consumes input tokens (historical context) and output tokens (reasoning and code). If the model produces a lot of unproductive output during these loops — repeatedly retrying failing commands, or generating plans it immediately overturns — the actual cost of the task multiplies.
This has led to a more sensible optimization goal in the industry: holding unit price constant, reduce the number of loops and wasted output required to finish a task, achieving a Pareto improvement in “performance vs. cost” — at least one metric gets better while the other doesn’t get worse. For long-horizon agent tasks, the payoff from this kind of optimization can far exceed a simple price cut.
The takeaway for developers: when evaluating model costs, don’t just read the price list. Run end-to-end tests on representative tasks and measure the number of request rounds and token consumption needed for one delivery.
4. Hands-On: From a One-Line “Wish” to a Racing Game
Enough theory — let’s put it to the test. The goal: recreate a racing game. The environment is a model execution framework optimized for agent tasks, calling the latest model version through the official API.
Round 1: The Pure “Wish”
I wrote no requirement document — just one sentence:
Build me a racing game: drivable, with a track and a timer,supporting both driver's view and chase camera.
The result was quite interesting:
- Landing page and overall structure: generated correctly in one shot, with a complete page layout — I could enter the game directly.
- Core gameplay: driving, track, timing, and dual-view switching were all implemented, with no obvious functional gaps.
But the problems were equally obvious: the visual style and level of polish fell well short of my expectations — simplistic track textures, crude car models, and no sense of speed or atmospheric lighting.
This outcome is very typical: for requirements with clear functional boundaries, one-shot generation quality is already high; but “experience-oriented” goals (looks, polish) are hard to define in a single sentence, so the model can only deliver based on a statistically “average” aesthetic.
Round 2: Upgrading the “Wish” into a Structured One
For round two, I changed tactics, breaking the vague expectations into an executable, structured prompt:
Build a 3D racing game with the following requirements:1. Rendering: add guardrails, start/finish lines, and roadside decorations to the track;2. Vehicle: use a low-poly car model with shadows, plus a slight camera FOV change when accelerating;3. Camera: first-person driver view (with visible dashboard) and rear chase view, toggle with the C key;4. HUD: speedometer, lap timer, and best-lap record;5. Art style: sunset scene, warm-toned lighting, fog effects for depth.
The effect was immediate: the model now had clear acceptance criteria for every item, the generated code was better organized, and the visual quality improved dramatically.
The Methodology Behind the Two Rounds
This comparison reveals the right way to practice “wish-style programming”:
- Use the first wish to probe the baseline. Don’t start with a long document. Use one sentence to get a baseline version from the model, quickly exposing the gap between its default understanding and your expectations.
- The gap is your requirements. Whatever you’re unhappy with in round one is exactly what belongs in your round-two prompt.
- Acceptance criteria must be observable. “Make it look good” is an invalid prompt; “sunset lighting + fog effects + low-poly style” is an effective one. Translating subjective adjectives into observable technical characteristics is the core skill of prompt engineering.
- Iterate rather than rewrite. Making incremental changes on existing code costs fewer tokens than regenerating from scratch and preserves version continuity.
5. Final Thoughts
“Wish-style programming” doesn’t mean abandoning engineering discipline — quite the opposite. It shifts the engineer’s value from “translating requirements into code” up to “defining clear goals and acceptance criteria.” The model handles execution; humans handle judgment. A vague wish is the starting point for exploration; a set of structured criteria is how you converge.
Combined with the trend toward task-level cost optimization, this paradigm is making it realistic for “one person + one agent” to accomplish what once required a small team. Pick a small project you know well and start with a single wish.
