Wish-Based Programming: How LLMs That Understand Intent Are Changing Software Engineering

    This article explores wish-based programming, an emerging interaction model where you describe the desired outcome and a large language model handles planning, coding, execution, debugging, and self-correction. It explains why this shift is now practical, which capability dimensions matter beyond benchmark scores, and how fewer model calls and clearer acceptance criteria can reduce the real cost of agentic tasks. Through a three-round case study of building a 3D racing game from a single prompt, it shows that the gains come not from phrasing everything perfectly at once, but from defining verifiable acceptance standards. It closes with engineering practices for turning a prototype into a maintainable, observable, and cost-controlled asset.

    1. Starting From a Wish: Why the Interaction Model Is Changing

    In the past, working with code meant writing a requirements document, sketching prototypes, breaking down tasks, and finally implementing everything line by line. Wish-based programming compresses that chain into a single sentence: you describe the result you want, and the model takes care of planning, coding, running, debugging, and self-correction. It does not make engineering discipline disappear; it moves human effort up the stack, from “how do I build this” to “what do I want, and what counts as acceptance.”

    The reason this capability has become usable recently is that models are no longer just good at code completion. They can execute commands in a terminal, read error output, call tools, and iterate in a loop. The rise of terminal-task, tool-execution, and automation metrics in evaluation suites reflects this progress in closed-loop execution, rather than a simple improvement in syntactic correctness.

    2. What to Watch: Look Beyond the Overall Score

    When a model is updated, the aggregate score has limited value. More meaningful are the structural changes:

    • Terminal and command-line operation: Can it read output, locate the cause of a failure, and fix it with minimal changes?
    • Tool calling and automation: Can it keep state consistent across multi-step tasks without losing context?
    • Programming problem solving: How broad is its coverage, from algorithm implementation to scaffolding an engineering project?
    • Long-horizon stability: As loops multiply, can it still converge on an acceptable result?

    When these dimensions improve together, it means the optimization target has shifted from single-turn answer quality to task completion quality, which is what agent scenarios truly care about.

    3. Pareto Improvement in Performance and Cost: The Overlooked Cost Sink

    An agent task is often not a single request but a combination of dozens of model calls, dozens of tool executions, and multiple loops. Even with a fixed per-unit price, real cost drops noticeably as long as you reduce useless output, shorten the path length, and lower the number of failed retries. This is the intuitive meaning of a performance-cost Pareto improvement: capability does not drop, but spending does.

    Practices that can be implemented in engineering include:

    1. Have the model write a task plan first, then execute, avoiding rework caused by thinking and doing at the same time.
    2. Put acceptance criteria up front, for example “must pass the build” and “must produce no console errors.”
    3. On failure, return only the key error snippet and the most recent change, not the entire history.
    4. Turn repetitive work into scripts or configuration to reduce the model’s need to re-reason each time.

    4. Practice Review: Building a Racing Game From One Sentence

    The task I chose was to recreate a lightweight racing game, running in an intelligent coding tool tuned for agent scenarios, with the model called through the official API. The whole process went through three rounds, which nicely illustrates the pattern of “wish, gap, convergence.”

    Round 1: Purely a Wish

    The prompt was a single sentence: make a racing game with driving, a track, and timing, supporting a driver’s view and a rear view.

    Result: The homepage looked decent, the core gameplay was complete, the car was controllable, and both timing and view switching worked. But the visual style was rough, lacking a sense of speed, road detail, and collision feedback. Overall it felt more like a playable prototype than a finished product.

    Round 2: A Structured Prompt

    I broke the wish into four categories of constraints: visual style, physics feel, interface information, and performance budget. An example prompt:

    1. Goal: A 3D racing mini-game, runnable as a single file.
    2. Visuals: Low-poly style, with curbs, guardrails, distant ridges, and a dynamic skybox.
    3. Feel: Acceleration/braking/steering have inertia, top speed 220, slowdown off-road.
    4. UI: Speedometer, lap timer, best lap time, view-switch hint.
    5. Constraints: Target 60fps, no external asset downloads, no console errors.
    6. Acceptance: Complete two consecutive laps without anomalies.

    This round improved noticeably: the track gained depth, the speedometer and best lap time appeared, and the handling no longer felt “floaty.” The remaining issue was long-horizon stability: occasional frame-rate drops over extended runs.

    Round 3: Adding Performance and Acceptance Clauses

    I added constraints on asset reuse and rendering, and asked the model to run and fix things itself:

    1. Additional constraints: Reuse geometries and materials, no creating new objects every frame;
    2. provide a --selftest flag that automatically runs for 30 seconds and outputs the average frame rate;
    3. if the frame rate is below 55, optimize on your own and rerun until it passes.

    The final version held close to the target frame rate on an ordinary laptop and had self-checking capability. These three rounds show that the benefit of wish-based programming does not come from “stating everything clearly at once,” but from “stating the acceptance criteria clearly.”

    5. Turning a Wish Into a Maintainable Asset

    A runnable prototype is only the starting point. Delivery also requires an engineering shell:

    • Directory and module separation: Separate rendering, physics, input, and UI to make implementations easy to swap.
    • Externalized configuration: Put vehicle and track parameters in config files to avoid hardcoding.
    • Observability: Connect logging and monitoring with alerts, collecting frame rate, exceptions, and failure rates.
    • Automated regression: Use continuous integration to run the self-test script after every change to prevent capability regression.
    • Cost control: Set a maximum loop count and timeout for long-running flows to avoid wasted consumption.

    6. Methodology Summary: How to Make a High-Quality Wish

    1. State the result form clearly: runnable, acceptable, reproducible.
    2. State the constraint boundaries clearly: performance, dependencies, compatibility, prohibited items.
    3. State the acceptance method clearly: let the model carry its own self-check and repair loop.
    4. Converge in small steps: solve only one type of gap per round to avoid prompt bloat.
    5. Keep human judgment: aesthetics, gameplay, and product positioning are still decided by people.

    The real value of wish-based programming is converting the communication cost of implementation details into the design cost of goals and acceptance criteria. Whoever can write acceptance criteria clearly can more reliably turn a single wish into software that runs, is maintainable, and keeps costs under control.