AI-Assisted Programming in Practice: From Natural Language Requirements to Reliable Delivery
AI-assisted coding changes how work is divided between people and models, but it does not remove engineering responsibility. This article explains how to turn vague, feel-based requests into verifiable tasks, using an interactive scene with boats, characters, cherry blossoms, and shoreline vegetation as the running example. It covers writing acceptance criteria, scoping broad change requests, treating vegetation rework as an asset pipeline problem, designing a stable dynamic resolution controller, using independent review without treating it as proof of correctness, keeping humans in charge of aesthetic judgment, diagnosing latency and token usage, and maintaining reusable requirement, verification, and decision checklists.
1. Rethinking AI-Assisted Programming: Less Hand-Writing Does Not Mean Fewer Engineering Duties
In an AI-assisted development workflow, you describe the problem through a terminal or another interface. The model analyzes the code, proposes changes, and executes some operations once it has the required permissions. For game prototypes, interactive demos, and visualization apps, this lowers the barrier between an idea and a working implementation.
But “developing in natural language” does not mean natural language is precise enough, and it does not mean generated implementations are reliable by default. What changes is the division of labor: the human owns goals, constraints, tradeoffs, and acceptance; the model takes on part of the retrieval, implementation, testing, and explanation work.
So the right question is not “did the code get written quickly?” but three others:
- Was the user’s intent understood correctly?
- Can the result pass checks that are run repeatedly?
- Does the quality gain come at an acceptable cost in time and resources?
The example below uses an interactive scene with boats, characters, cherry blossoms, and shoreline vegetation to show how seemingly casual feedback can be organized into a dependable engineering process.
2. Natural Language Can Start Implementation, but Acceptance Criteria Must Be Added
2.1 From “there should be a trail behind the boat” to an executable plan
“The water should leave a trail after the boat passes” is a typical feel-based requirement. It says the scene lacks motion feedback, but it does not specify a technique.
The implementer has to decide further: is the goal a realistic wake, stylized foam, or just a trail that hints at direction of travel? These options have different visual targets and different computational costs.
For a more realistic scene, you can consider ripples spreading behind the boat, foam that fades along the traveled path, and a push-water effect near the bow. For a lightweight prototype, a semi-transparent wake that moves with the boat can express speed and direction first, with detail added incrementally.
Note that the geometric features of classic deep-water wake models rest on specific assumptions and cannot be treated as accurate behavior for every river, boat speed, and water depth. Shallow water, shoreline reflection, and different navigation states can all change the wave shape. Real-time scenes usually require a tradeoff between physical plausibility and rendering budget rather than an unnecessary full fluid simulation.
2.2 Breaking a feel-based requirement into four dimensions
A useful rewrite of this kind of request has the following structure:
Visual goal: viewers can tell the boat is pushing the water, and a continuous, gradually dissipating trail exists behind it.
Behavior rules: the faster the boat, the more visible the wake; once the boat stops, no new wake is produced and existing trails fade out; when turning, the wake follows the historical path instead of always pointing straight behind the stern.
Performance constraints: cap the number of visible wake segments, limit the area of transparent overdraw, and prevent effect complexity from growing with runtime.
Acceptance method: check behavior separately for straight travel, turning, start/stop, and different camera distances.
This phrasing preserves the original idea while leaving less room for the model to guess. Acceptance is no longer “is there a trail or not,” but whether the trail appears under the right conditions and in the right way.
3. Vague Instructions Get Partially Executed: Scope Management Matters More Than Elegant Wording
3.1 Why “polish all similar details” often fails
Words like “similar,” “all,” and “overall” in natural language depend heavily on context.
When one piece of feedback mentions both a character and the environment, the executor may only change the most explicit, easiest-to-locate object. For example, “adjust the boatman and polish the other details too” may trigger only a clothing change on the character, leaving cherry blossoms, shoreline plants, and material style untouched.
This does not necessarily mean the model cannot handle complex tasks. More likely, the task boundary was never defined explicitly. Faced with a broad instruction, executors tend to prefer the lower-risk local change.
The fix is not to repeat “be more careful,” but to list the objects, the problems, and the completion conditions.
| Target | Current problem | Target state | How to verify |
|---|---|---|---|
| Boatman | Weak silhouette and clothing layers | Clear primary forms, decoration consistent with the overall style | Close-up inspection and motion check |
| Cherry blossoms | Repetitive flower and leaf arrangement | Natural distribution with clear near/far layering | Screenshot comparison from a fixed viewpoint |
| Shoreline plants | Visible collage seams | Consistent tone, lighting, and scale | Checks across multiple times of day and angles |
| Scene overall | Inconsistent level of realism between parts | A unified visual language | Combined wide-shot and close-up review |
3.2 Splitting “optimize the whole scene” into dependent batches
For batch changes, establish global rules first, then adjust individual objects.
For instance, fix the color range, light direction, material roughness, and detail density before handling characters, trees, and water separately. Otherwise, each object becomes more detailed on its own while the combination becomes less coherent.
Also state explicitly what must not change: camera paths, interaction methods, character actions, and the existing asset budget. Freezing these constraints prevents a visual polish pass from turning into an accidental functional rewrite.
After each batch, keep a revertible version and comparison screenshots. This lowers rework cost and shows which change actually caused a quality shift.
4. Rebuilding Vegetation Is an Asset Pipeline Problem, Not a Texture Swap
When plants look obviously pasted together, the cause may be the source assets, or the arrangement, lighting differences, or render parameters. Replacing them with higher-resolution textures does not necessarily improve the result.
A general vegetation workflow can include these steps:
Prepare assets from legitimate sources
Use leaf and flower assets you captured yourself, licensed, or clearly permitted, and record their origin and permitted use. Photorealistic does not mean free to use.Normalize basic asset properties
Adjust exposure, color temperature, transparent edges, and scale ratios. Remove directional shadows baked into source photos as much as possible so they do not conflict with the scene’s real-time lighting.Build textures and geometry representations
Choose flat leaf cards, low-poly flower clusters, or other simplified structures based on the target image. Bake high-detail information into textures where needed instead of keeping everything as complex geometry.Define procedural distribution rules
Apply constrained variation to the position, rotation, scale, and density of leaves and clusters. More randomness is not better; the distribution should still follow branch structure, plant growth direction, and the overall composition.Control level-of-detail and transparency cost
Reduce geometric complexity and detail density with viewing distance. Large overlapping areas of transparent vegetation can create high pixel-processing cost, so reduce overlap, clip sensibly, and adjust the presentation.
Between “realistic assets” and a “natural-looking image” sit scale, layout, lighting, and art style. The asset pipeline governs how assets enter the scene consistently; it is not about making each individual texture sharper.
5. Dynamic Resolution Control: Automated Optimization Needs Stability Design
5.1 Why naive up/down rules oscillate
The basic idea of dynamic resolution control is to lower the internal render resolution when rendering pressure is high, and raise it gradually when there is sustained headroom.
If the rule is simply “lower when frame time exceeds the target, raise when it is below,” the system can flip between two states repeatedly. Lowering improves frame time, so the next evaluation raises the resolution immediately; raising pushes it over the target, so it lowers again.
This oscillation hurts visual stability and can also make performance measurements meaningless.
Also, lowering resolution does not help every bottleneck. If most of the time goes to CPU-side logic, asset loading, or synchronization waits, reducing pixel count yields limited gains.
5.2 Smoothing, hysteresis, and cooldown
A general control strategy usually includes:
- Smoothing frame time to reduce the impact of single spikes.
- Using different thresholds for lowering and raising to avoid frequent switching near the target.
- Requiring a condition to hold continuously for a period to filter short fluctuations.
- A cooldown between adjustments, giving the system time to settle and be observed.
- Limits on the resolution range and on the size of a single change.
- Separate handling of abnormal phases such as pause, window switching, and asset loading.
The logic sketch below is illustrative; thresholds must be determined from the actual device, target frame rate, and measurements:
Update the smoothed frame timeIf currently in an abnormal phase or within the adjustment cooldown:Keep the resolution unchangedElse:If the downgrade threshold is exceeded continuously:Lower the resolution slightly within the allowed rangeReset the observation stateIf the value stays below the upgrade threshold continuously:Raise the resolution slightly within the allowed rangeReset the observation state
What matters here is not a particular constant, but whether the controller is stable and whether it actually targets the current bottleneck.
5.3 Simulate first, then validate in a real scene
You can start by feeding the controller synthetic frame time series and checking steady load, short spikes, sustained overload, and periodic fluctuation.
Simulation finds logic problems cheaply but does not replace on-device testing. Real environments also involve driver scheduling, resource uploads, thermal changes, and multiple coupled loads.
So record frame time, resolution changes, adjustment counts, and perceived image quality together. The optimization target should be a stable, acceptable experience, not simply a higher average frame rate.
6. Independent Review Is Valuable but Is Not a Correctness Guarantee
Having a separate review task look specifically for defects helps counter the implementer’s line of thought. However, repeated reviews can share similar blind spots, so “another agent also approved it” is not a reason to skip testing.
A more effective approach is to scope the review:
- Check whether the controller can oscillate.
- Check whether state is reset correctly in abnormal branches.
- Check for resources created repeatedly or never released.
- Check whether the change expanded beyond the originally defined scope.
- Check whether tests cover start/stop, turning, and long-running sessions.
Review output should include reproduction steps, trigger conditions, or executable tests rather than a general verdict.
For automated flows that can call local tools, apply least privilege. Operations such as deleting files, installing dependencies, accessing sensitive directories, and making external requests should have explicit authorization boundaries. Higher execution speed must not come at the cost of losing control of the environment.
7. Aesthetic Judgment Still Needs a Human Lead; Models Are Better at Locating Causes
“Good-looking,” “natural,” and “atmospheric” are not single metrics. They are influenced by composition, pacing, subject matter, style, and personal preference.
A model can help check asset consistency, analyze likely visual problems, and propose directions to change, but that analysis is not a reliable aesthetic acceptance.
For example, “the plants look unnatural” can be broken down further:
- Are leaf orientations too uniform?
- Are flowers distributed so evenly that density variation is lost?
- Do the assets carry mismatched shadows?
- Do the character and the scene use different levels of realism?
- Is there too much far-field detail, weakening the visual focus?
A practical loop is: human states the impression, model proposes hypotheses about the cause, a small change is made, human compares and accepts. Each round should change only a few factors, so it stays clear where an improvement came from.
Sound design works the same way. Volume, repetition interval, and playback state can be verified by tests, but whether the sound fits the scene still requires listening and a human choice.
8. Slow Responses and High Consumption Need Investigation, Not Assumptions About Intentional Limits
When an AI-assisted workflow is connected to different model services, increased latency or higher text processing volume does not by itself prove that any party imposed an artificial limit.
Common causes include network transfer, service queuing, overly long context, serial tool calls, retries after failures, and mismatched API behavior or output formats. Different tokenization schemes can also affect usage counts, so not every difference reflects a change in useful work.
When investigating, separate:
- Time to first output;
- Total generation time;
- Local tool execution time;
- Number of retries and format repairs;
- Cumulative context size processed per task.
Pick a fixed small task, control the context, tool permissions, and output requirements, run it repeatedly, and compare logs. Do not rely on a constantly changing large project as the only evidence.
Common ways to reduce cost include narrowing the task, clearing irrelevant context, limiting which files are read, saving intermediate conclusions, and running targeted tests first. But compressing context must not drop critical constraints, or one saved call may cost several rounds of rework.
9. Build a Reusable Collaboration Loop
A dependable AI-assisted workflow can be summarized as:
Describe intent → clarify scope → confirm the approach → implement in small steps → run automated checks → human acceptance → record and revert.
For developers just starting out, the most valuable thing to build is not an elaborate prompt set but three maintained checklists:
The requirements checklist records objects, problems, goals, and items that must not change.
The verification checklist records test scenarios, check methods, and pass conditions.
The decision checklist records why the current approach was chosen, what was given up, and which risks remain open.
The real change AI-assisted programming brings is that more ideas can reach a runnable, discussable state faster. It can take on part of the implementation and debugging work, but it cannot replace scope management, performance analysis, and final judgment. Only when vague expressions become explicit tasks, automated execution becomes an observable process, and result evaluation becomes repeatable verification will the efficiency gain translate reliably into delivery quality.
