# Harness Engineering

> Harness engineering is the design of the software around a language model that turns it into an agent, including the agent loop, tools, context management, permissions and safety controls, and feedback mechanisms such as tests and linters.

- Identifier: PTL-0212
- Category: Agents & Orchestration
- Canonical URL: https://protologue.com/t/harness-engineering/
- Also known as: agent harness, agent harness engineering
- Introduced: 2026

## Description

The term spread in early 2026, after OpenAI described building software with Codex agents in which engineers' main work shifted from writing code to designing the environments, constraints and feedback loops the agents work within. It treats an agent as a model plus a harness, so two agents built on the same model can differ widely in reliability. Harness engineering contains context engineering, which concerns what enters the context window at each step, and adds the runtime, tooling and control surfaces around it. Coding agents such as Codex and Claude Code are the most studied examples.

## Related terms

- [Context Engineering](https://protologue.com/t/context-engineering/)
- [Coding Agent](https://protologue.com/t/coding-agent/)
- [AI Agent](https://protologue.com/t/ai-agent/)
- [Agentic Workflow](https://protologue.com/t/agentic-workflow/)
- [Context Compaction](https://protologue.com/t/context-compaction/)
- [Guardrails](https://protologue.com/t/guardrails/)
- [Human-in-the-Loop](https://protologue.com/t/human-in-the-loop/)

## Sources

- Lopopolo (2026). Harness engineering: leveraging Codex in an agent-first world. https://openai.com/index/harness-engineering/
- Barbaste et al. (2026). Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems. https://arxiv.org/abs/2609.00006

## Cite this entry

Protologue. (2026). Harness Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.4.0, PTL-0212). https://protologue.com/t/harness-engineering/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
