Curate Always-Loaded Context Like an Assortment: One More Rule Can Make the Whole File Worse

Caps a re-billed-every-turn prefix and recovers instruction compliance; source proves an optimal file-size bound independent of how many candidate rules exist (validate the quality effect on your own traffic) Advanced 4 min read

Teams grow their always-loaded instruction file (system prompt, CLAUDE.md-style rules) by reflex: whenever an agent slips, append one more rule. On a long session that whole file sits in the cached prefix and is re-read on every single turn, and past a point each extra rule measurably lowers the model's compliance with the others - so a rule with positive standalone value can be net-negative. Treat the file as a capacity-constrained assortment: there is a provable cap on its optimal size, adding a rule needs to clear an evidence threshold, and you cannot safely delete 'ignored' rules because the feedback is censored.

๐Ÿ”’ Pro tip ยท Advanced

Unlock this tip โ€” and 140 more

This is one of 141 advanced, fact-checked tactics reserved for Pro. Get the full 163-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.