Agentic Coding in Practice: A Pareto Improvement Approach
This article explores the shift from traditional software development to wish-driven programming, where developers define intent and acceptance criteria while AI agents handle planning, coding, and self-correction. It explains the three prerequisites for this paradigm, why token efficiency matters more than benchmark scores, and how a racing game was built through three progressively refined prompting rounds. Readers will find reusable engineering practices for intent layering, context management, tool loops, evaluation-driven delivery, and cost observability.
1. From Making a Wish to Shipping: The Shift in Agentic Coding
Traditional software development relies on requirement documents, technical designs, and phased acceptance. Wish-driven programming compresses that process into a single natural-language intent: the developer describes the desired outcome, and an agent with tool-calling ability handles planning, coding, execution, and correction on its own. This does not replace engineering discipline; it moves the engineer’s effort from writing implementations up to defining goals and acceptance criteria.
The model works only when three conditions hold. First, the model must have stable code generation and reasoning ability. Second, the runtime environment (the harness, or agent shell) must provide a closed loop of tools for file read/write, command execution, and log retrieval. Third, the evaluation system must turn “looks like it runs” into a measurable pass or fail. Remove any one of the three, and wishing degrades into guesswork.
2. What to Look at Beyond Benchmarks After a Model Update
In one model update focused on harness optimization, benchmarks covering terminal operations, automation tasks, and coding problem solving all improved. Scores are only a reference; what matters is which dimensions improved, because that reveals the optimization direction in reverse: terminal interaction, tool execution, long-horizon automation, and code problem solving.
More noteworthy is the idea of a performance-cost Pareto improvement: the unit price stays the same, but the total tokens consumed to complete the same task drops. For an agent, a single task often involves dozens of model requests, many tool calls, and multiple loops. Ineffective output, repeated file reads, and failed retries all amplify cost linearly. Optimizing loop efficiency therefore equals lowering real cost without sacrificing quality.
3. Practice: Recreating a Racing Game With a Single Wish
The environment is an agentic coding tool with a closed tool loop, accessed through a general-purpose large model API. The goal is a racing game that can be driven, with a track and timing, supporting both a driver’s view and a rear view.
Round 1: Pure Wishing
The prompt was a single sentence: “Make a racing game that can be driven, has a track and timing, and supports driver and rear views.”
Result: the landing screen looked acceptable and the core gameplay loop worked, but visual style, material detail, and speed feedback fell well short of expectations. This confirms a typical problem with wish-driven programming: the shorter the intent, the more the model favors the least-effort implementation, stacking color blocks and simple geometric shapes into a runnable version.
Round 2: A Structured Prompt
Splitting the sentence into four layers improved the result significantly:
Goal: 3D racing game that runs in the browserGameplay: accelerate/brake/steer/nitro, lap count and lap timing, wall collision slows the carVisuals: low-poly style + gradient sky + road texture + dynamic shadowsCamera: switchable first/third person, with a transition on switchAcceptance: complete one lap within 60 seconds, frame rate no lower than 50
The key is verifiable acceptance criteria, which give the agent a clear convergence target inside the loop instead of repeated “beautification.”
Round 3: Adding Iteration Constraints
Appending “build the skeleton first, then fill in details,” “change only one module at a time,” and “self-test after each change and output the result” significantly reduced ineffective edits and rollbacks. This is exactly what a cost Pareto improvement looks like in individual practice.
4. Reusable Engineering Recommendations
- Layer the intent: goal, constraints, acceptance in three parts; avoid piling up adjectives.
- Govern the context: feed only necessary files and submit long tasks in segments to prevent context bloat and repeated consumption.
- Prioritize the tool loop: make sure the agent can run code, read logs, and take screenshots so the model can correct itself.
- Drive with evaluation: turn “is it good” into numbers such as frame rate, elapsed time, and pass rate.
- Make cost observable: record requests and token usage per task, and use data to judge whether an optimization actually works.
The value of wish-driven programming is not writing less code, but concentrating human judgment on goal definition and quality acceptance. Paired with a model and harness optimized for agent loops, developers can deliver more complex long-horizon tasks at lower real cost.
