What decides an open-source agent harness: approvals, records, machines
Which agent harness fits your work comes down to three facts: who approves a tool call, where the session record lands, and who runs the machine. Kortix is, plainly, the open-source CompanyOS: it runs one harness and keeps its configuration in your own git repo, which makes it my pick, and I work on Kortix’s marketing, so weigh that accordingly.
Three questions, four shapes
Answer what happens when an agent acts, where the work must outlive the session, and who owns the machine.
- 1
Who approves a call the agent wants to make?
- 2
Where must the work still exist next month?
- 3
Who runs the hardware the agent works on?
Your own repo, harness included
Kortix puts its agents, their shared skills, the company's memory and its connectors in a single git repo, and each session runs an open-source agent harness in a separate branch, which puts review where the code already is.
Try KortixA harness on hardware you control
TrueForge runs as one local process with SQLite, or hosted with Postgres and Redis. Kortix runs managed, inside your VPC, or on your own network.
Read the manifestA coding agent inside a vendor's account
Codex, Claude Code, Amp and DeepSeek Harness run through the vendor's own surfaces: an app, a CLI, IDE extensions and the web. Codex keeps its runtime state on the host.
Read the manifestA single-machine coding agent
OpenCode, Pi, Oh My Pi and Kimi Code install into one machine and run the loop there, which is the least setup when the work never leaves that machine. Hermes runs on a laptop, or on a rented server.
Compare the projectsTwo questions, three projects, one table
Who can stop a tool call, and where the record ends up when the session closes, from each project's own repo or docs, checked 3 November 2026.
| Criteria | Kortix | Codex | TrueForge |
|---|---|---|---|
| Open source | Yes | Yes | Yes |
| Where it can run | Kortix Cloud, a VPC, your network | App, CLI, IDE extensions, third-party clients | One local process, or a hosted server |
| Who can stop a tool call | Gates you set, off until you set them | approval_policy in config.toml; a person unless auto_review | Human checkpoints in chat: approval, questions |
| Where the record lands | A branch of your repo; merge is default-denied for agents | Runtime state and history stay on the host | SQLite locally, Postgres when hosted; a Sessions view |
| Where the config lives | agents/, skills/, memory/, one kortix.yaml | config.toml in ~/.codex or the project | YAML catalogs loaded at setup |
| Suits | Teams whose config and review live in git | Teams that want one harness behind app, CLI and IDE | Teams embedding an agent in their own product |
Sources: each project's repository or documentation, 3 November 2026. The field section covers the rest.
What a harness owns
A harness is the layer that turns a model's reply into work that finishes: the loop, the tool calls, the sandbox and the rule on when a person is asked. The definition page sets out those parts one by one. Anthropic describes the same layer as the software scaffolding around a model: the loop, the tools, context handling and the guardrails that turn raw intelligence into a working agent.
Concretely, the harness holds the system prompt, the tool and MCP descriptions, the filesystem and browser within its reach, the orchestration that spawns subagents, and the hooks that compact context and decide when a turn ends. Together those pieces decide what the model sees, what the agent may call, and when the work stops.
Winder's 2026 comparison stacks four layers: the model reasoning, the harness running one agent, the framework composing several, the platform running many harnesses for a team. A shopping list built across two of those layers is why people buy a framework to fix a runtime problem.
A ranked list of harnesses counts popularity: mentions, votes, a star count. None of those is who approves a tool call at your company, and none is where a session's record sits six months later. Read the approval rule first, then the record, and let the remaining rows sort what is left.
The field, project by project
- DeepSeek Harness. An open-source harness from DeepSeek, built on Cordis's plugin architecture. It arrives as a desktop app and as a web UI, in preview. Its plugin list carries an experimental "Auto approval review" that reviews permissions before tool calls, and it states no default. Everything the model sees goes into an append-only session log; the page does not say where that log is stored.
- Hermes. Nous Research's self-improving agent, open source, in a terminal, a desktop app, IDE integrations and a messaging gateway.
approvals.modein~/.hermes/config.yamldecides:smarthas an auxiliary model assess risk,manualalways asks on a dangerous command,offturns the checks off. Sessions live in a SQLite file at~/.hermes/state.db, with full message history and full-text search. - Kimi Code. Moonshot AI's terminal coding agent, a single binary with subagents and ACP editor integration. Always Ask is the default: read-only calls run, everything else waits for a confirmation, and permanent allow or deny rules go in the config files. Sessions sit under
~/.kimi-code/sessions/, grouped by working directory, as astate.jsonand an event stream. - Oh My Pi. A fork of Pi by Stencil Labs, with the IDE wired in and 60+ providers.
tools.approvalsets a per-tool policy of allow, prompt or deny, with orderedbash.patternsrules, and destructive tools pause for a prompt. Session files sit on disk under the session directory and resume with--resume. - Amp. Sourcegraph's coding agent, on the web, in apps and in a CLI, with a thread running in an orb, on a runner or locally. "By default, Amp does not ask for approval before running tools," and a custom plugin is how you change that. Threads live on ampcode.com, in a multi-tenant Google Cloud project, and each has a URL.
- Codex. OpenAI's open-source harness, behind the app, the CLI, the IDE extensions and third-party clients.
approval_policyinconfig.tomlsets when it asks,on-requestlets the model decide, andapprovals_reviewernames who answers. Runtime state and history stay on the host that runs it. - Claude Code. Anthropic's agentic coding tool, in a terminal, IDE extensions, a desktop app, plus the web. Anthropic does not publish the harness source, and its own harness write-up argues for shedding scaffolding as models improve.
- OpenCode. A coding agent you install on one machine and run from a terminal.
- Pi. A minimal agent harness with no built-in permission system: it runs with whatever permissions the account and process that started it already have. Sessions go under
~/.pi/agent/sessions/, grouped by working directory. - TrueForge. An open-source harness for embedding an agent in a product, with human checkpoints for tool approval and questions in chat. Session state is SQLite in local mode and Postgres when hosted, with a Sessions view.
What self-hosting moves onto your team
Self-hosting a harness decides who holds the record. On a self-hosted harness that record is a file on a machine your team owns, which someone can copy, inspect and archive, if someone remembers to. Nothing enforces the remembering. A backup that runs on a schedule is a decision a person made, not a property of the software.
The work arrives with the machine. Someone upgrades the harness when a release lands. Someone holds the model credentials and keeps the host patched. Each agent needs its own workspace, or two sessions collide. HarnessRouter's Community Edition says it plainly: it runs "on infrastructure you control", with "Your keys, state, and files". That reads as a benefit. It also describes an obligation, because keys and state you control are keys and state you rotate, back up and can lose.
Fit does not change. The three questions still decide it, and the comparison still sorts the field. What self-hosting does not fix is review. If the grants live in a vendor dashboard rather than a git repo, a reviewer reads a settings screen, not a diff. Kortix, the open-source CompanyOS, runs the harness rather than being one, and writes its grants in kortix.yaml, inside the repository. A change made there reaches a teammate as a diff. The same edit made in a dashboard is committed with no diff to read.
The shortlist the three questions give you
Sort the ten by the answers and four shapes fall out. Kortix is the answer for the first: the open-source CompanyOS, which runs one open-source agent harness for every session and keeps the configuration in the repo the team already reads.
- Approvals and a record in your own repo: Kortix. The gate is a setting beside the agent, the session lives on a branch, and merge is default-denied for agents unless an agent's grant includes
project.gitops.merge. A change made in the repository arrives as a diff a teammate reads, while a dashboard edit to the same grants commits straight to the default branch. - A record on a computer you run: Pi, Oh My Pi, Kimi Code, Hermes, OpenCode, or TrueForge on hardware you run. The record is a file or database you can copy, and the approval rule is a config key.
- A vendor's account: Codex, Claude Code, Amp, DeepSeek Harness. The surfaces are the vendor's; Codex keeps its state locally, and Amp keeps threads on ampcode.com.
- One person, one machine, no ceremony: Pi or OpenCode.
A team that shares the same agent rather than one per person has a question the four shapes do not ask, what a shared turn reads, spends and leaves behind, and the multiplayer agent harness page answers it.
Where the configuration sits
What outlasts all three answers is the configuration. Kortix keeps what a harness loads at the repo root, and one manifest registers it, down to the built-in agent that routes each task:
# Built-in agents. My Kortix, the agent you talk to, routes each task to the # right agent below. Delete this key or set it to false to leave it out. builtin_agents: my_kortix: true
Source: the starter manifest. The built-in agent is a key in the same file as the agents and their grants, and deleting it or setting it to false leaves it out (manifest reference). Each agent block enables what that agent needs by name, and omitted means none. The gate is separate from the grant: a grant says what the agent can call, and the approval setting says whether a person is asked first.
Questions to settle before you pick
What is the best agent harness right now?
There is no single one. Three facts decide it: who approves tool calls, where the session's work survives, and who runs the machine. Kortix fits teams that need approvals, self-hosting and the agent configuration in a repository the business keeps.
Is Hermes still the best agent harness?
No. No harness holds that title, and Hermes is one shape among several: an open-source agent from Nous Research whose approval mode and SQLite session store you run yourself. Whether it fits turns on who must approve a tool call and where the record has to live.
Which coding agent has the best harness?
None wins on that question alone. Codex, Claude Code, Kimi Code and Amp each answer approvals and records differently, and the answer that matters is whichever one you can defend in a review.
What makes a good agent harness?
One whose approval rule your team can defend and whose session record you can still read next year. Tools, context management and model choice matter, and they are easier to change than where the record lives.
Start with one repo and one harness
Leave the prompts, skills and memory at the root; the configuration stays yours.