🚀NEW LABGetting Started with Claude AgentsStart lab
← All papers  /  Oct 15, 2026
Agents · Memory

Whose turn is it? Context-guided model routing for stateful agents

First page
Whose turn is it? Context-guided model routing for stateful agents
The curator’s take

Anikesh Parashar, Avik Dutta, Sumit Gulwani and colleagues (Microsoft) study zero-shot, cost-aware model routing at user-turn boundaries for stateful spreadsheet agents on multi-turn SheetCopilot and SpreadsheetBench 2.

Ask this paper

Key points
01

History helps routing. At a matched offloading rate, a router that sees session history passes 3.3 points more tasks than one that sees only the current request, with gains for every model pair, and stays within one point of always using the expensive model.

02

Cost depends on dynamics. The cheaper model's per-task cost advantage shrinks from 6.8x to 3.2x on longer sessions, because cost depends on how execution unfolds as well as token prices.

03

Cache asymmetry. A closed-form analysis shows downward switches (expensive to cheap) recover their prompt-cache cost within two LLM calls, while upward switches do not break even under the tested conditions.

04

What does not work. Self-assessed escalation and de-escalation and random switching do not match history-aware routing.

05

Pair choice. When the cheap model is as accurate as the expensive one, using it alone dominates every routed policy for that pair.

Abstract

Model routing can reduce the cost of LLM applications by assigning simpler requests to cheaper models without sacrificing the quality of the response. However, most routers treat requests as independent. Stateful agents do not operate under this assumption: a user turn may require multiple model and tool calls, its difficulty depends on the state produced by earlier turns, and changing models can sacrifice reuse of the conversational prompt cache. We study zero-shot, cost-aware routing at the user-turn boundary, systematically varying the routing rule, access to session history, candidate models that differ in size, reasoning effort, or model provider, and prompt-cache behavior. We evaluate on multi-turn versions of SheetCopilot and SpreadsheetBench 2, where persistent workbooks and cross-turn dependencies make isolated routing decisions especially brittle. At a matched offloading rate, giving the router session history improves task pass rate over the same router without history, with gains for every model pair; history-aware routing remains within one point of always using the expensive model. We also found that cost depends on execution dynamics rather than token prices alone: the cheaper model's per-task cost advantage narrows from 6.8x to 3.2x on longer sessions. A closed form cache analysis further shows that downward switches (expensive to cheap) recover their cache cost within two LLM calls, whereas upward switches do not break even under the evaluated conditions. Together, these results show that agent routing is a sequential decision problem: effective policies must account for what happened earlier in the session and for the asymmetric cost of switching models.

Every Monday
Get next week’s papers.
Subscribe on Substack