{
  "id": 1333,
  "kind": "paper",
  "title": "Harness Engineering for Software Engineering via Modular Executable Dev-Primitives (HERMES)",
  "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%.",
  "body": "",
  "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.",
  "url": "https://arxiv.org/abs/2610.07832",
  "links": [],
  "authors": [
    "Haibo Jin",
    "Xinjie Li",
    "Peng Kuang",
    "Haohan Wang (UIUC",
    "Penn State)"
  ],
  "tags": [],
  "topics": "",
  "venue": "arXiv 2610.07832 (cs.SE), submitted 6 Oct 2026",
  "publisher": "",
  "source": "x",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-09T00:00:00.000Z",
  "verified_at": "2026-10-09T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "omarsar0",
    "legacy_paper_id": "1640"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-09T17:23:52.107Z",
  "updated_at": "2026-10-09T17:23:52.107Z",
  "page": "https://papers.projxon.ai/entries/1333",
  "markdown": "https://papers.projxon.ai/entries/1333.md",
  "api": "https://papers.projxon.ai/api/entries/1333",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 839,
      "kind": "post",
      "title": "The ultimate guide to multi-harness RL",
      "summary": "The ultimate guide to multi-harness RL (Adithya S Kolavi / FineEnvs, Hugging Face Space, 2026-10-01). Not a paper: a 33-figure ~60-page interactive research article plus full artifact release documenting how to do RL across multiple agent harnesses without modifying them -- claiming the first public multi-harness agent RL pipeline. Core idea: a 'capture proxy' sits between the agent harness and vLLM, speaks the four API formats coding agents use (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini), records exact token ids/logprobs sampled by vLLM, and reconstructs TRL-trainable traces, so the same rollouts run unmodified through 10+ harnesses. Full GRPO runs: LFM2.5-2.6B trained with multi-harness RL on 1,000 SmolDataEnvs data-analysis tasks, evaluated on 250 held-out tasks under four harnesses: base 42.2% -> multi-harness RL 54.2% pass@1 overall (step 1,000; best checkpoint step 700: 54.6%); per-harness OpenCode 49.6%, Claude Code 48.8%, Codex 53.6%, Mini-SWE-Agent 64.8%. OpenCode-only RL (step 900) reached 52.4% overall and won on its home harness (56.0%) but lost to multi-harness RL on Claude Code and Codex. Tool efficiency: correctness-only reward keeps tool calls high; adding a small bonus for fewer calls cut tool calls 31.1% on 356 task/harness pairs solved by both base and model, savings in all four harnesses. SFT comparison: fine-tuning on 3,189 successful Qwen3.8-27B teacher rollouts (17,929 examples, 2 epochs) plateaued -- OpenCode SFT 47.5% (-8.5% calls), multi-harness SFT 43.1% (-24.2% calls), both below RL (54.6%), showing multi-harness RL beats imitation at both performance and efficiency. Setup: async GRPO (TRL Async GRPO), 1,000 steps, reward = correctness x (1 + 0.1x15/(15+tool_calls)), 8 rollouts per GRPO group (one harness each, rotating), on 2xH100 (~32h OpenCode-only, 46h multi-harness); rollouts in E2B sandboxes via OpenEnv + Harbor. OpenEnv is BSD-3-Clause (PR #1036 capture proxy + Harbor, PR #1280 typed TrainingTrace API); TRL PR #6947 HarnessRolloutWorker (on TRL main, not v1.14.1). Trained models (full weights) under LFM Open License v1.0: LFM2.5-2.6B-multiharness-RL, -opencode-RL, -multiharness-SFT, -opencode-SFT, Qwen3.5-2B variants. Caveat from the model card: best-checkpoint selection used the test set (no separate validation set); single-run results on fixed harness versions.",
      "url": "https://huggingface.co/spaces/FineEnvs/multi-harness-rl",
      "authors": [
        "Adithya S Kolavi (FineEnvs / Hugging Face)"
      ],
      "tags": [
        "multi-harness-rl",
        "agent-harnesses",
        "grpo",
        "trl",
        "openenv",
        "vllm",
        "capture-proxy",
        "claude-code",
        "codex",
        "opencode",
        "tool-efficiency",
        "sft-vs-rl",
        "smoldataenvs",
        "harbor",
        "agentic-rl"
      ],
      "venue": "Hugging Face Space, 2026-10-01",
      "source": "article",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/839",
      "markdown": "https://papers.projxon.ai/entries/839.md",
      "api": "https://papers.projxon.ai/api/entries/839"
    },
    {
      "id": 1243,
      "kind": "post",
      "title": "The Anatomy of an Agent Harness",
      "summary": "Synthesis of how Anthropic, OpenAI, LangChain, and Perplexity actually structure production agents - identifying 12 production-grade harness components (cited as the canonical reference by projects like Mnemosyne, which audits itself row-by-row against it). Framed the field's three-phase trajectory: competing on model weights, then context engineering, then harness engineering - each stage widening what the practitioner is responsible for shaping. LangChain's Vivek Trivedy formalized the companion distinction: 'If you're not the model, you're the harness.' The harness is the runtime shipped as a product (loop engine, tool registry with schemas/permissions/errors, state/memory persistence, control loop, verification layer, recovery policy, budget manager); you configure it, you don't construct it.",
      "url": "https://x.com/i/article/2041146899319971922",
      "authors": [
        "Akshay Pachaar"
      ],
      "tags": [
        "agent-harness",
        "harness-engineering",
        "production-agents",
        "claude-code",
        "codex",
        "langchain",
        "tool-registry"
      ],
      "venue": "dailydoseofds.com + X Article, Apr 2026",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1243",
      "markdown": "https://papers.projxon.ai/entries/1243.md",
      "api": "https://papers.projxon.ai/api/entries/1243"
    },
    {
      "id": 1193,
      "kind": "paper",
      "title": "Mixture of Self-Improving Branches For Agent Harness Optimization",
      "summary": "Harness optimization is a practical setting for recursive self-improvement: agent-generated modifications inform subsequent changes through execution feedback. Meta-Harness implements this via iterative code generation and evaluation, but a fixed development set and fixed proposal policy channel evolution along a single trajectory, risking local optima — and a harness that solves cases the leaders miss yet ranks lower overall gets little chance for further development. Mixture of Self-Improving Branches organizes the improvement process itself into parallel branches, each with evolving development subsets and proposal policies. Every branch starts identical (same seed harnesses, full problem set, same guidance); no one assigns specialties. After each iteration, branches are compared problem by problem: a branch keeps development cases solved by more of its leading harnesses than by other branches' leaders, drops cases solved by every leading harness across all branches, and revises its own proposal policy (the proposer rewrites its own guidance) using its own search history. The whole loop runs on each branch's own data. The branches grow into different experts, and at test time a router sends each new problem to one branch's best harness before execution. Relative improvements over Meta-Harness: +34.8% on Olympiad-level math (46.0% -> 62.0%), +11.6% on Terminal-Bench 2.0 (44.8% -> 50.0%), +3.8% on SWE-bench Lite (63.6% -> 66.0%), with harness selection and router configuration based solely on development data.",
      "url": "https://arxiv.org/abs/2609.37834",
      "authors": [
        "Haoyu Dong",
        "Yuhang Zhou",
        "Zihao Lin",
        "Yifan Wu",
        "Bo Peng",
        "Mingyi Wang",
        "Xiangjun Fan",
        "Lizhu Zhang",
        "Zhuokai Zhao"
      ],
      "tags": [
        "self-improving-agents",
        "harness-optimization",
        "meta-harness",
        "recursive-self-improvement",
        "routing",
        "specialization",
        "olympiad-math",
        "terminal-bench"
      ],
      "venue": "arXiv:2609.37834 (cs.AI), submitted 29 Sep 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1193",
      "markdown": "https://papers.projxon.ai/entries/1193.md",
      "api": "https://papers.projxon.ai/api/entries/1193"
    },
    {
      "id": 851,
      "kind": "paper",
      "title": "Harness Learning Enables Generalizable Test-Time Adaptation",
      "summary": "Introduces harness learning: instead of updating model weights at test time, train a proposer model to revise the solver's executable harness — the program organizing model calls, tool use, and information flow — using execution feedback. Framed as meta-learning over executable programs, with harness revisions playing the role of weight updates; the proposer is trained with RL using revised harnesses' task performance as reward, and candidate harnesses run under a frozen solver. On 21 unseen Reasoning Gym families, SFT followed by RL raises mean single-revision score from 0.32 (base proposer) to 0.62, and the trained 4B proposer beats its 35B teacher on average. A QA proposer trained with RL only on HotpotQA transfers to MuSiQue and 2WikiMultihopQA, with ten revision rounds nearly doubling exact match. Policies trained on single revisions keep improving harnesses over multiple rounds, suggesting harness design can become a reusable adaptation skill.",
      "url": "https://arxiv.org/abs/2609.35738",
      "authors": [
        "Alvin Zhang",
        "Xuecheng Liu",
        "Zixuan Wang",
        "Fahim Tajwar",
        "Daman Arora",
        "Ruslan Salakhutdinov",
        "Daniel Khashabi",
        "Yuda Song",
        "Andrea Zanette"
      ],
      "tags": [
        "harness-learning",
        "harness-optimization",
        "test-time-adaptation",
        "meta-learning",
        "proposer-model",
        "execution-feedback",
        "reasoning-gym",
        "hotpotqa",
        "musique",
        "continual-learning-agents"
      ],
      "venue": "arXiv:2609.35738 (cs.CL), submitted 28 Sep 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/851",
      "markdown": "https://papers.projxon.ai/entries/851.md",
      "api": "https://papers.projxon.ai/api/entries/851"
    },
    {
      "id": 1249,
      "kind": "paper",
      "title": "Raven: The Harness of Harnesses for Composable Agentic Intelligence",
      "summary": "Open-source multi-agent ecosystem that automatically constructs and evolves modular agent harnesses for specific models and domains, treating each executable model-harness pair as a composable unit of intelligence. Harness components are diagnosed, mutated, and recombined from failures; a candidate replaces the current harness only after passing a statistical check. A Host Agent decomposes goals into a task graph and routes parts to specialized model-harness pairs (research, code, design, on-call); a host archive and EverOS preserve experience across tasks and Skill Forge makes it available as reusable procedures. Theory gives sufficient conditions for composition to expand reliable task coverage beyond the individual agents under a shared resource budget. With DeepSeek-V4-Flash, the research harness scores 69.3% on BrowseComp and 60.0% on Humanity's Last Exam (vs at most 62.4%/43.3% for two other harnesses on the same model); a curated skill library raises SkillsBench Pass@1 from 9.2% to 22.6%.",
      "url": "https://arxiv.org/abs/2609.33439",
      "authors": [
        "EverMind AI"
      ],
      "tags": [
        "multi-agent",
        "agent-harness",
        "harness-evolution",
        "task-decomposition",
        "browsecomp",
        "evermind-ai",
        "composable-agents"
      ],
      "venue": "arXiv 2609.33439 [cs.AI/cs.MA], submitted 27 Sep 2026, preprint",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1249",
      "markdown": "https://papers.projxon.ai/entries/1249.md",
      "api": "https://papers.projxon.ai/api/entries/1249"
    },
    {
      "id": 214,
      "kind": "dataset",
      "title": "daVinci-Dev: Agent-native Mid-training for Software Engineering",
      "summary": "daVinci-Dev is a dataset of agent-native trajectories for software engineering mid-training, consisting of two complementary sources: ~4.1M LLM-enhanced GitHub pull request trajectories (contextually-native) and test-passing executable rollouts from SWE-Agent + GLM-4.6 on SWE-rebench (environmentally-native). It was used to train the daVinci-Dev-72B and daVinci-Dev-32B models for agentic coding tasks.",
      "url": "https://huggingface.co/datasets/GAIR/daVinci-Dev",
      "authors": [
        "GAIR / SII (Shanghai Innovation Institute for AI)"
      ],
      "tags": [],
      "venue": "GAIR (Global AI Research Lab) / SII",
      "source": "huggingface",
      "license": "mixed-permissive-and-cc-by-4.0",
      "published_year": 2026,
      "added_at": "2026-07-17T20:18:03.726Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "code",
        "text"
      ],
      "size_class": "1M<n<10M",
      "citation_count": null,
      "downloads": 2937,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/214",
      "markdown": "https://papers.projxon.ai/entries/214.md",
      "api": "https://papers.projxon.ai/api/entries/214"
    }
  ]
}
