Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agents
Summary
Terminal agents act through stochastic model generations, but the ability to generate a useful action doesn't ensure reliable execution — one bad shell command (wrong package install) can poison the environment even when the model could have generated a better alternative. Investigates allocating test-time compute at the model-harness boundary: Mid-Harness samples and verifies candidate actions before forwarding one for execution, leaving generator and harness unchanged. With a TMAX-9B generator, more action sampling helps little under weak verification, while a capable verifier exploits useful alternatives from the same generator. On TerminalBench-Lite, a GPT-5.6 Sol verifier raises Pass@1 from 50.00% to 68.03% with 8 sampled actions; with TMAX-9B as its own verifier, pairwise verification performs best; distilling the stronger verifier into TMAX-9B improves Pass@1 further without touching the generator. Combining action and trajectory scaling reaches higher success at lower estimated token cost than more trajectories alone. Key design rule: spend more on the verifier than on extra samples. Practitioner takeaway (@thesignalnow): label candidate pairs offline with the strong verifier, fine-tune a small model, deploy it as the always-on checker — avoids paying frontier-model prices per action. Directly relevant to the user's agent-harness work.
- Venue
- arXiv:2609.39982 (cs.CL), submitted 30 Sep 2026
- Source
- arxiv
- Access
- free
- Language
- en
- Added
- Oct 4, 2026
- Verified
- Oct 4, 2026
- Found via
- #random-papers
Tags
Topics
terminal agents, test-time compute, action verification, TerminalBench, harness, distillation, pairwise comparison
Research notes
- Discovery: @dair_ai X post 2026-10-04 7:00 AM ET (https://x.com/dair_ai/status/2106700907106943107), ~2K views
- NVIDIA / KAIST
- DAIR.AI 'Chat with Paper' page: https://academy.dair.ai/papers/mid-harness-scaling-actions-between-model-and-harness-for-terminal-agents-2609.39982
- License: CC BY 4.0
Similar entries
- Paper Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute
- Paper Strategically Diverse Sampling for Self-Training
- Paper Reasoning Models Can Be Effective Without Thinking
- Paper The Illusion of Diminishing Returns: Measuring Long Horizon Execution in LLMs
- Paper Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training
- Other How I got the highest score on ARC-AGI again swapping Python for English