concept
What is an AI harness?
A model can generate tokens. A harness gives those tokens somewhere to act. In coding systems, the harness is the runtime that lets a model inspect a repository, edit files, run commands, call tools, keep a task loop moving, and return evidence of what happened.
Model, agent, harness: three different layers
A model is the underlying inference system. An agent is the goal-directed behavior produced when a model can observe, decide, act, and iterate. A harness is the software environment that makes those actions concrete and bounded.
CLI coding agents such as Codex CLI and Claude Code therefore behave as harnesses as well as agents: they package model access together with shell execution, repository context, permissions, tool protocols, and an interaction loop.
- model: generates and reasons over tokens
- agent: pursues a task across multiple observations and actions
- harness: supplies tools, environment, policy, context and execution mechanics
Why the distinction matters
If you treat the model as the whole product, changing models looks like changing systems. If you separate the harness, the model becomes one component inside a larger execution topology. That makes portability, local execution, auditability and orchestration easier to reason about.
brnrd sits one layer above individual coding harnesses. The resident keeps continuity and routing while bounded work still runs through the agent CLI already installed on the user’s machine.