Self-Harness: Harnesses That Improve Themselves
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
The performance of LLM-based agents is jointly shaped by their base models and the harnesses that mediate their interaction with the environment. Because different models exhibit distinct behaviors, effective harness design is inherently model-specific. Yet agent harnesses are still largely engineered by human experts, a paradigm that scales poorly as modern LLMs become increasingly diverse and rapidly evolving. In this paper, we introduce Self-Harness, a new paradigm in which an LLM-based agent improves its own operating harness, without relying on human engineers or stronger external agents. We operationalize Self-Harness as an iterative loop with three stages: Weakness Mining, which identifies model-specific failure patterns from execution traces; Harness Proposal, which generates diverse yet minimal harness modifications tied to these failures; and Proposal Validation, which accepts candidate edits only after regression testing. We instantiate Self-Harness across Terminal-Bench-2.0, SWE-bench Verified, and AppWorld using a minimal initial harness and three base models from diverse families: MiniMax M2.5, Qwen3.5-35B-A3B, and GLM-5. Across all nine model--benchmark combinations, every final harness improves both held-in and held-out pass rates, with overall relative gains of up to 132%. Qualitative analyses further show that the retained mechanisms address benchmark-specific bottlenecks in artifact handling and runtime control, software-patch verification, and application-state retrieval. These results suggest a path toward LLM-based agents that are not merely shaped by their harnesses, but can also participate in reshaping them.
Key facts. Cited by 79 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 28 of its 37 references that are in the map. First posted on arXiv 8 Jun 2026.
Builds on
28 of 37 references.
Closest ancestors · 5
Same direction, newest first
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses28 Apr
- 2026Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems14 Apr
- 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents26 Jul
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 23
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2024The AI Scientist: Towards Fully Automated Open-Ended Scientific Discoverycited by 1,002
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 515
- 2025The AI Scientist-v2: Workshop-Level Automated Scientific Discovery via Agentic Tree Searchcited by 375
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 349
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 294
11 more
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2024The Prompt Report: A Systematic Survey of Prompt Engineering Techniquescited by 115
- 2025Alita: Generalist Agent Enabling Scalable Agentic Reasoning with Minimal Predefinition and Maximal Self-Evolutioncited by 114
- 2024Language Agents as Optimizable Graphscited by 81
- 2025Leveraging Dual Process Theory in Language Agent Framework for Real-time Simultaneous Human-AI Collaborationcited by 10
- 2025The Path of Self-Evolving Large Language Models: Achieving Data-Efficient Learning via Intrinsic Feedbackcited by 6
- 2026Controllable and Verifiable Tool-Use Data Synthesis for Agentic Reinforcement Learningcited by 5
- 2026Anticipatory Planning for Multimodal AI Agentscited by 4
- 2026SemaClaw: A Step Towards General-Purpose Personal AI Agents through Harness Engineeringcited by 4
Built on by
Citing papers per year: 2026: 79.
79 papers.
Sort:
By area:
- 2026Recursive Harness Self-Improvementcited by 22
- 2026SkillOpt-Lite: Better and Faster Agent Self-evolution via One Line of Vibecited by 18
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
- 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnessescited by 13
- 2026Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectoriescited by 13
- 2026TTHE: Test-Time Harness Evolutioncited by 12
- 2026HarnessBank: Semantic Gene-Bank Search with Gated Verification for Agent-Harness Self-Evolutioncited by 11
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolutioncited by 10
- 2026AutoSaddler: Automatic Harness Optimization with Durable Updates from Agent Execution Tracescited by 9
- 2026Evo-Bench: Can Language Models Improve Agent Harness?cited by 8
- 2026Verify Smarter, Evolve Further: Efficient Harness Evolution through Behavior-Aware Verificationcited by 7
- 2026WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolutioncited by 7
38 more
- 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?cited by 7
- 2026SHE: Trajectory-driven Safety Harness Evolution for LLM Agentscited by 6
- 2026HarnessEvolve: Learning from Reference Trajectories for Reliable Agent Self-Evolutioncited by 6
- 2026SafeEvolve: Harness-Policy Co-Evolution from Agent Experience for Safety Alignmentcited by 6
- 2026AutoDesign: Meta-Harness Optimization for Long-Horizon Agentic Designcited by 5
- 2026The Last AI Built by Humans: Toward Genuine Recursive Self-Improvementcited by 5
- 2026Automated Discovery Has No Universally Superior Harnesscited by 4
- 2026DREvo: Distilling Recalibrated Historical Experience for Harness Self-Evolutioncited by 4
- 2026Hierarchical Self-Improvement: A Framework for Task-Specific Evolvable Agent Harnessescited by 4
- 2026Code Is the Body: Agent-Owned Software Bodies for Recursive Evolution and Descentcited by 3
- 2026PILOT in the Loop: Live Self-Improvement for Long-Horizon Agentscited by 3
- 2026Auditing Harness Tampering in Self-Improving Agentscited by 3
- 2026RRSI: Regularized Recursive Self-Improvement of Agent Harnessescited by 3
- 2026Harness-Zero: Harness Distillation via Agent-as-Harnesscited by 3
- 2026Self-Evolving Coding Agentscited by 2
- 2026Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agentscited by 2
- 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvementcited by 2
- 2026EvolveNet: Collaborative Harness Evolution for Agent Self-Improvementcited by 1
- 2026EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agentscited by 1
- 2026Beyond Final Scores: A Systematic Evaluation of Agents for Long-Horizon AI Research and Developmentcited by 1
- 2026Training Agents to Evolve with Their Harness: TaoLive Digital Avatar Agent Technical Reportcited by 1
- 2026What is Missing from AI Post-Training AI: An Empirical Analysiscited by 1
- 2026Graph Engineering in the Era of LLM Agents: From Individual Intelligence to System Intelligencecited by 1
- 2026Agents in the Large: Perception-Centered Architecture for Persistent Agentscited by 1
- 2026MetaRSI / RSI2: A Meta-Recursive Self-Improving System for Recursive Self-Improving Systems Themselvescited by 1
- 2026NeoHorse-1: Towards Recursive Self-Improvement via Agentic Post-Training with Routing Harnesscited by 1
- 2026RobustSGPO: Search-Space Control for Agent Harness Evolutioncited by 1
- 2026More Programs or More Rolls? Separating Coverage from Specialization in LLM Harnessescited by 1
- 2026Agent-Native Immune System: Architecture, Taxonomy, and Engineeringcited by 0
- 2026From Prompt to Harness: Coderlet from Scratchcited by 0
- 2026SBCO: Self-Supervised, Verifier-Grounded Harness Optimization For Planning Agentscited by 0
- 2026StateM: Reaching 95.3% Raw Accuracy, or a 15 Frontier Run, on Terminal-Bench 2.1 via Harness Scalingcited by 0
- 2026ReForge: Keeping ABR Algorithms Never Finished with Verified Large Language Model Editscited by 0
- 2026Competing at Every Price Point with Agentic Evolution over a Menu of LLMscited by 0
- 2026CTIFoundry: An Agent-Native Corpus Scaffold for Cyber Threat Intelligencecited by 0
- 2026EvoUndo: Recoverability-Constrained Self-Evolution for LLM Agent Harnessescited by 0
- 2026CordisBench: Can Language Models Reason About Component Lifecycles in Dynamic Agent Harnesses?cited by 0
- 2026EvoRS: On-Policy Self-Evolution of Reward Systems for Open-Ended Reinforcement Learningcited by 0
50 most cited of 79 All 79 (JSON)
- 2026DuplexAgent-RSI: Recursive Harness Improvement for Full-Duplex Voice Agent Collaboration8 Oct 2026
- 2026The Harness as the Only Mutable Surface: Compliance-Bounded Self-Evolution of LLM Agents in Credit Pipelines, with a Measured Admission Gate7 Oct 2026
- 2026Verification and Self-Improvement in Agentic AI: Foundations and Limits7 Oct 2026
- 2026CoTrace: Data Recipes for Training Terminal Agents with Harness-Model Co-Evolution7 Oct 2026
- 2026RSIGym: A Flexible Environment for Recursive Self-Improvement7 Oct 2026
- 2026VideoEvolve: Evolving Agent Harnesses for Video Temporal Grounding1 Oct 2026
- 2026VeriHarness: Scaling Agentic Verification for Long-Horizon Tasks1 Oct 2026
- 2026GUI-HARVEST: Self-Improving GUI Agents through Evidence-Driven Harness Evolution1 Oct 2026
- 2026Turbo Harness: Instance-Adaptive Harness Optimization30 Sep 2026
- 2026Thinking Outside the Box: Can Language Models Rely on External Guidance Selectively?30 Sep 2026
- 2026Scale and Selection: What Makes Automatic Harness Evolution Work for Visual-Interface Robot Agents30 Sep 2026
- 2026Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives30 Sep 2026
38 more
- 2026Self-Evolving Harness on Multiple Tasks with the Agent as Its Own Optimizer29 Sep 2026
- 2026Video-RSI: Recursive Self-Improvement of Video Understanding Agents via Harness Evolution29 Sep 2026
- 2026Mixture of Self-Improving Branches For Agent Harness Optimization29 Sep 2026
- 2026RSI-Master: Structuring Experiments to Guide Autonomous Model Improvement28 Sep 2026
- 2026AutoRef: Harness Optimization for Agentic Multi-Reference Image Generation28 Sep 2026
- 2026EvoIn: Bridging Evolution and Internalization for Agent Fine-Tuning28 Sep 2026
- 2026The Right Lesson at the Right Step: Deriving Control Updates for Self-Evolving Agents28 Sep 2026
- 2026RSI-Router: Evolving Subtask-Level LLM Routing and Skills for Cost-Efficient Agents28 Sep 2026
- 2026Beyond Skill Evolution: Self-Evolving Context Management Policies for Long-Horizon Agent Harnesses28 Sep 2026
- 2026LiteEvo: Automated, Cost-Efficient Harness Evolution for Generalization to Unseen Tasks27 Sep 2026
- 2026Compositional Safety Failures in Harness Evolution: Identification and Runtime Monitoring27 Sep 2026
- 2026More Programs or More Rolls? Separating Coverage from Specialization in LLM Harnesses26 Sep 2026
- 2026ExpVoyager: Direct Experience Navigation for Dynamic Agent Skill Synthesis26 Sep 2026
- 2026PluginRSI: Recursive Improvement of Agent Harnesses with Reusable Plugins26 Sep 2026
- 2026Mara Chain: Rethinking Failure as a Stepping Stone for AI System Auto-Evolution25 Sep 2026
- 2026On Evaluating and Improving Conversational Agents in Production25 Sep 2026
- 2026A Wrong Turn Does Not Ruin the Journey: Deviation-Guided Skill Self-Evolution for LLM Agents24 Sep 2026
- 2026Automatic Harness Evolution for Hardware Design Verification: Can LLMs Consolidate Gains Across Discovered Harnesses?24 Sep 2026
- 2026Harness-Zero: Harness Distillation via Agent-as-Harness21 Sep 2026
- 2026RRSI: Regularized Recursive Self-Improvement of Agent Harnesses21 Sep 2026
- 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvement14 Sep 2026
- 2026EvoRS: On-Policy Self-Evolution of Reward Systems for Open-Ended Reinforcement Learning11 Sep 2026
- 2026The Last AI Built by Humans: Toward Genuine Recursive Self-Improvement10 Sep 2026
- 2026Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agents10 Sep 2026
- 2026RobustSGPO: Search-Space Control for Agent Harness Evolution9 Sep 2026
- 2026NeoHorse-1: Towards Recursive Self-Improvement via Agentic Post-Training with Routing Harness8 Sep 2026
- 2026MetaRSI / RSI2: A Meta-Recursive Self-Improving System for Recursive Self-Improving Systems Themselves6 Sep 2026
- 2026SafeEvolve: Harness-Policy Co-Evolution from Agent Experience for Safety Alignment2 Sep 2026
- 2026CordisBench: Can Language Models Reason About Component Lifecycles in Dynamic Agent Harnesses?1 Sep 2026
- 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?1 Sep 2026
- 2026HarnessEvolve: Learning from Reference Trajectories for Reliable Agent Self-Evolution1 Sep 2026
- 2026Agents in the Large: Perception-Centered Architecture for Persistent Agents31 Aug 2026
- 2026Auditing Harness Tampering in Self-Improving Agents30 Aug 2026
- 2026EvoUndo: Recoverability-Constrained Self-Evolution for LLM Agent Harnesses28 Aug 2026
- 2026WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution27 Aug 2026
- 2026Verify Smarter, Evolve Further: Efficient Harness Evolution through Behavior-Aware Verification27 Aug 2026
- 2026PILOT in the Loop: Live Self-Improvement for Long-Horizon Agents27 Aug 2026
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution26 Aug 2026
50 newest of 79 All 79 (JSON)
- 2026SkillOpt-Lite: Better and Faster Agent Self-evolution via One Line of Vibecited by 18
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
- 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnessescited by 13
- 2026Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectoriescited by 13
- 2026TTHE: Test-Time Harness Evolutioncited by 12
- 2026HarnessBank: Semantic Gene-Bank Search with Gated Verification for Agent-Harness Self-Evolutioncited by 11
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolutioncited by 10
- 2026AutoSaddler: Automatic Harness Optimization with Durable Updates from Agent Execution Tracescited by 9
- 2026Evo-Bench: Can Language Models Improve Agent Harness?cited by 8
- 2026Verify Smarter, Evolve Further: Efficient Harness Evolution through Behavior-Aware Verificationcited by 7
- 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?cited by 7
- 2026SHE: Trajectory-driven Safety Harness Evolution for LLM Agentscited by 6
12 most cited of 46 All 46 (JSON)
- 2026The Harness as the Only Mutable Surface: Compliance-Bounded Self-Evolution of LLM Agents in Credit Pipelines, with a Measured Admission Gate7 Oct 2026
- 2026Verification and Self-Improvement in Agentic AI: Foundations and Limits7 Oct 2026
- 2026VideoEvolve: Evolving Agent Harnesses for Video Temporal Grounding1 Oct 2026
- 2026VeriHarness: Scaling Agentic Verification for Long-Horizon Tasks1 Oct 2026
- 2026GUI-HARVEST: Self-Improving GUI Agents through Evidence-Driven Harness Evolution1 Oct 2026
- 2026Scale and Selection: What Makes Automatic Harness Evolution Work for Visual-Interface Robot Agents30 Sep 2026
- 2026Composing Task-specific Agent Harnesses at Test Time with Reusable Primitives30 Sep 2026
- 2026Self-Evolving Harness on Multiple Tasks with the Agent as Its Own Optimizer29 Sep 2026
- 2026Video-RSI: Recursive Self-Improvement of Video Understanding Agents via Harness Evolution29 Sep 2026
- 2026AutoRef: Harness Optimization for Agentic Multi-Reference Image Generation28 Sep 2026
- 2026RSI-Router: Evolving Subtask-Level LLM Routing and Skills for Cost-Efficient Agents28 Sep 2026
- 2026Beyond Skill Evolution: Self-Evolving Context Management Policies for Long-Horizon Agent Harnesses28 Sep 2026
12 newest of 46 All 46 (JSON)
- 2026Recursive Harness Self-Improvementcited by 22
- 2026The Last AI Built by Humans: Toward Genuine Recursive Self-Improvementcited by 5
- 2026Auditing Harness Tampering in Self-Improving Agentscited by 3
- 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvementcited by 2
- 2026SBCO: Self-Supervised, Verifier-Grounded Harness Optimization For Planning Agentscited by 0
- 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvement14 Sep 2026
- 2026The Last AI Built by Humans: Toward Genuine Recursive Self-Improvement10 Sep 2026
- 2026Auditing Harness Tampering in Self-Improving Agents30 Aug 2026
- 2026SBCO: Self-Supervised, Verifier-Grounded Harness Optimization For Planning Agents10 Aug 2026
- 2026Recursive Harness Self-Improvement17 Jul 2026
- 2026WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolutioncited by 7
- 2026HarnessEvolve: Learning from Reference Trajectories for Reliable Agent Self-Evolutioncited by 6
- 2026Automated Discovery Has No Universally Superior Harnesscited by 4
- 2026Code Is the Body: Agent-Owned Software Bodies for Recursive Evolution and Descentcited by 3
- 2026PILOT in the Loop: Live Self-Improvement for Long-Horizon Agentscited by 3
- 2026Beyond Final Scores: A Systematic Evaluation of Agents for Long-Horizon AI Research and Developmentcited by 1
- 2026What is Missing from AI Post-Training AI: An Empirical Analysiscited by 1
- 2026MetaRSI / RSI2: A Meta-Recursive Self-Improving System for Recursive Self-Improving Systems Themselvescited by 1
- 2026RobustSGPO: Search-Space Control for Agent Harness Evolutioncited by 1
- 2026More Programs or More Rolls? Separating Coverage from Specialization in LLM Harnessescited by 1
- 2026Agent-Native Immune System: Architecture, Taxonomy, and Engineeringcited by 0
- 2026From Prompt to Harness: Coderlet from Scratchcited by 0
12 most cited of 26 All 26 (JSON)
- 2026DuplexAgent-RSI: Recursive Harness Improvement for Full-Duplex Voice Agent Collaboration8 Oct 2026
- 2026CoTrace: Data Recipes for Training Terminal Agents with Harness-Model Co-Evolution7 Oct 2026
- 2026RSIGym: A Flexible Environment for Recursive Self-Improvement7 Oct 2026
- 2026Turbo Harness: Instance-Adaptive Harness Optimization30 Sep 2026
- 2026Mixture of Self-Improving Branches For Agent Harness Optimization29 Sep 2026
- 2026RSI-Master: Structuring Experiments to Guide Autonomous Model Improvement28 Sep 2026
- 2026EvoIn: Bridging Evolution and Internalization for Agent Fine-Tuning28 Sep 2026
- 2026The Right Lesson at the Right Step: Deriving Control Updates for Self-Evolving Agents28 Sep 2026
- 2026Compositional Safety Failures in Harness Evolution: Identification and Runtime Monitoring27 Sep 2026
- 2026More Programs or More Rolls? Separating Coverage from Specialization in LLM Harnesses26 Sep 2026
- 2026Mara Chain: Rethinking Failure as a Stepping Stone for AI System Auto-Evolution25 Sep 2026
- 2026Automatic Harness Evolution for Hardware Design Verification: Can LLMs Consolidate Gains Across Discovered Harnesses?24 Sep 2026
12 newest of 26 All 26 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026Rethinking the Evaluation of Harness Evolution for Agents
- 2026VERSE: Verified Self-Evolving Optimizer for Agent Harnesses
- 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
- 2026Harness-Bench: Measuring Harness Effects across Models in Realistic Agent Workflows
- 2026Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild
- 2026Harness Updating Is Not Harness Benefit: Disentangling Evolution Capabilities in Self-Evolving LLM Agents
- 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents
- 2026Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptation