From Startup Fortune · · 3m
How to Manage LLM Context Window Budget Before Long Prompts Hurt Quality
Set a 30-50% token ceiling for LLMs to avoid quality drops from long prompts.
In brief
Set a 30-50% token ceiling for LLMs to avoid quality drops from long prompts. Chroma's study shows accuracy falls as input grows even on simple tasks, so set token budgets below advertised limits to prevent context rot. Originally reported by Startup Fortune.
Quick answers
- What is a context window ceiling?
- A 1M-token window is a ceiling, not a working size. Set the budget yourself, or the model will set it for you by quietly dropping things.
- What is the key takeaway from How to Manage LLM Context Window Budget Before Long Prompts Hurt…?
- Chroma's study shows accuracy falls as input grows even on simple tasks, so set token budgets below advertised limits to prevent context rot.
What is a context window ceiling?

A 1M-token window is a ceiling, not a working size. Set the budget yourself, or the model will set it for you by quietly dropping things.
Chroma's Context Rot study
Chroma tested 18 models, including GPT-4.1, Claude Opus 4 and Gemini 2.5, and found accuracy fell as input grew even on simple tasks.
Stanford's Lost in the Middle study
Stanford's Lost in the Middle study found models use facts at the start and end of a prompt better than facts buried in the center.
Four buckets for token budget
A workable budget splits the window into four fixed lines: system prompt, retrieved documents, conversation history and an output reserve.
Start with 30-50% ceiling
Treat 30 to 50 percent of the advertised window as a starting ceiling, then move it up or down only after testing your own tasks.
Count tokens per bucket
Count tokens per bucket on every request and alert when any bucket passes 90 percent of its cap.
System prompt bucket
The system prompt is the bucket that grows without anyone deciding to grow it.Every incident adds a rule, nobody deletes one, and a year later you have 9,000 tokens of instructions that contradict each other.
Retrieved documents bucket
Retrieved documents is the biggest line and the one with the most waste.The cap is a ceiling and not a target.
Conversation history bucket
Conversation history is where context rot usually starts, because history only ever grows. Keep the last handful of turns word for word, and replace everything older with a running summary.
Output reserve bucket
Output tokens count against the window, which people forget until a long answer gets cut off mid-sentence. A 10,000 token reserve can vanish into reasoning before the visible answer starts.
When a bucket overflows
It will overflow. Decide the order of cuts now, not at 2 a.m. during an outage. History goes first, through summarization. The tail of the retrieved documents goes second.
Find your own ceiling
Published numbers tell you where to look.They can't tell you where your workload breaks.Take 50 real tasks with known good answers, and run them with the same relevant material padded out with realistic filler.
What it means
Chroma's study shows accuracy falls as input grows even on simple tasks, so set token budgets below advertised limits to prevent context rot.
Read the TL;DR — this story on one card.






