createAcpBackend (acp-backend.ts)

open-multi-agent · ai

@fileoverview {@link AgentBackend} that drives an external coding agent over the Agent Client Protocol (ACP). OMA takes the ACP **client** role: it spawns the agent (a local CLI such as Gemini CLI or Claude Code) as a subprocess, exchanges JSON-RPC over stdio, and turns one `se

/**
 * @fileoverview {@link AgentBackend} that drives an external coding agent over the
 * Agent Client Protocol (ACP).
 *
 * OMA takes the ACP **client** role: it spawns the agent (a local CLI such as
 * Gemini CLI or Claude Code) as a subprocess, exchanges JSON-RPC over stdio, and
 * turns one `session/prompt` turn into a {@link RunResult}. This lets an ACP agent
 * sit in the same task DAG as LLM agents — with shared memory, cascade-on-failure,
 * and token budget — because it satisfies the same {@link AgentBackend} contract.
 *
 * Requires the optional peer dependency `@agentclientprotocol/sdk`, loaded lazily
 * so the three-runtime-dependency promise holds for consumers that never use ACP.
 * Reached only through `AgentConfig.backend` (see {@link Agent}) or the
 * `@open-multi-agent/c

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key