I use two coding agents on the same repos: Claude Code and Codex. Over a few weeks, one of my projects grew a serious Claude Code setup. A guard that refuses an Electron edit turning nodeIntegration on. A rule against touching my real tmux server. A stop gate that runs the tests before the agent says it's done. Skills, two review subagents, a friction log. Fifteen versions of it, each one fixing something an agent actually got wrong.
Then I wanted the same protection in Codex. Codex has hooks too now, with the same kind of events. So the obvious move is to copy the hook config across, point it at the same scripts, and move on.
Before doing that, I read how Codex hands an edit to a hook, and wrote a test for it. If you copy the hooks as they are, nothing complains. The hooks run. And the edit guards let everything through.
Why the guards go quiet
A Claude Code edit guard is usually a small script. It receives the tool call as JSON, reads tool_input.file_path and the new content, and says allow or block.
Codex doesn't edit files with Write or Edit. It edits them with one tool, apply_patch, and what the hook receives is the patch text. There's no file_path field to read.
So the guard looks for a path, finds nothing, and does what most well-behaved scripts do with input they don't recognise: it exits quietly and allows. No error, no warning, no red line in the terminal. The hook is installed, it runs on every edit, and it protects nothing.
Shell guards mostly survive the copy, because a command is a command in both agents. It's the edit guards, often the ones you care about most, that fail without a sound. You only find out when the edit you wrote the guard for goes through. The test that proves it is short: feed a Claude Code edit guard the payload Codex sends for an unsafe edit, and the guard allows it.
A harness is more than a list of skills
There are good places to share skills now. But the setup that made my agent trustworthy on that project isn't only skills. It's the whole harness:
- instructions and skills,
- hooks that run on every tool call,
- permission rules that allow or deny commands,
- subagents, MCP servers, and the scripts the hooks call.
The hooks and the rules are the part that stops mistakes instead of just describing them. They're also the part that breaks when it moves to another agent. And a list page can't tell you whether that happened.
The Harness Hub
So I built the place I wanted to find. The Harness Hub publishes whole harnesses, lifted from real repositories, with one thing on every page: proof that the guards still block, in Claude Code and in Codex.
Each harness ships with self-test cases: the tool calls it must block and the ones it must let through. Before a harness is published, every case is replayed with the payload each agent really sends. For Codex that means an apply_patch patch, not a Write. The result is recorded next to a hash of the files, so the page can only show a proof for the exact files you'll install.
Four harnesses are there today, each under its own licence, with the source repository and commit credited:
- AgentMob (my own Electron app, AGPL-3.0): 25/25 in Claude Code, 24/25 in Codex.
- React (facebook/react, MIT): 7/7 in both.
- Bun (oven-sh/bun, MIT): 9/9 in both.
- Payload (payloadcms/payload, MIT): no guard to prove, because its one hook formats files.
The 25th AgentMob case is the honest kind of gap. It's a rule that refuses to read ~/.ssh, and Codex rules only cover shell commands, so there's nothing to convert it to. The page says so, in amber, and tells you to set that limit in Codex's sandbox settings instead. A hub that showed 25/25 there would be lying.
Every page also says what the harness needs to run (Node, Bun…), what each agent loses in the conversion, and anything you should know before you trust it.
One command
uv tool install baudrier
baudrier install agentmob --to codex
It shows the source and the licence, which hook scripts will run on your machine, what Codex loses compared with Claude Code, and what the hub proved. Then it asks before it writes anything. Add --dry to only look.
It also respects the setup you already have. By default it merges: your existing hooks, permission rules and MCP servers stay where they are, in the same order, and the harness's entries are added next to them. If you'd rather take the harness's hooks in place of yours, --replace does that and keeps a copy of what you had; your permission rules and your CLAUDE.md or AGENTS.md stay either way. And before anything is installed, every file is checked against the hash on the card, so what lands in your repo is what was proven.
The last step is for your coding agent. A harness lifted from another project still names that project's paths and commands. The install prints one line to paste into Claude Code or Codex; the agent then adapts those pieces to your project and runs the guard cases again.
For Codex, the edit guards are wired through a small adapter that turns each apply_patch back into the Write or Edit call the guard expects, one file at a time. Then run baudrier selftest . --runtime codex in your project to replay the cases yourself.
One Codex step you can't skip: a project hook only runs after you trust it. Open Codex in the project, type /hooks and press t, then restart Codex. Until then, nothing guards.
Harnesses that evolve
A harness you install isn't frozen. You'll fix things in it for your own project, the way I did fifteen times. When you're happy with it, baudrier absorb lifts the improved version back out of your repo, records which harness it evolved from, and keeps the parent's licence and credit. If the parent is share-alike, it refuses to give the new version a different licence.
That's the loop I care about: a harness is born in a real project, gets proven, gets installed somewhere else, learns there, and comes back better.
What it doesn't do (yet)
Update, 27 November 2026: since this was written, the hub opened to everyone and lists fourteen starter harnesses, GitHub Copilot joined Claude Code and Codex, and your own work can be published without a licence. See how to share your harness and Copilot support.
- Two agents. Claude Code and Codex. Others come when they pass the same checks.
- The hub is curated. I pick harnesses from repositories with a clear open-source licence, and I skip the ones that don't have one or that look like they hold secrets. There are no uploads yet.
- Third-party hooks run on your computer. The install lists every script and the programs it starts. Read it before you say yes.
- A conversion isn't magic. Some pieces have no equivalent in the other agent. The page lists every one instead of hiding them.
Try it
Browse the Harness Hub, pick a harness close to your stack, and try it on a project with --dry. No account needed.
And if you've built a harness you're proud of in an open-source repo, tell me. I'd like the hub to grow with harnesses that real projects actually evolved, not ones written for a demo.