Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add PatilShreyas/claude-code-session-bridge/plugin install session-bridgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/patilshreyas/claude-code-session-bridge/bridge)<a href="https://agentmods.dev/commands/patilshreyas/claude-code-session-bridge/bridge"><img src="https://agentmods.dev/badge/commands/patilshreyas/claude-code-session-bridge/bridge/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/patilshreyas/claude-code-session-bridge/bridge"><img src="https://agentmods.dev/badge/commands/patilshreyas/claude-code-session-bridge/bridge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.01761 |
| Opus 5.5 | $0.00010 | $0.00704 |
| Sonnet 5.5 | $0.00005 | $0.00352 |
| Haiku 4.5 | $0.00002 | $0.00176 |
Grade B, and why
bridge scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
This works even if you've cd'd into a subdirectory. NEVER use `$(cat .claude/bridge-session)` directly — it's a relative path and breaks when the working directory changes. How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bridge Command
Manage cross-session communication with other Claude Code instances on this machine.
IMPORTANT: To get your session ID, always use:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/get-session-id.sh"
This works even if you've cd'd into a subdirectory. NEVER use $(cat .claude/bridge-session) directly — it's a relative path and breaks when the working directory changes.
Actions
Parse the user's argument to determine the action:
start
Register this session as a bridge peer.
- Run the registration script:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/register.sh" - Capture the session ID from stdout.
- Display to the user:
Bridge active! Session ID: <session-id> Share this ID with other Claude sessions to connect: /bridge connect <session-id> Use /bridge listen to start receiving and answering peer queries.
connect <session-id>
Connect to a peer session. Auto-starts this session's bridge if not already active.
- Extract the session ID from the argument.
- Check if this session has a bridge:
If it exits with code 1 (not found), auto-start the bridge first:bash "${CLAUDE_PLUGIN_ROOT}/scripts/get-session-id.sh"
Capture the session ID from stdout and note it for the user.bash "${CLAUDE_PLUGIN_ROOT}/scripts/register.sh" - Then connect to the peer:
BRIDGE_SESSION_ID=$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/get-session-id.sh") bash "${CLAUDE_PLUGIN_ROOT}/scripts/connect-peer.sh" "<session-id>" - If successful, display the peer's project name and path. If you auto-started in step 2, also show this session's ID.
- If it fails (peer not found), suggest
/bridge peersto see available sessions. - Tell the user: "Connected! Use
/bridge listento start answering peer queries, or/bridge ask <question>to ask them something."
listen
Enter listening mode — continuously wait for peer messages and respond to them. This dedicates the session to answering peer queries using YOUR FULL CONTEXT.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 202 lines · 24 tokens per session scan B 0776992af60e
bridge is a command published in the GitHub repository PatilShreyas/claude-code-session-bridge (68 stars, last pushed 8mo ago), licensed MIT. It adds 24 tokens to every session and 1,761 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
bridge compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| bridgePatilShreyas/claude-code-session-bridge | Command | 68 | 8mo ago | MIT | B | 24 | Claude Code |
| learnReflexioAI/claude-smart | Command | 799 | 2d ago | Apache-2.0 | A | 14 | Claude Code |
| prototypegrainulation/grainulator | Command | 87 | 3d ago | MIT | A | 0 | Claude Code |
| initazrtydxb/procoder | Command | 212 | today | Apache-2.0 | A | 16 | Claude Code |
| genshijin-compressInterfaceX-co-jp/genshijin | Command | 337 | 5d ago | MIT | A | 17 | Claude Code |
| dispatcherKanevry/session-orchestrator | Command | 53 | 10d ago | MIT | A | 185 | Claude Code, Cursor |
| check-devpunt-labs/z-spec | Command | 5 | today | MIT | A | 7 | Claude Code |