AI Coding Assistants: From Wishful Programming to Controlled Collaboration

    This article explains why working with AI coding assistants often feels exhausting. It covers three sources of trust problems, common technical causes of declining output quality, and a collaboration workflow built on small tasks, upfront constraints, and automated tests.

    1. The Ideal and Reality of Wishful Programming

    As large language models have advanced into code generation, a working style jokingly called “wishful programming” has become popular. Developers describe their requirements in natural language, and the model produces runnable code directly. The whole process feels as easy as making a wish that comes true.

    In theory, this approach brings three benefits:

    1. Higher efficiency: Repetitive work such as boilerplate code, CRUD endpoints, and unit tests is greatly reduced.
    2. Less cognitive load: Developers can focus on architecture design and business abstraction.
    3. Lower barriers: Developers can get unfamiliar tech stacks running quickly and learn the details later.

    In practice, the experience often falls short of this ideal. Many developers feel that the AI is not doing the work for them. Instead, they are teaching it how to work, and they must constantly watch for it to “stab them in the back.” The code may run, but it hides problems such as missed boundary conditions, undeclared implicit dependencies, and rough error handling. The gap between the ideal and reality is the core problem this article examines.

    2. Why It Feels Exhausting: Three Sources of Trust Problems

    2.1 Unstable Output Quality

    Given the same requirement, the model may produce clean, well-commented code today and confusing variable names and convoluted logic tomorrow. This variability makes it hard to set reliable expectations. Developers cannot fully hand off the work, yet they do not fully trust the output either, so they end up reviewing line by line. The mental burden actually increases.

    2.2 Hidden Errors

    Errors in traditional tools are explicit. Errors in AI-generated code often look correct:

    • Logic errors hide behind syntax that runs without problems.
    • Exception paths are silently ignored, so try-catch blocks do nothing useful.
    • The model guesses at private project APIs, and its call signatures look plausible but are wrong.

    These errors often slip past code review and testing and surface only after release. This is the source of the feeling that the AI has stabbed you in the back.

    2.3 Shallow Context Understanding

    An AI assistant usually sees only the snippets you paste in. It lacks an understanding of the overall project structure, team conventions, and past design decisions. As a result, its solutions may be reasonable locally but break global design constraints. Examples include reinventing existing utilities or bypassing a unified data access layer.

    3. Why Models Seem to Get “Dumber”

    Many developers have noticed that the model sometimes performs noticeably worse, as if it has gotten “dumber.” Setting speculation aside, the common technical causes are:

    1. A full context window: In long sessions, early key constraints get pushed out of the context, so the model “forgets” earlier requirements. Start a new session at the right time, or restate core constraints at key points.
    2. Declining prompt quality: As an interaction continues, developers tend to write more casual, fragmented prompts. Without a clear goal, the output drifts.
    3. Task complexity beyond current capability: Tasks such as multi-file refactoring and cross-module state management are current weak points for models. Forcing a wish in these cases yields a result that looks complete but is flawed.
    4. Sampling and temperature settings: A higher temperature suits creative tasks, but coding tasks need more conservative settings. Ignoring this increases randomness.

    Once you understand these mechanisms, “getting dumber” looks less mysterious. It is usually a controllable engineering problem that you can mitigate.

    4. Making AI a Real Working Partner: A Collaboration Method

    4.1 Break Down Requirements: Make Small Wishes, Not One Big Gamble

    Split large requirements into small, verifiable tasks, and make only one “wish” at a time:

    1. # Vague request
    2. "Write a complete order system for me"
    3. # Recommended request
    4. "Write a Python function that takes a list of orders, groups them by status,
    5. and sums the amounts for each status. Handle empty lists and invalid amounts,
    6. and include unit tests."

    Small tasks mean lower verification costs. Errors are caught and corrected early, so they do not accumulate into hidden problems.

    4.2 Set Constraints Upfront: Write Conventions into the Prompt

    Rather than reworking the output afterward, put team conventions into the prompt from the start:

    1. [Constraints]
    2. - Use only the existing utils/date.py for date handling
    3. - All external calls must have timeouts and retries
    4. - Follow PEP 8, and keep functions under 40 lines

    The more specific the constraints, the less room the model has to improvise, and the more predictable the output becomes.

    4.3 Close the Verification Loop: Test First, Let Machines Check

    Keep a “trust but verify” attitude toward AI output. The best way to verify it is automated testing:

    1. def test_split_orders():
    2. assert group_by_status([]) == {}
    3. assert group_by_status([{"status": "paid", "amount": 10}]) == {"paid": 10}
    4. def test_invalid_amount():
    5. with pytest.raises(ValueError):
    6. group_by_status([{"status": "paid", "amount": -1}])

    Tests can watch for boundary conditions, so your review effort can focus on whether the architecture is sound.

    4.4 Use Models of Different Capability Tiers

    Models at different positions in the industry trade off speed, cost, and depth. In practice, allocate them by task. Use fast models for lightweight completion and format conversion, and models with stronger reasoning for architecture design and hard debugging. Some cloud platforms offer intelligent development services that support multiple model tiers and context management. Developers should evaluate options against their own scenarios rather than rely on a single configuration.

    5. Conclusion

    Wishful programming redistributes the work of coding. Humans define problems, set constraints, and verify results. AI handles generation, completion, and trial and error. Developers who find AI exhausting often still use it with a full-outsourcing mindset. After adopting a workflow built on small wishes, upfront constraints, and a closed testing loop, AI can shift from an apprentice you must watch into a productive partner with stable output. Tools keep evolving, and the way we use them needs to evolve too.