Beyond the Model: Demystifying Harness Effects in Software Engineering Agents
Haichuan Hu, Quanjun Zhang, Shengcheng Yu, Zhifei Chen, Tianyu Luo, Chunrong Fang, Zhenyu Chen, Liang Xiao
Abstract
Large Language Model (LLM)-based agents are increasingly used for software engineering tasks, yet their performance is not determined by the base model alone. The agent harness substantially shapes how SE agents interact with repositories, execute actions, and validate solutions. However, the role of harness design remains insufficiently understood, especially across different models, tasks, and harness components. In this paper, we present a systematic empirical study of harness effects in SE agents. We first evaluate two representative harnesses, mini-SWE-agent and OpenCode, with ten models from two prominent open-weight model families, Qwen and DeepSeek, on three benchmarks: SWE-bench Pro, ProgramBench, and GitTaskBench. We then construct NanoHarness, a lightweight modular harness built on top of mini-SWE-agent, and use it to analyze five representative harness components: tool registry, context compression, explicit planning, subagents, and lazy skills. Experimental results show that harness effectiveness depends jointly on model capability and task type. Complex harnesses provide diminishing marginal gains on SWE-style issue repair as model capability improves, but can benefit stronger models on more complex and open-ended repository-level tasks. Component-level analysis on ProgramBench further shows that structured tool use and task-specific subagents provide the most stable improvements, while context compression and general subagents can hurt repository-generation performance. When combined, NanoHarness improves over mini-SWE-agent by 7.37 and 6.21 percentage points on Qwen3.7-Max and DeepSeek-V4-Pro, respectively, recovering most of the gains of product-level harnesses. These findings highlight harness design as a first-class factor in SE-agent performance and provide insights for building more effective and efficient coding agents.
Create a lesson
Related papers
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma
MEDSWE-BENCH: A Benchmark for Biomedical Software Engineering Agents
Shared title terminologycs.SEZhaoyang Zhu, Sicong Li, Zihan Liao et al.
Software Engineering for LLM-Based Agents: A Lifecycle-Oriented Survey
Shared title terminologycs.SEYifei Ge, Yalin Feng, Weisong Sun et al.
XRepoSkill: Learning Transferable Skills for Software Engineering Agents
Shared title terminologycs.SEYaoqi Guo, Haoyang Zhou, Jiayi Zhang et al.
Counterfactual Rollout Replay: Forkable Environments as Free Process Rewards for Software Engineering Agents
Shared title terminologycs.SEYuanhao Li, Hongbo Wang, Xuhong Chen et al.
LatentSift: Policy-State Filtering for Token-Efficient Verification of Software Engineering Agents
Shared title terminologycs.SEYuning Han, Yangchenchen Jin, Tyler Jandreau et al.