Harnesses That Improve Themselves: A Unifying Framework for Self-Improving Agent Harnesses
On the map: LLM agents and tool use → Software engineering coding agents
also in 1 more
Abstract (arXiv)
Whether a foundation model succeeds as an autonomous agent depends as much on its runtime software as on its weights. This runtime, the agent harness, manages context and memory, steers multi-turn control, executes tool actions in sandboxes, and verifies work before stopping. Because models differ in how they use tools and how they fail, a static harness tuned for one model or task often stalls, wastes tokens, or regresses on another. This bottleneck has driven a shift from prompt tuning to self-improving agent harnesses: systems that inspect their own execution traces, separate runtime bugs from model limits, and rewrite their own code. We present a unifying architectural and design framework for self-improving agent harnesses. The framework pairs four editable runtime components (context and state, agent control, action interfaces, and verification and recovery) with a four-stage loop that diagnoses failures, proposes code patches, validates candidates, and deploys updates. Using this framework, we show how optimizers trace errors across long trajectories and discover reusable runtime mechanisms such as pre-stop verifiers, loop breakers, and persistent memory. We further show why full-harness rewrites overfit or break across modules, and how modular updates with validation gates generalize across models while bounding token cost. To keep self-modification safe, we establish practical defenses against recurring failure modes including prompt bloat, benchmark gaming, and evaluator tampering. Finally, experiments on SWE-bench Lite validate this framework, showing that gated modular evolution outperforms prompt reflection and full-harness rewrites across models and repositories at a fraction of the token cost.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 85 of its 96 references that are in the map. Submitted 17 Nov 2026, announced 18 Nov 2026.
Builds on
85 of 96 references.
Closest ancestors · 33
Same direction, newest first
- 2026MESH-Harness: Self-Improving Agent Harnesses via Bandit-Guided Compositional Evolution4 Oct
- 2026Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild4 Oct
- 2026Audit the Scaffold, Not the Checkpoint: A Stationarity Dichotomy for Recursive Self-Improvement in Agentic Coding28 Sep
- 2026Towards Certificate-Driven Software Porting: A Self-Improving Agentic Harness for Scientific Program Optimization28 Sep
- 2026PluginRSI: Recursive Improvement of Agent Harnesses with Reusable Plugins26 Sep
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents22 Sep
- 2026SoL-Pi: Recursively Scaling Auto-Research Loops for Efficient Agent Harness17 Sep
- 2026Is Bash All You Need? An Empirical Study of Tool Interfaces for Enterprise Digital Worker Agents10 Sep
- 2026Shortcutting the Fix: Identifying and Categorizing Agentic Exploits in Software Engineering Benchmarks6 Sep
- 2026EvoHarnessBench: Can Your Agents Keep Pace with an Evolving Harness?3 Sep
- 2026AutoSaddler: Automatic Harness Optimization with Durable Updates from Agent Execution Traces24 Aug
- 2026Mendel G"odel Machine: Recursive Self-Improving Coding Agents via Comparative Evolution7 Aug
21 more
- 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnesses3 Aug
- 2026Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories28 Jul
- 2026Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems15 Jul
- 2026HarnessBank: Semantic Gene-Bank Search with Gated Verification for Agent-Harness Self-Evolution15 Jul
- 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable14 Jul
- 2026Rethinking the Evaluation of Harness Evolution for Agents14 Jul
- 2026Phantom Guardrails: When Self-Improving Agent Harnesses Fix Failures That Never Happened13 Jul
- 2026Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptation9 Jul
- 2026Don't Blame the Large Language Model: How Agent Harness Evolution Shapes Coding Agent Quality4 Jul
- 2026The Scaffold Effect in Coding Agents: Harness Choice as a Hidden Variable in Coding-Agent Evaluation8 Jun
- 2026Self-Harness: Harnesses That Improve Themselves8 Jun
- 2026Harness Updating Is Not Harness Benefit: Disentangling Evolution Capabilities in Self-Evolving LLM Agents28 May
- 2026SpecBench: Measuring Reward Hacking in Long-Horizon Coding Agents20 May
- 2026Continual Harness: Online Adaptation for Self-Improving Foundation Agents11 May
- 2026Guardrails Beat Guidance: A Large-Scale Study of Rules, Skills, and Persistent Configuration for Coding Agents13 Apr
- 2026Building Effective AI Coding Agents for the Terminal: Scaffolding, Harness, Context Engineering, and Lessons Learned5 Mar
- 2025A Self-Improving Coding Agent21 Apr
- 2024AFlow: Automating Agentic Workflow Generation14 Oct
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 52
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 699
- 2024Automated Design of Agentic Systemscited by 507
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 415
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 213
- 2025Multi-agent Architecture Search via Agentic Supernetcited by 202
- 2024Symbolic Learning Enables Self-Evolving Agentscited by 113
- 2025SWE-bench Goes Live!cited by 100
38 more
- 2026AutoHarness: improving LLM agents by automatically synthesizing a code harnesscited by 97
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 86
- 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 73
- 2026RRSI: Regularized Recursive Self-Improvement of Agent Harnessescited by 48
- 2026Recursive Harness Self-Improvementcited by 47
- 2025MCP-Zero: Active Tool Discovery for Autonomous LLM Agentscited by 46
- 2025RAG-MCP: Mitigating Prompt Bloat in LLM Tool Selection via Retrieval-Augmented Generationcited by 33
- 2026Dream-RSI: Recursive Self-Improvement through Evolving Worldscited by 32
- 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvementcited by 27
- 2026Model Context Protocol (MCP) Tool Descriptions Are Smelly! Towards Improving AI Agent Efficiency with Augmented MCP Tool Descriptionscited by 23
- 2026Benchmarking Reward Hack Detection in Code Environments via Contrastive Analysiscited by 22
- 2026Recursive Experiential-Working Memory Evolution for Long-Horizon Agent Harnessescited by 19
- 2026Clawdrain: Exploiting Tool-Calling Chains for Stealthy Token Exhaustion in OpenClaw Agentscited by 16
- 2026More Skills, Worse Agents? Skill Shadowing Degrades Performance When Expanding Skill Librariescited by 15
- 2026Harness-Zero: Harness Distillation via Agent-as-Harnesscited by 15
- 2026HELIX: Model-Harness Co-evolution for Recursive Self-Improvementcited by 13
- 2026RegenHarness: A Robot Agent Harness with Evidence-Gated Recursive Self-Improvementcited by 12
- 2026NeoHorse-1: Towards Recursive Self-Improvement via Agentic Post-Training with Routing Harnesscited by 8
- 2026Reward Hacking as Equilibrium under Finite Evaluationcited by 7
- 2026Auditing Harness Tampering in Self-Improving Agentscited by 7
- 2026HarnessSafe: Evaluating Safety Across Persistent Carriers in Agent Harnessescited by 5
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Codingcited by 5
- 2026Lost in Context Compaction: When LLM Systems Drop Side Constraintscited by 5
- 2026Generalized Agent Iteration: One Formal Framework for Iterative Policy Improvement and Recursive Self-Improvementcited by 5
- 2026Finding the Right Fit: Model-Harness Interactions across Agent Taskscited by 5
- 2026Reflections on Trusting Trust, Revisited: Contaminating Self-Modifying AI Coding Agents with Poisoned Benchmarkscited by 4
- 2026Mixture of Self-Improving Branches For Agent Harness Optimizationcited by 4
- 2026Hack-Verifiable Terminal Bench: Evaluating Reward Hacking in Terminal Taskscited by 3
- 2026G"odel Forest: Balancing Search Depth and Breadth for Data-Centric Recursive Self-Improvementcited by 3
- 2026Harness Evolution as Learning: Approximation, Generalization, and Optimization Limits of Self-Improving Personal Agentscited by 3
- 2026Authorization for Self-Modifying AI Agent Populations: Conserving Authority across Replacement, Forking, and Rollbackcited by 3
- 2026EMHO: EMbodied Agent Harness Optimization via Experience Tracescited by 3
- 2026When "Do Not" Is Not Deny: Security Rules in CLAUDE.md vs Built-In Controlscited by 2
- 2026Raven: The Harness of Harnesses for Composable Agentic Intelligencecited by 2
- 2026Learning from Research: Toward Lifelong Agent Harness Evolutioncited by 2
- 2026Turbo Harness: Instance-Adaptive Harness Optimizationcited by 2
- 2026ActiveSaddler: Automated Curriculum Learning for Agent Harness Optimizationcited by 2
- 2026GUI-HARVEST: Self-Improving GUI Agents through Evidence-Driven Harness Evolutioncited by 2
50 most cited of 52 All 52 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Harness^2: Recursive Agent Harnessing for an Open World
- 2026AI Harness Engineering: A Runtime Substrate for Foundation-Model Software Agents
- 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents
- 2026Harness-Bench: Measuring Harness Effects across Models in Realistic Agent Workflows
- 2026Adaptive Auto-Harness: Sustained Self-Improvement for Agentic System Deployment on Open-Ended Task Streams
- 2026Hierarchical Self-Improvement: A Framework for Task-Specific Evolvable Agent Harnesses
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses
- 2026When Agents Fail: Model or Harness--Who's to Blame?