Skip to content

Open-source agent harness: the layer decides what you own

An agent harness is the runtime around a model: it holds the loop, the tools, the sandbox and the approval rule. Lists compare project names, yet the choice that holds is which layer you need, because a harness can be open at one layer and closed at the next. Kortix is the open-source CompanyOS, and every session runs an open-source agent harness; I would start there, and I work on Kortix’s marketing, so weigh that accordingly.

In the repo

Three lines that name the project

kortix.yamlyaml
project:
  name: "{{projectName}}"
  description: A Kortix workspace.
Source: github.com/kortix-ai/CompanyOS/blob/dev/packages/starter/templates/base/kortix.yaml

The starter manifest opens with the project block: its name and description.

20,000+

GitHub stars, checked October 2026

Open source, down to the manifest

Three shapes share one name

An open-source harness is the code a team can read before it trusts the loop: the prompt and context, the tools, the sandbox and the approval rule, all in a repository rather than a vendor's account. The definition page sets out those parts one by one.

Scope follows from that definition. A harness owns the system prompt and the tools, with their descriptions. It owns the filesystem, the sandbox, the orchestration that spawns subagents, and the hooks that compact or continue a run. It also owns the approval rule and the place where session state survives.

None of which tells you what to install. An open-source harness list puts a terminal coding agent beside a Python package beside a company-wide system. Then it scores them on features they do not both have.

Dr Phil Winder splits the field into four layers in his 2026 comparison: the model reasons, "the harness, which runs one agent", the framework composes several, and the platform "runs many harnesses across a team over time, with durable execution, cost attribution and governance". His verdict on the choice is blunt: "Which one you pick matters less than which layer you need, and no feature grid answers that."

A coding CLI, a runtime you embed, a team layer

Coding agents are the shape most people meet first. OpenCode calls itself "The open source coding agent", and its release v1.19.5 landed on 28 October 2026. Goose is "an open source, extensible AI agent that goes beyond code suggestions"; aider is "AI pair programming in your terminal". In this shape a person supervises: you sit at the prompt, you read the diff, and the run ends when you close the window.

Embeddable runtimes are the second shape. Deep Agents is "The batteries-included agent harness", a Python package you wrap a product around. TrueForge runs the same idea as a service. It lists what the loop covers: model calls, MCP tools, skills, sandboxing, approvals, context management and session state. It exposes them through a chat UI, an HTTP API with a TypeScript SDK, and an embeddable UI SDK. Here the harness is a dependency and your application is the product.

The third shape runs many sessions of many harnesses for a group of people, and keeps the configuration, the permissions and the record of what happened. Kortix lives at this layer, where the harness is one part of the repository rather than the product.

Where a list goes quiet

Open the README and the seam appears quickly.

TrueForge ships two deployment modes, and each brings another decision. Local mode is "one process, SQLite" and, in the project's own words, "for your machine only", "not a production or internet-facing setup". Hosted mode adds Postgres and Redis. Its sandbox is a named service, "Daytona today; more providers planned". Pick TrueForge and you have also picked a database pair and a sandbox vendor.

Deep Agents is one package on a longer stack. It is built on LangGraph, and the README points to LangSmith for "first-class tracing, evaluation, and deployment". The harness is open. The operations layer around it is a product you buy.

OpenClaw inverts the picture. It is "an open-source AI assistant that runs on your own computer", with one Gateway for sessions, tools and channels, and its README says "Models and agent harnesses (Claude, Codex, local models) are plugins you can swap without changing anything else." The assistant and its gateway are open. The harness it swaps in need not be: Anthropic does not publish Claude Code's harness source, and its own engineering post argues that harnesses should hand scaffolding back as models improve.

Openness belongs to a layer. A product name hides which one, and that is the part a feature grid cannot score.

What a team layer has to own

A terminal agent never has to answer who may run which agent, or where finished work lands. A team layer answers both, for every session, all day.

In Kortix the answer starts in the repository. "Your agents, skills, memory and connectors live in one git repo you own." The starter's own README lists the tree: agents/<name>.md holds one agent's instructions, skills/<name>/SKILL.md a skill an agent loads, memory/ the project's memory, and kortix.yaml points at each prompt file with prompt_file (starter README).

What the manifest does is register and grant. It lists what the project has, and each agent block says which of those things that agent enables, by name. The manifest reference states the rule: "Omitted means none. An omitted skills, subagents, commands, extensions, connectors, secrets, apps or kortix_permissions grants nothing." Three keys are open instead, in the reference's words: tools is "*", permission is allow, and codemode is on. A change made in that file arrives as a diff; a dashboard edit to the same grants commits straight to the default branch.

Two more properties belong to this layer rather than to any harness. "One isolated sandbox per session. Each session has its own isolated machine and branch." The work it produces lands through "a change request a person approves". Neither is a feature of a model or a loop. Both are what make many agents safe to run for a group of people, and the same layer decides where it runs: "Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free."

Five questions for any open-source harness

Ask these in order and the layer falls out of the answers.

  1. 1.Where does the configuration live: a file in your repository, or rows in a vendor's database?
  2. 2.What runs the box, and can you run it yourself when the hosted option goes away?
  3. 3.Who approves a tool call, and is the policy per agent or global?
  4. 4.What survives the session, and where does it survive it?
  5. 5.Can you change harness without rewriting your agents?

A coding CLI answers 1 with a dotfile and 5 with a migration. An embeddable runtime answers 2 with a dependency you can pin. A team layer has to answer all five in public, which is why the answers are worth reading before the feature list.

A short way to decide

If you want a partner in your terminal today, take a CLI and pick it on provider support and speed of the loop.

If the agent is your product, take a runtime you import, and check which database and which sandbox it assumes before you commit.

If a group of people will run many agents, with review and a record, you want the team layer. It holds the repo, the sandbox and the change request. The harness is the smaller half of that decision. The configuration you keep is the larger one. How the harness shapes compare covers the project-by-project view.

The layer each project leaves open, and where its configuration lives

The harness is rarely the closed part, so the table scores each project on the layer it leaves open and on where its configuration lives.

CriteriaKortixOpenCodeDeep AgentsTrueForgeQM
Open sourceYesYesYesYesYes
LayerPlatform that runs a harnessCoding CLIEmbeddable runtimeRuntime run as a serviceMultiplayer harness for a team
Leaves open sourceThe harness, the configuration, the permissions and the recordThe agent loop and its toolsThe harness package, wrapped by your applicationThe harness, its approvals and its session stateThe harness, each person’s scope and the deployment directory
Configuration lives inkortix.yaml in the project repositoryopencode.jsonc in your projectYour application’s code, where the agent is createdYAML catalogs loaded at setupA deployment directory the qm CLI validates and deploys
Where it runsKortix Cloud, your VPC, or your own on-prem networkOn your own machine, from a CLI installIn your own Python process, on LangGraphOne local process for your machine only, or a hosted deploymentEach deployment runs in your own cloud account
Releasev0.15.1 (published 2026-11-07)v1.19.5 (published 2026-10-28)deepagents==0.7.34 (published 2026-11-05)@truefoundry/trueforge@0.184.2 (published 2026-11-06)v0.1.16 (published 2026-11-04)

Plain answers

Direct answers

Four questions buyers ask before they pick a runtime, answered plainly.

What is the best open-source agent harness?

Whichever one matches your layer. A terminal coding agent, an embeddable runtime and a layer that runs many agents for a team are different purchases, so group the list by shape and compare inside the group you need.

Is Harness an open-source platform?

Yes, and it is a different product. Harness Open Source is a developer platform with source control, CI/CD pipelines, hosted development environments and artifact registries. That is software delivery, not an agent runtime.

Is OpenClaw an agent harness?

Partly. OpenClaw is an open-source AI assistant that runs on your own computer, and its README treats Claude, Codex and local models as harness plugins you swap. It is the gateway around the harness rather than the harness itself.

Is the Pi agent harness open-source?

Yes. Pi is an open-source coding agent, published as @earendil-works/pi-coding-agent and developed in the earendil-works/pi repository.

Run the layer you own.

Open source, self-hostable, and configured from a repository your team already reads.