# Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agents

- **ID:** 1229
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2609.39982
- **Authors:** Minki Kang, Ryo Hachiuma, Shaokun Zhang, Subhashree Radhakrishnan, Yonggan Fu, Jindong Jiang, Mingjie Liu, Ehsan Hosseini-Asl, Yi Dong, Yu-Chiang Frank Wang, Byung-Kwan Lee
- **Venue:** arXiv:2609.39982 (cs.CL), submitted 30 Sep 2026
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Tags:** mid-harness, terminal-agents, test-time-compute, action-verification, terminalbench, distillation, pairwise
- **Topics:** terminal agents, test-time compute, action verification, TerminalBench, harness, distillation, pairwise comparison
- **Added:** 2026-10-04
- **Verified:** 2026-10-04
- **Page:** https://papers.projxon.ai/entries/1229

## 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.

## 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

- [Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute](https://papers.projxon.ai/entries/460) (paper, #460)
- [Strategically Diverse Sampling for Self-Training](https://papers.projxon.ai/entries/1235) (paper, #1235)
- [Reasoning Models Can Be Effective Without Thinking](https://papers.projxon.ai/entries/551) (paper, #551)
- [The Illusion of Diminishing Returns: Measuring Long Horizon Execution in LLMs](https://papers.projxon.ai/entries/546) (paper, #546)
- [Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training](https://papers.projxon.ai/entries/1519) (paper, #1519)
- [How I got the highest score on ARC-AGI again swapping Python for English](https://papers.projxon.ai/entries/613) (other, #613)
