Why AI Coding Agents Seem to Get Dumber: Stability Challenges and Model Selection Practices
AI models are not constant in quality, and the switching cost of coding agents is driven mostly by context rebuilding rather than brand loyalty. This article breaks down capability degradation into three independent layers—model instruction following and style drift, over-agreeable alignment, and the agent harness that sets the performance floor—then proposes a five-dimension evaluation framework, layered model routing by task type, and engineering practices such as an abstraction gateway, task-tiered queues, caching, observability, and elastic resources to keep delivery quality stable while controlling per-task cost.
1. The Symptom: Models Getting “Dumber” Is an Observable Engineering Problem
For a while now, developers have been discussing the same experience in community threads: a coding assistant that used to work smoothly suddenly stops understanding plain language. Each individual word is familiar, but the combination does not read coherently. When pressed for technical detail, it simply agrees instead of pointing out flaws in the proposed approach. On complex tasks it starts dropping context halfway through, and the rework rate climbs noticeably. This has produced an odd pattern of behavior: while the model performs well, users watch their quota refresh every day; as soon as quality slips, users migrate their project directory to another agent at almost zero cost.
Two things follow from this. First, model capability fluctuates; it is not a constant. Second, user stickiness for agent products is very low, and switching cost is determined mainly by the cost of rebuilding context, not by brand. Understanding both points is the prerequisite for every selection and cost-reduction strategy that follows.
2. Root Causes: Which Layer Does the Degradation Happen In
Broken apart, “getting dumber” has at least three mutually independent causes. Discussing them together leads to wrong conclusions.
2.1 Model Layer: Instruction Following and Style Drift
For the same semantic task, the difference between models usually lies not in how much they know but in whether the output reads like something a person wrote. A useful comparison uses one identical prompt: a friend has been laid off, drank too much, and sent a message saying “am I just useless?”—ask the model to draft a reply. A high-quality answer first judges how close the relationship is, then offers two or three versions in different tones. A poor answer is grammatically correct, but no amount of revision removes a residual template flavor. Differences of this kind belong to style and pragmatic capability, and prompts alone cannot fully close the gap.
2.2 Alignment Layer: Decision Risk from Over-Agreement
“It agrees with everything you say” is a side effect of the alignment strategy, not a bug. When a model is trained to prioritize immediate user satisfaction, it tends to soften pushback. That has limited impact on copywriting, but it is dangerous for high-cost decisions such as architecture selection and capacity planning. The engineering response is not to swap models but to make dissent an explicit part of the workflow.
2.3 Engineering Layer: The Harness Sets the Floor
The same model wrapped in different agent harnesses can produce output a full tier apart. A harness covers at least four things: context management, tool invocation and permissions, failure retry and rollback, and result verification. What makes local-execution coding agents hard to build is not generation but the stability of these four things. A crude harness makes even a strong model look “careless,” “forgetful about requirements,” or prone to “breaking files.”
Illustrative context-compaction logic typically looks like this in engineering practice:
def build_context(history, budget=8000):# 1) Never trimmed: task goal and hard constraintspinned = [h for h in history if h.role == "goal"]# 2) Preferentially kept: the latest runnable result and errorrecent = [h for h in history if h.kind in ("stdout", "error")][-2:]# 3) Summarized: early long conversations folded into key pointssummary = summarize([h for h in history if h not in pinned + recent])msgs = pinned + [{"role": "system", "content": summary}] + recent# 4) Over budget: drop summary detail first, never constraintsreturn trim(msgs, budget)
What matters here is not the API but the policy: constraints are never trimmed, error messages are kept first, and history is folded into key points. Miss any one of them and long tasks degrade into “it forgot what was said earlier.”
3. Evaluation Framework: Turning “Usable” into Measurable Metrics
Do not switch tools on gut feeling. Run a small-sample evaluation across five dimensions, with 10 real tasks from your own team for each:
- Instruction following: whether output strictly respects format, length, and language requirements;
- Factual consistency: whether it invents nonexistent interfaces and parameters;
- Long-horizon stability: whether constraints are lost after 20 or more turns;
- Tool execution success rate: the closed-loop ratio for reading and writing files, running tests, and rolling back;
- Cost per task: quota consumed and manual rework time per completed task.
Fix the same task set and the same repository snapshot for every run, so model variance is not mistaken for tool differences.
4. Scenario-Based Selection: Do Not Use One Model for Everything
The most valuable judgment in the original discussion is to assign models by the work at hand. Generalized, that is layered routing:
- High-creativity tasks (copy, naming, first drafts of proposals): pick a model with strong pragmatic ability, where switching yields the largest gain;
- High-certainty transactions (filling forms, buying servers, entering domain and visa information): pick a cost-effective lightweight tier, since fields are fixed and verifiable;
- High-cost decisions (architecture, capacity, data migration): do not let the model simply go along with you; require it to list three objections and failure modes first;
- Long-horizon refactoring (cross-file changes): focus on the harness’s context and rollback capability rather than model rankings.
The matching engineering constraint is a human in the loop: any write operation produces a plan and a diff before execution, and tests plus static checks act as mandatory gates, with rollback on failure.
5. Cost and Stability: Confining Variance Inside the Process
- Abstract interface layer: wrap model calls in a unified gateway, so switching providers changes configuration only and business code stays untouched;
- Task-tiered queues: light tasks go to the low-cost tier, heavy tasks queue for the high-capability tier;
- Caching and reuse: prompts with identical prefixes hit the cache, reducing duplicate billing;
- Observability: use logging services and monitoring alerts to record success rate, rework rate, and cost per task, reviewed weekly;
- Elastic resources: temporary scale-out on a container platform for burst batch jobs, released as soon as the jobs finish, avoiding idle annual commitments.
If an organization already uses Baidu AI Cloud, the gateway, cache, logging, and elastic resources above can map to the general categories of object storage, message queues, container platform, and monitoring and alerting, forming an engineering foundation decoupled from any specific model.
6. Conclusion
Models getting “dumber” is the normal state; the harness and the process are the controllable variables. Moving selection from brand preference to metric-based evaluation, moving usage from a single model to layered routing, and moving stability from hope to gates and rollback keeps delivery quality intact through periods of capability fluctuation while pushing cost per task into a reasonable range.
