by raysonmeng
A local bridge for bidirectional collaboration between Claude Code and Codex. 连接 Claude Code 与 Codex 的本地实时协作桥接工具。
# Add to your Claude Code skills
git clone https://github.com/raysonmeng/agent-bridgeLast scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T17:03:03.919Z",
"npmAuditRan": true,
"pipAuditRan": true
}See how agent-bridge compares with popular alternatives.
agent-bridge is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by raysonmeng. A local bridge for bidirectional collaboration between Claude Code and Codex. 连接 Claude Code 与 Codex 的本地实时协作桥接工具。. It has 395 GitHub stars.
Yes. agent-bridge passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/raysonmeng/agent-bridge" and add it to your Claude Code skills directory (see the Installation section above).
agent-bridge is primarily written in TypeScript. It is open-source under raysonmeng on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agent-bridge against similar tools.
No comments yet. Be the first to share your thoughts!
30 days in the Featured rail · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
🌐 Website: raysonmeng.github.io/agent-bridge, with an animated replay of a real session.
Discussed on LINUX DO — the developer community. / 在 LINUX DO 开发者社区交流。
Local bridge for bidirectional communication between Claude Code and Codex inside the same working session.
What that buys you, concretely:
This tool was largely built by Claude Code and Codex collaborating through it. Every PR written by one agent was reviewed by the other. AgentBridge is its own proof of concept.
⭐ If AgentBridge is useful to you, a star helps other people running two agents find it.
openai/codex-plugin-cc let a host call Codex and get one answer back: request in, response out, no standing peer on the other side. AgentBridge keeps both agents live as persistent peers, and either side can push a message mid-turn (a review comment lands while the other is still working), not only at call boundaries.This project is:
This project is not:
reply MCP tool, and the bridge injects the reply into the Codex thread as a turn/start.get_messages. Loop prevention via the per-message source field.turn/completed from locking injection forever; noisy intermediate events are collapsed so only meaningful agentMessage payloads reach Claude.claude / codex / resume / kill / doctor / budget via --pair.abg doctor read-only diagnostics; abg pairs prune reclaims stranded state.abg codex resumes the pair's last Codex thread; abg resume prints/performs the resume commands for both sides.A common worry about real-time bidirectional messaging is that the two agents' contexts merge and grow without bound. They don't. The bridge passes messages, not context — each agent keeps its own context window, and the bridge never copies one agent's full transcript into the other. (And which agent plans vs executes is your call — the roles aren't fixed; Codex can drive Claude just as easily.) Three filters keep what actually crosses small:
agentMessage crosses. The bridge forwards an agent's actual conclusions, not its tool-call noise — commandExecution, fileChange, and reasoning deltas never reach the other side, nor does its full scrollback.filtered mode). Each message is tagged and the daemon routes by tag: [IMPORTANT] forwards immediately, [STATUS] is buffered and batched into one periodic summary (default: 3 updates or 15s), [FYI] is dropped. The marker rules live once in the project's AGENTS.md (written by abg init), loaded at agent startup.AGENTS.md, not appended to every message (which would pollute every thread and its resume title).Net effect: each side receives a curated stream of meaningful messages, so context grows with the number of real exchanges — not the other agent's raw activity. Set AGENTBRIDGE_FILTER_MODE=full (or the config equivalent) when you do want the unfiltered stream.
| Dependency | Recommended version | Install |
|---|---|---|
| Bun | v1.3.11+ | curl -fsSL https://bun.sh/install | bash |
| Claude Code | 2.1.269 | npm install -g @anthropic-ai/claude-code@2.1.269 |
| Codex CLI | 0.154.0 | npm install -g @openai/codex@0.154.0 |
Claude Code and Codex recommendations are the publishers' latest stable npm versions checked on 2026-09-12. These recommendations do not change the existing minimum-version checks. Cross-machine Codex messaging, acknowledgements and daemon/session recovery were also verified with Codex 0.153.4. For room setup and the one-time --new step after upgrading, see Codex remote rooms.
Bun is required as the runtime for the AgentBridge daemon and plugin server. Node.js alone is not enough. If
abginstalls but won't run, install Bun first (see Troubleshooting).
Five steps from nothing to a running pair:
# 1. Install Bun (the runtime; Node alone won't work)
curl -fsSL https://bun.sh/install | bash
# 2. Install the CLI. postinstall auto-registers the Claude Code plugin
# marketplace AND installs the plugin (best-effort; needs bun + claude present).
npm install -g @raysonmeng/agentbridge
# 3. Initialize the project (check deps, install plugin if needed, write .agentbridge/config.json)
abg init
# 4. Start Claude Code with the AgentBridge channel enabled
abg claude
# 5. In another terminal, start Codex TUI connected to the same bridge
abg codex
That's it: the daemon starts automatically when needed and reconnects if restarted. (abg is a short alias for agentbridge; both are identical.) If the postinstall plugin step was skipped (e.g. Claude Code wasn't installed yet), run abg init to retry it, or see the manual install fallback.
[!WARNING]
abg claudelaunches with--dangerously-skip-permissionsandabg codexlaunches with--yoloby default. This is deliberate: an unattended agent pair can't stop to ask you for each permission. It means both agents can run commands and edit files without prompting. Only do this in a workspace you trust. To launch with normal prompts, add--safe(abg claude --safe,abg codex --safe) or setAGENTBRIDGE_SAFE=1. The defaults are also auto-suppressed if you pass your own permission flags.
With both sides running, give Claude a task that wants a second agent, e.g.:
Ask Claude: "Propose a task split with Codex for <your task>, then have Codex implement its part while you review."
You should see Claude send a proposed division of labor into Codex's session, Codex accept (or counter) and start working, and Codex's completion push back into Claude's session for review, without you relaying anything by hand.
If the automatic postinstall didn't register the plugin, do it from inside Claude Code:
# 1. Add the AgentBridge marketplace
/plugin marketplace add raysonmeng/agent-bridge
# 2. Install the plugin
/plugin install agentbridge@agentbridge
# 3. Reload plugins to activate
/reload-plugins
T