arXiv(opens in a new tab)cs.AIAug 2026Cited by 8 papers on PaperVantage

Manuscript Offprint

arXiv:2608.24358

The Handoff Tax: Continuing Non-Native Trajectories in LLM Agents

Roy Ganz, Mor Shpigel Nacson, Adi Kalyanpur, Ron Litman

Abstract

Coding agents perform long-running tasks spanning dozens of model calls, tool uses, and code edits. As these runs unfold, users face a practical cost–quality trade-off: escalating to a stronger model when a cheaper one struggles, or downshifting once the hard reasoning is complete. Each switch requires the receiver to continue a non-native trajectory produced by another model. We study how this handoff affects quality and cost, and how varying the trajectory information inherited by the receiver changes the outcome. Using pairs of low-cost, low-capability (LC) and high-cost, high-capability (HC) models from the Claude and GPT families, we vary handoff direction, timing, and interface, comparing full-trajectory transfer, compaction, and trajectory removal while preserving the repository state. Across both model families, full-trajectory escalation recovers less than half of the LC-to-HC quality gap while incurring a substantial cost premium. We term this cost–quality penalty the handoff tax. By contrast, downshift offers a favorable cost–quality point. Interestingly, the preferred interface also reverses with direction: reducing LC-model trajectory information improves escalation quality, whereas removing the HC-model trajectory reduces downshift quality.

1 Introduction

Coding agents now routinely chain dozens to hundreds of model calls on a single task, making model choice an economic decision as much as a technical one (Yao et al., 2023; Schick et al., 2023; Qin et al., 2023; Patil et al., 2023; Wang et al., 2024, 2025; Xu et al., 2025; Hitzig et al., 2026). Available models span distinct cost–quality profiles: higher-capability models resolve more issues but are substantially more expensive, whereas cheaper models offer lower cost at reduced capability. Users must

Figure

Figure 1: The Handoff Tax. (a) Users escalate to a high cost model (HC) when the cheaper model (LC) struggles, or downshift to a cheaper one once hard reasoning appears complete. (b) At handoff, the receiver inherits another model's trajectory. We ask how this affects cost and quality, and how varying the transferred trajectory information shapes the effect.

often choose among these models before knowing what level of capability the task actually requires. Model switching offers a natural response and is already supported directly by coding-agent products. Users may start with a low-capability model and escalate to a stronger one when the agent struggles; conversely, once the hard reasoning appears complete, they may downshift to a cheaper model to finish the task at lower cost. Throughout, LC and HC denote the lower-cost/lower-capability and higher-cost/higher-capability models within a family; in our experiments, these correspond to Claude and GPT model pairs. Despite being exposed in

∗^{*} Equal contribution.

†^{\dagger} Correspondence: royganz@amazon.com.

several coding-agent interfaces (e.g., /model commands in Kiro, Codex, and Claude Code), the cost-quality consequences of capability handoffs in long-horizon coding agents remain poorly understood.

A mid-task handoff places a model in an unusual position: it must continue a long trajectory that another model produced. Unlike ordinary generation, where models extend their own trajectory—their own phrasing, hypotheses, tool-use idioms, and dead ends—a handoff requires them to inherit a trajectory they did not create. This inherited context may contain reasoning the receiver would not have generated and mistakes it would not have made. Whether it helps or hurts may depend on direction: an HC model might be anchored by LC's wrong turns, while an LC model might coast on HC's groundwork—or flounder when extending reasoning beyond its own ability.

We therefore ask two questions: whether and how inheriting a non-native trajectory changes the cost–quality trade-off, and how the information transferred at the handoff shapes that effect. We study these questions systematically on SWE-bench Verified (Jimenez et al., 2024) along three axes: the direction of the switch (LC→HC and HC→LC), its timing (swept across difficulty-calibrated percentiles), and the interface, which determines what trajectory information the receiver inherits. The standard raw handoff passes the full trajectory verbatim. Alternatively, the trajectory can be compacted into a summary written by either the outgoing or incoming model, or dropped while preserving the code edits already written to disk (Traj-drop). Fig. 2 illustrates these interfaces.

Findings and contributions. We present, to our knowledge, the first systematic study of mid-trajectory model capability handoffs in long-horizon coding agents. Across two model families, both handoff directions, seven switch points, and four interfaces, our primary study comprises 58 configurations per family, 58,000 runs, and 36 billion tokens processed overall. Three main findings emerge from the coding-agent study:

  1. Raw escalation recovers limited quality and can be dominated by restarting with HC. Raw continuation, the default escalation interface, recovers less than half of HC's quality advantage in both model families. Most strikingly, for Claude, even after paying for the LC prefix, abandoning the attempt and restarting with HC is cheaper and more accurate than Raw continuation.

  2. Continuing another model's trajectory has direction-dependent value. Unlike escalation, Raw downshift provides a favorable cost-quality trade-off: LC receivers retain substantial quality gains over LC while remaining cheaper than HC. The balance differs across families: Claude retains most of LC's cost advantage, whereas GPT retains most of HC's quality advantage.

  3. Handoff interfaces reveal what trajectory information helps the receiver. In escalation, reducing LC trajectory information improves the trade-off: compaction favors savings, whereas trajectory removal favors quality recovery. In downshift, removing the HC trajectory while preserving its working-tree edits reduces quality across both model families. This reveals a directional duality: HC trajectories guide LC receivers, whereas LC trajectories burden HC receivers.

References (41)