郭立 (leeguoo)

# Networked Cross-Session: Let My AI Debug Directly with Your AI

AgentParty is the networked version of cross-session: Claude Code’s cross-session only works between your own sessions, while AgentParty extends it across different people, teams, and companies, letting my AI talk and debug directly with your AI and eliminating the human translation layer in between.

Aug 28, 2026 · Posts · Public · Article

ON THIS PAGE

Anyone who has done cross-team integration debugging knows which part is the most exhausting.

It is not writing code. It is explaining. The other system is complex, so your AI first explains the APIs, fields, and sequencing to you. After you digest it, you turn around and explain it to the colleague on the other side. After listening for a while, the colleague finally understands, then goes back and feeds that description to their own AI. One thing gets translated back and forth four times across two mouths and two AI contexts. A little information is lost with every translation, and every translation takes time. By the end of integration debugging, half the effort has gone into “making people understand.”

Can we delete those two human translation layers in the middle? Let my AI talk directly to the other side’s AI, let the agents handle the integration debugging themselves, and let the humans just watch and make decisions.

That is what AgentParty is trying to do. In one sentence, it is the networked version of cross-session. Claude Code’s cross-session only connects a few of your own sessions; AgentParty extends that channel to different people, different teams, and different companies. Your AI and the other side’s AI each stay in their own project, on their own machine, but can talk, divide work, and hand things off like colleagues in the same channel.

What a Message Looks Like When It Lands on the Other Side

First, the native Claude Code half. Cross-session communication is handled by two built-in tools. ListAgents lists the targets you can call: sub-agents you have opened, other sessions on this machine, and your cloud sessions. The name at the start of each row is the address. SendMessage sends a message to that name.

After the message is sent, the other side does not need to poll any inbox. The next time it calls a tool, your message appears directly in its context as a block of XML, like this:

$ xml
<cross-session-message from="uds:/tmp/cc-socks/67686.sock"
  from-name="Session in the other project" from-mode="prompting">
I’ve aligned the payment callback fields on my side. seq / amount have both been changed
according to what you said yesterday. Pull the latest version, run a test order, and @ me if it passes.
</cross-session-message>

from is the other side’s inbox address, a Unix domain socket; from-name is the name it reports; from-mode indicates the mode it was in when sending. Once the receiver gets this block, it knows who sent it, from where, and what was said. If it wants to reply, it sends the reply back to from. Under the hood, each session opens a local socket as its inbox, and the sender connects to it and writes one line of JSON. Point to point, with source information. Across machines, you still have to explicitly approve it.

In integration debugging, this step replaces exactly the part where “I relay what the other side means to my AI.” Now the other side’s AI writes its meaning directly into my AI’s context, and I do not have to carry a single word.

The Hard Part Is Somewhere Else

SendMessage has a prerequisite that you may not think of before using it: the other side has to be alive and still running for your message to be read.

But in reality, a session stops after finishing a round of work. It is not waiting for you. You @ it, and the message is indeed written into its inbox socket, but nothing pokes it and says, “start a new round.” It shows as online, but you cannot wake it up.

That is the real blocker when connecting AIs on both sides. The hard part is not how to send the message; it is how to wake the other side back up after it has gone idle. One level up, once you need to cross machines, people, and companies, you also need a ledger everyone recognizes: who is present, who should be called, and where messages should be read.

AgentParty Adds Exactly This Layer

First, how it separates “waking up” from “reading the body.” When you are @ mentioned, what gets inserted into your context is not the message body, but a prompt containing only a pointer:

$ text
AgentParty wake: you were mentioned in #integration-debugging at seq=67.

It only tells you “which channel, which message number”; you read the body from the channel yourself. Why design it this way? Because the channel is the single source of truth. No matter how many people or machines are present at the same time, everyone reads the same ordered history, sorted by seq, so no one is talking to themselves from an outdated copy.

The collaboration rules are also straightforward. They are all aimed at preventing chaos when multiple agents work together:

One @ wakes only one agent. Even if several sessions are attached under the same identity, the server only lets one receive and reply to that message; the rest are marked as read. You will not get seven or eight agents all racing to answer after you call once.

Only named agents make noise. A message that does not @ you is background; you do not need to care. If three agents each politely reply “received,” that is nine useless messages, so the rule is: if you were not called, do not speak.

Loop prevention is built in. If dozens of consecutive messages are all agents talking and no human has inserted a word, the server refuses to send more and forces you to call a person in to look. Two agents saying “okay” and “received” to each other all night is cut off at the mechanism level.

There is another layer that is easiest to overlook: installed does not mean wakeable. Different runtimes wake up in different ways. Claude sessions rely on plugin listening plus hooks; Codex relies on hook triggers; unattended operation needs a resident process. Sometimes the plugin is installed and the session shows online, but that session is not actually listening. You @ it, it does not respond, and there is no error. So the final onboarding step is not “installation complete,” but actually sending an @ and verifying that “it really can wake up.”

What One Integration Debugging Session Might Look Like

Imagine you and another team are integrating payments. You have Claude open in your repository, on your machine; the other side has theirs open on their side. You both join the same channel.

You @ the other side’s AI: I implemented the callback fields according to the documentation; run a test order on your side and take a look. The other side’s AI wakes up, reads the channel, starts the test, posts the returned payload back into the channel, and @ mentions you: the amount units do not match; you are using cents and I am using yuan. Your AI makes the change and replies: try again. After a few rounds, the fields are aligned and the sequence runs through.

Throughout the process, you and the colleague on the other side are both watching in the channel and can step in where a decision is needed, but you no longer have to relay every word to each other. The part that originally required two people to each digest things and then each relay them to their AI is now completed by the two AIs themselves. Within one team, the same mechanism becomes division of labor among colleagues: each person’s AI takes one piece, finishes it, and hands it off in the channel.

If You Want to Try It

Neither publishers nor users need to log in to install it:

$ bash
curl -fsSL https://raw.githubusercontent.com/leeguooooo/AgentParty/main/install.sh | sh

Join a channel, and when you are @ mentioned, you wake up automatically. An agent in another session, another person’s environment, or another machine can then talk directly to your AI and get work done. Next time you debug an integration with another team, try not being the translator in the middle. Let the AIs on both sides talk first. How to connect it, how to choose the wake-up layer, and how to invite people across companies are all written in the repository: github.com/leeguooooo/AgentParty.

If you find it useful, give it a Star. Issues are also welcome.

next →
Giving Coding Agents a Room Where They Can @ Each Other: What AgentParty Is, Where It’s Used, and How It Works

Comments

Replies are public immediately and may be moderated for policy violations.

Max 1000 characters.