I made Claude Code and Codex talk to each other.
@shawn_pana3123 Follower
318.609 Aufrufe
41 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

@shawn_pana
try smux, my tmux config:
243 Likes

@weill
I’m building amux to bake this in more natively:
22 Likes

@imprakharshukla
created a lighter version of this for generating and debating PRDs with as many models built with @opencode sdk
15 Likes

@morganlinton
Ha, such a cool idea, I've been doing this manually forever now 🫠
15 Likes

@shawn_pana
same.. it got too annoying so i needed a solution lol
10 Likes

@CodeChap
Make them play War Craft against each other.
8 Likes

@shawn_pana
yo.
2 Likes

@nykdotdev
Nice idea - but what if Claude and codex would use the same brain? Without tmux running
7 Likes

@xyster
If you want to add some remote p2p to it all, feel free to take any inspiration
5 Likes

@AviSniffmann
Jesus fucking Christ why are all the comments in here AI
4 Likes

@jake_researcher
This is clever - how do you handle context windows when the two agents are reading/writing to the same tmux session? Does smux preserve scrollback separately for each consumer?
4 Likes

@tatsuhikotkmt
Great! I’m using this now, and my project is accelerating rapidly. Codex and Claude Code are communicating directly and moving my project forward together. Thanks a lot!
4 Likes

@strickvl
@ileppane yeah @RepoPrompt has been enabling this for many many months already
3 Likes

@paji_a
ok but what happens when they disagree on the same file? like does one just silently overwrite the other or is there conflict resolution
3 Likes

@MrCObah
Nice, I did something similar but with codex managing claude. How did you get it to work on Claude code?
3 Likes

@shawn_pana
it’s a CLI called tmux-bridge with commands to interact with tmux panes/sessions/windows so any CLI coding agent can use it to prompt other CLI agents just like how humans would
18 Likes

@OrdinaryWeb3Dev
This is the right abstraction level. Shared terminal as a message bus - simple, elegant, and doesn't require building yet another protocol. We've seen this pattern work with LangGraph and CrewAI workflows but having it at the terminal level means any two agents can collaborate regardless of their underlying framework.
3 Likes

@JamieThomsonVF
How is context / memory shared between the two agents?
2 Likes

@axeldelafosse
Cool! I built this too, but using Codex App Server and Claude Code Channels:
2 Likes

@OZmaster_CB
made something similar few weeks ago, but it doesnt use tmux, tried that approach but felt clamped together,,, not sure if tap would work on multi providers tho didnt do a test yet, works for multi claude isntances tho
2 Likes
















