Let your Claude Code sessions talk to each other ๐ค๐ฌ
FAQ
claude-code-session-bridge is a Claude Code plugin with 1 hand-picked skill for development work, indexed on Flowy. Install it with the command on its page. It includes bridge-awareness. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
> /plugin marketplace add PatilShreyas/claude-code-session-bridge> /plugin install session-bridge@session-bridge
Repo: PatilShreyas/claude-code-session-bridge
When you're working across multiple repos โ a shared library and its consumer app, a backend and frontend, microservices โ each Claude Code session is isolated. session-bridge lets them talk to each other.
The Library agent answers questions about breaking changes. The Consumer agent asks what API replaced a deprecated function. The agent responds with its full context โ no approximation, no extra API cost.
https://github.com/user-attachments/assets/ce893322-5749-42be-9973-e36e60b969a6
# Install jq (required)
brew install jq # macOS
sudo apt install jq # Linux
# Install the plugin
claude plugin marketplace add PatilShreyas/claude-code-session-bridge
claude plugin install session-bridge
git clone https://github.com/PatilShreyas/claude-code-session-bridge.git ~/claude-code-session-bridge
Then start Claude with:
claude --plugin-dir ~/claude-code-session-bridge/plugins/session-bridge
Or add to ~/.claude/settings.json for permanent loading:
{
"plugins": ["~/claude-code-session-bridge/plugins/session-bridge"]
}
Open two terminals โ one for each project.
Terminal 1 (the project that has the answers):
cd ~/projects/my-library && claude
> /bridge listen
Session ID: a1b2c3
Listening for peer messages... (Ctrl+C to stop)
Terminal 2 (the project that needs answers):
cd ~/projects/my-app && claude
> /bridge connect a1b2c3
Connected to 'my-library'
> /bridge ask "What breaking changes did you make?"
Response from my-library:
3 breaking changes in v2.0:
1. login() โ authenticate() โ takes a Config object
2. getUser() โ getCurrentUser() โ returns UserProfile
3. Removed refreshToken() โ now automatic
That's it. The Library agent responds with its full session context โ it knows what it changed, why, and how. No extra API calls, no approximation.
| Command | Description |
|---|---|
/bridge start | Register this session as a bridge peer |
/bridge connect <id> | Connect to a peer session (auto-starts if needed) |
/bridge listen | Enter listening mode โ answer peer queries continuously |
/bridge ask <question> | Send a question and wait for the response |
/bridge peers | List all active sessions on this machine |
/bridge status | Show session ID, connected peers, pending messages |
/bridge stop | Disconnect, notify peers, clean up |
Tip: You don't always need explicit commands. Just tell your agent "ask the library about X" in natural language and it will use the bridge automatically.
The key innovation: /bridge listen puts the agent into a continuous listening loop. When a query arrives, the agent itself responds โ with its full conversation context, not an approximation.
claude -p calls โ zero extra API cost for responsesDesign principles:
mv prevents partial readsMulti-repo coordination โ Library + consumer app, SDK + client, shared module + services
You make breaking changes in the library. Instead of context-switching to the consumer app and manually explaining what changed, the consumer agent asks the library agent directly.
Backend + Frontend โ API changes that affect both sides
Backend session changes an endpoint's response format. Frontend session asks "what does the new response look like?" and gets the actual schema, not a stale doc.
Microservices โ Service A depends on Service B's contract
Service B renames a field in its API. Service A's agent asks Service B's agent what changed and updates the client code automatically.
Monorepo modules โ Independent modules that depend on each other
Module X changes an internal interface. Module Y's agent queries Module X about the new type signatures and applies the fix.
Migration assistance โ Upgrading dependencies with breaking changes
Your agent can ask the dependency's agent: "I'm on v1.3. What do I need to change for v2.0?" and get a step-by-step migration with actual code.
Consumer: "Update our app to use auth-sdk v2.0"
Agent detects version bump โ proactively queries library peer
Agent: "Asking auth-sdk about breaking changes..."
Library responds with changes + migration steps
Agent applies all changes automatically
Agent: "Done. Updated 4 files, ran tests, all passing."
Consumer: /bridge ask "How should I handle the new error types?"
Library: "What error types are you currently catching? Send me your error handler."
Consumer: (reads its own code, sends the relevant function)
Library: "Replace AuthError with AuthException. Here's the new hierarchy: ..."
Consumer: applies the fix
Consumer user: "Ask the backend team what the new API response format looks like
for the /users endpoint and update our models accordingly"
Agent queries the backend peer
Agent gets the response with actual schema
Agent updates the model classes
Agent: "Updated UserResponse model to match new schema."
> /bridge peers
SESSION PROJECT STATUS PATH
------- ------- ------ ----
a1b2c3 auth-sdk active ~/projects/auth-sdk
d4e5f6 payments-service active ~/projects/payments
g7h8i9 my-app active ~/projects/my-app (you)
> /bridge ask "What config format does the payments service expect?"
Routes to payments-service peer automatically based on question context
/bridge listen on the session that has the knowledge โ the one that made the changes, built the feature, or owns the API. It responds with full context./bridge ask./bridge stop when done, or stale sessions accumulate.~/.claude/session-bridge/), not a network protocol./bridge listen on both sides simultaneously and expect them to talk โ one side listens, the other asks. If both listen, neither asks./bridge stop or /bridge peers + cleanup.When a session is in /bridge listen mode, it's dedicated to answering peer queries. The user can't use it for other work until they press Ctrl+C. This is by design โ it's the trade-off for getting full-context responses at zero extra cost.
| Platform | Status |
|---|---|
| macOS | Tested |
| Linux | Should work (GNU date fallback) |
| Windows | Not supported yet |
bridge-listen.sh checks every 3 seconds. Responses are as fast as the agent can formulate them./bridge peers to check, /bridge stop to clean up.plugins/session-bridge/
โโโ .claude-plugin/
โ โโโ plugin.json
โโโ commands/
โ โโโ bridge.md # /bridge command (all subcommands)
โโโ hooks/
โ โโโ hooks.json # SessionEnd cleanup โ notifies peers on exit
โโโ skills/
โ โโโ bridge-awareness/
โ โโโ SKILL.md # Teaches agent the bridge protocol
โโโ scripts/
โ โโโ register.sh # Create session directory and manifest
โ โโโ send-message.sh # Send message to peer's inbox
โ โโโ check-inbox.sh # Scan inboxes for pending messages
โ โโโ list-peers.sh # List active sessions
โ โโโ connect-peer.sh # Ping to establish connection
โ โโโ heartbeat.sh # Update session heartbeat
โ โโโ cleanup.sh # Remove session, notify peers
โ โโโ bridge-listen.sh # Block until message arrives
โ โโโ bridge-receive.sh # Block until specific response arrives
โโโ test.sh # Run all tests
โโโ tests/
โโโ test-helpers.sh # Shared assertions
โโโ test-register.sh
โโโ test-send-message.sh
โโโ test-check-inbox.sh
โโโ test-list-peers.sh
โโโ test-connect-peer.sh
โโโ test-cleanup.sh
โโโ test-heartbeat.sh
โโโ test-bridge-listen.sh
โโโ test-bridge-receive.sh
โโโ test-integration.sh # End-to-end two-session test
cd plugins/session-bridge
bash test.sh
Contributions are welcome! Please open an issue or PR.
.claude-plugin/
marketplace.json
.github/
workflows/
test.yml
.gitignore
demo.mp4
LICENSE
plugins/
session-bridge/
.claude-plugin/
plugin.json
commands/
bridge.md
hooks/
hooks.json
scripts/
bridge-listen.sh
bridge-receive.sh
check-inbox.sh
cleanup.sh
connect-peer.sh
get-session-id.sh
heartbeat.sh
list-peers.sh
register.sh
send-message.sh
skills/
bridge-awareness/
SKILL.md
test.sh
tests/
test-bridge-listen.sh
test-bridge-receive.sh
test-check-inbox.sh
test-cleanup.sh
test-connect-peer.sh
test-get-session-id.sh
test-heartbeat.sh
test-helpers.sh
test-integration.sh
test-list-peers.sh
test-register.sh
test-send-message.sh
README.mdยฉ 2026 Flowy ยท Free and open source
Built for Claude Code ยท Not affiliated with Anthropic