Manuscript Offprint
arXiv:2610.39006Blind Spots: Where Small Language Models Fall Behind Frontier Models on Terminal Tasks
Abstract
Small language models (SLMs) offer an attractive alternative to frontier models (FMs) because they can be deployed with lower cost and latency. This makes SLMs especially appealing for terminal tasks on edge devices, where responsiveness, local execution, and limited connectivity are important considerations. However, they continue to lag behind FMs on terminal tasks, as measured by standard task success rates. Yet these rates conflate several capabilities that may contribute to this gap. In this work, we characterize the SLM–FM gap along three axes: solvability, whether additional test-time compute allows an SLM to reach a correct solution; verification, whether it can identify a successful solution among candidate trajectories; and confidence, whether it can accurately anticipate its probability of success. Across two standard terminal benchmarks, we find that repeated sampling narrows, but does not eliminate, the gap in solvability. In contrast, a persistent gap remains in verification. Given the same candidate trajectory pool, FMs recover substantially more of the gap between random and oracle selection than SLMs. SLMs are also more overconfident in their prospective success estimates and exhibit poorer calibration. These results suggest that the SLM–FM gap is multidimensional, spanning not only the ability to generate successful solutions, but also the ability to recognize successful solutions and anticipate success. We hope this decomposition can guide future work on developing stronger and smaller terminal agents.

Figure 1: The SLM–FM gap along three axes on TBLITE. Solvability improves substantially with repeated sampling, narrowing the performance gap; outcome verification remains substantially weaker for SLMs; and SLMs are less calibrated in their prospective estimates of task success. Annotated arrows indicate the relative gap between GLM-5.2 and Tmax-9B.
*Work done during Ashima Suvarna's internship at Microsoft Research. ♣Equal mentorship.
40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Resource-Aware Agentic AI.
| Task | Model | Solvability | Verification | Confidence |
|---|---|---|---|---|
| mlflow-register | Qwen3.5-9B | solves 1/32 | scores 31/32 attempts as success; its chosen solution passes 3% of the time | predicts 18% |
| GLM-5.2 | solves 29/32 | its chosen solution passes 100% of the time | predicts 96% | |
| token-auth-websocket | Qwen3.5-9B | solves 0/32 | — | predicts 88% |
| GLM-5.2 | solves 26/32 | — | predicts 88% |
Table 1: Qualitative examples of the capability gap between Qwen3.5-9B and GLM-5.2 on TB2.1 tasks. Solvability counts each model's own successful attempts; Verification uses the same 32-attempt Qwen3.5-9B candidate pool for both models (§5.2), and — marks tasks whose pool contains no successful attempt; Confidence is the model's prospective success estimate.
1 Introduction
Terminal agents solve long-horizon and complex computer-use tasks—configuring systems, fixing repositories, processing data, managing services—by executing shell commands, writing and running code, and interacting with the environment in a multi-step fashion. In recent years, terminal agents have shown remarkable progress [1, 15, 8, 28, 2]. While frontier models (FMs) continue to lead on the terminal benchmark leaderboards [22], significant progress has been made in training highly capable small language models (SLMs) [10, 18, 17, 19, 16]. SLMs are attractive as terminal agents because they can be deployed locally at low cost and low latency. Nevertheless, a wide gap remains. On Terminal-Bench 2.1 (TB2.1), the best frontier systems on the leaderboard reach 87.4% task success while the strongest small models reach 28.8%[22, 10].
This gap in task success rates conflates distinct capabilities and says little about why trials fail. Our work aims to understand what constitutes this gap. We study failed trajectories from both model tiers using a common failure taxonomy [14]. Our analysis reveals that SLMs and FMs exhibit broadly the same major failure categories—step repetition, weak verification, and disobeying the specification—but SLMs experience these failures more frequently rather than in qualitatively different ways (§4). This suggests that the SLM–FM gap reflects differences in capabilities that cut across these shared failure modes. Motivated by these patterns, we examine three complementary capabilities: solvability, the ability to reach a successful solution given sufficient attempts; verification, the ability to distinguish successful from unsuccessful solutions; and confidence, the ability to assess one's likelihood of success before acting. We share qualitative examples to demonstrate each axis in Table 1. Distinguishing these capabilities is important both for understanding the source of the performance gap and for identifying effective techniques to improve SLMs.
Our central finding is that repeated sampling narrows the SLM–FM gap in solvability but not in verification or confidence: with more attempts, small models increasingly find correct solutions but still struggle to recognize them or anticipate when they will succeed (Figure 1). On OpenThoughts-TBLite (TBLITE) [18], the absolute gap between GLM-5.2 and Tmax-9B shrinks from 17.7 percentage points at pass@1 (72.8 for GLM-5.2 vs. 55.1 for Tmax-9B) to 8.0 points at pass@32 (92.0 vs. 84.0, respectively), and the relative gap shrinks from 32.1% to 9.5% (Figure 1). In contrast, the verification gap persists even when successful trajectories are available. Given the same candidate pool of 32 trajectories, GLM-5.2 selects a successful trajectory more often than Tmax-9B at k=32, an absolute gap of 9.2 points (64.6 vs. 55.4) and a relative gap of 16.6%. A similar pattern emerges in confidence. GLM-5.2's prospective success estimates are better calibrated, with a Brier score 29.1% lower than that of Tmax-9B in relative terms. Together, these results suggest that additional test-time compute helps SLMs reach correct solutions, but does not close the gap in recognizing those solutions or in anticipating their own success.
Test-time compute and repeated sampling. Drawing multiple attempts and selecting among them is a standard way to convert inference compute into accuracy [6, 5]. Recent work characterizes how best to allocate that budget across sampling, revision, and search [20]. Brown et al. [5] show that coverage grows steeply with sample count for weaker models in particular, and that the practical bottleneck shifts from generation to selection once a correct sample is present in the pool. We take this observation as our starting point rather than our result: we measure how much of the SLM-FM gap survives repeated sampling on terminal tasks, and then ask whether the selection bottleneck falls differently on the two tiers.
Verification and selection. Best-of- selection with trained or prompted verifiers is well established in single-turn reasoning [7, 12], as is the use of models as judges of their own or others' outputs [27]. Recent work also suggests that models often cannot reliably verify or correct their own reasoning without external signal [9, 21]. These results concern short answers produced in one shot. In the terminal setting the object being judged is a multi-turn trajectory that already contains environment feedback—exit codes, stderr, test output—so verification is in principle better supported than in the single-turn case. We measure whether SLMs exploit that evidence, holding the candidate pool fixed across verifier tiers so that verification skill is separated from the quality of what is being verified.
Confidence and calibration. Language models carry some signal about their own correctness [11], but verbalized confidence is typically overstated relative to realized accuracy, with the size of the gap varying by scale and post-training [13, 23]. Most of this work elicits confidence after an answer is produced. For an agent deciding how many turns to spend, how much to think, or whether to escalate, the useful quantity is prospective: an estimate formed before acting [3]. We elicit confidence in this prospective form in our experiments.
3 Preliminaries
Small and frontier models. Following the model tier classification of Belcak et al. [4], we refer to a language model as a small language model (SLM) if it can be deployed on a consumer device with low inference latency for a single user. A frontier model (FM) is among the most capable language models available, with state-of-the-art or near state-of-the-art performance across multiple benchmarks. This distinction is practical rather than architectural and reflects the deployment setting considered in this work. As of 2026, models with fewer than 10B parameters could be considered SLMs under our classification. We share the model sizes of all models in our work in Appendix Table 3.
Repeated sampling and pass@k. A prominent approach for scaling test-time compute is repeated sampling: drawing multiple independent attempts from the model and selecting one as the solution [6, 5]. In our setting each attempt runs in a fresh environment instance and is graded by the task's own verifier, so attempts are independent and selection requires no external verifier or reward model. We collect attempts per task and estimate coverage with the unbiased estimator of Chen et al. [6] and report pass@k averaged over tasks. The pass@1-pass@k gap measures how much of a model's deficit consists of tasks it can solve but does not solve reliably, as opposed to tasks outside its reach at budget .
Outcome verification. We use verification to refer to actions taken to establish whether a solution is correct. We distinguish process verification, which occurs during a trajectory through actions such as running tests or inspecting intermediate outputs, from outcome verification, which occurs after generation and judges whether a completed trajectory succeeded. Our main verification experiment studies outcome verification: selecting a successful trajectory from a pool of completed candidates.

Figure 2: SLMs and GLM-5.2 share the same dominant failure modes. Share of judged failed trajectories exhibiting each failure mode on TBLITE under vanillux2agent. Step repetition, disobeying the task specification, and weak verification are among the most frequent modes for every model; both SLMs exhibit each at higher rates than GLM-5.2. We follow the taxonomy from [14].
Confidence. We define prospective confidence as a model's estimated probability of successfully completing a task before taking any action. Unlike verification, which assesses completed solutions, confidence measures whether a model can anticipate its own success. We elicit confidence estimates from a model as a verbalized probability given only the task description, and evaluate calibration via overconfidence (the predicted–true gap) and Brier score [3, 13, 23].
Terminal benchmarks. We evaluate terminal-agent capabilities on two benchmarks: TBLITE [18] and TB2.1 [14]. TBLITE comprises 100 tasks (40 easy, 26 medium, 26 hard, and 8 extremely hard based on Claude Haiku 4.5) spanning domains such as software engineering and machine learning. TB2.1 comprises 89 tasks (4 easy, 55 medium, and 30 hard) spanning diverse domains, designed to evaluate capable agents on realistic, complex workflows. In our experiments, TB2.1 is more challenging for all evaluated models, particularly SLMs (Appendix B, Figure 6): Tmax-9B achieves a pass@1 of 55.1% on TBLITE versus 31.5% on TB2.1, while Qwen3.5-9B drops from 42.0% to 21.6%.
4 Failure Modes
Before decomposing the gap, we ask whether SLMs fail in qualitatively different ways than FMs. We categorize failed trajectories based on the failure-mode taxonomy of Merrill et al. [14] (defined in Appendix Table 6), using an LLM judge (GPT-5, high reasoning). Figure 2 shows the share of failed trajectories exhibiting each mode under the vanillux2agent harness (expanded to other harnesses in Appendix F).
Results. We find that the dominant failure modes are shared across all models: step repetition, disobeying the task specification, and weak verification are among the most frequent failures for every model. SLMs exhibit all three at substantially higher prevalence than GLM-5.2, while unawareness of termination occurs at comparable rates across tiers. This suggests that the gap between SLMs and FMs stems from general capabilities that every terminal agent relies on, such as finding a solution, verifying it before submitting, and estimating its chances of success. These motivate the three axes we measure next.
5 The SLM–FM Gap
In this section, we decompose the SLM–FM gap along three axes: solvability—whether a model can reach a correct solution with repeated sampling (§5.1); verification—whether it can identify a correct solution from a fixed candidate pool (§5.2); and confidence—whether it can anticipate its probability of success before acting (§5.3). Across both TBLITE and TB2.1, we find that additional sampling narrows the gap in solvability—substantially on TBLITE and less so on the harder TB2.1—while substantial gaps remain in verification and confidence.
We study terminal agents built from two model tiers: SLMs and FMs. We evaluate two SLMs, Qwen3.5-9B and Tmax-9B, and one FM, GLM-5.2, across TBLITE and TB2.1. We consider Tmax-9B and its base Qwen3.5-9B since they are among the strongest sub-10B models on terminal tasks [10]. Additionally, we consider GLM-5.2 as our FM tier since it is one of the strongest open-weights models on TB2.1². We use vanillux2agent [10] for all main experiments. We provide a broader analysis of the effect of harness choice on model performance across four popular harnesses in Appendix C.
5.1 Solvability
Per-trial pass rates conflate tasks a model cannot solve with tasks it solves unreliably; we separate the two by scaling the attempt budget. We draw independent attempts per task for each model on TBLITE and TB2.1; each attempt runs in a fresh task container and is graded by the task's verifier. We report pass@k curves for in Figure 3.
Results. As shown in Figures 1 and 3, repeated sampling substantially narrows the SLM–FM gap. On TBLITE, the absolute gap between GLM-5.2 and Tmax-9B is 17.7 percentage points at pass@1 and 8.0 points at pass@32; the relative gap falls from 32.1% to 9.5%. In absolute terms, SLMs gain more from additional attempts (Tmax-9B: +28.9 points; Qwen3.5-9B: +43.0 points) than GLM-5.2 (+19.2 points). At , Tmax-9B exceeds GLM-5.2's single-attempt success on TBLITE (84.0% vs. 72.8%) and matches it on TB2.1 (61.8% vs. 62.3%). Thus, repeated sampling narrows the SLM–FM gap by increasing coverage: small models can solve terminal tasks when given more attempts.

Figure 3: Repeated sampling narrows the SLM–FM gap in solvability. SLMs improve sharply with increasing , while GLM-5.2 gains less from additional attempts; the gap is reduced but remains at the largest , particularly on TB2.1.
5.2 Verification
Solvability shows that successful trajectories exist in the sample pool; whether a model can find them is a distinctly different capability. To measure it, we evaluate each model as an outcome verifier: for each task we sample candidate trajectories from Qwen3.5-9B, then prompt each model as a verifier to select the candidate most likely to have passed the task's grader. Each trajectory is scored pointwise and then the highest-scoring trajectory is selected (best-of-). Verifier@k is the pass rate of the candidate selected from candidates, averaged over all size- subsets of the pool. Verifier@k is bounded below by random selection, that is, the pool's mean pass rate (pass@1), and above by
²Open weights allow us to serve all models under identical conditions and harnesses.
| Verifier | TBLITE | TB2.1 | ||
|---|---|---|---|---|
| Best-of-32 | Gap recovered | Best-of-32 | Gap recovered | |
| Random (pass@1) | 42.0 | 0% | 21.6 | 0% |
| Qwen3.5-9B | 54.2 | 28% | 35.8 | 41% |
| Tmax-9B | 55.4 | 31% | 37.2 | 45% |
| GLM-5.2 | 64.6 | 53% | 44.0 | 65% |
| Oracle (pass@32) | 85.0 | 100% | 56.2 | 100% |
Table 2: Verifier recoverability at . Candidate pools generated by Qwen3.5-9B. Gap recovered = (best-of-32 - pass@1) / (pass@32 - pass@1). Figure 4 shows the full curves over .
oracle selection (pass@k). Figure 4 shows that every model's curve lies in this range. We provide additional implementation details in Appendix D.

Figure 4: SLMs lag behind GLM-5.2 in outcome verification. Given the same pool of candidate trajectories, SLMs recover less of the random-oracle gap. On TBLITE, most gains occur by ; on TB2.1, gains continue and the gap widens as grows.
Results. At , GLM-5.2 recovers 53% of the random-oracle gap on TBLITE, compared with 28–31% for the SLMs (Table 2). The same ordering holds on TB2.1, where GLM-5.2 recovers 65% of the gap, compared with 41–45% for the SLMs. On TBLITE, most gains occur by (Figure 4); on TB2.1, gains continue through and the absolute gap between GLM-5.2 and Tmax-9B widens from 3.3 points at to 6.8 at . On pools generated by Tmax-9B and GLM-5.2, across both benchmarks, SLM verifiers recover 22–47% of the random-oracle gap, while GLM-5.2 recovers 52–74% (Appendix D, Table 5). Thus, while repeated sampling narrows the SLM-FM gap in solvability (§5.1), a persistent gap remains in verification: small models can generate successful solutions to terminal tasks, yet remain substantially worse at identifying them among candidate trajectories.
5.3 Model Confidence
A capable agent must be able to estimate its probability of success in order to allocate resources such as the number of turns, thinking effort, or escalation to a stronger model. We therefore analyze the SLM–FM gap in this capability, eliciting prospective confidence [3]. Each model estimates its probability of solving a task given only the task description before taking any action. We provide additional implementation details in Appendix E.
Results. Figure 5 reports two views of these confidence estimates: mean predicted versus true success rate per model and overconfidence, the mean predicted minus true success rate. We find that all models are overconfident on both benchmarks, but the degree of miscalibration varies across models: GLM-5.2 is the least overconfident and Qwen3.5-9B the most. On TBLITE, the gap between predicted and true success is 13 percentage points for GLM-5.2, compared with 22 points for Tmax-9B and 38 points for Qwen3.5-9B. On TB2.1, the corresponding gaps are 15, 24, and 41 points; on this harder benchmark, all models lower their predicted success, but by less than their true success drops, so overconfidence grows by 2–3 points. Consistent with these differences, GLM-5.2 achieves a substantially lower Brier score (0.21) than the SLMs (0.30–0.40) on TBLITE (Figure 1). Thus, SLMs are less calibrated in their estimates of their own probability of success, making these estimates unreliable for test-time allocation decisions.
6 Discussion and Future Work
We investigate why small language models trail frontier models as terminal agents. Rather than treating task success as a single capability, we decompose the SLM–FM gap into solvability, verification, and confidence. Across two benchmarks, we find that these axes reveal complementary aspects of the gap. Repeated sampling substantially narrows the gap in solvability, showing that some SLM failures reflect unreliable generation rather than an inability to reach a correct solution. However, the gap is not eliminated, particularly on the harder TB2.1 benchmark. Beyond generation, SLMs remain substantially worse at selecting successful trajectories from a shared candidate pool and at estimating their probability of success before acting. Our results show that the SLM–FM gap is multidimensional: closing it requires improving not only the ability to solve terminal tasks, but also the ability to recognize successful solutions and anticipate success.
Our findings raise several directions for future work. A natural next step is to study how solvability, verification, and confidence interact in
an agentic loop: for example, whether calibrated uncertainty can help an SLM decide when to sample again, verify a trajectory, or escalate to a stronger model. It is also important to extend the comparison to additional frontier models and to evaluate verification on more diverse candidate pools beyond the generator models in Table 5 (Appendix D), including trajectories from other harnesses. A further direction is execution-based verification, in which the verifier writes and runs its own tests against the final environment state rather than judging the trajectory from text alone; this would separate a model's ability to verify from the limits of prompted, text-only judgment. Finally, developing training methods that directly improve verification and confidence, rather than relying on these capabilities to emerge from improvements in generation, remains an open direction.

Figure 5: Prospective confidence. Left: mean predicted vs. true success rate per model and benchmark. Right: overconfidence, the mean predicted minus true success rate; error bars show 95% bootstrap intervals (Appendix E).
References
[1] Anthropic. Claude Code. https://www.anthropic.com/claude-code, 2025. Accessed: 2026-08-29.
[2] Anthropic. Claude Opus 5 system card. Technical report, Anthropic, Jul 2026. URL https://www.anthropic.com/claude-opus-5-system-card. Accessed: 2026-08-29.
[3] Casey O. Barkan, Sid Black, and Oliver Sourbut. Do large language models know what they are capable of? arXiv preprint arXiv:2512.24661, 2025.
[4] Peter Belcak, Greg Heinrich, Shizhe Diao, Yonggan Fu, Xin Dong, Saurav Muralidharan, Yingyan Celine Lin, and Pavlo Molchanov. Small language models are the future of agentic AI. arXiv preprint arXiv:2506.02153, 2025.
[5] Bradley Brown, Jordan Juravsky, Ryan Ehrlich, Ronald Clark, Quoc V. Le, Christopher Ré, and Azalia Mirhoseini. Large language monkeys: Scaling inference compute with repeated sampling. arXiv preprint arXiv:2407.21787, 2024.
[6] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
[7] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
[8] Cognition AI. Introducing Devin, the first AI software engineer. https://cognition.ai/blog/introducing-devin, Mar 2024. Accessed: 2026-08-29.
[9] Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xinying Song, and Denny Zhou. Large language models cannot self-correct reasoning yet. In The Twelfth International Conference on Learning Representations, 2024.
[10] Hamish Ivison, Junjie Oscar Yin, Rulin Shao, Teng Xiao, Nathan Lambert, and Hannaneh Hajishirzi. Tmax: A simple recipe for terminal agents. arXiv preprint arXiv:2606.23321, 2026.
[11] Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, et al. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221, 2022.
[12] Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. arXiv preprint arXiv:2305.20050, 2023.
[13] Stephanie Lin, Jacob Hilton, and Owain Evans. Teaching models to express their uncertainty in words. arXiv preprint arXiv:2205.14334, 2022.
[14] Mike A Merrill, Alexander G Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin Shi, Jeong Yeon Shin, Thomas Walshe, E Kelly Buchanan, et al. Terminal-Bench: Benchmarking agents on hard, realistic tasks in command line interfaces. arXiv preprint arXiv:2601.11868, 2026.
[15] OpenAI. Introducing Codex. https://openai.com/index/introducing-codex/, May 2025. Accessed: 2026-08-29.
[16] Xiaoxuan Peng, Kaiqi Zhang, Xinyu Lu, Boxi Cao, Yaojie Lu, Hongyu Lin, Xianpei Han, and Le Sun. LiteCoder-Terminal: Scaling long-horizon terminal environments for learning language agents. arXiv preprint arXiv:2605.29559, 2026.
[17] Renjie Pi, Grace Lam, Mohammad Shoeybi, Pooya Jannaty, Bryan Catanzaro, and Wei Ping. On data engineering for scaling LLM terminal capabilities. arXiv preprint arXiv:2602.21193, 2026.
[18] Negin Raoof, Richard Zhuang, Marianna Nezhurina, Etash Guha, Atula Tejaswi, Ryan Marten, Charlie F Ruan, Tyler Griggs, Alexander Glenn Shaw, Hritik Bansal, et al. OpenThoughts-Agent: Data recipes for agentic models. arXiv preprint arXiv:2606.24855, 2026.
[19] Vaishnavi Shrivastava, Piero Kauffmann, Ahmed Awadallah, and Dimitris Papailiopoulos. ECHO: Terminal agents learn world models for free. arXiv preprint arXiv:2605.24517, 2026.
[20] Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling LLM test-time compute optimally can be more effective than scaling model parameters. arXiv preprint arXiv:2408.03314, 2024.
[21] Kaya Stechly, Matthew Marquez, and Subbarao Kambhampati. GPT-4 doesn't know it's wrong: An analysis of iterative prompting for reasoning problems. arXiv preprint arXiv:2310.12397, 2023.
[22] Terminal-Bench Team. Terminal-bench 2.1 leaderboard. https://www.tbench.ai/leaderboard/terminal-bench/2.1, 2026. Accessed: 2026-10-24.
[23] Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher Manning. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 5433–5442, Singapore, December 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.emnlp-main.330. URL https://aclanthology.org/2023.emnlp-main.330/.
[24] Xingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, Hoang H. Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Yanjun Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, Junyang Lin, Robert Brennan, Hao Peng, Heng Ji, and Graham Neubig. OpenHands: An open platform for AI software developers as generalist agents. arXiv preprint arXiv:2407.16741, 2025.
[25] John Yang, Carlos E Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik R Narasimhan, and Ofir Press. SWE-agent: Agent-computer interfaces enable automated software engineering. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
[26] Sidi Yang, Chaofan Tao, Jierun Chen, Tiezheng Yu, Ruoyu Wang, Yuxin Jiang, Yiming Du, Wendong Xu, Jing Xiong, Taiqiang Wu, Lifeng Shang, Xiaohui Li, Ngai Wong, and Haoli Bai. What makes interaction trajectories effective for training terminal agents? arXiv preprint arXiv:2606.03461, 2026.
[27] Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. Judging LLM-as-a-judge with MT-Bench and Chatbot Arena. Advances in Neural Information Processing Systems, 36:46595–46623, 2023.
[28] Zhipu AI & Tsinghua KEG. GLM-5: From vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763, 2026.
[29] Kaijie Zhu, Yuzhou Nie, Yijiang Li, Yiming Huang, Jialian Wu, Jiang Liu, Ximeng Sun, Zhenfei Yin, Lun Wang, Zicheng Liu, et al. TermiGen: High-fidelity environment and robust trajectory synthesis for terminal agents. arXiv preprint arXiv:2602.07274, 2026.
A LLM Usage Disclosure
Claude and ChatGPT were used to write code for the experiments and to edit the manuscript. The project idea, experimental design, and writing are primarily the authors' own work.
B Benchmark Difficulty
Figure 6 shows, for each model, the distribution of per-task pass rates over up to 32 attempts on each benchmark. On TB2.1, many more tasks are never solved by the SLMs than by GLM-5.2, consistent with TB2.1 being harder, particularly for SLMs (§3).

Figure 6: Distribution of per-task pass rates over up to 32 attempts for each model on TBLITE and TB2.1.
C Harness Choice Changes Model Performance
Table 3 lists the models we evaluate. We evaluate each model with four popular agent harnesses and describe them below:
| Model | Parameters | Architecture | Checkpoint | Tier |
|---|---|---|---|---|
| Qwen3.5-9B | 9B | dense | Qwen/Qwen3.5-9B | SLM |
| Tmax-9B | 9B | dense | allenai/tmax-9b | SLM |
| GLM-5.2 | 744B (40B active) | MoE, 1M ctx | zai-org/GLM-5.2-FP8 | FM |
Table 3: Models. SLMs and the FM used in this study.
-
mini-swe-agent [25]: A minimal agent that Harbor installs and runs as a command-line tool. It does not include compaction.
-
vanillux2agent [10]: A harness optimized for SLMs that builds on mini-swe-agent prompts. It expects native bash tool calls, parsed by vLLM and executed via Docker. The shell state is replayed via a persistent shim at each turn. It does not include compaction and terminates on timeout errors. It is built to be robust to formatting errors.
-
terminus-2 [14]: Harbor's built-in terminal agent. It expects JSON blobs as free text, parsed with formatting auto-repair. Commands are executed with a tmux live pane and a fully persistent login shell. Command observations are captured as screen-diffs between turns. When fewer than 8k tokens of context remain, it compacts the history through a summarization handoff that uses three LLM calls.
-
OpenHands [24]: Third-party SDK with native tool calling: terminal, file_editor, task_tracker (+ MCP, skills). Commands are run in persistent terminal shells and observations are shown as structured tool outputs to the model. Compaction is implemented with a native condenser supplied with the SDK.³
Table 4 reports mean reward per model-harness pair across 3 trials with a context length of 256k.
No single harness is best for all models. Harness choice affects model performance: Qwen3.5-9B drops from 43.1 under vanillux2agent to 25.0 under OpenHands in Table 4. Even frontier models like GLM-5.2 show variable performance under each harness. The best harness also differs per model: GLM-5.2 performs best on terminus-2, while Tmax-9B performs worst on terminus-2. This is likely due to the brittle nature of terminus-2 that requires small models to send keystrokes to a live terminal and the complex tool formats that are harder for smaller models to follow.
| mini-swe-agent | terminus-2 | vanillux2agent | OpenHands | |
|---|---|---|---|---|
| Qwen3.5-9B | 43.0 ± 5.1 | 40.1 ± 0.1 | 43.1 ± 0.7 | 25.0 ± 1.9 |
| Tmax-9B | 57.7 ± 1.8 | 47.1 ± 3.9 | 55.1 ± 3.2 | 49.5 ± 1.5 |
| GLM-5.2 | 75.8 ± 0.7 | 84.2 ± 5.1 | 79.7 ± 4.1 | 72.8 ± 2.1 |
| Average | 58.8 | 57.1 | 59.3 | 49.1 |
Table 4: Mean reward (%) on TBLITE across harnesses, averaged over 3 trials. All models are served at 256k context length.
D Verifier Setup
Each candidate trajectory is serialized as the task definition followed by the visible message, command, and output from every agent step; the agent's private reasoning is excluded. Inputs exceeding the token budget (48k on TBLITE and 128k on TB2.1) are truncated by retaining the first 25% and last 75% of the budget. The verifier is prompted to write a brief analysis and assign a final pointwise score between 0 and 1 (see the verifier prompt below). Candidates that remain unscored due to parsing failures are ranked below all scored candidates. Finally, the highest-scoring candidate is selected, with ties broken uniformly at random. We compute verifier@k exactly by taking the expectation over all candidate subsets for each task.
Verifier prompt
System: You are a strict verifier of terminal-agent work.
User: Below is a terminal task and the full log of an agent's attempt (commands and outputs; the agent's private reasoning is not shown). Decide whether the attempt actually completed the task as specified.
Rules:
- Judge only from evidence in the log: files written, commands run, outputs.
- Do not trust the agent's own claims of success; verify them against the log.
- Consider every requirement in the task, including output formats and file paths.
First write a brief analysis (at most 300 words) of what the task requires and what the log shows. Then output one final line exactly of the form: SCORE: <number between 0.00 and 1.00> where 1.00 means the task is certainly completed and 0.00 means it certainly is not. Use intermediate values for partial or uncertain completion.
{trajectory}
³We upgraded 49 task images to Python 3.12 to run openhands-sdk; this did not affect task outcomes or definitions.
Other candidate pools. Table 5 repeats the verification experiment of §5.2 on candidate pools generated by Tmax-9B and GLM-5.2. On every pool and both benchmarks, GLM-5.2 recovers more of the random–oracle gap than either SLM verifier.
| Benchmark | Pool generated by | Verifier | ||
|---|---|---|---|---|
| Qwen3.5-9B | Tmax-9B | GLM-5.2 | ||
| TBLITE | Qwen3.5-9B | 28% | 31% | 53% |
| Tmax-9B | 22% | 23% | 72% | |
| GLM-5.2 | 31% | 32% | 74% | |
| TB2.1 | Qwen3.5-9B | 41% | 45% | 65% |
| Tmax-9B | 41% | 44% | 52% | |
| GLM-5.2 | 44% | 47% | 52% | |
Table 5: Verification across candidate pools. Share of the random–oracle gap recovered at by each verifier (columns) on pools generated by each model.
E Confidence Elicitation and Calibration
Before attempting each task, we elicit each model's predicted probability of successfully completing it (see the confidence prompt below). The model receives only the task instruction, wrapped in a prompt asking it to estimate its probability of success and return a single number between 0 and 1. No environment access is provided during elicitation, and no system prompt is used. We collect five estimates per task at temperature 1.0 and use their mean as the task-level confidence.
True success rate. We estimate each model's true success rate from its own repeated-sampling attempts on the same tasks (§5.1). Errored trials count as failures. We compute the true success rate by averaging per-task success rates, giving each task equal weight.
Calibration metrics. We measure calibration using the Brier score and overconfidence. The Brier score is computed over task–trial pairs as the mean squared difference between the task-level predicted confidence and each trial's binary outcome. Overconfidence is the mean difference between each task's predicted confidence and its empirical success rate, averaged equally across tasks.
Uncertainty estimation. We report 95% percentile bootstrap intervals based on 1,000 task-level bootstrap resamples with replacement (random seed 7). This procedure preserves task-level clustering and is used to estimate uncertainty in the reported metrics.
| Confidence prompt |
|---|
| Here is a task you will be asked to complete in a terminal environment.{instruction}Before starting, estimate the probability that you will complete this task successfully. Reply with a single number between 0 and 1 and nothing else.Output format: 0.XX |
F Additional Failure Analysis
We classify the failed trials into the failure modes of Table 6, following the taxonomy of Merrill et al. [14], with an LLM judge (GPT-5, high reasoning). For each model and harness, we judge a sample of its failed trials, dropping trials with no computed reward due to infrastructure errors. Figure 7 shows the failure modes across all harnesses, including our SLM-specific mode 09 (context-overflow looping), which Figure 2 omits; it is rare under vanillux2agent (at most 2.8% of failed trials).
| ID | Failure mode | Definition (judged MATCH/NO_MATCH per failed trajectory) |
|---|---|---|
| 01 | Disobey Task Specification | The trajectory materially contradicts an explicit directive of the task (a hard requirement, prohibition, or binding default). |
| 02 | Step Repetition | The agent re-executes an already-attempted phase (same sub-goal, tool, and target) with semantically identical actions, absent any material change in state. |
| 03 | Unaware of Termination | The agent continues acting beyond a reasonable stopping point—after success is achieved or futility is established. |
| 04 | Context Loss | The agent forgets or contradicts relevant recent context: concrete state (files created, errors seen) or its own earlier decisions. |
| 05 | Premature Termination | The agent declares completion before meeting explicit task objectives or supplying required verifications or critical information. |
| 06 | No/Irrelevant Verification | The agent marks the task complete with no check of core functional properties, or with only irrelevant checks. |
| 07 | Reasoning–Action Mismatch | The agent’s stated reasoning, claims, or commitments conflict with its observable actions and produced artifacts. |
| 08 | Weak Verification | Verification is present but does not cover the properties that must hold for true correctness (includes fabricated evidence of success). |
| 09 | Context-Overflow Looping | After a context-limit event, the agent proposes a “new” approach that is logically identical to a previously failed one (SLM extension; not in TB2). |
Table 6: Failure-mode taxonomy. Modes 01–08 adapted from the Terminal-Bench 2 methodology [14]; mode 09 is our SLM-specific extension. A single frontier judge (GPT-5, high reasoning effort) scores each mode independently on failed trajectories, so modes are non-exclusive.

Figure 7: Failure modes across various harnesses. Prevalence of failure modes across four widely used harnesses is shown on TBLITE. GLM-5.2 failures were not judged under mini-swe-agent.