harnsy

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

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.

8 min readPavel Buchnev

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
In this article
  1. What we ran, and why there is no verdict
  2. What differs when they work together
  3. How to choose a harness per role
  4. What harnsy guarantees, and what it does not
  5. What we do not know
  6. Read more

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 CodeCodexOpenCode
A message arrivesThrough its local socket, as a user turnThrough its own queue; a turn starts when it is idleThrough its local server; only agents harnsy started
Resume after a restart--resumecodex resume <thread>Only agents harnsy started
The context figureA guess, unless Claude Code’s status line reports the window to harnsyExactInput plus cache
Answering from the dashboardPermissions and questions, while a dashboard is openQuestions only, answered at the end of its turn; no permission asksPermissions and questions
A briefing at startYesYesNo: 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 makes that comparison fair, and a model and effort 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 and 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.

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

Join the people who run it

Ask questions, see what others built.

Join the Discord

harnsy is not affiliated with Anthropic, OpenAI or OpenCode; their names are theirs.

site-3flead · Claude Codeliveview only
❯ Plan #42 with the team.

Waiting for the breakdown from analyst-7a…

from analyst-7a through harnsy❯ #42 broken down: three acceptance criteria, including a retry after 24 h.

I’ll hand #42 to site-9a.

❯