Harness Self-Evolution for Long-Horizon Terminal Agents
Ruhan Wang, Yucheng Shi, Zongxia Li, Junyao Yang, Zhongzhi Li, Yue Yu, Haitao Mi, Dongruo Zhou, Leoweiliang
Abstract
Long-horizon terminal agents may solve a task in one run yet fail across repeated runs. Stochastic errors can propagate through actions and context, creating a gap between capability and reliable execution. We present RiseHarness, a framework for iteratively improving agent harnesses with model weights fixed. It focuses on flipping tasks with both successful and failed runs under the same configuration, using successful runs as references for failure analysis. RiseHarness combines agent trajectories with internal harness traces from a runtime monitor to examine how model actions interact with command execution, feedback, context management, and completion decisions. A Harness Handbook links this evidence to harness behaviors and source code, helping identify recurring problems in mechanisms shared across tasks. RiseHarness then searches other harness frameworks for relevant implementations and adapts them as design references to the current model and execution protocol. Candidate changes undergo behavioral checks and repeated task evaluation; versions with measured gains seed the next iteration. This loop integrates suitable mechanisms from different frameworks into a single harness and uses new execution evidence to guide further changes. We evaluate task success and reliability across models, ablate harness execution evidence and external research, and test transfer to unseen benchmarks with the same model. RiseHarness treats a specific model as the unit of harness adaptation, studying how changes to shared interaction mechanisms can make existing capabilities more reliable across tasks.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL
- Comments
- 38 pages, 7 figures, 7 tables, including appendices
Related papers
FinEvo: Recursive Self-Improvement for Long-Horizon Financial Modeling
Shared title terminologycs.AIChengjun Pan, Shichun Liu, Zekai Zhou et al.
RIPPLE: Recovery Internalization through Process-Level Policy Learning and Effect-Aware Credit for Long-Horizon Agentic Coding
Shared title terminologycs.AIJingxuan Xu, Zihang Xu, Yuechen Luo et al.
Governed Self-Evolution for Autonomous Investing: A Multi-Agent LLM System with an Invariant Core
Shared title terminologycs.AIYebo Feng, Jingyang Dai, Liangrui Pan et al.
HGM-Dual: Lineage-Aware Guided Agent Harness Optimization for Long-Horizon Planning
Shared title terminologycs.AISudipta Paul, Pengrui Quan, Aounon Kumar et al.
FALCA: Falsification-Aware Reinforcement Learning with Hierarchical Credit Assignment for Long-Horizon Deep Search Agents
Shared title terminologycs.AIZijun Dou, Kun Luo, Chaofan Li et al.
CUA-Recovery: Benchmarking Error Recovery in Long-Horizon Computer-Use Agents
Shared title terminologycs.AIXu Hu, Haoming Li, Yuxiang Wang et al.