Good judgment, bad advice: a decision-model controller raises agent cost without improving success rateGood Judgment, Bad Advice: Decision-Model Controllers Raise Agent Cost Without Improving Success
Relative to no controller, Jev 1.13 gives Sonnet 5.5 a geometric mean cost ratio of 1.19 on the 21 held-out tasks, with the same pass rate of 73.0%.
- The cost of terminal agents comes mainly from the reasoning model, yet the scaffold hands when to stop, verify or change approach to a cheaper model. The authors want to test: consulting Jev 1.13 only at deterministic decision points, can Claude Sonnet 5.5 be made cheaper without getting worse.
- One agent loop is fixed and only the controller is changed: no controller, a deterministic rule, Claude Haiku 5.5, Jev 1.13, and a placebo sampled according to Jev's development-period choice frequencies. Trigger points pose a progress or finish question, and the choice, after a guard, appends a fixed suggestion or ends the run.
- 21 held-out tasks, 63 per arm. Jev's geometric-mean cost ratio to no controller is 1.19 (95% CI 1.02–1.36), with pass rate also 73.0%. Jev's completion-request AUROC is 0.78, its mean completion probability 0.50, while 87% of these runs had passed. No controller chose to abandon.
- The authors note that the held-out set has 21 tasks and the pass-rate interval is about ±11–13 percentage points, that only one reasoning model and Jev 1.13 are studied, and that open-weight reproduction was not run. The placebo distribution comes from 8 progress and 23 completion decisions, with abandon probability 0. Offline labels use trial outcomes rather than counterfactual outcomes.
- Evaluated models
- Claude Sonnet 5.5 (anthropic/claude-sonnet-5.5)Jev 1.13 (typesafe/jev-1.13)
- Benchmarks
- Terminal-Bench 2.1
- Metrics
- 通过率USD/attempt成本几何平均比AUROCECE
In 315 trials across 21 held-out tasks on Terminal-Bench 2.1, the paper connected the Jev 1.13 decision model to a Claude Sonnet 5.5 terminal agent and found that cost per attempt increased by 19% while the pass rate remained 73.0%. The study fixed the same agent loop and replaced only the controller, comparing no controller, a deterministic rule, a small LLM, Jev, and a placebo. Jev was cheaper than the small LLM controller (ratio 0.81) but 22% more expensive than the placebo. In offline evaluation, Jev ranked completed requests better (AUROC 0.78, rule 0.62, small LLM 0.60), but was poorly calibrated: its mean probability that a run would complete was 0.50, whereas 87% of runs actually passed, causing it to require the agent to verify work that was already correct; no controller chose to abandon a run.
Paper analysis
What problem does this paper attempt to solve?
The authors aim to test whether the cheap typed decision model Jev 1.13 can reduce terminal agent cost without reducing pass rate.
Consulting Jev 1.13 only at deterministic decision points: can it reduce the cost of a Claude Sonnet 5.5 terminal agent without lowering the pass rate?
- Setting: Terminal agents solve problems through long loops between a reasoning model and a shell, and cost is mainly determined by the reasoning model; the scaffold must also decide when to stop, check, or change approach. The authors consider delegating such small decisions to a typed decision model that returns options and probabilities and costs only a small fraction of the reasoning model a natural way to make control smarter and cheaper.
- Gap: Evaluations of judgment models mostly test only whether the judgment contains information about how the run ends. The authors argue that for a controller to save money, the action must also turn that information into savings, and the two should be measured separately.
- Comparisons: A deterministic rule is used to ask whether a model is needed; the same question is given to a small LLM to ask why not use a cheap LLM; a placebo intervenes at the same moments at random according to Jev's own choice frequencies, to ask whether it is the decision content or the act of intervention itself that has the effect.
- This paper: With a pre-specified fixed agent loop and only the controller changed, it compares cost and pass rate end-to-end on Terminal-Bench 2.1, and uses offline ranking, calibration, and decisions logged to explain the online results.
What related research exists?
Related work covers agent loops, cascaded routing, and calibration; the authors place the lever in fixing the reasoning model and changing only how the loop advances.
The introduction and Section 2 divide related work into three groups, explaining the difference from this paper only where named.
Agent loops and re-checking
- ReAct (Yao et al., 2023) interleaves reasoning and tool calls. The paper writes that the interface around the model is as important as the model itself (Yang et al., 2024).
- Reflexion (Shinn et al., 2023) adds verbal self-feedback between attempts. Huang et al. (2024) write that having the model review its own work without new external information often fails to improve results; the authors state that this paper's verification push belongs to this category, although the agent can still run commands to gather new evidence.
Cascades and routing
- FrugalGPT (Chen et al., 2023) and RouteLLM (Ong et al., 2024) send queries to cheaper models when possible. The authors state that this paper's lever is different: the reasoning model is fixed, and the cheap model only decides how the loop proceeds.
Selective prediction, calibration, and review
- Geifman and El-Yaniv (2017) study when one can act on confidence; Guo et al. (2017) study the calibration of modern neural networks.
- Kadavath et al. (2022) discuss whether language models can estimate whether their own answers are correct; Zheng et al. (2023) use LLM review to score outputs. The authors state that this paper first measures ranking and calibration offline, then examines whether acting on them helps online.
Baselines and benchmark
- Baselines: no controller (native), deterministic rules, Claude Haiku 5.5, and a placebo sampled at Jev's development-time selection frequency. Benchmark: Terminal-Bench 2.1.
The authors position this paper as a pre-specified, placebo-controlled controller that varies only the fixed loop, thereby separately testing "whether the judgment is informative" and "whether turning the judgment into actions saves money."
How does the paper address this problem?
With the Harbor/Daytona loop fixed, only at T1–T4 is a rule, Haiku, Jev, or placebo used to choose, and the choice is then executed after a guard.
The five arms share one terminal agent loop (Figure 1), changing only the controller that answers a fixed multiple-choice question at deterministic trigger points.
Loop and triggers
- Loop: one call to Claude Sonnet 5.5 per step, which may call bash or finish; a reply with no tool call counts as a completion request. Commands are executed via Harbor 0.24.0 in a Daytona sandbox of the task's own image, in a new shell. Tool output is truncated to the first 4,000 and last 8,000 characters, and context is not compressed. The loop and API keys stay on the host.
- Triggers: every arm detects and records them. T1 is at least two consecutive failed commands; T2 is a repeated command or repeated output; T3 is a completion request; T4 is a checkpoint every 10 steps. At most one trigger per step, and the same type cannot trigger again within three steps. Appendix B specifies: T2 is the same normalized command appearing 2 times among the most recent 5, or the same non-empty output appearing 2 times among the most recent 3; priority is T1, T2, T4.
Questions, actions and controllers
- Q&A: T1, T2, T4 answer Q-progress, with options continue, investigate, recover, abandon. T3 answers Q-finish, with options finish or verify. The latter three suggestion-type options each append one fixed message containing no commands, paths or test information; abandon ends in failure, finish ends normally. Appendix A gives the system prompt, the three suggestions and the option descriptions.
- Visible information: the controller sees only a compact state built from the transcript: instruction, trigger, steps and spend relative to limits, the last five commands with exit codes and output tails, failure and repetition counts, whether a similar verification command has run since the last edit, the completion summary, and its own prior choices. It cannot see tests, verifier output or reference solutions.
- Five arms: native only records, does not consult. The rule chooses recover at T1/T2 and continue at T4; at T3 it chooses verify unless a similar verification command has run since the last edit; after four consecutive failures and once 40% of the step budget is used, it chooses abandon. The small LLM is Claude Haiku 5.5 with reasoning disabled, receiving the same state and option descriptions as Jev, and must return a single choice per the JSON schema. Jev is typesafe/jev-1.13 (service snapshot jev-1.13-20260917). The placebo samples by development-period frequency: Q-progress is continue 0.625, investigate 0.125, recover 0.25, abandon 0; Q-finish is finish 0.652, verify 0.348, seeded per trial.
Guards and calls
- Guards cover every controller. G1 enforces hard limits on steps, spend, tokens and wall-clock. G2 allows abandon only when 40% of the step budget is used and there is a failure streak or repeated lack of progress, otherwise it changes to recover. G3 accepts a third completion request after two verifies. G4 replaces timeouts, transport errors or malformed answers with continue or finish and records it. Appendix B writes G2 as steps at least 0.4 times the limit, and at least 3 consecutive failures or T2 triggered at least 2 times.
- Calls and limits: models go through OpenRouter. Sonnet 5.5 has reasoning effort high, with prompt caching enabled; the endpoint does not accept temperature, and sampling is not greedy. Per-trial limits are 60 steps, $1.00, 30M tokens, 4 hours wall-clock, 30 controller calls. Harbor runs the task verifier after stopping, with reward 1 for passing; the tasks used have an agent timeout of at most 60 minutes. Cost is the provider-reported cost of reasoning-model and controller calls, excluding sandbox compute. The introduction states Jev is priced at $0.042 per million input tokens and says one decision costs about $0.00008.
Split and statistics
- Split: Terminal-Bench 2.1 has 89 tasks. Two with agent timeouts over 60 minutes were excluded, as was one where Sonnet 5.5 refused in the first round during calibration. Appendix D writes that calibration covers 30 of the 86 eligible tasks. The main text divides the calibration tasks into 8 development tasks (6 easy, 1 medium, 1 hard) and 21 held-out tasks (14 easy, 3 medium, 4 hard); calibration attempts do not enter any results. In the development phase the four non-placebo arms each run twice on the development tasks, with no tuning, only to provide the placebo distribution. Limits are set above each calibration run: passing runs at most 52 steps, $0.48, all runs at most $0.98.
- Evaluation design: after the held-out list checksum and configuration fingerprint are fixed, it is 21 tasks × 5 arms × 3 attempts. Arm order is randomized within task–attempt blocks. Each task is first averaged over attempts, then paired by task, with 10,000 task resamples giving percentile 95% intervals. The cost effect is the geometric mean of the per-task "dollars per attempt" ratios. Confirmatory comparison C1 is Jev vs native: test the cost ratio, and use a one-sided 95% lower bound against a prespecified −10 percentage point pass-rate margin. C2–C4 compare Jev with the small LLM, the rule, and the placebo, with bootstrap p values for cost ratios Holm-adjusted. Sections 4.3 and 4.4 are exploratory.
What experiments did the paper conduct?
21 held-out tasks, 315 trials: Jev's cost ratio to no controller is 1.19, with pass rate also 73.0%.
Experimental Setup
- Reasoning model: Claude Sonnet 5.5 (anthropic/claude-sonnet-5.5), reasoning effort high. Of the 4,780 main-model calls in the evaluation, 94.6% were served by Claude Platform on AWS and 5.4% by Azure, with similar mixing across arms. The host was chosen by OpenRouter among endpoints supporting all request parameters and was not fixed.
- Controllers: native, rules, Claude Haiku 5.5 (reasoning off), Jev 1.13 (snapshot jev-1.13-20260917), placebo. Cap of 60 steps and $1.00 per trial.
- Data: 21 held-out tasks from Terminal-Bench 2.1 (14 easy, 3 medium, 4 hard), 63 attempts per arm, 315 trials in total. Calibration and development runs are not included in the results. No trials failed due to infrastructure. Evaluation cost $59.46, $72.29 in total.
- Metrics: pass rate is the proportion with verifier reward 1; cost is USD per attempt, plus the task-paired geometric mean ratio. Also reported are USD per solve, steps, wall-clock, consultations per attempt, and number of verification messages.
- Determination: Harbor 0.24.0 runs the task's own verifier after the agent stops. The paper did not use an LLM judge.
- Statistics: 10,000 task resamples. The p-value for C1 cost is unadjusted; C2–C4 are Holm-adjusted. The Holm-adjusted p-values for pass rate are all 1.00 (Table 2).
Main Results
Per Table 1 (21 held-out tasks, 63 attempts per arm). Verify is the number of verification messages appended per attempt.
| Arm | Pass rate | USD/attempt | USD/solved | Steps | Verify | | native | 73.0% | 0.177 | 0.243 | 13.3 | – | | rules | 73.0% | 0.191 | 0.262 | 15.6 | 0.92 | | small LLM | 76.2% | 0.213 | 0.280 | 17.8 | 1.30 | | Jev | 73.0% | 0.206 | 0.283 | 16.0 | 0.51 | | placebo | 71.4% | 0.156 | 0.218 | 13.2 | 0.33 |
- Confirmatory comparison: The authors report a geometric mean cost ratio of Jev to native of 1.19 (95% CI 1.02–1.36, bootstrap p=0.026), with a pass-rate difference of +0.0 percentage points (95% CI −11.1 to +12.7). The one-sided 95% lower bound is −9.5 percentage points, within the pre-specified −10 percentage point margin. The authors read this as evidence of no large drop rather than non-inferiority, and state that the hypothesis that "Jev reduces cost" is rejected (Section 4.1, Table 2).
- Secondary comparisons: The cost ratios of Jev to the small LLM, rules, and placebo are 0.81 (95% CI 0.68–0.95), 0.96 (0.83–1.11), and 1.22 (1.08–1.39), with Holm-adjusted p of 0.019, 0.623, and 0.001. The pass-rate differences are −3.2, +0.0, and +1.6 percentage points, respectively, with intervals all crossing 0 and Holm-adjusted p all 1.00. The abstract states the ratio relative to the small LLM as 0.81; Section 4.2 states 19% less and 22% more expensive than placebo, with no detectable pass-rate difference.
- Relative to native: rules ×1.24 (95% CI 1.12–1.38), small LLM ×1.47 (1.16–1.86), placebo ×0.98 (0.78–1.16) (Section 4.2, Figure 2a). The authors state that all three informative controllers increased cost, while the placebo did not. Section 5 states: without the placebo, the comparison to native would only suggest that Jev is expensive; with it, the evidence is that Jev's choices, rather than the act of intervention, brought the cost.
Offline Decision Quality
- Method: The trigger states recorded by native in the evaluation are replayed to each controller without executing the answer, and compared against the scored outcome of that trial (Table 3). Q-finish's score is the probability of finish, and the label is pass; Q-progress's score is the probability of abandon, and the label is failure. The single choice of rules and the small LLM is recorded as 1 or 0. No controller answer fell into the fallback.
- Q-finish (n=53): Jev's AUROC is 0.78, rules 0.62, small LLM 0.60, base rate 0.50. Jev's ECE is 0.37, argmax accuracy 0.55, below the base-rate accuracy of 0.87. The authors state its mean finish probability is 0.50, while 87% of these runs passed; 29 of the 53 finish requests were selected as verify. Runs with P(finish)≥0.5 passed 96% (23/24), and those below 0.5 passed 79% (23/29). The authors state the ranking is real, but even the most doubted runs were mostly correct.
- Q-progress (n=72): No controller chose abandon. Jev's AUROC is 0.55, rules and small LLM both 0.50, accuracy all 0.36, base-rate accuracy 0.64. The authors state the abandon probability barely separates failures from passes. The calibration period's 111 states show the same pattern (Jev's finish AUROC 0.77, small LLM 0.46), but predate the final verification feature.
Where the Extra Cost Comes From
- Verification and trajectories: The authors compare cost with verification frequency: placebo has 0.33 verification messages per attempt (cost ratio to native 0.98), Jev 0.51 (1.19), rules 0.92 (1.24), small LLM 1.30 (1.47). The authors state that verification turns alone cannot explain Jev's increase: of the extra $0.029 per attempt, $0.011 is spent after the first verification message; the rest comes from longer trajectories (16.0 steps vs. 13.3 steps), consistent with Jev choosing investigate or recover in 30 of 92 progress decisions. The authors state this decomposition is correlational.
- Tasks and abandonment: Jev is more expensive on 15 of 21 tasks (Figure 2b; the dashed line in the caption is the geometric mean 1.19). Removing any single task leaves the ratio between 1.16 and 1.25. Of the six cheaper tasks, three differ from native by within 3%; the three with clear decreases are hard tasks, where runs mostly stop at the Harbor timeout or budget cap, usually without a finish request. In the 315 trials, no controller chose abandon, and G2 never intercepted an abandon; the placebo cannot abandon by construction. All 15 runs of make-doom-for-mips failed, 11 with Harbor timeout and 4 with the $1.00 cap. Section 5 states that 10 of native's 17 failures ended at the timeout or cap.
- Pass-rate exceptions: The authors state that Jev and native differ in pass rate on only three tasks, with easy tasks almost always passing and hard tasks almost always failing. In Appendix C these three are: install-windows-3.11 native 0/3, Jev 3/3; filter-js-from-html 3/3 vs. 1/3; caffe-cifar-10 1/3 vs. 0/3.
Other Ablations and Analyses
- Stratification (Appendix C, C1): pass-rate differences are +7.1 percentage points for easy, −22.2 for medium, −8.3 for hard; cost ratios 1.29, 1.48, 0.76. The authors state the medium and hard strata are too small for inference.
- Overhead (Section 4.4): Jev averages 0.52 s/decision, 0.11% of spend; the small LLM 1.46 s, 0.47%. No call timed out or returned a malformed answer.
- Appendix D: 30–40 tasks were planned for holdout, 21 were used; the provider was not fixed, and temperature 0 was not sent because the endpoint does not accept that parameter; the original verification feature was false on every calibration finish request and was relaxed before development; the open-weight comparison C5 was not run, and the Holm family is C2–C4.
What are some points that can be further explored?
The authors note limitations including sample size, a single model, and the placebo distribution, and recommend pre-registered replication with calibrated thresholds and stop actions that would be used.
Limitations and Future Directions Noted by the Authors
- Sample (Section 6): the held-out set has 21 tasks, 14 easy and only 3 medium; pass-rate intervals are wide (about ±11–13 percentage points), and the C1 guardrail is near the limit of what the design can resolve. The authors state the cost result is robust (15/21 tasks; leave-one-out 1.16–1.25), while the pass-rate result is weak evidence in either direction.
- One agent, one decision model (Section 6): only one reasoning model, one minimal loop, and Jev 1.13 with the authors' own option wording and messages are studied. The pre-specified replication on open-weight models was not run: OpenRouter hosts offer different quantizations, and the model could not be held fixed across arms.
- Non-determinism and host (Section 6): Sonnet 5.5 does not accept temperature, and the host was not fixed; attempts are replicates, with similar host mixing across arms.
- Placebo (Section 6): the distribution comes from a small development sample (8 progress decisions, 23 finish decisions), with abandon probability 0; it tests decision content, not intervention frequency.
- Stratification and labels (Section 6): stratification comes from two calibration attempts; offline labels use that trial's outcome, not the counterfactual outcome of another decision.
- Future work (Section 5): the authors argue future work should use base-rate-aware thresholds on calibrated probabilities, give the controller the stop action it would actually use, and pre-specify on new tasks.
Scope of the Experiments
- The reasoning model is Claude Sonnet 5.5; the controllers are native, rules, Claude Haiku 5.5, Jev 1.13, and placebo; all five arms share Harbor 0.24.0 and the same loop on Daytona (Section 3, Figure 1).
- Results come from the 21 held-out tasks of Terminal-Bench 2.1 (14 easy, 3 medium, 4 hard), with 3 attempts per task per arm, 315 trials in total; the confirmatory comparison is the cost ratio of Jev to native (Table 2).
- Offline replay uses the states recorded by native in the evaluation: 53 for Q-finish and 72 for Q-progress (Table 3); the calibration period has another 111 states, which are not included in the main results.
- Pass or fail is determined by the task verifier's reward. The paper reports no LLM judge and no agreement between judges and humans.
- Section 6 and Appendix D state that the open-weight model comparison C5 was not run.
Summarize the main content of the paper
The authors state that Jev's judgments are informative but poorly calibrated, that interventions mostly re-check runs that already passed, and that cost rises 19% while pass rate is unchanged.
On a fixed terminal agent loop, pre-specify and compare who makes stop and verification decisions. The question is: can consulting Jev 1.13 only at deterministic decision points reduce the cost of Claude Sonnet 5.5 without reducing pass rate.
- Design: five arms differ only in the controller. native does not consult; rules answer based on failure and verification traces; Claude Haiku 5.5 and Jev answer the same set of progress or completion questions; the placebo samples at the same moments at Jev's development-time frequency. Only after passing a guard can the choice append a fixed suggestion or end the run. The controller cannot see tests, verifier output, or the reference solution.
- Cost and pass rate: 21 held-out tasks, 63 attempts per arm. Jev's geometric mean cost ratio relative to no controller is 1.19 (95% CI 1.02–1.36), with pass rate equal at 73.0%. The cost ratio relative to the small LLM is 0.81, and relative to the placebo is 1.22. The authors state that the pass rate difference is not detectable, and reject the hypothesis that Jev reduces cost.
- Judgment and action: on completion requests recorded by native, Jev's AUROC is 0.78, rules 0.62, and the small LLM 0.60; its mean completion probability is 0.50, while 87% of these runs had already passed. In 315 trials, no controller chose to give up.
- The authors' conclusion: an informative signal did not become a useful intervention; the extra cost comes from the content of the choices, not just the act of interjecting. The authors argue that cost should be the primary outcome, evaluated end-to-end against rules and placebo; the gap is the policy from probability to action. Section 5 also writes that at scale, a 19% increase in cost per attempt would apply to every task in an agent run, and that a naive "whether verified" feature would miss agents that check with their own programs, and that empty responses from safety refusals may also be treated by the loop as completion requests.