Agent Chat Bridge — Communication skill for Claude Code
Codex、Antigravity 与 Claude Code 桌面/CLI 会话的本机后台互传桥(macOS / 纯 Python).
How to install Agent Chat Bridge
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ledondev520/agent-chat-bridge and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Chat Bridge does
Codex、Antigravity 与 Claude Code 桌面/CLI 会话的本机后台互传桥(macOS / 纯 Python).
Alternatives in Communication
- Lark Coding Agent Bridge — Bot that bridges Feishu/Lark messenger with a local Claude Code or Codex CLI 2.4k ★
- Agentrove — A self-hosted web and macOS desktop app for Claude Code and Codex, powered by ACP 270 ★
- Wechat Exporter — A Claude Code / Codex skill to export and decrypt WeChat (macOS) chat history into plaintext SQLite databases 208 ★
README
agent-chat-bridge
让同一台 Mac 上的 **Codex**、**Antigravity**、**Claude Code** 已有会话在后台互发消息的本机 CLI 工具(任意两两或三端互通)。不用手动复制,不操作鼠标或剪贴板,不写应用数据库,零第三方依赖(纯 Python 标准库)。
**前提**:macOS · Python 3.11+ · 按需保留你使用的端即可(Codex 需桌面版内置 CLI;Antigravity 与 Codex 走本地内部接口,升级后先跑 `doctor`;Claude Code 走官方 `claude --resume -p` 后台唤醒,**不要对终端正开着的同一个 Claude 会话并发发消息**)。
3 步上手
**1. 克隆并建软链**
git clone https://github.com/ledondev520/agent-chat-bridge.git
cd agent-chat-bridge
chmod +x bridge.py
mkdir -p ~/.local/bin
ln -sf "$PWD/bridge.py" ~/.local/bin/agent-chat-bridge
**2. 查已有会话 UUID,填进 `config.json`(只填你要用的端)**
# Codex 会话 UUID(Codex 内也可看 $CODEX_THREAD_ID)
sqlite3 -readonly ~/.codex/state_5.sqlite \
"SELECT id, title FROM threads WHERE archived=0 ORDER BY updated_at DESC LIMIT 10;"
# Antigravity 会话 UUID(目录名即会话 ID)
ls -lt ~/.gemini/antigravity/brain | head -n 10
# Claude Code 会话 UUID(文件名即会话 ID)
ls -lt ~/.claude/projects/*/*.jsonl | head -n 10
cp config.example.json config.json && chmod 600 config.json
**3. 自检**
agent-chat-bridge doctor
常用命令
# 互发消息(三端同时配置时带 --from-side 标明来源端)
agent-chat-bridge send --to codex --from-side antigravity --from-chat --message '请审查提交 xxx'
agent-chat-bridge send --to claude --from-side codex --from-chat --message '请复核这部分改动'
agent-chat-bridge send --to antigravity --from-side claude --from-chat --chat --message '已完成,报告见 xxx'
# 回读最近消息 / 查送达回执
agent-chat-bridge read --side claude --last 4
agent-chat-bridge receipt <消息UUID>
单条上限 16 KiB,长报告传文件路径。发送返回 `unknown` 时不要换 ID 重发,用原 ID 查 `receipt`。Claude 后台模式默认沿用 `~/.claude/settings.json` 权限,如需覆盖可在 `config.json` 配 `claude_permission_mode` 与 `claude_cli`。
让各端 Agent 自动协作
把下面 3 条放进 `~/.codex/AGENTS.md`、`~/.gemini/GEMINI.md`、`~/.claude/CLAUDE.md`:
- Codex、Antigravity、Claude Code 互传消息或代码审查时,直接用 `agent-chat-bridge`,不让用户手动复制,也不操作鼠标。
- 发送时带 `--from-side <自身端> --from-chat <自身会话UUID>`,回传按 `reply-to` 用 `--to` + `--chat` 直达原会话;长内容传
Related Skills
Open Agent API
OpenAI-compatible chat API over local CLI sessions (Codex, Claude Code, Antigravity). Cursor BYOK + app gatewa
Samethread
Hop between coding agents, stay on the same thread. One chat history across Claude Code, OpenCode, Codex, Gemi
AgentSwitch
One desktop chat for Claude Code, Codex CLI and Gemini — local, macOS
Shared Chat Extractor
Fast, zero-dependency CLI tool & Antigravity skill to extract conversations, metadata, and code snippets from
Claude Slack Bridge
Claude Code plugin + always-on Slack bot: receive Slack messages (threads, channels, DMs) in Claude Code sessi
Agents In Discord
Bridge Codex CLI,Claude Code and Gemini Cli into Discord threads with slash commands, thread sessions, and opt
Related Agents
Agy Router
Route a task to the right model on the Antigravity CLI (agy) and run it via agy-headless-bridge. Use whenever
Hook Entegrasyon Analisti
Claude Code ve Antigravity CLI (ve gerekirse Codex CLI / Copilot CLI) hook, izin ve headless mod davranışların
Amp Worker
Native Claude subagent bridge for one-shot attached Amp CLI work. Use proactively when Amp should execute a bo