Forget Harness Agent. Recursive Agent Harness² 10x Better
In February 2026, Mitchell Hashimoto and others shared a new way to improve AI agents. Instead of changing the prompt every time an AI makes a mistake, developers fix the agent’s environment and tools so the same mistake does not happen again.
This helped make the term “Harness Engineering” popular.
Most engineers can explain that a harness is the system built around an AI agent. It includes memory, tools, and guardrails.
If someone says, “Harness is important,” in a meeting, most people will probably agree. You don’t want to look like you don’t know the term.
But what if someone asks, “Are traces part of the harness? What about the improvement loop? And validation?”
Would you still know how to answer?
Or am I the only one?
I believe there are quite a few people like that. I myself was one of them. In fact, until very recently, I thought that tracing and improvement were the work of Observability (monitoring), not Harness.
However, after comparing different papers, I can’t say whether that feeling is right or wrong.
The line defining what constitutes Harness varies from paper to paper and from person to person.
In October 2026, Google Research released an open-source project called “Harness² (Harness2)”.
Harness² is a framework for automatically improving the execution environment of AI agents.
However, even after hearing the term “harness framework,” it was difficult for me to imagine what it was or how to use it.
A harness is a peripheral system that allows an LLM to perform tasks.
This is a system where an AI agent understands the project’s design rules, loads the necessary files, and runs the tools.
Normally, humans improve the harness themselves.
For example, if an AI agent finishes a task without running the tests, an engineer has to update its Skills or System Prompt to improve its behavior.
Harness² is a framework that allows AI to handle this improvement process itself.
This research is a collaboration between Google Cloud AI Research and Northwestern University.
Instead of training a new model every time it fails, the system analyzes agent execution, validates changes to the harness, and maintains evidence of which changes were helpful.
The authors report that in the OpenCode environment, a single improvement step increased the average WorkBuddy-Bench score for GLM-5 from 64.2 to 75.7.
This represents an 11.5-point improvement in a specific evaluation and is not a guaranteed improvement for all models and applications.
Before we start! 🦸🏻♀️
If you like this topic and you want to support me:
- Clap my article 50 times; that will really help me out.👏
- Follow me on Medium and subscribe to get my latest article for Free🫶
- Join the family — Subscribe to the YouTube channel
Two levels of recursion
The core of Harness2 lies in its introduction of dual-level recursion, where two interconnected levels of recursion are used.
Task-Level Recursion
The system first records a baseline run using the initial harness. Then, it uses that run trace to identify vulnerabilities and verify possible fixes.
The improvement process consists of the following three stages:
- Suggestion: The editor will propose general fixes and domain-specific changes. General fixes address recurring tool errors and poor context management. Domain-specific changes target constraints of the current task.
- Verification: Run the candidate on the same task. Compare its behavior to the baseline trace to see if the intended weaknesses have been improved and if any new problems have arisen.
- Synthesis: The synthesizer combines the execution-proven modifications into the final harness.
Performance comparison is an alternative when feedback from ground truth data is unavailable during adaptation.
However, it does not provide a complete guarantee of the correctness of the final product. Evaluation using external benchmarks remains important when measuring whether the method works.
This method can explore a wider range of possibilities through parallel recursion or perform continuous modifications through sequential recursion.
kIn the case of parallel processing, it validates k1 general-purpose candidate and 1 domain candidate, and then generates 1 composite result. As the number of candidates increases, the computational complexity required also increases.kk
Harness-level recursion: Learning how to improve it
After the task is completed, the experience reflector reviews the baseline trace, proposed edits, verification results, and decisions made during synthesis.
They then EXPERIENCE.mdsave reusable components and lessons learned, including recording them in the documentation.
The next task will be passed the base execution harness, but the editing process can learn from past lessons.
What is retained is knowledge about when a particular modification might be useful, not the assumption that the entire setup of the previous task should be permanently adopted.
The model parameters remain fixed. This is runtime adaptation using files and execution evidence, and does not represent autonomous learning of model weights.
Benchmark
Harness2 was evaluated across three comprehensive real-world benchmarks: WorkBuddy-Bench (work automation), JobBench (job performance), and LAB (Harvey’s advanced legal benchmark).
When applied to foundation models such as Gemini 3.5 Flash and GLM-5, Harness2 delivered significant performance improvements:
- WorkBuddy-Bench: Up to +11.5 points over the baseline harness.
- JobBench: Up to +4.5 points over the baseline harness.
- LAB (Legal Benchmark): Up to +11.8 points in partial pass rate.
Another particularly interesting finding comes from self-improvement experiments in which the same model was used both to execute tasks and to improve the harness.
Even when models such as Claude Opus 5 were responsible for modifying their own execution environments, they achieved consistent and substantial performance improvements.
Furthermore, when harness improvements learned from JobBench were transferred to WorkBuddy-Bench, performance improved there as well.
This demonstrates that the experience gained is not simply overfitting to individual tasks. Instead, it develops into a genuinely transferable general-purpose adaptation capability.
Prompt Engineering Vs Harness Engineering
The results of Harness2 provide extremely practical guidance for engineers and product managers building LLM systems and business agents within companies.
From Prompt Engineering to “Harness Engineering”
Cramming all instructions into a single prompt has its limitations.
Instead, we need an architecture that separates responsibilities into eight distinct layers.
Each layer has a specific role: constraints act as guardrails, procedures are organized into skills, verification is handled by execution scripts, and loop control is managed through middleware.
The key idea is to move away from one giant prompt toward a modular architecture where each component has a clearly defined responsibility.
2. Build Comparative Testing and Differential Verification into Tasks Without Ground Truth
Even when a task has no perfect ground-truth data, system reliability can improve significantly by testing multiple approaches in parallel and using their behavioral differences (Behavioral Contrast) to identify, extract, and combine safe and effective components.
3. Turn Meta-Knowledge from Failures into Reusable Assets
Simply keeping error logs is not enough. The system should analyze execution history to understand why a failure occurred and which modules needed to be changed to prevent it.
This knowledge should then be extracted and fed back into a knowledge base for future use.
This is the key to building an agent infrastructure that continuously learns, adapts, and evolves with an organisation the more it is used.
Recursive improvements also require additional computation
Each round of modifications to Harness² requires additional candidate generation, execution, and editing sessions; therefore, as the recursive budget increases, the inference cost continues to rise.
Parallel execution can reduce waiting time but does not reduce the total computational cost.
The paper only analyzes the relationship between performance and computational cost within a limited budget and does not provide a uniformly applicable recursive budget.
The current improved experience base is just a simple index structure. As experience increases, merging overlapping components, updating expired experience, optimizing retrieval, and dynamically allocating recursive budgets based on task difficulty and existing experience are all listed as future work by the authors
My Thought
“AI learning isn’t just about updating model weights” — this fact, demonstrated by Harness2, fundamentally redefines the nature of autonomous systems in open-world environments.
Even with a fixed intelligence, if it can update its thinking environment and toolbox through trial and error, its adaptability far surpasses that of conventional, static systems.
What does the AI system you are developing and operating learn from its daily execution, and how does it evolve?
From simply waiting for the model to evolve to designing the “self-evolving harness” surrounding the model, next-generation AI agent development has already entered a new stage.

