# Harness Engineering for Software Engineering via Modular Executable Dev-Primitives (HERMES)

- **ID:** 1333
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2610.07832
- **Authors:** Haibo Jin, Xinjie Li, Peng Kuang, Haohan Wang (UIUC, Penn State)
- **Venue:** arXiv 2610.07832 (cs.SE), submitted 6 Oct 2026
- **Published:** 2026
- **Source:** x
- **Language:** en
- **Access:** free
- **Added:** 2026-10-09
- **Verified:** 2026-10-09
- **Page:** https://papers.projxon.ai/entries/1333

## Summary

Introduces Dev-Primitives: a modular, executable abstraction that pairs each repository component (artifact) with a resident LLM, giving the artifact an agent-native interface grounded in its own implementation and dependencies — enabling natural-language reasoning, inter-component communication, and localized self-modification. This addresses the brittleness of LLM+terminal agents on long-horizon workflows: repeatedly reconstructing program state scattered across files, configs, tests, dependencies, and runtime behavior causes context explosion and semantic drift. Built on Dev-Primitives, HERMES instantiates them at repository scale through (1) a dependency-aware dynamic activation mechanism that decides which component primitives to activate, and (2) a bug-diagnosis mechanism that maps execution evidence (test failures) back to the components that must be revised. On whole-repository migration (SWE Refactor Bench, all 20 tasks): with GPT-5.6 Sol, the composite score rises from 6.5% under Codex to 31.0% under HERMES at medium effort (+24.5 points) and from 19.0% to 36.5% at high effort (+17.5), same model and effort setting — the gain comes from the harness. Across four software engineering benchmarks (SWE-bench Verified, SWE Refactor Bench, Terminal-Bench 4.0, DevOps-Gym), HERMES beats matched baseline harnesses (mini-SWE-agent, Claude Code, Codex) by 12.4 percentage points on average; gains are largest where the baseline leaves room for coordination (up to +19.4 points for GPT-5 Mini on SWE-bench Verified). With strong activation and diagnosis models, HERMES using Qwen3-8B Dev-Primitives stays within 4.5 points of the homogeneous GPT-5.6 Sol configuration across all four benchmarks while cutting Terminal-Bench 4.0 inference cost by 26.2%.

## Research notes

- Discovery: @omarsar0 (elvis, building @dair_ai, ex-Meta AI, ~323.5K followers, verified) X post 2026-10-08 ~8:53 PM ET (~27.9K views, 471 likes, 627 bookmarks): 'Build your own harness, folks. Reading papers like this makes me realize how underexplored harness engineering really is.' Thread numbers verified against the full paper PDF (not just the abstract): migration 6.5%->31.0% (Table 2, GPT-5.6 Sol medium effort; high effort 19.0%->36.5%; result repeats at 31.0 +/- 1.3 over 3 runs), +12.4 pp average over matched baseline harnesses, Qwen3-8B within 4.5 pp of all-GPT-5.6 Sol with -26.2% Terminal-Bench 4.0 inference cost. DECISION-RELEVANT TENSION with ID 1638 (Apple Malena, 'How Much of a Harness Does a Strong Agent Need'): Malena argues that under equal time budget and a frontier backbone, SOTA open-source harnesses give NO advantage over a single-session minimal-harness agent — harness machinery doesn't add statistically significant gains. HERMES is the direct counterpoint: same model, same effort, 6.5%->31.0% — the gain comes from the harness. Reconciling read: Malena's no-difference result is conditioned on frontier backbones and MLE-bench-style tasks where a capable backbone does adaptive search on its own; HERMES's gain appears on whole-repository migration, where program state is scattered across many components and the dependency-aware activation + failure-to-component diagnosis specifically address context explosion and semantic drift that a single ever-growing session suffers. In other words: the harness matters most when the task's state is distributed across the repository rather than held in one session's context. For the user's agent app: this pair (1638 vs 1640) frames the harness-design decision — minimal harness suffices when a frontier backbone can hold the whole task in context; structured per-component harnesses win when the work is spread across a large repo. Connects to 1609 (harness-tools thread: 65%+ tool overlap), 1638 (Apple Malena), 920 (multi-harness RL guide), and the agent-training cluster (1606, 1614, 1619, 1625, 1633, 1634). Paper license: CC BY 4.0. No code repo found in the paper at catalog time.

## Similar entries

- [The ultimate guide to multi-harness RL](https://papers.projxon.ai/entries/839) (post, #839)
- [The Anatomy of an Agent Harness](https://papers.projxon.ai/entries/1243) (post, #1243)
- [Mixture of Self-Improving Branches For Agent Harness Optimization](https://papers.projxon.ai/entries/1193) (paper, #1193)
- [Harness Learning Enables Generalizable Test-Time Adaptation](https://papers.projxon.ai/entries/851) (paper, #851)
- [Raven: The Harness of Harnesses for Composable Agentic Intelligence](https://papers.projxon.ai/entries/1249) (paper, #1249)
- [daVinci-Dev: Agent-native Mid-training for Software Engineering](https://papers.projxon.ai/entries/214) (dataset, #214)
