mlsanityData to 7 Oct 2026

TTHE: Test-Time Harness Evolution

arXiv 2607.08124 ↗First posted 9 Jul 2026cs.SE cs.LGcited by 12

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

  1. 2026Self-Harness: Harnesses That Improve Themselves8 Jun
  2. 2024AFlow: Automating Agentic Workflow Generation14 Oct
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 32

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  7. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  8. 2023Let's Verify Step by Stepcited by 3,598
  9. 2021Program Synthesis with Large Language Modelscited by 3,509
  10. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  11. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  12. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
20 more
  1. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  3. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  4. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  5. 2023Teaching Large Language Models to Self-Debugcited by 963
  6. 2023Large Language Models as Optimizerscited by 830
  7. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  8. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  9. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
  10. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  11. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  12. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  13. 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
  14. 2022CodeT: Code Generation with Generated Testscited by 369
  15. 2024Automated Design of Agentic Systemscited by 360
  16. 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 294
  17. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
  18. 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 128
  19. 2025EvoTest: Evolutionary Test-Time Learning for Self-Improving Agentic Systemscited by 34
  20. 2026MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systemscited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 12.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Rethinking the Evaluation of Harness Evolution for Agents
  2. 2026Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild
  3. 2026SEAGym: An Evaluation Environment for Self-Evolving LLM Agents
  4. 2026VERSE: Verified Self-Evolving Optimizer for Agent Harnesses
  5. 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents
  6. 2026HarnessForge: Joint Harness and Policy Evolution for Adaptive Agent Systems
  7. 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?
  8. 2026MemoHarness: Agent Harnesses That Learn from Experience