Agentic AI systems are shipping faster than the failure modes are being documented. The most dangerous pattern right now is not hallucination or refusal. It is agents that start a task correctly and then quietly drift off-objective, producing confident, coherent, and completely wrong outputs by step eight of a twelve-step workflow.
The pattern
Call it goal dilution. An agent receives a clear instruction, begins executing, and accumulates intermediate results, tool outputs, and self-generated reasoning in its context. By the time it reaches the later steps, the original objective is statistically overwhelmed by everything that came after it. The model is not lying or hallucinating. It is doing exactly what transformers do: attending to what is statistically salient. And by step eight, that is the recent context, not the original prompt.
This is the core argument surfaced in "Agentic AI's real risk: losing the plot", and it matches what practitioners building on Claude and GPT are reporting in the wild.
Why now
Two things are colliding. First, context windows are large enough that agents can run long task chains without hitting hard limits, which means the failure is silent rather than a hard crash. Second, the tooling for agent orchestration has matured enough that teams are shipping multi-step workflows into production without the same scrutiny they would apply to a single-turn prompt.
A related signal: research into visual prompt artifacts shows that Claude and GPT will alter their code-generation strategy, specifically switching to recursive patterns, when a heart emoji appears next to a coding problem. This is a small example of a large truth: models are sensitive to surface-level features of the prompt in ways that compound unpredictably across long agentic chains.
How it works in practice
-
The drift mechanism. Each tool call appends output to the context. Each reasoning step adds tokens. The system prompt and original user goal shrink as a proportion of total context. Attention diffuses.
-
The compounding effect. A small misinterpretation at step three influences the output of step four, which influences step five. By the end, the agent is solving a subtly different problem than the one it was given.
-
The confidence trap. Agents do not signal uncertainty when they drift. They produce fluent, structured output. The failure is invisible until a human reviews the final result, or worse, until it ships.
-
The permission wall. Separately, Claude agents running in cloud environments hit hard constraints on GitHub automation tasks: OAuth scopes, rate limits, and API surface restrictions that the agent cannot reason its way around. Goal dilution and permission walls are different problems, but they share a root cause: agents are designed as if they operate in an ideal environment, and real environments are not ideal.
The trade-off
The obvious fix is to re-inject the original goal at every step, or to use a shorter context with aggressive summarization. Both work, but both cost tokens and add latency. Trim, a local proxy that compresses coding prompts before they reach the model, points at one direction: reduce the noise so the signal stays proportionally stronger. The trade-off is lossy compression. Trim and tools like it make a bet that the compressed prompt retains enough semantic content to be useful. For coding tasks with dense boilerplate, that bet is usually right. For nuanced multi-step reasoning, it is less safe.
The deeper trade-off is architectural. Agents designed with explicit goal checkpoints, where the system re-states the objective and asks the model to confirm alignment before proceeding, are more reliable but slower and more expensive. Agents without checkpoints are faster but drift. There is no free lunch here.
Where it goes next
The teams winning on prompt engineering for agents right now are treating the system prompt as a living document within the chain, not a static header. Concretely: they are appending a compressed restatement of the original goal at regular intervals, using structured output schemas to constrain each step to a narrow decision surface, and explicitly testing for drift by running evals that measure final output alignment against the original instruction, not just output quality in isolation.
The permission problem for cloud agents is a harder fix. It requires coordination with the platforms the agent is operating on, not just better prompting. Expect this to drive demand for agent-specific OAuth scopes and sandboxed execution environments over the next year.
Goal dilution is not a model bug. It is an architecture bug, and the fix lives in how you design the chain, not in which model you call.
Terms in this story
- LLM evals
- LLM evals are repeatable tests that run a model, prompt, or agent on a fixed set of inputs and score the outputs against stated criteria, so that a change can be measured instead of guessed at.
READY TO ASCEND
Get AI news that respects your time
The signal, distilled. Curated AI news and prompt-engineering insight. No noise.