Context Aging: What an Agent Forgets While It Is Still Running
Long-running agents don't fail when the window fills. They fail earlier — when what they observed forty calls ago is still in the context and no longer effective.
The context engine agents need to reason reliably over enterprise data — with principles that extend to personal-scale context too. Bringing the recommender-systems playbook to a problem the agent-memory world has not recognized as a recommendation problem.
I write here about agents, retrieval, and evaluation. If you are working on the same problems, get in touch.
Essays on retrieval, agent systems, and evaluation. I also co-write the infra + AI newsletter Bits & Neurons with Vivek Chandela.
Long-running agents don't fail when the window fills. They fail earlier — when what they observed forty calls ago is still in the context and no longer effective.
Deciding what an agent sees, out of everything it could see, under a hard budget, with position effects and no explicit feedback. Recommender systems have been solving exactly this for twenty years.
Before you can tell whether a change helped, you have to know how much your benchmark moves when nothing changes at all. Usually nobody has measured that.
A coding agent is not finished when its stream closes. It is finished when its processes are dead, its output is drained, and its workspace is durable — and the runtime can show evidence for all three.
An agent can find the right evidence and still lose the detail that matters before the final answer. Measuring the whole path instead of the last step.
Shipping long-running agents with retries, stops, and durable state.
New essays land in the RSS feed. I post short summaries on LinkedIn and X.
I'm a founding engineer at Pavo AI in Seattle, building the tribal knowledge layer for LLM agents. My day-to-day is a mix of staged agentic composition, conflict-as-knowledge resolution, and bridging the recommender-systems playbook to agent context. The essays above are the public half of that work — two series so far, on evidence-carrying systems and on context as a ranking problem — alongside research submissions to 2026 conferences and workshops.
Before Pavo, seven years at ShareChat scaling the recommender system from 1M to 200M users, then LLM-driven ranking and retrieval for code search at Sourcegraph (IC-5), and an undergrad & master's at IIT Kanpur in Mathematics and Scientific Computing.
I've built global engineering teams twice — at ShareChat and now the founding team at Pavo, spanning the US, London, and India — and have run 200+ hiring interviews in the process.
OSS projects and study forks. Everything on GitHub.
pipx install crewlore.
relay distill --llm compresses
past reviewer rejections into forward-looking lessons the next planner reads automatically.
Alpha (v0.2).
Published at WWW, RecSys, SIGIR, and CIKM. Full list on Google Scholar.
Keynotes, paper presentations, and conference service. Most entries link to a page with the slide deck embedded.
The fastest route is srijanskt@gmail.com. I read every DM on X and LinkedIn, and I'm happy to talk about applied research, retrieval and evaluation for agents, and production ML.