Manuscript Offprint

arXiv:2610.21088

Probe-and-Resume: When and How to Evaluate Agent Execution

Jiakai Xu, Tiancheng Ge, Tujie Guan, Yusheng Li, Rohan Timmaraju, Eugene Wu, Kostis Kaffes

ABSTRACT

Test-time search can improve agent performance by exploring alternative actions and using a critic to select promising branches. We study this approach in terminal-based computer-use environments, which expose only a partial view of a large underlying state, and find that the Monte Carlo tree search (MCTS) configuration we evaluate does not significantly improve task success. We identify two sources of poor critic performance: the agent's observations omit environment state needed for evaluation, and intermediate states offer limited evidence of whether a trajectory will succeed. At intermediate states, critics rank continuations only modestly better than chance, and environment access improves this little. We study when to invoke a critic and what access to give it to evaluate a node. Our findings motivate a policy that invokes the critic only at nodes the agent believes are final, rather than during partial progress. Further, the policy gives the critic read, write, and execute access to a fork of the computer's current and initial state, allowing it to probe and perform potentially destructive actions to surface any hidden state the trajectory omits. We call the resulting design Probe-and-Resume: when the agent claims to be done, the critic probes a fork of its state, and a rejected agent resumes where it stopped. On Terminal-Bench 2.1, this raises success by 8.4 percentage points over MCTS with conventional critics, and approaches the success rate of the Codex CLI agent with the same underlying model at less than half its cost.

1 INTRODUCTION

Terminal agents accomplish tasks by changing a computer’s state: editing files, installing packages, running programs, and configuring services. These tasks often require long sequences of actions, and a mistaken command can destroy useful state or send subsequent work down an unsuccessful path. Recently developed branchable execution environments (Xu et al., 2025; Dong et al., 2026; Wu et al., 2026) allow an agent to snapshot a running environment, restore earlier states, and explore alternatives in isolated forks. This makes test-time search practical for agents.

Unfortunately, branching alone does not tell an agent which execution trajectories to pursue. Search also needs an evaluation signal: which states are promising, which require further work, and which satisfy the task? In most automation settings, the task’s ground-truth verifier is unavailable during execution, and search must rely on a critic to evaluate candidate states to guide which executions to continue and when the task is done.

This setting places importance on critic design, namely: when should the critic evaluate an execution, and what access does it need to produce a useful judgment? An intermediate state asks the critic to assess its promise and whether continuing is likely to succeed, whereas a state the actor declares is done requires the critic to assess whether the task's requirements have been met. Both are challenging in terminal environments because the actor typically only records its reasoning, the tool calls, and the outputs it observed. In contrast, the search state also includes that of the computer, which encapsulates

∗^{*}Equal contribution.

Figure

Figure

Figure 1: Left: tree search scores partial states with a critic and submits a leaf; Probe-and-Resume calls the critic only when the actor claims to be done, lets it probe a fork of that state, and resumes the actor on a rejection. Right: accuracy against the cost of running all of Terminal-Bench 2.1 (89 tasks, five trials each); the shape is the agent harness. The GPT-5.6 Luna squares are our three configurations (no search, MCTS, Probe-and-Resume), priced at the AWS Bedrock rate like GPT-5.6 Luna + Codex; the other points and their costs are from Harbor Hub (Appendix C).

files, running processes, memory, installed packages, and databases, which may be changing as side-effects of agent actions or concurrent processes, and are not visible to the actor or the critic.

We investigate these questions on Terminal-Bench 2.1 (Marten et al., 2026). We find that merely making branching available does not improve task success because the actor rarely uses snapshot and restore capabilities, and a Monte Carlo tree search (MCTS) search policy guided by a trajectory-only critic produces little improvement. One reason for the latter is that the critics we test are poor value estimators of intermediate states, and access to a fork of the environment helps little. However, when the actor signals completion, execute access to a fork of the environment substantially improves their ability to distinguish successful from unsuccessful outcomes. These findings motivate concentrating critic computation at candidate final states, where it can test the actor's claim against the environment.

Our main observation is that evaluating a terminal task is itself a terminal task. Thus, neither the interaction history alone nor simply inspecting the environment is always sufficient to assess that a script, program, configuration change, or service is correct. The critic must obtain evidence by running programs and constructing checks. Branchable environments make such evaluation, which may modify or destroy state, possible by using a disposable fork. A fork of the initial environment additionally provides a reference for requirements about what must be preserved or changed.

We therefore design Probe-and-Resume (Figure 1(left)): when the actor signals completion, the critic assesses the candidate with terminal access to forks of that state and of the initial environment. If it accepts, the candidate is submitted; otherwise the actor receives its findings and resumes from the unmodified state. Unlike MCTS, the critic judges completions, not intermediate states.

On all 89 tasks of Terminal-Bench 2.1, with five trials per task and GPT-5.6 Luna as the actor and the basic Terminus-2 harness, Probe-and-Resume increases success from 63.4% at the actor's first completion claim to 72.4% at submission, expanding the accuracy–cost Pareto frontier without the need for new models nor new harnesses (Figure 1(right)). The resulting accuracy is higher than Opus 4.7 using Claude Code, and over an order of magnitude cheaper. On SWE-bench Pro, the gain is similar. Together, these results highlight the unique characteristics of critics in computer environment tasks, and how critics can turn branchable execution into useful feedback for terminal agents when ground-truth verification is unavailable.

References (68)