Harness engineering
Harness engineering is the work of designing the tools, instructions, environment, and checks around an AI agent, so that it can do a task reliably.
Harness engineering is the practice of shaping everything around a model so that an agent does good work. It covers the tools the agent can call, the instructions and context it receives, the environment it runs in, and the checks that judge its output. The model stays the same, while the harness decides much of how well it performs. The term grew in use as teams found that changing the harness often helped more than changing the model.
Typical work includes writing clear tool descriptions, giving the agent fast and precise feedback such as tests and linters, and deciding when to compact or reset its context. It also includes setting permissions and hooks, and splitting work across sub-agents. Engineers measure each change with evals, because a change that helps one task can hurt another. The goal is an agent that finishes tasks with less supervision.
The environment is a central part of a harness. An agent needs a place to run code, install tools, and test its changes, and that place must be safe to break. Sandboxes give each task its own isolated environment that starts in a known state. They also let a harness run many agents in parallel, each with its own files and processes.