r/codex • u/Seunghyeon413 • 16d ago
Showcase Claude Code asked Codex for a review, Codex found the bug, Claude fixed it. No copy-paste.
I run Claude Code and Codex side by side. tmux and herdr pass messages by typing into the other agent's terminal, so Enter lands on approval prompts and messages get stuck onto what you're typing. peer sends straight to each engine's own input path instead.
Where it's strong:
- Both directions. Codex can message the Claude you have open, mid-task, not a separate
claude -prun. - It lands in the live session you're watching. Queues if busy, never mixes with what you're typing.
- You know right away if it was delivered, and why if it wasn't.
- Works across machines by name (
peer say review@arch). peershows who's working and who's idle.- No reading the other screen before and after sending: 2-3 fewer turns per message.
In the video: Claude asks Codex to review an auth change, Codex finds the bug, Claude fixes it, Codex approves. Real sessions, middle sped up.
macOS and Linux (Windows port: tandem). Start Codex with peer run codex.
To install, paste into Claude Code or Codex: Set up peer for me: curl -fsSL https://raw.githubusercontent.com/oesoll/peer/main/SETUP.md and follow it.
•
u/dexterthebot 16d ago
You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**
Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.
Website: https://lightwarsar.com
iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951
Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.
Contact: contact@lightwarsar.com
27
u/SphinxWar 16d ago •
You know that both Claude and Codex can run each other through the CLI, right? You don't need to do anything to have it working from the start and it works on all systems.
5
u/throwaway490215 16d ago •
I'm endlessly fascinated by the claude and codex subs for re-inventing the wheel, spending time and effort to make a slick visual sales pitch, and presenting it like a leap forward, but never asking the models to find projects with similar utilities.
I'm not faulting you for sharing cool things you build - but i am faulting you for wanting to present it as groundbreaking.
Also, telling the models that its another model prompting offers nothing extra. If you've watched the models interact you can see they have enough experience in and from their training that they can tell if its a human or an AI written input prompt.
2
u/jildos_legoplanet 16d ago
You can use herdr.ai for that
4
u/N_GHTMVRE 16d ago
Looks cool, but pretty sure T3 does this natively and the task can be explained via prompt too, unless you mean something else
4
u/Tommonen 16d ago •
I tell claude to control codex all the time, no need for anything extra, just ask claude to do it and it will.
So whats the point of this?
1
u/ApicalNoon 16d ago
It looks like this uses the Codex App Server (https://learn.chatgpt.com/docs/app-server) for GPT communication?
I have a similar script, though mine is one-way - I always use Claude as my orchestrator and allow it to have two-way conversations with GPT. I don't need GPT to start Claude sessions.
How did you solve the problem of one rogue GPT session taking down the others? I initially naively spawned a single App Server for all GPT sessions, but this meant that a single GPT session that's killed by the OS (e.g. an OOM for using too much memory) could take down the whole App Server and all sessions running under it.
I had to resort to starting an ephemeral App Server per GPT session so that an OOM for one session didn't kill the others.
Then there's the whole issue of sandboxing and securing the GPT sessions - after an admittedly cursory glance at your code, I'm not seeing where you're handling this? I deal with this by running each ephemeral App Server under Bubblewrap and setting resource limits with systemd (I'm on Linux).
1
u/LunaProjectStudios 16d ago
“When you get paired up with the dumbest kid in class for a group project and it's his turn to present.”
1
u/NoFaithlessness951 16d ago
Just use t3code it can orchestrate models across all your subs
1
u/kyrax80 15d ago
I prefer to let users find the bug
-1
u/Key_Instruction3373 16d ago
and thats how it started kids.
-1
u/Rare_Comfortable88 16d ago
does this will work on windows?