{
  "id": 1579,
  "kind": "paper",
  "title": "System Optimizations for Cost-Efficient Agent Harnesses",
  "summary": "Park, Yu, Zhou, Hong, Kim, Afifi, Wong, Stoica & Cheung (UC Berkeley; arXiv 2611.12122, Nov 9 2026, CC BY 4.0) split agent performance into its two levers and find they live in different places: task-execution ACCURACY depends mostly on the LLM, with harness-side variance (system prompts, tools) having minimal impact - but the same harness-side variance moves execution COST by up to 2.6x on the same model and task. So for cheaper agents you change the harness and keep the model. Analyzing cost-accumulation patterns across agent traces, they identify system-level opportunities to cut token use and LLM-call count without touching the model or accuracy - each technique reduces how much context a call re-reads or how many calls a task needs. To make the optimizations portable they built Agency, a harness INTERPOSITION platform: a layer between existing off-the-shelf harnesses (Claude Code, OpenAI Codex) and the model, exposing a unified abstraction so an optimization written once works across harnesses. Five proof-of-concept techniques implemented in Agency cut cost by up to 35% across real-world benchmarks on existing harnesses without compromising accuracy. Flags, as entered: abstract-level record at cataloging time - the 'up to 35%' is the best technique/benchmark combination, not an average; the five techniques' identities and per-technique costs live in the full text; results are on coding-agent harnesses and may not transfer to other agent shapes. Cross-references: the harness-design thread in the catalog and the harness throughline digest - this paper is the cost-side complement to the digest's behavior/monitorability operators: where the digest asks what a harness makes the model DO, this asks what the harness makes each step COST, and its answer (repeated context reads and extra calls dominate) is a systems checklist for any agent deployment, including the user's own agent app.",
  "body": "",
  "notes": "Shared 2026-11-10 via @dair_ai (status 2120204345602101457). Paper CC BY 4.0 (license icon on the arXiv record). STAGED 2026-11-10 during the Neon quota freeze; insert after the earlier staged items when writes reopen.",
  "url": "https://arxiv.org/abs/2611.12122",
  "links": [],
  "authors": [
    "Jongseok Park",
    "Jiaxiang Yu",
    "Eric Zhou",
    "Tony Hong",
    "Sunga Kim",
    "Yusuf Afifi",
    "Ian Wong",
    "Ion Stoica",
    "Alvin Cheung"
  ],
  "tags": [],
  "topics": "",
  "venue": "arXiv preprint",
  "publisher": "",
  "source": "arxiv",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-11-10T00:00:00.000Z",
  "verified_at": "2026-11-10T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1878"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-12-01T12:42:13.477Z",
  "updated_at": "2026-12-01T12:42:13.477Z",
  "page": "https://papers.projxon.ai/entries/1579",
  "markdown": "https://papers.projxon.ai/entries/1579.md",
  "api": "https://papers.projxon.ai/api/entries/1579",
  "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": 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": 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": 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": 821,
      "kind": "paper",
      "title": "LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning",
      "summary": "A benchmark evaluating both the effectiveness and efficiency of long-context LM harnesses (RLMs, ReAct, mini-swe-agent-style coding agents). Existing long-context evaluations are saturated across harnesses, so the four hard tasks require strategic/efficient reasoning (multiple valid strategies with very different costs), hard retrieval (both GREP and semantic), and extensive multi-step reasoning. Example: Constraint Solving asks for every person satisfying 5 conditions scattered across documents; checking the most selective condition first narrows candidates far more cheaply than checking every condition. 5 frontier LMs x 4 agentic harnesses: best setup reaches only 68% macro-average accuracy and no single harness leads across all tasks. Clear accuracy gaps, plus >10x efficiency differences even with the same LM and similar accuracy: more compute does not always mean better accuracy. mini-swe-agent is especially strong, reaching the best performance at a cost close to direct inference. Establishes efficiency as an axis for long-context evaluation and provides a testbed for harnesses that process context strategically rather than exhaustively.",
      "url": "https://arxiv.org/abs/2609.38137",
      "authors": [
        "Quang Hieu Pham",
        "Thuy Duong Nguyen",
        "Jocelyn Qiaochu Chen",
        "Xi Ye"
      ],
      "tags": [
        "long-context",
        "harnesses",
        "agents",
        "benchmarks",
        "efficiency",
        "retrieval"
      ],
      "venue": "arXiv (2026-09-29), cs.CL; CC BY 4.0",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00: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/821",
      "markdown": "https://papers.projxon.ai/entries/821.md",
      "api": "https://papers.projxon.ai/api/entries/821"
    },
    {
      "id": 1292,
      "kind": "paper",
      "title": "AECP: Artifact-Exclusive Communication Protocol for Multi-Agent Code Generation",
      "summary": "AWS AI Labs (first author Jiaqi Xue, UCF, during an AWS internship). In free-form multi-agent coding teams, shared findings are just context — agents can ignore them, and deviations from agreed module interfaces go undetected. AECP requires agents to communicate exclusively through structured artifacts, and specifies how the harness processes them: the harness supplies recorded findings when an agent accesses relevant code, screens implementations against recorded interface commitments, and requires affected agents to revisit an agreement when it changes. These coordination steps become part of harness execution rather than actions agents must initiate from prior messages. Across Doc2Repo, NL2Repo, and CodeProjectEval, with closed- and open-source models including Opus-4.8 and DeepSeek-V4-Flash, AECP improves average test pass rate by 28.2% and reduces average wall time by 16.5% relative to a team using free-form inter-agent messages. Artifact-exclusive communication also blocks relay of malicious instructions between agents: they reach other agents 0% of the time (vs 95%) and are acted on 0% of the time (vs 40%). CC BY 4.0.",
      "url": "https://arxiv.org/abs/2610.06481",
      "authors": [
        "Jiaqi Xue",
        "Yanjun Wang",
        "Xiangci Li",
        "Lingbo Mo",
        "Aritra Sengupta",
        "Shweta Garg",
        "Murali Krishna Ramanathan",
        "Myeongsoo Kim"
      ],
      "tags": [
        "aecp",
        "artifact-exclusive-communication",
        "multi-agent-code-generation",
        "harness-design",
        "interface-commitments",
        "prompt-injection-defense",
        "aws-ai-labs",
        "doc2repo",
        "nl2repo",
        "codeprojecteval"
      ],
      "venue": "arXiv",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-07T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1292",
      "markdown": "https://papers.projxon.ai/entries/1292.md",
      "api": "https://papers.projxon.ai/api/entries/1292"
    }
  ]
}
