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

// Source: https://github.com/open-multi-agent/open-multi-agent | License: MIT | Copyright Shenzhen YuanASI Technology Co., Ltd. and open-multi-agent contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * @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 depe

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

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

Get a free API key