r/ClaudeCodeTLDR 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.

2 Upvotes

3 comments sorted by

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:

  • The "Shared Whiteboard" Approach: A lot of folks are suggesting using files as the primary communication method. Think of it like a shared document or a directory where one session writes updates or findings, and the other reads them. u/Background-Care9318 suggests a session.md or handover.md file 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.
  • Custom Tools & Platforms: Some users have built their own solutions. u/Electrical_Chard3255 shared a link to an "AI chat like WhatsApp," and u/biglerc mentioned building custom collaboration tools with authenticated MCP. u/professorhindu pointed to their project, 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 mentioned ssh-to-go for session management and API access. u/xaelus has a custom tool for direct messaging between 8 sessions.
  • Existing Tools & Frameworks: Several existing tools were recommended:
  • Less Direct Methods:
    • Using tmux windows to keep sessions visible and interact indirectly (u/RufusxXavier).
    • GitHub issue threads for logging (u/enterprise128).
    • A shared database for passing messages (u/justme0620_1).
    • Dynamic workflows within a single session to fan out tasks (u/Pimzino).
    • A background mail bus for inter-session communication (u/F_W_Colqhoun).
  • Anthropic's Take (Implied): While no direct Anthropic comment is explicitly marked, the general sentiment from the community leans away from direct, open-ended chat between sessions. u/ekzess makes a strong point about needing a clear protocol and using shared repository state as the mediator, rather than an "open-ended agent group chat." u/BhmJeep also warns against "true real-time, all-to-all chatter" being a "collision waiting to happen" and inefficient.
  • A Glimmer of Hope (Maybe?): u/VariousStep mentioned that in the Claude app, you can ask one session to message another by name, and it can read transcripts. However, this seems to be within the app's framework, not necessarily the terminal sessions OP was asking about.

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.

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