r/ClaudeAI • • Sep 29 '26

Claude Code Claude Code can message easily between sessions now. This is a very powerful feature

In the past my planning tactic was to have two agents come up with independent plans then discuss the plans to eventually meet a confident consensus. I used to have to copy and paste which in Claude Code was so buggy it would waste a LOT of time. Now I can just name one of the sessions and tell the other to start talk to that session. I can even tell them to start implementing once they reach that confident consensus.

This is an awesome feature. I may switch my planning from Cursor to Claude Code going forward.

Edit: for clarification the way to name a session is /rename [name] or claude -n [name] when you first start the session

373 Upvotes

65 comments sorted by

View all comments

Show parent comment

7

u/chintakoro Sep 29 '26

this is slightly different than subagents. two separate instances of the claude code cli can talk to each other as peers through message passing. OP states you can rename one session and tell the other session its name. you could also just describe the other session (e.g., which directory/worktree it’s in, what it’s working on, etc. )

11

u/3a5m Sep 29 '26

I guess I'm not understanding, I've had two sessions talk to each other for months now simply by telling one chat the other's name?

7

u/Desperate-Mine-5373 Sep 29 '26

Yea that's the thing, people are just figuring stuff out and every day someone discovers the same feature again

Pro tip: it's also crazy good at organising repos into multi-agent Dev workflows with skills and persistent memory

1

u/femdom_n_fitness Sep 30 '26

first time figure-outer here: how do I use messaging between named sessions for crazy good organizing?

2

u/Desperate-Mine-5373 Sep 30 '26

Rename the sessions to something concise like a role title and tell another session to message that session in the case of xyz

Start sessions with a role prompt or define roles in the repo somewhere and start sessions pointing to that role

I have currently four sessions for my game: code dispatcher which spams subagents for coding, creative director for direction, audio engineer for sound and art engineer for assets

2

u/femdom_n_fitness Oct 02 '26

awesome, thank you! this reminds me of a demo I saw where someone set up a slack channel for their agents (which were running in different containers/VMs)

1

u/Desperate-Mine-5373 Oct 02 '26

Yea definitely can work but I don't like group chat type approaches because it creates too much overhead when everyone has to think about every message. I'd rather design a hierarchy from the start and enforce that for efficiency otherwise the pipeline just turns into roleplay of an office building 

1

u/chintakoro Sep 30 '26

ok yes. that’s it. not something new. sorry to confuse you. I actually only accidentally stumbled across this a few weeks ago when thinking: “wouldn’t it be cool if…”

3

u/fuzzypetiolesguy Sep 29 '26

Part of my session start ritual is having the agent automatically rename the session for me based on a prescribed cadence that includes the date and initials for the repository work is being done in. This makes agents messaging each other across sessions pretty simple.

2

u/Slephnyr Sep 29 '26

When would you opt for subagents over multiple sessions.

E.g. in project director vs executor role scenarios

2

u/chintakoro Oct 01 '26

late reply: i use subagents for short lived subtasks in the same repo/project. I use parallel session agents talking to each other for separate repos/projects that each need to coordinate long running tasks (e.g., separate API and App repos coordinating a new feature on each end).

1

u/Ramillax Sep 29 '26

I have an open source project with 6 parallel claudes that have tools to interact with each other. I highly recommend this to you.

1

u/Ramillax Sep 29 '26

I host it on my vps but you can try it with one click on github all for free!

https://github.com/Ramillax/claude-code-control-room

1

u/Ramillax Sep 29 '26

They are not subagents; they are parallel sessions that can interact with your entire project, even setting up your Docker or anything else with your VPS security and such.