Three open-source agent harnesses, and the platform that runs one
Three open-source agent harnesses compared on the one fact that outlives the session: where the agent’s state lives. Kortix is the open-source CompanyOS, and every session runs an open-source agent harness, so it is the platform that runs one, with the configuration in one git repo you own; that is my pick, and I work on Kortix’s marketing, so weigh that accordingly.
In the repo
The settings a platform keeps in files
agents:
worker:
description: "General-purpose worker: coding, research, writing, ops and data work, done end to end in its own sandbox."
mode: primary
permission: allow
prompt_file: agents/worker.mdSix lines from the starter manifest: one agent block, the permission it runs under, and the prompt file it points at in the repo.
Three harnesses, one platform
Three harnesses on the facts an audit turns on, and the platform that runs one
Kortix is the platform, and the three columns beside it are harnesses, each in its project’s own words, as of October 2026.
| Criteria | Kortix (CompanyOS) | Codex | OpenCode | TrueForge |
|---|---|---|---|---|
| Open source | Yes | Yes | Yes | Yes |
| Where it runs | Kortix Cloud, your VPC, or your own on-prem network | Your computer, an IDE, the desktop app | A terminal or the desktop app | One local process, or hosted with Postgres |
| Approves a tool call | Approval gates you set. Off until you set them. | Sandbox and approval policies in its config | Plan agent denies edits; bash follows your permission config | Human checkpoints in the chat |
| Session state survives in | An ephemeral branch of your repo; committed work | Conversation state the harness carries across turns | Local session history on your machine | SQLite locally, Postgres when hosted |
| Agent config lives in | agents/, skills/, memory/, one kortix.yaml | Instruction files in your project, settings in its config | opencode.json at the project root | YAML catalogs loaded at setup |
| Fits | Teams that audit work in a repo they own | Coding work in OpenAI’s app, CLI or IDE | A coding agent you drive from a terminal | Embedding an agent inside your product |
What a harness owns
A harness is the runtime a model runs inside: it holds the loop, the tool calls, the sandbox and the approval rule, and those are the parts a comparison can measure. The definition page sets them out one by one. Anthropic's version names the same parts in one line: the loop, tools, context management and guardrails around a model.
That definition does not settle where a harness stops being a library and starts being infrastructure. Dr Phil Winder's four-layer stack is the cleanest way to place these projects. The model reasons, the harness runs one agent, the framework composes several. Then a fourth layer runs many harnesses for a team, over months. Codex, OpenCode, Aider and Pi sit in the second layer and arrive as a tool you install. Deep Agents and TrueForge straddle the line, because both are built to be embedded in something else.
HarnessRouter sells the layer between a harness and the product that uses it. It is a router, not a harness, and it runs Codex, Claude Code, Hermes and DeepSeek Harness behind one API. An agent product can then take a harness as a service instead of building the loop itself. Its own page draws the same line. A model router picks a model and returns its output; HarnessRouter runs complete harnesses that hold the loop, the tools and the files. Where the state lands then follows the edition you take. HarnessRouter Cloud is the managed service, and retention sits with it: "Start free, no card needed", with a $20 a month Developer plan and, in its own words, "From about $20 a month, a plan costs less on every rate". The Community Edition runs on infrastructure you control, with your keys, state and files. Its benchmark page reports that one measured task can "Cut enterprise agent usage costs by 90% or even more". That figure is HarnessRouter's own, on a task it chose.
OpenHarness sells the same layer, and its page reads like HarnessRouter's. It calls itself "the execution and runtime layer between your product and supported agent harnesses", and it is a router, not a harness. It plugs Codex, Claude Code, Hermes and DeepSeek Harness into a product through one API, and it "provisions and operates one isolated sandbox for every task". The two pages carry the same product description, the same Unified Harness Protocol, the same benchmark claim and the same two editions, and they differ in wording where you would check it: HarnessRouter's Cloud edition says "Start free, no card needed" and lists a $20 a month Developer plan, while OpenHarness Cloud says "Start at $0, no card needed" and lists "Plans from $20 a month". Each Community Edition runs on your infrastructure with your keys, state and files. OpenHarness's benchmark page puts it as a task that can "Cut enterprise agent usage costs by 90% or more". Neither page says the two are one company.
Kortix is that fourth layer: many sessions for a team, one repository, months of history, and every session runs an open-source agent harness. The layer question decides nearly every difference worth caring about.
Four facts that outlast the model list
Where does it run? Who approves a tool call? What does the session leave behind? Is the agent's configuration a file you can review in a pull request?
Those four questions separate these projects more sharply than any model list, and for a simple reason. Model choice is a setting, and teams change it in an afternoon. Where the state lands is a decision you live with for as long as the work exists.
The harness also changes the output on a fixed model. OpenAI reports that retained reasoning and context compaction raised a model's ARC-AGI-3 score from 13.3% to 38.3% while cutting output tokens sixfold (OpenAI). Same weights, different harness, roughly triple the score.
Where each project keeps its state
The Codex harness is the easiest to inspect of the group, because OpenAI published the loop. It is open source and "powers all these experiences": the app, the CLI, the IDE extensions and third-party clients. It manages conversation state, streams execution, uses tools, enforces the sandbox and approval policies someone configured, and carries work across turns. The tag rust-v0.165.0 landed on 2026-10-27.
OpenCode is the coding agent you drive from a terminal or its desktop app, and its configuration is a file in your project. opencode.json sits at the project root, and the docs describe it as safe to be checked into Git. Its built-in plan agent denies file edits and patches by default, and does not restrict bash: commands follow the permission config, which starts permissive. Version v1.19.5 landed on 2026-10-28. Session history, though, lives in OpenCode's own local data directory, so a teammate who clones the repo gets the configuration and not the conversation.
DeepSeek Harness is "an open-source harness from DeepSeek built on Cordis's 'everything is a plugin' architecture". It runs as a desktop app, or as a web UI launched from code. Plugins carry the tools, the skills and the interface, and you install them or build them in Creator mode. It schedules recurring work, and its developer panel shows execution traces, turns, tool calls and the system prompt. Its own page says it "is in preview, with evolving core plugins and APIs", which a team should weigh before depending on it. On approval, the page names a plugin called "Auto approval review", marked "Experimental" and described as "Review permissions before tool calls", and its composer shows a permission indicator reading "Workspace Write". It does not say where a session is stored, so that question has no answer there.
OpenHands released v1.34.0 on 2026-10-27 and describes its work as AI-driven development. Goose, at v1.57.0 on 2026-10-28, calls itself "an open source, extensible AI agent that goes beyond code suggestions." Aider still answers to "AI pair programming in your terminal," with v0.86.0 from 2025-08-09 and its repository last pushed on 2026-05-22. Deep Agents, LangChain's "batteries-included agent harness," ships as a Python package, deepagents==0.7.32 as of 2026-10-23, and is meant to live inside an application you write. Pi is an open-source coding agent published as @earendil-works/pi-coding-agent, at 1.5.0, published 2026-11-02; the older badlogic/pi-mono address redirects there.
TrueForge is the closest thing to a harness sold as a component. It runs the execution loop, MCP tools, skills, sandboxing, approvals, context management and session state. Then it exposes all of that three ways: a chat UI, an HTTP API with a TypeScript SDK, and an embeddable UI SDK. Local mode is one process with SQLite on your machine. Hosted mode swaps in Postgres and Redis, and its session view lists past runs with every turn, tool call, subagent, token count and timing. Its models, MCP servers and skills come from YAML catalogs you customize at setup.
The session closes, and the state has to land somewhere
Three placements show up across these projects, and they explain what you can audit a month later. On your machine, as with OpenCode's local store or a Codex CLI session, the record is a file or a database on the laptop that produced it, fine while you work alone and invisible to whoever picks up the repo next. In a service's database, as with TrueForge hosted, the record is durable and shared, and your access to it depends on the deployment you bought and the retention its operator sets. In a repository you own, the record is a commit, and the diff is the audit. When more than one person works in the same session, whose memory, credentials and record a shared turn touches is a question of its own, and the multiplayer agent harness page answers it.
Kortix takes the third route, and the starter's worker prompt says so: a session is "an ephemeral branch of this repo, your own /workspace", and "Only what you commit + push survives." One isolated sandbox per session. Each session has its own isolated machine and branch. An experiment that goes wrong is a branch you drop rather than a change you unwind. Session work reaches main through a change request. Merge is default-deny for agents. And the manifest that governs the whole thing declares the project and its agents, with what each agent may use. It registers what exists, each agent enables what it needs by name, and the agent's prompt lives in a file the manifest points at.
That combination is the one a security reviewer can follow. A permission change made in the repository is a line in a diff; a dashboard edit to the same grants commits straight to the default branch. A tool call is a line in a transcript attached to a branch. The rollback path is a git operation your own team already knows.
How to choose in one pass
One coding agent on your own machine? Codex, OpenCode, Aider and Pi are all defensible. The choice comes down to the editor you live in and the provider you already pay.
If you are building a product that needs an agent inside it, Deep Agents and TrueForge hand you a loop, a session store and a UI to embed. If that product should offer more than one harness, HarnessRouter is the layer that does the routing, and the remaining decision is where you want the state: HarnessRouter's managed service or a Community Edition you run. Both editions implement the same Unified Harness Protocol, so a task moves to another harness through configuration.
Suppose the harness has to serve a team, keep its configuration under review and leave an audit trail you control. Then the shortlist narrows to projects whose configuration and session state are files in a repository you own. That is a much shorter list, and it is where the choice actually gets made.
How Aider, Cline, OpenHands and Pi handle approval and the session record
Aider, Cline, OpenHands and Pi sit on most shortlists. Their own docs describe much the same loop: tools, a sandbox, a model. They part where a team lives, which is who says yes to a tool call and what is left once the turn ends.
Aider commits as it edits, so the change lands in your own repository’s history and /undo is the refusal (git integration). Cline asks before every file edit and terminal command. Auto-approve, switched on per category, lets it run without asking. Each step is snapshotted into a shadow git repository kept out of your project’s own history (checkpoints, auto-approve).
OpenHands scores each action and pauses only the high-risk ones, then keeps the conversation in ~/.openhands/conversations on the machine that ran it (confirmation mode, resume). Pi ships no permission layer of its own, running as the person who started it, and files each conversation under ~/.pi/agent/sessions/ (sessions).
Kortix keeps both answers in the repository. The harness configuration and the grants each agent enables by name are files in the project’s git repo. A session leaves its record as the commits on its branch.
Questions
Questions people ask before picking a harness
Can I run these harnesses self-hosted?
Yes. All three harnesses in the table are open source, and each can run on machines you control. Kortix, the platform beside them, runs on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.
Which project keeps the agent configuration in my repo?
Kortix does: the open-source CompanyOS keeps your agents, their skills, your company memory and every connector as files in one git repo you own, and the manifest beside them names each agent’s prompt file and what that agent may enable. Codex and OpenCode keep part of it, Codex through instruction files in the project and its sandbox policy, OpenCode through opencode.json at the project root. TrueForge loads models, MCP servers and skills from catalogs at setup, which is state in its database rather than a file you review.
Is HarnessRouter an agent harness?
No. HarnessRouter runs agent harnesses, including Codex, Claude Code, Hermes and DeepSeek Harness, behind one API. A harness is the loop that runs one agent; HarnessRouter picks one per task and returns the result, so a product team can switch harness without rebuilding its integration. OpenHarness is the same kind of router, not a harness: it sits between a product and the harnesses it runs, and its page carries the same product description as HarnessRouter's, down to the Unified Harness Protocol and the two editions.
Does a harness change which model I can use?
It sets how the model is called, not which models exist. Most of these projects can be pointed at more than one provider, so switching model is often a config change; a harness tied to one lab is the exception and its docs say so early. Kortix is not tied to one lab.
Run the harness inside the repo you keep
One repo for the agents, the permissions and the history.