TL;DR: Accuracy falls with the length and noise of the context, not with how close it is to the limit, so a quarter-full window can already be failing. Find out what the 55k is made of (usually stale tool results, near-duplicate records and logs), then reduce it with the least lossy tools: cap results at the source, clear used results, keep current facts in notes, isolate exploration in subagents, and measure where success starts to drop so the thresholds sit below it.
How to approach it
Ask what "falls apart" looks like in traces (repeated work, forgotten instructions, confusing two records) and what the context is made of at the point it starts. Then state the core idea before proposing fixes: the effective budget is set by quality, not by the advertised window.
A strong answer
Why it happens at 55k. Three effects grow with context length long before any hard limit: attention spreads over more tokens, look-alike facts compete with the right one, and facts in the middle of a long input are used less reliably ("Lost in the Middle", Liu et al., 2023). Long-context benchmarks such as RULER have found effective lengths well short of advertised windows. An agent's context is mostly tool output, which is exactly the noisy, repetitive kind.
Find what the 55k is. Break the context at the failure point into parts:
system prompt 3,000
tool definitions 12,000
conversation 9,000
tool results 31,000 ← 22 results; 17 already used and not needed again
notes 0
total 55,000
The window is just over a quarter full, but more than half of it is results the agent has finished with, including two versions of the same order record from turn 3 and turn 19.
Reduce it, cheapest first.
- Cap at the source. Tools return trimmed, paginated results; no single result over a few thousand tokens.
- Clear used results. Replace results the agent has acted on with placeholders that keep the call and say how to refetch. Here that removes about 24,000 tokens.
- Carry current facts in notes. A short notes block holds the current order state, decisions and open tasks, so the stale turn-3 record is not the agent's only source.
- Isolate exploration. If the agent reads many files or pages to find one thing, have a subagent do the reading and return findings.
- Compact the conversation rarely, at a later threshold, under a contract of what must survive.
Set thresholds from measurement. Pad your own tasks with realistic noise from traces at several sizes, run each several times, and find where success starts to fall. Put the clearing threshold below that point. For this agent it might be "clear at 40k", far below any window limit.
What interviewers probe next
"Why not just move to a 1M-token model?" The noise grows with the window, quality still falls with length, and every kept token is reread each turn at higher cost. It postpones the hard limit and fixes nothing.
"How would you know the change worked?" The same padded-context experiment before and after, plus production metrics: repeated identical tool calls per run, task success on long runs, tokens per successful task.
"The agent forgets an instruction from the first message. Same cause?" Yes, and the fix is to lift lasting constraints out of the conversation into the run's fixed state, rendered at the edges of every request.
What if?
What if · interview follow-ups
Hold your answer as the constraints change
Your agent degrades after 55k tokens of a 200k window. Most of the context is old tool results.
Start here
What if the agent does need to reread an old file later?
What did clearing leave behind?
The placeholder keeps the call and says how to fetch the file again, so the agent can reread exactly what it needs when it needs it. Clearing loses the bulk, not the ability to recover it.
Carry it forwardClear the bulk, keep the record.
Weak answerDeleting calls and results entirely, so the agent forgets it ever read the file.
Constraint changes
What if clearing makes the prompt cache miss?
How often does clearing run?
Clearing changes earlier parts of the prompt, so the first request after it misses. Run it in batches at a threshold, not every turn, and the run keeps long cached stretches between reductions.
Carry it forwardBatch context reductions to protect the cache.
Weak answerTrimming a little every turn.
Constraint changes
What if the failures are confusing two customers' records, not forgetting?
Is this length or distractors?
Distractors: similar records side by side. Remove superseded versions, label records clearly in results, and keep the active customer and order in notes so the current one is unambiguous.
Carry it forwardLook-alike facts are worse than irrelevant ones.
Weak answerAdding a prompt line telling the model to be careful with customer ids.
Now defend it
What is your one-line diagnosis and fix?
The context is noisy, not full: break it into parts, cap and clear tool results, carry current facts in notes, isolate exploration, and set thresholds from a padded-context experiment on your own tasks.
How it's scored
Weak: Proposes a larger context window, or a prompt instruction to "pay attention to earlier information".
Hire: Explains that quality falls with length and noise, identifies tool results as the bulk, and clears or compacts them.
Strong Hire: Breaks the context into parts at the failure point, applies reductions cheapest first (cap, clear, notes, subagents, rare compaction), sets thresholds from a realistic padded-context experiment with repeated runs, and protects the cache by batching reductions.
Common mistakes
- Assuming a context is safe until it is nearly full.
- Testing with random filler text, which hides the effect of look-alike facts.
- Compacting the conversation first, the lossiest step, when clearing tool results would have been enough.
- Leaving lasting instructions in the first user message where they end up mid-context.