Field notes

Agent harnesses are converging. The open-source repo decides what they touch.

An agent harness is the loop plus the rules that decide what an agent may touch, and an open-source CompanyOS keeps them in a repo you own.

The Kortix Team
Kortix··6 min read

An agent harness is the loop and the rules around a model, and in an open-source system both are files in a repository the company controls. The grants that decide what an agent can reach are one of those files. Ask which harness is best and the answer comes back as a list that mixes a runtime, a framework and a platform, because the loop inside all of them now does much the same job. In Kortix, the open-source CompanyOS, the harness is one component, and the grant surface is where companies still differ, so it is the part worth choosing on.

The definitions name the parts and leave the list unowned

Microsoft's Agent Framework documentation defines an agent harness as "the runtime scaffolding that turns a language model into an agent that can perform work". The same page lists what the scaffolding drives: model and tool calls, conversation state, and approval policies. LangChain draws the boundary wider in its anatomy of a harness. "A harness is every piece of code, configuration, and execution logic that isn't the model itself." Anthropic names the loop, the tools, context management and guardrails.

All three describe a harness that holds permissions. None of them says where the permission list lives, or who gets to read it before a run. That is the question a company has to answer, and it is not a property of the loop.

The loop is the part vendors give away

Anthropic's harness guidance argues for taking scaffolding back out as models improve. Hand the model code execution so it filters its own tool output. Let skills replace a long system prompt, and compaction replace a retrieval layer. The same economics show up from the platform side at OpenAI. "The reusable part is the agent loop." OpenAI publishes that loop as a harness other applications build on. The jobs it lists are conversation state, streamed execution, tools, sandbox and approval policies, and work carried across turns.

Those jobs are now table stakes. Deep Agents ships sub-agents, tools from any MCP server, and human-in-the-loop approvals. A person can approve, edit or reject a tool call before it runs. Claude Code's documentation covers MCP servers, parallel subagents and hooks. Convergence is what turns a loop into a component, and a component is priced by what surrounds it.

Kortix treats the loop that way. The harness sits behind an adapter, and the harness boundary README states the rule: "An unknown id fails the boot." The same README is direct about switching: "There is no per-request switching: one box, one harness, for the life of the box."

The names in the answer are three different layers

Dr. Phil Winder's comparison of agent harnesses keeps four layers apart: the model reasons, the harness runs one agent, a framework composes several, and a platform runs many harnesses across a team over time. Most lists of harnesses mix the middle two, which is why they read as a market when they are really a stack.

At the harness layer, TrueForge calls itself "the runtime layer that turns an LLM into a working agent". The project lists the loop, MCP tools, skills, sandboxing, approvals, context management and session state as its parts. Microsoft ships a harness inside a framework. The Agent Framework has a "Harness Agent" with planning, context compaction, file access and don't-ask-again tool approval, next to plain agents and graph workflows.

The framework layer holds most of the names. LangGraph is "an agent runtime and low-level orchestration framework" for stateful agents written in code. CrewAI builds role-based agent teams and puts a control plane in the execution path of every workflow. Google's Agent Development Kit is a developer kit for building, running and deploying agents in Python, TypeScript, Go, Java and Kotlin. The OpenAI Agents SDK is a small set of primitives, agents, handoffs and guardrails, with few abstractions. Mastra is a TypeScript framework for agents, workflows and memory. LlamaIndex centers on documents: parsing, extraction and document agents over a company's own files.

A framework gives a team a way to write an agent. It does not decide which agents may reach the billing system, or keep the record of who widened that reach last month. That is the platform layer, and it is where Kortix sits: the platform that runs a harness, not one of the harnesses.

The questions people ask about harnesses fall out of the same stack. Claude Code is an agent harness. It runs the loop, holds the tools, and reads a CLAUDE.md at the project root. Anthropic does not publish its harness source, so the boundary is configurable and not inspectable. ChatGPT is a product, and agentic AI names a class of system that takes actions toward a goal. A chat product becomes agentic when it runs tools and carries a task across turns, which is the harness doing the work. As for which harness is best right now, the harness is the smaller decision. Winder makes the same point for a client team: the larger one is the agent it runs, which carries the tools and permissions it gets.

Four options, and where the boundaries live

Four products document where their boundary sits, and the last column is the one a review reads.

OptionWhere the loop runsWhat holds the boundariesWho can read them before a run
KortixInside the projectThe project manifest in your git repoThe team with repo access
Claude CodeTerminal, IDE, desktop, webProject settings and CLAUDE.mdSettings yes, harness source not published
CodexInside the application you buildThe host application's codeYes, harness and host code
Deep AgentsYour own Python or JavaScript processYour code and its approval callbacksYes, in your source

A boundary kept in your own source is reviewable by the engineers who own that source and by anyone who joins later. A boundary kept in a product is reviewable through the product's documentation and by whoever configured it.

What a harness will not settle

A harness compensates for what a model cannot do yet, and benchmarks inherit the same problem. Anthropic reports BrowseComp accuracy rising from 45.3% to 61.6% when the model was allowed to filter its own tool outputs. The gain came from the harness change, with the same model underneath.

The permission list has a limit of its own. It ends up describing what the company decided, and the harness cannot promise more than that.

Where the decision lands

The starter manifest writes each grant out. This is the worker agent in a new project:

agents:
  worker:
    tools: all
    skills: all
    connectors: all
    secrets: all
    kortix_permissions: all
    workspace: { project_repository: true }

The manifest reference states the rule the file follows: "Omitted means none." Leave out any of the skills, subagents, commands, extensions, connectors, secrets, apps or kortix_permissions grants and the agent gets nothing from it. Three keys are open by default, and the reference names them: tools is all, permission is allow, and codemode is on. Approval gates you set. Off until you set them.

Every agent, skill, rule, connector and piece of context is a file in one git repo: versioned, reviewed and extended like software. One isolated sandbox per session. Each session has its own isolated machine and branch. Session work reaches main through a change request. Merge is default-deny for agents. So the question for a buyer is where the list lives, and who reads it before the agent runs.

Two related reads: Kortix vs LangGraph on the framework that stops where the platform starts, and Kortix vs CrewAI on the runtime a framework leaves to you. The meta-harness covers the layer over the harness, where a system searches harness code instead of running one agent.

If you want the harness to be a component of a system you own, start at Kortix.

Own your company’s AI.Start today, in our cloud or yours.

Start for free

Open source · SOC 2 Type I · SAML SSO and SCIM · Any model, your keys