← AI glossary

AI glossary · Basic · Agents · Language models

Harness²

Harness² is a framework that Google has reportedly released as open source. It leaves the AI model unchanged and has the agent improve the harness — the execution environment around the model (instructions, tool-usage guidance, memory and so on) — on its own, based on its experience doing tasks.

About this term
Level
Basic · Technical terms you often meet in AI news
Added
2026-10-20
In plain words It is similar to keeping the chef (the model) the same while adjusting the kitchen's recipe notes, cooking order and tool layout based on how each dish turned out. Unlike a real kitchen, though, there is no judge to taste which is better; the decision is made by comparing the results of two approaches against each other.

What it is

An AI agent's performance depends heavily not only on the underlying model but also on the execution environment wrapped around it, that is, the harness. According to reports, Harness² focuses on this and modifies only the harness, without changing the model's weights (the internal values set by training). Here, the harness refers to eight components attached as files: the system prompt, guidelines and safety rules, memory, tool-usage instructions, subagents, skills, scripts, and plugins/middleware. Google reportedly posted the research to the online archive arXiv and released the code as open source on GitHub.

How it works

Improvement repeats in two levels. At the first, task level, the agent attempts a task with the base harness, and the improvement system then proposes two revisions. One targets problems common across many tasks, such as planning or tool use; the other fixes knowledge or procedures for a specific domain. Both revisions are applied to the same task, their execution traces are compared (Propose-Probe-Compose), and the changes that showed an effect are selected. At the second, harness level, the experience gained this way is written to an improvement library called LESSONS and consulted in later tasks. Each new task starts again from the base harness rather than the most recently revised setup, a design meant to reduce cases where a fix tailored to one task causes side effects in others.

Harness²'s two-level improvement loopBase harness → Task execution; Task execution → Revision ① General; Task execution → Revision ② Domain-specific; Revision ① General → Compare execution results; Revision ② Domain-specific → Compare execution results; Compare execution results → Select effective changes; Select effective changes → Record in LESSONS; Record in LESSONS → Next task(Consult experience); Next task → Base harness(Start from base)① Task level · Compare revisions② Harness level · Accumulate experienceBase harnessPrompts, tools,memory, etc.Task executionModel unchangedRevision ① GeneralPlanning, tool useRevision ②Domain-specificKnowledge, proceduresCompare executionresultsContrast without averifierSelect effectivechangesRecord in LESSONSImprovement libraryNext taskConsult experienceStart from base
Harness²'s two-level improvement loop The top two rows show the process of comparing and selecting between two revisions within a single task; the bottom row shows lessons being accumulated and carried to the next task. The next task starts again from the base harness.

Why it matters

Common ways to improve model performance are retraining the model or tuning it against evaluation data with fixed correct answers. In real work, however, unfamiliar tasks keep appearing, and often there is no criterion for automatically judging whether a result is correct. Harness² differs in that it decides the direction of improvement by comparing two execution results against each other, without a verifier that supplies the correct answer. According to reports, the researchers tested it with GLM-5 and Gemini 3.5 Flash on professional-work benchmarks WorkBuddy-Bench, JobBench and Harvey's LAB, and after a single round of improvement all four model–harness combinations scored higher on all three benchmarks. The largest gain was GLM-5 with OpenCode on WorkBuddy-Bench, which reportedly rose 11.5 points, from 64.2 to 75.7. On JobBench the gain was reportedly up to 4.5 points, and on LAB, a legal-work evaluation, the per-item pass rate rose by up to 11.8 percentage points.

Things to keep in mind

The information above is based on press reports, and the performance figures are results stated by the researchers. Gains vary by combination: GLM-5 with Codex rose only 1.2 points on JobBench, from 23.6 to 24.8. The researchers said that spending more budget on improvement to explore revisions multiple times could raise performance further. Because the model itself is not changed, it does not gain abilities it lacked; it is more accurate to see this as a way of drawing out abilities the model already has. Readers should distinguish the general concept of a "harness" from "Harness²," the name of this specific framework.

Gains differ by combination

BeforeAfter

GLM-5+OpenCode · WorkBuddy-Bench+11.5Points
GLM-5+Codex · JobBench+1.2Points
Scores before and after improvement, as stated by the researchers. Even with the same GLM-5, the size of the gain varied widely depending on the harness and benchmark used.

Example

On this site, it was covered in the news item "Google releases Harness², an open-source framework that improves the agent execution environment on its own while leaving the model unchanged (reported)." For example, imagine a coding agent assigned to internal document work. Instead of retraining the model, you take the process the agent actually followed and run two versions side by side: one with an added general instruction such as "check the tools first," and one with an added domain-specific instruction such as "organize documents in this domain in this order." If you adopt the changes from the better version and record the lessons learned, the next task starts from the base setup but consults those lessons when proposing new revisions.

Where it came up on this site

Related terms

References