trovex Compare Answers Glossary Setup star on GitHub

Updated

What is context rot?

Definition

Context rot is the quality drop a model suffers as its context window fills: with more tokens competing for attention, it loses track of earlier instructions and facts. More context is not always better — past a point, extra tokens add noise rather than signal.

It's the failure mode behind "the agent forgot what we decided ten steps ago." Dumping the whole repo into a long window doesn't prevent it — it causes it: the more candidate and stale text the agent carries, the harder the current, relevant fact is to attend to — measured work shows models retrieve information from the middle of a long context least reliably, and accuracy falls as the context lengthens (Liu et al., Lost in the Middle, TACL 2024). The fix is to load less and load current, not to buy a bigger window.

trovex works against rot at the source: it serves the one canonical doc that answers a query, at the section level, with a freshness marker, so the agent's window holds the current answer instead of a pile of competing copies — about 60% fewer tokens per lookup.

Keep the window current, not full.

One current answer per query, with a freshness marker, in about a minute.

uv tool install git+https://github.com/TsukumoHQ/trovex

Open source. No cloud, no API keys. Your docs never leave your machine.