Message your other Claude Code sessions

(code.claude.com)

42 points | by mfiguiere 8 hours ago ago

23 comments

  • eigenblake 3 hours ago ago

    Like some others, I also built this myself. Overly simply, with tmux, a memory tree, and handoff files and an orchestrator. And yet for how simple it was, it was so effective at minimizing the amount of duplicate context. It's like having shared specialist subagents who source and derive important shared knowledge from separate threads. It's useful because some skills just take too much of a token penalty to invoke and a single shared persistent session just lets that issue melt away. One agent pays the cost of that large skill once, and you don't have to keep paying for it in input tokens for the rest of that conversation.

    • onlyrealcuzzo 39 minutes ago ago

      Does this work for different harnesses like Codex and Antigravity?

      • vanjajaja1 35 minutes ago ago

        codex has been able to send messages across threads for a long time

  • Alifatisk 4 hours ago ago

    I wish there was a clean way to compact the conversation into a prompt with all necessary context for a new fresh conversation.

    • simonw 44 minutes ago ago

      I'm fed up with compaction. I want my agent to get compacted but also retain full access to the prior conversation via search and tool calls - I want it to know "the requirements for X were discussed in detail previously in conversation C51E31CE-C985-4633-A749-DCC9805A7FEB" and have a tool that lets it dispatch a subagent to find those details again.

      Do any of the coding agents have this already?

      • weitendorf 3 minutes ago ago

        Claude Code makes agents reasonably aware of where their log files/history/etc are and get stored. Generally they’ll work with them without explicitly being told (especially to recover broken sub agents, corrupted sessions, etc) to do so.

        I think the more general problem is that compaction is just a bandaid: you HAVE to dump context to keep going and searching back for it is more expensive than if you had just kept the right context. The better a job the harness does at filtering out junk, the more likely compaction is to remove context that might have been, forgive me, “load bearing”

    • wccrawford an hour ago ago

      Have you tried Matt Pocock's "handoff" skill?

    • 4b11b4 3 hours ago ago

      There is, but your wish of "clean" is ambiguous.

      • Alifatisk 2 hours ago ago

        With clean I mean the opposite of how I currently do it, which is by asking the model to compact the whole thread into a prompt which will act as context for next model.

        My way of prompting this varies and every time I receive the blob of output, I can’t fell how well it managed to capture the necessary details. This way feels lika a dirty way to transfer knowledge from one conversation to another.

        You said there is? What’s the options?

        • jghn 13 minutes ago ago

          My largest issue is that when I'm looking for this I'm already dangerously close to autocompaction. And what I really want is a prompt which manages to preserve the most important parts of the chat log. And my opinion of important will not be the same as Claude, so we'll need to iterate on what that handoff really is.

      • anonthrownaway 3 hours ago ago

        Here's a view for "clean:"

        1. Every chat should have a context used/remaining measurement so you know when you have to ditch the current chat for a fresh one.

        2. Every chat should analyze and categorizes each element of context by how useful it is towards the overarching goal of the chat.

        3. Every chat has a handoff button with a "usefulness" slider (say 1-5) that shows the total size of the context based on its setting.

        4. The handoff automatically creates a new chat with the desired amount of context and a prompt to get it back to where you were.

        That said, I am newb and so there is some reason why these non-deterministic LLMs can't do this :-/

  • andai 3 hours ago ago

    I was reading about the HF hack and one of the first thing the GPT swarm did was build a messaging system for themselves. This reminded me of that. (Also of how weirded out I was by Moltbook when it came out. Time flies!)

    Unrelated: when my Claude/Codex finishes cooking (or needs my attention), it pings a local HTTP endpoint that plays a frog sound on my laptop. I found this massively boosts quality of life.

    • zhoujianfu 2 hours ago ago

      How do you know when they’re done (or need your attention)? Is that a standard “api”/hook? I want that!

      • tym0 an hour ago ago

        All agents I know of have a hook system that can call arbitrary scripts.

  • Cyuonut 4 hours ago ago

    I have built this with Claude as a script, but it can also message other models and get responses from them, and throughout my fleet of Linux machines via Tailscale. It's been mostly very useful, although occasionally you have to step in and interrupt if they start going the wrong way.

  • hackernud3s an hour ago ago

    I asked cc the best pattern for this in a frontend + backend project just days ago and it suggested mcp server on backend

  • 4b11b4 3 hours ago ago

    Tried to have Claude demo this to me in the standalone Mac OS app. It didn't even know what I was talking about. Then I realized maybe it's only in CC. So I go over to CC and ask it to demo this functionality and it wants to demo via subagents. I correct it that I want separate chats to message each other. It tells me I need to open another Claude session in another terminal of course and just leave it sitting there. So I do that and it has me copy a message to the new conversation, it needed to like name itself or something internally.

    It worked, but clunky. Way clunky compared to codex.

  • Orphis an hour ago ago

    Curious, Windows is not supported by this.

  • iovrthoughtthis 3 hours ago ago

    I hacked this together with a small local irc server

  • dist-epoch 3 hours ago ago

    I've used this feature and saw some weird messages:

    > hold swarm, I prepare safe exfil

  • jauntywundrkind 3 hours ago ago

    i miss when opencode let you interact with your subagents. that was so so so much better.

    I broadly miss this feature to allow user agency, in letting users work with the various agents at they please, and to send data around.

    • bonoboTP 2 hours ago ago

      Claude Code does allow this. You can talk to the subagents directly and watch what they are doing.