TTHE: Test-Time Harness Evolution
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
The behavior of an LLM agent is determined not only by the underlying model, but also by its harness: the executable program that constructs context, invokes tools, verifies intermediate results, and recovers from failures. Existing approaches optimize such harnesses before deployment, searching training or development data for a fixed agent workflow that is then frozen at test time. This limits adaptation when the test distribution, failure modes, or tool interactions differ from those seen during development. We ask whether the harness can instead be optimized during evaluation itself, using only the unlabeled execution traces the agent produces on the test inputs. We introduce Test-Time Harness Evolution (TTHE), which treats the executable harness as the state of test-time adaptation. During evaluation, TTHE maintains a population of candidate harnesses and refines them through an agentic proposer that reasons over their execution traces, without gold labels or task-specific supervision; a judge then commits an improved harness from execution-derived proxy signals, and the selected program persists to govern subsequent inputs. Crucially, TTHE does not update model weights, require gold labels, or train a separate adaptation model: solver, proposers, and judge are different roles and harnesses around the same frozen LLM, so all adaptation occurs through changes to the surrounding program. Across text-to-SQL, competitive programming, software engineering, data-science coding, and agentic tool-use tasks, TTHE improves fixed ReAct-style baseline harnesses, yielding persistent, inspectable improvements rather than a pre-searched workflow or per-query retries. These results recast test-time adaptation for LLM agents as evolution over executable control programs and identify execution-derived proxy reliability as a central challenge for robust unsupervised agent improvement.
Key facts. Cited by 12 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 35 of its 42 references that are in the map. First posted on arXiv 9 Jul 2026.
Builds on
35 of 42 references.
Closest ancestors · 3
Same direction, newest first
- 2026Self-Harness: Harnesses That Improve Themselves8 Jun
- 2024AFlow: Automating Agentic Workflow Generation14 Oct
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 32
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Let's Verify Step by Stepcited by 3,598
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
20 more
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023Large Language Models as Optimizerscited by 830
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2024Automated Design of Agentic Systemscited by 360
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 294
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
- 2025EvoTest: Evolutionary Test-Time Learning for Self-Improving Agentic Systemscited by 34
- 2026MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systemscited by 9
Built on by
Citing papers per year: 2026: 12.
12 papers.
- 2026Recursive Harness Self-Improvementcited by 22
- 2026Task-CoEvolve: Efficient Harness Optimization via Adaptive Validation Task Selectioncited by 3
- 2026RRSI: Regularized Recursive Self-Improvement of Agent Harnessescited by 3
- 2026More Programs or More Rolls? Separating Coverage from Specialization in LLM Harnessescited by 1
- 2026ADIAS: Automated Design of Interactive Agentic Systemscited by 0
- 2026CineForge: Self-Improving Agents for Long-Horizon Video Generationcited by 0
- 2026Compositional Safety Failures in Harness Evolution: Identification and Runtime Monitoringcited by 0
- 2026JET: Judge-Guided Evolution at Test Time for Agent Programscited by 0
- 2026Harness Learning Enables Generalizable Test-Time Adaptationcited by 0
- 2026ActiveSaddler: Automated Curriculum Learning for Agent Harness Optimizationcited by 0
- 2026Safe, Persistent, and Evolving Agent Harness for Understanding Partially Observable Worldscited by 0
- 2026Recursive Self-Improvement through Multi-Agent Self-Supervisioncited by 0
- 2026Recursive Self-Improvement through Multi-Agent Self-Supervision8 Oct 2026
- 2026Safe, Persistent, and Evolving Agent Harness for Understanding Partially Observable Worlds8 Oct 2026
- 2026ActiveSaddler: Automated Curriculum Learning for Agent Harness Optimization1 Oct 2026
- 2026Harness Learning Enables Generalizable Test-Time Adaptation28 Sep 2026
- 2026JET: Judge-Guided Evolution at Test Time for Agent Programs28 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
- 2026RRSI: Regularized Recursive Self-Improvement of Agent Harnesses21 Sep 2026
- 2026CineForge: Self-Improving Agents for Long-Horizon Video Generation30 Aug 2026
- 2026Task-CoEvolve: Efficient Harness Optimization via Adaptive Validation Task Selection20 Aug 2026
- 2026ADIAS: Automated Design of Interactive Agentic Systems3 Aug 2026
- 2026Recursive Harness Self-Improvement17 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026Rethinking the Evaluation of Harness Evolution for Agents
- 2026Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild
- 2026SEAGym: An Evaluation Environment for Self-Evolving LLM Agents
- 2026VERSE: Verified Self-Evolving Optimizer for Agent Harnesses
- 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents
- 2026HarnessForge: Joint Harness and Policy Evolution for Adaptive Agent Systems
- 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?
- 2026MemoHarness: Agent Harnesses That Learn from Experience