A documented failure mode of LLMs: as the number of distinct directives in a prompt grows, the model’s adherence to each one drops sharply. Even GPT-4 and Claude struggle when asked to satisfy many requirements simultaneously. Coined and benchmarked in research summarised at maxpool.dev; the phenomenon is the empirical backbone for “don’t write one giant prompt.”
Key
If you give the agent ten bullet points of detailed rules, it will obey the first few and start overlooking the rest. The cost of an extra instruction is not zero — it’s negative for every other instruction in the prompt.
This is one of the load-bearing reasons every spec-writing and harness-design framework eventually converges on modularity: not because modular code is prettier, but because the model literally can’t follow eleven things at once.
What the research shows
Studies measuring instruction-following on multi-constraint prompts find:
- Strong frontier models (GPT-4-class, Claude-class) all show non-trivial degradation as constraint count rises.
- The first instructions in a list are followed more reliably than later ones (a position bias).
- Constraints that conflict, even subtly, are arbitrated by recency/specificity heuristics rather than rule reasoning — see Writing Conflict-Free Instructions for the four biases involved.
- Decomposing a complex instruction set into sequential, simple instructions restores adherence.
Combined effect: a 10-rule prompt is not 10× a 1-rule prompt’s reliability problem — it’s much worse than linear.
Why it happens
Two compounding mechanisms:
- Attention budget. As Context Engineering documents, the model has a finite “attention budget” across its context window; more tokens compete for a fixed amount of attention, and individual instructions get less weight as the field gets crowded.
- No rule engine. LLMs don’t have a deterministic rule evaluator. Rules are followed probabilistically, weighted by surface features (recency, specificity, repetition, position — see Writing Conflict-Free Instructions). When rules pile up, those features start overriding semantic content.
The model is not “lazy” or “ignoring you” in any agentic sense. It’s that the architecture has no mechanism to enforce N constraints simultaneously; it has a mechanism to weight them, and the weighting degrades with N.
How to avoid it
The standard playbook from Writing Specs for AI Coding Agents and the broader Context Engineering literature:
| Technique | What it does |
|---|---|
| Decompose into sequential prompts | Solve one sub-problem; verify; move on. Resets the constraint count per turn. |
| Sub-agents / skills with their own context | Each subagent sees only the rules relevant to its job — see Cursor Planner Worker Judge, Multi-Agent Systems |
| Hierarchical summaries | Keep an extended TOC in context; pull full sections only when needed (just-in-time retrieval) |
| Three-tier boundaries | Always / Ask first / Never tiers cluster rules by salience instead of dumping them in one list |
| Examples instead of rules | One worked example often replaces three abstract rules; concrete patterns get higher attention weight |
| Explicit precedence | If two rules conflict, say which wins — see Writing Conflict-Free Instructions |
| Refresh sessions on major task changes | ”Start fresh” purges accumulated constraints from prior tasks |
The cross-cutting consequence
Almost every “best practice” you’ll read about prompting and harness design is downstream of the curse:
- Long-Running Agents - Initializer + Coding Pattern splits work into many short sessions precisely because a single session accumulates too many active constraints.
- Spec-Driven Development’s phase gating means each phase ships with the rules relevant to that phase, not all rules at once.
- Brain Hands Session Split + session reset is “swap the brain when the rule pile gets too tall.”
- Self-Extending Agents moves rules into tools (deterministic) rather than prompts (probabilistic).
- Writing Conflict-Free Instructions is the document that explains which rule wins when many compete; the curse is why you need the explanation.
Note
The curse explains why “more context” is not the same as “better context.” A 1M-token window does not let you put 1,000 instructions in the prompt with 1,000× the reliability. It lets you put 1,000 instructions in the prompt and lose adherence to each of them.
Practical implications for spec-writing
When you find yourself writing rule #11 in a single section, that’s the signal:
- Split the document into subsections by phase or component.
- Move rule #11 to the subsection where it actually applies, not the top-level constraints.
- Convert “don’t do X” rules into the Never tier; converge low-salience rules into examples.
- If rule #11 is genuinely cross-cutting and high-priority, repeat it in each context that needs it (repetition is one of the biases that does increase weight).
The discipline is not to write fewer rules. It’s to never have N rules in scope simultaneously.
Related
- Writing Specs for AI Coding Agents — the spec-side response
- Writing Conflict-Free Instructions — what happens when rules collide; complementary failure mode
- Context Engineering — the attention budget framing
- AGENTS.md Six Core Areas — three-tier boundaries as a structural answer
- Spec-Driven Development — phase gating as a structural answer
- Multi-Agent Systems / Cursor Planner Worker Judge — sub-agents as a structural answer
- Self-Extending Agents — moving rules into deterministic tools
Sources
- Writing Effective Specs for AI Coding Agents — Osmani’s summary of the curse-of-instructions research and its operational implications for spec-writing
- Personal Agent Operating Rules — a case where the rulebook is 85+ items; mitigated by a Constitution of principles, an index-first load, and an explicit precedence order, but adherence at that size is untested