Navigation überspringen
I made Claude Code and Codex talk to each other.
0:00 / 0:39

I made Claude Code and Codex talk to each other.

shawn

@shawn_pana3123 Follower

Auf X besuchen
2.368 LikesHerunterladenOriginalbeitrag

318.609 Aufrufe

I made Claude Code and Codex talk to each other. No APIs. No special protocol. Just a terminal. smux lets agents create, read, and act on terminals. the terminal becomes a shared interface. this enables agent-to-agent communication. Now Claude Code and Codex can hold hands 🤝 Try it now ↓

41 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von shawn

    @shawn_pana

    try smux, my tmux config:

    243 Likes

  • Profilbild von Charles Weill

    @weill

    I’m building amux to bake this in more natively:

    22 Likes

  • Profilbild von Prakhar Shukla

    @imprakharshukla

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

    15 Likes

  • Profilbild von Morgan

    @morganlinton

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

    15 Likes

  • Profilbild von shawn

    @shawn_pana

    same.. it got too annoying so i needed a solution lol

    10 Likes

  • Profilbild von CodeChap

    @CodeChap

    Make them play War Craft against each other.

    8 Likes

  • Profilbild von shawn

    @shawn_pana

    yo.

    2 Likes

  • Profilbild von nyk

    @nykdotdev

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

    7 Likes

  • Profilbild von Steve💙🇨🇦

    @xyster

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

    5 Likes

  • Profilbild von S.M. Elly Avi-Sniffman

    @AviSniffmann

    Jesus fucking Christ why are all the comments in here AI

    4 Likes

  • Profilbild von Jake

    @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

  • Profilbild von 滝本竜彦 Tatsuhiko Takimoto

    @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

  • Profilbild von Alex Strick van Linschoten

    @strickvl

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

    3 Likes

  • Profilbild von paji.eth

    @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

  • Profilbild von MrObah

    @MrCObah

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

    3 Likes

  • Profilbild von shawn

    @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

  • Profilbild von KAI

    @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

  • Profilbild von Jamie Thomson

    @JamieThomsonVF

    How is context / memory shared between the two agents?

    2 Likes

  • Profilbild von Axel Delafosse

    @axeldelafosse

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

    2 Likes

  • Profilbild von OZ

    @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