AutoHarness: improving LLM agents by automatically synthesizing a code harness

Xinghua Lou, Miguel Lázaro-Gredilla, Antoine Dedieu · 2026

Read AutoHarness: improving LLM agents by automatically synthesizing a code harness by Xinghua Lou, Miguel Lázaro-Gredilla, Antoine Dedieu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-03329.txt.

Description

Xinghua Lou, Miguel Lázaro-Gredilla, and Antoine Dedieu let a language model write its own safety harness. As agents, models often attempt actions the environment flatly forbids; in one chess competition, most losses by a leading model came from illegal moves. People usually hand-write code around the model to block such moves. Their 2026 paper shows the harness itself can be synthesized automatically.

Given feedback from the game environment over a few refinement rounds, the smaller Gemini model produced harness code that prevented every illegal move across a large suite of text games. That let it beat a much larger sibling model. Pushed further, the model generated the entire playing policy as code, needing no model calls during play, and outscored two flagship models on single-player games. Automatic harnesses proved cheaper as well as stronger.

Catalog record

CREATORXinghua Lou, Miguel Lázaro-Gredilla, Antoine Dedieu
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE44361
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.03329

Browse the full library · About the Tower of Babel