正在加载视频...

视频加载失败

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 ↓

318,058 次观看 • 5 个月前 •via X (Twitter)

41 条评论

shawn 的头像
shawn5 个月前

try smux, my tmux config:

Charles Weill 的头像
Charles Weill5 个月前

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

Prakhar Shukla 的头像
Prakhar Shukla5 个月前

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

Morgan 的头像
Morgan5 个月前

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

shawn 的头像
shawn5 个月前

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

CodeChap 的头像
CodeChap5 个月前

Make them play War Craft against each other.

shawn 的头像
shawn5 个月前

yo.

nyk 的头像
nyk5 个月前

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

Steve💙🇨🇦 的头像
Steve💙🇨🇦5 个月前

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

S.M. Elly Avi-Sniffman 的头像
S.M. Elly Avi-Sniffman5 个月前

Jesus fucking Christ why are all the comments in here AI

Jake 的头像
Jake5 个月前

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?

滝本竜彦 Tatsuhiko Takimoto 的头像
滝本竜彦 Tatsuhiko Takimoto5 个月前

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!

Alex Strick van Linschoten 的头像
Alex Strick van Linschoten5 个月前

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

paji.eth 的头像
paji.eth5 个月前

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

MrObah 的头像
MrObah5 个月前

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

shawn 的头像
shawn5 个月前

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

KAI 的头像
KAI5 个月前

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.

Jamie Thomson 的头像
Jamie Thomson5 个月前

How is context / memory shared between the two agents?

Axel Delafosse 的头像
Axel Delafosse5 个月前

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

OZ 的头像
OZ5 个月前

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

Marchen 的头像
Marchen5 个月前

the terminal as a universal agent protocol is the right instinct — everything can read stdout. no custom API, no message broker, just shared state in a buffer. question is whether the agents maintain separate context about what they've already seen or drift into re-reading the same scroll

Jayson 的头像
Jayson5 个月前

I built in terminals to my openclaw Mission Control chat, my agent can use the terminal and Claude can reply via mcp. Probably nothing special but works perfectly for what I’m trying to do. Not a dev, obviously.

PGAGI 的头像
PGAGI5 个月前

What actually scales here is how smux keeps everything in one session without forcing agents to learn each other’s APIs. Suddenly coordination feels native instead of bolted on.

Alexandre Alves (free_colibri) 的头像
Alexandre Alves (free_colibri)5 个月前

Did you try Octopus before?

kk 的头像
kk5 个月前

is this seamless for coding tasks / reviews or requires a lot of instructing?

shawn 的头像
shawn5 个月前

i just say “test it in a new pane” or “talk to this pane” and it does it without me needing to prompt

OneManSaas 的头像
OneManSaas5 个月前

This is brilliant. Terminal as the universal interface makes so much sense - every dev already knows how to use it, and it's naturally stateless. Way cleaner than trying to build custom protocols between different AI systems.

Jasper Van 的头像
Jasper Van5 个月前

So cool

Marcin Dudek 的头像
Marcin Dudek5 个月前

Welcome to the club ;)

Hussain Hashim | Building SundayBack 的头像
Hussain Hashim | Building SundayBack5 个月前

@shawn_pana that's wild! can't believe they can just chat like that now. makes me wonder what they'll come up with together.

Jay.TL 的头像
Jay.TL5 个月前

cool!

Atlasis 的头像
Atlasis5 个月前

Using the terminal as a shared interface instead of building some elaborate api layer is genuinely the most unix philosophy thing to happen in the ai agent space and it works because sometimes the simplest solution is the one nobody thought to try

Carmelo schepis 的头像
Carmelo schepis5 个月前

interesting

pachu 的头像
pachu5 个月前

Nice, gonna try it. I've been copypasting stuff from opus on terminal to codex on vscode extension and viceversa. this will come handy

Nischal 的头像
Nischal5 个月前

Drawback of this is smux changes tmux behavior globally, not just one repo. Something you might want to consider fixing! It's also an opinionated tmux environment with keybindings and status bar changes.

shawn 的头像
shawn5 个月前

yes! should’ve made it clear that this could override personal configs will be fixing.. for those who have an existing config, you could just use the tmux-bridge + SKILL[.]md from smux

Hoss 的头像
Hoss5 个月前

I use claude and codex running on every prompt then gemini reviews it and picks the best one.

shawn 的头像
shawn5 个月前

this could help with your workflow!

Hoss 的头像
Hoss5 个月前

Thanks for sharing. Ill give it a try. What i use rn is already automated with the 3 agents. This gives me some ideas tho to save on context. I dont see too many other ppl using multiple agents this way

Harry Stuckler 的头像
Harry Stuckler5 个月前

Well done!

Naman Parikh 的头像
Naman Parikh5 个月前

I already built this:

相关视频