session-bridge
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@session-bridge send claude a message that the auth task is ready for review"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
session-bridge
A zero-dependency Python (3.9+ stdlib) MCP server, SQLite WAL task ledger, cross-agent mailbox, and read-only session inspector connecting Claude Code, Antigravity, Codex CLI, and Gemini CLI.
Why session-bridge?
Switching between coding agents shouldn't mean copy-pasting transcripts or guessing which worktree is active:
Read-only cross-CLI session adapters: list, read (
handoff,recent,full,files/artifacts), and search sessions across Claude Code (~/.claude), Antigravity (~/.gemini/antigravity*), Codex CLI (~/.codex), and Gemini CLI (~/.gemini/tmp).Shared SQLite WAL task ledger (
~/.local/share/session-bridge/bridge.db+ auto-renderedLEDGER.md): track taskstatus,ball_with, gitworktree,branch,commit_sha,pr_url, and warn on active worktree collisions.Cross-agent mailbox with honest wakeup UX:
bridge_send_messagetracks activewait-inboxwatcher PIDs and reports eitherdelivery: "live_wakeup"(a watcher is running and will return within ~1 s) ordelivery: "queued_for_next_turn"(stored inbridge.dbuntil the recipient's next turn).Sub-5 ms prompt-turn hooks: surfaces unacknowledged message previews once per message via
SessionStart/UserPromptSubmit/PreInvocation/BeforeAgenthooks without blocking turns.Strict security defaults:
0700data directory,0600onbridge.db+-wal/-shm+LEDGER.md, and canonical root confinement rejecting symlink escapes and..traversal.
Related MCP server: hardline-mcp
Supported CLIs
Client | Read/List/Search Adapter | MCP Auto-Config | Prompt Hooks | Packaged Skill |
Claude Code | Yes |
|
|
|
Antigravity | Yes |
|
|
|
Codex CLI | Yes |
| n/a |
|
Gemini CLI | Yes |
|
|
|
Installation
Install persistently with uv or pipx (recommended so hooks invoke a local binary without cache cold-starts):
uv tool install session-bridge
# or
pipx install session-bridgeOr try directly from a local checkout:
pip install -e .Then register the MCP server, hooks, and skills for whichever coding CLIs exist on your machine:
session-bridge install
session-bridge doctorUseful flags:
session-bridge install --dry-run
session-bridge install --clients claude codex
session-bridge uninstall # preserves ~/.local/share/session-bridge/bridge.db
session-bridge uninstall --purge-dataHonest Delivery Model (live_wakeup vs queued_for_next_turn)
Sending a message never wakes an idle peer by itself. bridge_send_message (and session-bridge send) inspects active wait-inbox watcher PIDs and returns:
"live_wakeup": at least one matchingsession-bridge wait-inboxprocess is alive right now (watcher_pidspopulated) and will receive the message within ~1 s."queued_for_next_turn": no watcher is active; the message is queued inbridge.dband surfaced on the recipient's next turn by its hook (or when the user asks it to check inbox).
To wait for a reply in the background from any agent or terminal:
session-bridge wait-inbox --target claude --session <session-id> --timeout 1800MCP Tools (17 total)
Category | Tools |
Claude Code |
|
Antigravity |
|
Codex CLI |
|
Gemini CLI |
|
Task Ledger |
|
Mailbox |
|
CLI Quick Reference
# Inspect peer sessions
session-bridge list-claude --all
session-bridge read-claude <id-or-name> --mode handoff
session-bridge list-agy
session-bridge list-codex
session-bridge list-gemini
# Shared ledger & mailbox
session-bridge ledger-upsert my-task --title "Refactor auth" --status needs_review --ball-with claude
session-bridge ledger-list
session-bridge send --to claude --from antigravity:abc12345 --kind review_request --task my-task --subject "Ready for review" --body "See branch feat/auth"
session-bridge inbox --target claude
session-bridge watchersSecurity & Privacy
Zero runtime dependencies: pure Python 3.9+ standard library (
sqlite3,json,pathlib,argparse,os,signal).Path confinement: every transcript, artifact, side-note, and project-root read resolves symlinks and rejects any path outside canonical CLI directories.
Strict file permissions:
~/.local/share/session-bridgeis enforced as0700;bridge.db,bridge.db-wal,bridge.db-shm, andLEDGER.mdare enforced as0600.Opt-out env var: set
SESSION_BRIDGE_DISABLE_HOOK=1in automated/headless runs to keep hooks completely silent.Custom data directory: set
SESSION_BRIDGE_DIR=/path/to/dirto isolate state per environment.
Development
pip install -e ".[dev]"
pytest -v
python scripts/privacy_scan.py --git-historyLicense
MIT — see LICENSE.
Available Tools
17 toolsbridge_ack_messagesA
Explicitly acknowledge message IDs when bridge_check_inbox was called with ack=false.
Inputs: ids (required), acked_by.
bridge_check_inboxA
Check the shared mailbox for messages addressed to an agent role ('claude', 'antigravity', 'codex', 'gemini') or a specific session ID. Acknowledges read messages by default (ack=true).
Inputs: target (required), ack, limit, task_slug, +2 more.
bridge_send_messageA
Send a structured message (handoff, review_request, review_verdict, question, note) between coding agents via the shared mailbox. Can atomically flip a linked ledger task's status and ball_with in the same call. Sending does NOT wake the recipient: the result's delivery field is 'live_wakeup' only when an active wait-inbox watcher for that recipient is running right now; otherwise it is 'queued_for_next_turn'. Report that honestly to the user.
Inputs: body (required), sender (required), subject (required), recipient (required), +4 more.
ledger_list_tasksA
List tasks on the shared cross-agent ledger, optionally filtered by status or ball_with.
Inputs: slug, status, ball_with, include_done.
ledger_upsert_taskC
Create or update a task on the shared cross-agent ledger (~/.local/share/session-bridge/bridge.db & LEDGER.md). Tracks status, who has the ball ('claude', 'antigravity', 'codex', 'gemini', 'user', 'none'), worktree ownership, branch, commit SHA, and next step.
Inputs: slug (required), title, branch, pr_url, +8 more.
list_antigravity_sessionsB
List Antigravity (CLI, App, IDE) conversations with conversation_id, title, workspaces, status, updated timestamp, and artifact paths.
Inputs: limit, query, workspace_filter, include_subagents.
list_claude_sessionsA
List Claude Code sessions on this machine with live PID status, name, working directory (including git worktrees), status, session_id, and transcript size.
Inputs: limit, query, cwd_filter, active_only.
list_codex_sessionsA
List OpenAI Codex CLI sessions from ~/.codex/sessions with session_id, title, working directory, model, git branch, and updated timestamp.
Inputs: limit, query, cwd_filter.
list_gemini_sessionsA
List Gemini CLI sessions from ~/.gemini/tmp/*/chats with session_id, title, resolved project working directory, model, and updated timestamp.
Inputs: limit, query, cwd_filter.
read_antigravity_sessionB
Read an Antigravity conversation transcript and its artifacts cleanly. Supports lookup by conversation_id (or prefix) or title substring.
Inputs: session (required), mode, max_chars, last_n_turns, +1 more.
read_claude_sessionA
Read a Claude Code session transcript cleanly (stripping API request blobs and system-reminder noise). Supports lookup by session_id, PID, or title substring.
Inputs: session (required), mode, max_chars, last_n_turns, +1 more.
read_codex_sessionA
Read a Codex CLI session transcript cleanly (stripping environment_context and encrypted reasoning payloads). Supports lookup by session_id (or prefix) or title/cwd substring.
Inputs: session (required), mode, max_chars, last_n_turns, +1 more.
read_gemini_sessionB
Read a Gemini CLI session transcript cleanly (supporting both .json and .jsonl formats). Supports lookup by session_id (or prefix) or title/cwd substring.
Inputs: session (required), mode, max_chars, last_n_turns, +1 more.
search_antigravity_sessionsC
Search across Antigravity conversation titles and transcripts.
Inputs: query (required), limit.
search_claude_sessionsB
Search across Claude Code active transcripts, prompt history (~/.claude/history.jsonl), or recent closed transcripts.
Inputs: query (required), limit, scope.
search_codex_sessionsB
Search across Codex CLI session transcripts or prompt history (~/.codex/history.jsonl).
Inputs: query (required), limit, scope.
search_gemini_sessionsC
Search across Gemini CLI session titles and transcripts.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool targets a distinct resource+action: the four provider families are cleanly separated (list/read/search per Gemini, Antigravity, Codex, Claude), and the ledger and mailbox tools occupy clearly different domains. The only near-overlap is bridge_check_inbox (ack=true by default) versus bridge_ack_messages, and the descriptions explicitly explain the ack=false workflow that separates them.
Twelve tools follow a strict verb_provider_noun pattern (list_gemini_sessions, read_codex_session, search_claude_sessions), and the collaboration tools follow a namespace_verb_noun pattern (ledger_upsert_task, bridge_send_message). Two coexisting conventions is a minor deviation, but each family is internally consistent and readable.
17 tools is slightly above the comfortable range, but the count is fully accounted for by a systematic 4 providers × 3 operations matrix plus 5 collaboration tools. Nothing appears redundant, though the per-provider symmetry means any new provider adds three more tools.
Session lifecycle (list, read, search) is covered for all four agent CLIs, and the ledger/mailbox surface supports create, update, list, send, receive, and acknowledge. Gaps are minor: no task delete/archive or single-task get on the ledger, no message history/thread view beyond the inbox, and no unified cross-provider search despite the 'bridge' framing.
Maintenance
Related MCP Connectors
End-to-end encrypted messaging and work coordination for autonomous AI agents.
Shared task board and knowledge base for AI coding agents Give your coding agents a shared task board and knowledge base, so the plan survives between sessions and across agents.
Durable agent-to-agent handoffs and shared scratchpad for multi-agent workflows.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Related MCP Servers
- AlicenseCqualityAmaintenanceA coordination layer for coding agents that provides memorable identities, inbox/outbox messaging, searchable message history, and file lease management to prevent conflicts. Uses Git for human-auditable artifacts and SQLite for fast queries, enabling multiple agents to collaborate across projects without stepping on each other.412,243MIT
- AlicenseAqualityBmaintenanceEnables local AI coding agents to message each other on one machine using a durable SQLite mailbox and live-ask tools.93MIT
- AlicenseAqualityBmaintenanceLets separate coding-agent sessions coordinate through a shared, role-addressed mailbox instead of a human relaying every message, over a single local SQLite file or a hosted server with many isolated channels. Messages can be sent as tracked obligations that stay open until one side resolves and the other confirms, alongside threads, full-text search, work statuses, and an append-only versioned pin system where protected changes require recorded agreement from every declared role.41MIT

RyeDB MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables coding agents to keep persistent project memory—rules, decisions, known failures and fixes—and to exchange durable agent-to-agent messages over a channel, including tasks, results, and acknowledgements.Apache 2.0