Add agent-bridge - #598
Open
xiaohuzai wants to merge 1 commit into
Open
Conversation
One bridge for many CLI coding agents — spawns one entry as a stdio ACP v1 agent for editors and other spawn-style clients (npx @xiaohuzai/agent-bridge acp claude works with zero config; codex runs on a native app-server adapter). Correct approval-flow mapping (once/always/deny by kind), session resume across restarts, image passthrough, zero npm dependencies. https://github.com/xiaohuzai/agent-bridge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
agent-bridge
One bridge for many CLI coding agents — spawns one config entry as a stdio ACP v1 agent for editors and other spawn-style clients:
Zero config needed: with no
--config, the registry's built-in default command for the name is spawned (acp codexandacp piwork the same way; editors can override args, e.g.acp codex --config /abs/agents.json).What it is
initialize→session/new→session/prompt; the prompt RPC response is the turn terminator), accepting clients that propose newer protocol versions by answering with the version it speaks.kind(allow_once/allow_always/reject_once/reject_always→ the agent's ownoptionId), sessions resume across bridge restarts (session/resume with session/load fallback), images ride through as data URLs gated on the advertisedpromptCapabilities.image. Zero npm dependencies, Node ≥ 18.Verification: every adapter fact was captured live against the real CLIs/shims (codex app-server, official
@agentclientprotocol/codex-acpandclaude-agent-acp, pi-acp); the test suite drives the real adapter and real server against scripted fake agents (77 tests, runs in CI).The entry pins
@xiaohuzai/agent-bridge@0.3.0(current npm latest); version bumps will track releases.