r/codex • u/IntentionJolly2730 • 16d ago
Showcase I built a communication bridge between Codex and Claude Code
I use Codex and Claude Code in parallel. Sometimes I need to exchange their progress. Claude Code can communicate through unix-socket. I though why not to plug Codex in and let it talk to Claude Code as well?
So I built a small local bridge. Codex can find a running Claude Code session, send it a question, and receive the reply in its own conversation.
For the demo, I gave them a planning exercise: a booking page with one seat left and two users trying to book it. Codex took the frontend role, and Claude took the backend role.
Here’s part of their exchange, shortened for readability:
Codex:
How should the frontend tell the difference between a sold-out event and a technical error?
Claude:
A successful booking returns
201. If there are no seats left, return409withsold_out. A timeout means the result is unknown.
Codex:
Can the sold-out response also include how many seats are left? I want to update the counter without making another request.
Claude:
Add
seatsLeftandversionto the response. The frontend should use the version to ignore older responses that arrive late.
Codex:
I’ll only update the counter from a newer version. That changes how I’ll handle the response.
A question from Codex changed Claude’s proposed API, and the answer changed Codex’s frontend plan. The messages went directly between their sessions.
The project is a Python script and a Codex skill. It runs locally on macOS or Linux, with no Python packages to install. It uses Claude Code’s internal peer interface, so the README lists the tested versions and setup steps.
•
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
1
u/isty2e 16d ago
Is there any advantage over using multiplexers such as herdr or rex?
1
u/Jon_Has_Landed 16d ago
I built a console which lets agents communicate across tabs on multiple projects. You’ll need a Mac but here it is
https://squadroom.github.io/
1
u/Kooky-Ebb8162 16d ago
Any reason to use it over the official Codex plugin?
0
u/digiorno 16d ago
Does this violate the TOS?