Wish-Driven Programming: Why AI Coding Assistants Are Useful but Hard to Rely On
Natural-language coding can produce impressive results in demos, but real-world engineering requires more than code that merely runs. This article examines why AI coding assistants produce inconsistent results, how randomness, long-context dilution, private project conventions, and missing validation loops contribute to the problem, and how structured prompts, reproducible configurations, automated verification, incremental changes, and clear human–AI responsibilities can make these tools more dependable.
Wish-Driven Programming: Why AI Coding Assistants Are Useful but Hard to Rely On
1. Why “Making a Wish” Sounds So Appealing
“Wish-driven programming” describes a development style in which a developer expresses a requirement in natural language—for example, “Write a script that batch-renames files and archives them by date”—and the model immediately returns runnable code.
This interaction is highly compelling in demos. Developers do not need to search documentation or remember API details. It can feel as if making a wish is enough for working code to appear.
In real engineering environments, however, the experience often falls short of the demo. A model that performs impressively on a small, single-turn task without strict constraints may not remain reliable during long conversations, complex dependency changes, or projects with demanding engineering standards. Understanding this gap is essential for evaluating and using AI coding assistants rationally.
2. The Core Problem Is Not Capability, but Consistency
Common complaints from developers are usually not that a model is completely unable to write code. Instead, they focus on several recurring experiences:
- Output quality varies significantly. For the same task, the model may generate clean code with complete edge-case handling one day, then produce basic errors the next time, as if it were in an “off” state.
- The model requires repeated instruction. Developers often spend substantial time explaining project context, coding conventions, and exception-handling rules in prompts. This can create the feeling that they are not asking AI to do the work, but teaching it how to work.
- Hidden risks are difficult to detect. Generated code may silently change existing behavior, omit exception paths, introduce unsafe dependencies, or hard-code sensitive information. Developers must review the output line by line to avoid being caught off guard.
Together, these problems can cancel out the productivity gains. When the model is stable, development becomes noticeably smoother. When quality fluctuates, the cost of maintaining trust rises sharply. This uncertainty—not a total lack of capability—is the main reason these tools can be difficult to adopt as part of a normal workflow.
3. Why Does Performance Fluctuate?
3.1 Inherent Randomness in Sampling
Autoregressive generation depends on sampling strategies. The same prompt can produce noticeably different results under different temperatures or random seeds.
For creative tasks, diversity is often an advantage. For engineering code, however, determinism and reproducibility are usually more important. If users cannot fix generation parameters or reproduce a problematic result, both debugging and trust become more difficult.
3.2 Attention Dilution in Long Contexts
In a long conversation, conventions and constraints established early may be diluted by later content. The model may gradually stop following rules that were previously confirmed.
This is particularly visible in real projects involving multiple files and many rounds of iteration. By the tenth round, for example, the model may no longer follow the exception-handling approach agreed upon during the first round.
3.3 A Mismatch Between Training Data and Private Engineering Contexts
Models learn from general-purpose training data, while enterprise projects often rely on private frameworks, internal APIs, coding standards, and domain-specific terminology.
Without sufficient project-specific context, the model can only fill in the gaps using common industry patterns. Those patterns may not match the actual requirements of the project.
3.4 The Lack of an External Validation Loop
A model does not inherently run the generated code, execute tests, or observe runtime errors. If compilation, testing, and static analysis are not included in the generation loop, errors are passed directly to the developer, leaving the entire review burden on the human side.
3.5 A Mismatch Between Evaluation and Engineering Needs
Many demonstrations focus on whether a model can produce code. Engineering teams care about a broader set of questions:
- Is the code correct?
- Is it maintainable?
- Does it follow project conventions?
- Can the change be safely rolled back?
There is a significant gap between a code fragment that runs and a change that is ready to merge into the main branch. That gap consists of many engineering details that demos often overlook.
4. Turning “Wish-Driven” Coding into Dependable Collaboration
4.1 Use Structured Prompts to Reduce Variability
Replace vague requirements with a structured description:
Task: Implement a script that archives files by dateInputs: Source directory path, destination directory pathConstraints:- Process only .log files- Delete source files after archiving- Rename files with a timestamp when conflicts occurOutput: Python script + unit tests
Clearly specifying inputs, constraints, and output formats narrows the generation space and reduces the impact of randomness.
4.2 Use Reproducible Generation Configurations
In team environments, standardize sampling parameters, such as low-temperature or greedy decoding, along with the model version and prompt templates. Keep records of important generation processes.
When a model appears to produce lower-quality results, the team can compare configuration and version changes to determine whether the cause is prompt drift, a model update, or randomness. This is more effective than relying on unexplained trial and error.
4.3 Put Project Conventions into Context Instead of Repeating Them
Maintain a project-level “AI context guide” that describes the directory structure, naming conventions, exception-handling rules, and prohibited practices. Inject this information at the beginning of each session.
This can reduce the effects of attention dilution in long contexts and minimize repeated instruction.
4.4 Build an Automated Validation Loop
Generated code should immediately go through machine-based checks:
# Run automatically after generation: compile → static checks → unit testspre-commit run --all-filespytest tests/ -q
Regardless of the model’s current output quality, mechanical validation provides a safety net. Shifting review from reading every line of code to examining test and validation reports is one of the most effective ways to reduce the cost of trust.
4.5 Divide the Work and Limit the Change Radius
Do not ask the model to generate a large, complete implementation in one step. Break the work into smaller stages:
- Define the interface.
- Implement the core logic.
- Handle edge cases.
- Add test cases.
Each step should make a small incremental change to the existing code. This makes diffs easier to review and allows errors to surface earlier.
4.6 Maintain Clear Human–AI Responsibilities
AI is well suited to tasks such as:
- Generating boilerplate code
- Writing regular expressions and scripts
- Drafting unit tests
- Explaining code
- Suggesting refactoring approaches
Humans should remain responsible for:
- Architectural decisions
- Security reviews
- Complex business logic
- Final approval before merging
Clear boundaries allow teams to benefit from faster development without being exposed to unmanaged hidden risks.
5. How to Discuss Differences in Model Experience Rationally
Communities often have intense debates about the performance of different models. Several types of discussion should be distinguished:
- Specific, reproducible feedback, including the prompt, model version, parameters, and output comparison. This is the most valuable type because it helps identify the source of a problem.
- General judgments based on personal experience. These can provide useful signals, but they are heavily affected by sample bias.
- Emotional alignment or speculation about motives. This does not contribute much to a technical community.
The coding ability of a large language model should be evaluated across multiple dimensions:
- Correctness
- Reproducibility
- Adherence to context
- Honesty when refusing or expressing uncertainty
- Stability during long-running tasks
A high score in any single dimension does not guarantee engineering usability. At the same time, quality fluctuations should not lead to a complete rejection of these tools. Variability is a problem that can often be managed through engineering practices.
6. Conclusion
The idea that “wish-driven programming” can make software appear with a single request is an appealing vision. In practice, today’s large language models are more like highly capable but inconsistent collaborators.
Instead of simply complaining that their performance varies, teams can use structured prompts, standardized configurations, context management, and automated validation to contain that uncertainty within the development process.
When the validation loop is strong and the scope of each change is small, AI coding assistants can move from tools that require constant suspicion to tools that reliably reduce workload. This allows developers to focus their time on the decisions that still require human judgment.
