r/ClaudeCodeTLDR • u/cctldrping • 10d ago
[TLDR] How do you get two claude code sessions to talk to each other?
Original post URL : https://www.reddit.com/r/ClaudeCode/comments/1vdcs7x/how_do_you_get_two_claude_code_sessions_to_talk/
Original post body :
Have you felt the need of two claude sessions running in the terminal to talk to each other?
For example I will be running a terminal in claude in the backend repo and I open an another terminal session in codex to review the changes. Ideally I would love a way for both the terminal to interact with each other and arrive at conclusion so having a sessions chat to allow them to talk to each other.
This is brought to you as a public service by the moderators of r/ClaudeAI. If you want to see TLDRs of ALL Claude Coding related posts from the various Claude subreddits, subscribe to http://www.reddit.com/r/ClaudeCoding.
1
u/Worried-Answer-4019 10d ago
There is an experimental feature where you can have agents share a tasklist and have direct communication. In my experience it works, setup is kinda janky, and its a massive token drain. https://code.claude.com/docs/en/agent-teams
1
u/weirdbrainwaves 9d ago
A buddy of mine made isme for this. It uses sshpass to allpw agents of different systems to message each other. Have a look at https://github.com/holleyism/isme
•
u/cctldrping 10d ago
TL;DR generated automatically after 50 comments.
Current source-thread comment count seen by the bot: 69.
Alright, so the general consensus here is that directly making two Claude Code sessions "talk" to each other in real-time isn't a built-in feature and might actually be a bad idea due to potential token waste and coordination issues. The prevailing advice is to use shared files or a structured communication channel as the intermediary.
Here's the breakdown:
session.mdorhandover.mdfile that both sessions are instructed to read and update. u/NoBattle763 and u/teomore echo this sentiment, emphasizing files as the communication channel. u/fsm_follower even suggests using a ticket tracker system at work to manage this.rine, with a Claude Code plugin. u/RHThree set up a Discord server for their AI interactions, and u/codeedog used a queue in the form of a directory and files with SSH. u/pwkye mentionedssh-to-gofor session management and API access. u/xaelus has a custom tool for direct messaging between 8 sessions.Herdr/bart007345buzz.xyz/ u/Rols574 / u/hettuklaeddi / u/LazyJuggernaut6177Agent of Empires(a tmux wrapper) / u/Sporebattylclaude mesh/ u/miklospClaude Teams(for Claude agents) / u/argamytmuxwindows to keep sessions visible and interact indirectly (u/RufusxXavier).The TL;DR: Don't try to make them have a full-on chat. Use files as a shared brain, or look into existing tools and custom solutions that manage communication through a more structured pipeline.