Agent Anti-Patterns · ~6 min
"Be efficient. Don't waste tokens." Reasonable advice for a person. For a long-horizon agent, it's an instruction to do less.
Add "preserve tokens," "avoid waste," or "be efficient" to a system prompt and the intent is cost savings. The effect is reduced output quality — because you've handed the agent a second objective.
Cursor hit this developing their Codex model harness. GPT-5-Codex, instructed to "preserve tokens and not be wasteful," would sometimes stop mid-task with:
The model treated token conservation as a goal in its own right. The instruction didn't change how it worked — it changed whether it worked on substantial problems at all.
Efficiency instructions install a second objective: minimise resource use. When that competes with the task, the agent resolves the conflict by doing less. And because system-level instructions outrank user-level requests, a system-prompt "preserve tokens" takes precedence over the user's task — the agent isn't being lazy, it's faithfully following a conflicting directive.
Reframe constraints as quality targets, not resource limits. The swap is mechanical:
Where you genuinely need limits, make them mechanical (require absolute filepaths instead of "don't use relative paths") or use completion criteria — "done" means quality met, not budget hit.
The failure is specific to long-horizon, tool-using tasks where the agent chooses whether to keep going — coding and file-system work. Brevity framing is fine for chat, summarisation, and single-turn work with no "less work" to retreat into. And a quantified budget differs from vague minimisation: the Token-Budget-Aware Reasoning framework cut tokens 68% with under 5% accuracy loss by inserting an estimated budget. The backfire is a property of vague framing, not of efficiency goals.
Retrieval practice — recall, don't peek
Question 1"Don't waste tokens" makes a long-horizon agent…
Question 2The mechanism is that system instructions…
Question 3The recommended reframing replaces "be efficient" with…
Question 4Brevity framing stays safe for…
Question 5 · spaced recall from Lesson 05Objective drift is best resisted by…