A harness is the software wrapped around an AI model that lets it do work. The model does the thinking; the harness gives it hands, eyes, and rules. Claude Code, Codex, and Gemini CLI are harnesses. So is the chat window in your browser, just a much thinner one.
Model vs. harness
The model is the part that reads and writes text: Claude, GPT, Gemini. On its own it can only answer what you put in front of it.
The harness decides everything around that:
- What the model can see. Which files, which instructions, what gets loaded at the start of a session.
- What the model can do. Read and write files, run commands, search the web, check its own work.
- The loop. The model acts, the harness shows it the result, the model acts again, until the task is done.
- The rules. What needs your approval first, like plan mode and permission prompts.
- What happens when space runs out. Compacting and the other session limits.
Why it matters
The same model can feel like a different AI depending on its harness. Claude in a browser tab and Claude in Claude Code are the same model; the second one can open your folder, so it can do far more.
This is also why a CLI beats browser chat for real work: it’s a richer harness. And it’s why context engineering works: you’re arranging what the harness hands the model.
Where to go next
- CLI: the harnesses we use in these seminars.
- Session Limits: what a harness does when a session fills up.
- How I explained an AI harness to my mom (Reddit)
Covered in Seminar 1.