X-01Anatomy of a Context Window
Everything the model will ever know about this moment shares one finite window.
The model sees exactly one thing: the context window. Context engineering is deciding what earns a place in that finite budget — and memory is everything you keep outside it, plus the machinery for bringing the right pieces back.
Everything the model will ever know about this moment shares one finite window.
When the window fills, compress the trajectory into a summary plus explicitly preserved state.
Cast a wide net with similarity search, then rerank hard, so only genuinely relevant content spends context budget.
Every candidate item has a cost; toggle what goes in and watch the budget respond.
The window fills mid-task; without a plan, the harness truncates — usually the oldest, often the most important.
Stale errors, dead ends and duplicates dilute attention long before the window is full.
Keep the last N turns verbatim; summarize everything older into a rolling digest.
Working, episodic, semantic, procedural — four stores with different lifetimes, indexes, and write rules.
What earns a memory write — and what is allowed to fade.
How task state is written down decides whether it survives compaction, restarts, and model swaps.