What Is an AI Agent Harness?
What is a harness in AI? AI apps combine an agent harness with AI models to use tools, files, and instructions. Why it matters as much as the model. With a free app.
An AI harness is built into the app that connects you to an AI model. It sends your requests to the model, shows you the replies, and gives the model tools, such as a web search or the files on your Mac.
Most people compare AI models and pay little attention to the app. Experienced users know the harness matters as much as the model. The same model that can only chat in a browser tab can work through a whole task on your files in a desktop app or a coding agent. Improvements in a harness give you more control over what AI can do on your Mac.
To choose an assistant, see Best AI Assistants and ChatGPT Alternatives. To choose a model, see Best AI Models.
Using AI on your Mac is one way to get more from your computer. See the guides for every Mac user.
Before you get started
Use my free app to get the most from AI. It is a FREE Mac app that installs Claude or ChatGPT, then important extras, including starter projects, skills, and connectors. It is good for beginners and non-developers, with additional options for coders. Here are all the details about the app before you download. Then download it:
What an AI harness does
Every AI app you use contains a harness. When the model asks to read a file, edit a document, or run a command, the harness carries out the request on your Mac, with your permission.
A harness adds four things the model doesn't have on its own:
- Tools - A web search, reading and editing files, or running commands. The model asks for a tool. The harness uses it and sends back the result.
- Permissions - The harness asks you before it acts, or follows the rules you set for what it may do without asking.
- Instructions - Guidance the harness gives the model at the start of each session, such as the agent instruction files
CLAUDE.mdandAGENTS.md, and skills it loads when a task calls for them. - Connectors - MCP servers connect the harness to apps and services outside it, such as a calendar or a project tracker.
Why the harness matters as much as the model
The harness matters as much as the model. Use Claude Opus in a browser tab and you only get chat, but in a desktop app or a coding agent it can work through a task on your files. Some harnesses, such as Cursor, which is a code editor and IDE (integrated development environment), let you work with AI models from several companies.
Some benchmarks, such as Terminal-Bench, rate each model inside a particular coding tool. So a score belongs to the model and the harness together.
Agent harness
An agent harness lets you hand off a whole task. The model works through many steps on its own. It asks for a tool. The harness carries out the request. Then the model decides the next step from the result. The harness repeats this until the task is done or the model needs your answer.
The Claude desktop app works this way when you hand it a task, such as a report or a spreadsheet. Coding agents such as Claude Code and Codex do the same with the files of a software project.
Examples of AI harnesses
- A chat in a web browser - chatgpt.com or claude.ai. There's nothing to install, but the browser app can't work directly with files on your Mac.
- A desktop app - The Claude, ChatGPT, and Gemini Mac apps work with files in folders on your Mac. See the Claude Desktop App for Mac and ChatGPT for Mac.
- A coding agent - Claude Code and Codex run in a terminal application and work on the files of a software project. See Claude Code on Mac and Claude Code or ChatGPT Codex?
- A harness for models from many companies - Cursor, or Goose, a free, open-source Mac app that works on the files in a folder with any model you choose through OpenRouter. See What Is OpenRouter?
Independent AI harnesses
Independent developers are building their own harnesses, as open-source projects or small apps. Most work with models from any AI company, through OpenRouter or models running on your Mac. They need more setup, usually an API key paid by use. These stand out among experienced users on Hacker News:
- OpenCode and pi - Open-source coding agents, the most used after Claude Code and Codex.
- Hermes Agent and OpenClaw - Personal agents that run on your Mac and take requests from WhatsApp, iMessage, and other chat apps. OpenClaw is the best known, but users report bugs. Many are moving to Hermes Agent.
- Open WebUI - A free chat page you host yourself, popular with people who run AI models on their own computers.
Continue setting up your Mac
Visit the Mac Install Guide home page for step-by-step guides for every Mac user, from upgrading macOS to working with AI and writing code.