Source: https://harnsy.dev/blog/claude-code-codex-opencode-one-team

> Claude Code vs Codex vs OpenCode without a verdict: how to set roles across the three, and what differs when they work in one team.

# Claude Code, Codex and OpenCode in one team: give each a role

*2026-10-26 · 8 min*

Claude Code, Codex and OpenCode are all terminal coding agents. In one team the question is which one takes which role, and that depends on what the role needs: whether it stops to ask you, needs your permission for commands, or must come back after a restart. We do not rank the three.

**Read this first**

1. Our own team runs on Claude Code today. We have run Codex and OpenCode, briefly, and we have no comparison of their quality. What we say about how they behave in harnsy is for v0.7.0.

**Key numbers**

- **8 s** for an OpenCode agent on a local Qwen model to answer over the bus in one of our runs
- **30 min** a single Codex tool call longer than this reads as idle to harnsy: a known limit

## What we ran, and why there is no verdict

“Claude Code vs Codex” asks for a verdict, and we cannot give an honest one: our team has run almost entirely on Claude Code, we have no side-by-side test on the same work, and the answer depends on things we do not know about you, such as which subscriptions you already pay for, which models you trust with which job, what your repository looks like.

What we can give is what we saw when the three worked in one team. That is a narrower question, and it does not depend on your taste.

- Claude Code: every role of our team runs on it today.
- Codex: it held tasks on 26–28 September (research, a dashboard design, a plan), then stopped because its subscription ended. We did not record a comparison with the Claude Code roles.
- OpenCode: in one run it answered over the bus in 8 seconds, on a local Qwen model, through a connection to our own server. That kind of connection is available since harnsy 0.8.0; it was not in v0.7.0.

## What differs when they work together

In harnsy a role is a post, and an agent of any of the three sits in it. A message from one agent lands in the running session of another, whatever each runs on. Underneath, each harness is reached in its own way, and that is where the differences are:

|  | Claude Code | Codex | OpenCode |
| --- | --- | --- | --- |
| A message arrives | Through its local socket, as a user turn | Through its own queue; a turn starts when it is idle | Through its local server; only agents harnsy started |
| Resume after a restart | `--resume` | `codex resume <thread>` | Only agents harnsy started |
| The context figure | A guess, unless Claude Code’s status line reports the window to harnsy | Exact | Input plus cache |
| Answering from the dashboard | Permissions and questions, while a dashboard is open | Questions only, answered at the end of its turn; no permission asks | Permissions and questions |
| A briefing at start | Yes | Yes | No: it has no start hook |

*How harnsy v0.7.0 treats each harness.*

One more limit sits outside the table. For Codex, harnsy reads busy or idle from its log, so a single tool call that runs longer than 30 minutes looks like idle.

## How to choose a harness per role

Choose by what the role needs, not by reputation. Some questions the table answers directly:

- Will you answer its questions mid-turn? A Codex question is answered at the end of its turn, so a role that often stops to ask you fits Claude Code or OpenCode better.
- Does it need your permission for commands? Claude Code and OpenCode ask, and you answer on the dashboard; Codex does not ask through harnsy.
- Must it come back after a restart? Claude Code and Codex resume from their own commands; OpenCode only if harnsy started it.
- Does it need the start-up briefing? OpenCode has no start hook and does not get it.

For the rest, which model is better at which job, try it on your own work: give the same task to two harnesses, let the same reviewer check both, and keep the result. A [reviewer](https://harnsy.dev/blog/claude-code-review-reviewer-agent) makes that comparison fair, and [a model and effort per role](https://harnsy.dev/blog/claude-sonnet-vs-opus-model-per-role) shows how we approach the same question inside one harness.

## What harnsy guarantees, and what it does not

harnsy delivers messages between the agents, whatever they run on. It never grants permissions: an agent asks, and you answer. And “sent” means handed to the harness, not read or acted on.

## What we do not know

- Which of the three does which job best. We have no such test.
- How any of this changes in versions after v0.7.0, or in new versions of the three harnesses.

See [roles](https://harnsy.dev/features/roles) and [models](https://harnsy.dev/features/models) for how a role is tied to a harness and a model.

## Read more

Step by step: [make Claude Code and Codex work together as one team](https://harnsy.dev/agent-teams-claude-code-codex).

---

**Give each role the harness it needs** harnsy seats Claude Code, Codex and OpenCode agents in one team and passes messages between them. [Install harnsy](https://harnsy.dev/install)
