Files
kandev/docs/specs/agents/system-design/muse-acp-agent.md
T
Jean-Emmanuel Losi 02ac02cd66 feat(agents): add Muse Code ACP agent support (#3819)
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
2026-09-20 11:33:09 +01:00

2.4 KiB

status, system, requirements
status system requirements
current agents
REQ-AGENTS-MUSE-ACP-001
REQ-AGENTS-MUSE-ACP-002
REQ-AGENTS-MUSE-ACP-003

Muse Code ACP agent system design

Purpose and boundaries

agents.MuseACP declares Muse's identity, discovery, launch, credential, and session-storage contract. MSP-to-ACP translation belongs to the external @bex-co/muse-code-acp adapter; model access, sandboxing, approvals, and persistence belong to the native muse executable the adapter spawns through muse serve. Kandev adds no MSP code.

Components

Surface Command Owner
Structured session, inference, capability probe npx --yes --prefer-offline @bex-co/muse-code-acp@<version> Managed npm runtime
Passthrough, login, discovery muse, muse login, muse --version Native Muse CLI
Install on POSIX official install.sh with MUSE_INSTALL_DIR Muse installer

The adapter is registered in managed_npm_runtime_versions.json, so the existing pin updater, cache repair, and operator version selection apply to it without new code. The npx probe command is already allow-listed.

Data and contracts

  • MCP: ACP session/new servers (stdio and HTTP) are materialized by the adapter into a temporary Muse config overlay; no Kandev project file.
  • Credentials: ~/.config/muse/auth.json or META_API_KEY, which takes priority. Muse launch and login processes remove XDG_CONFIG_HOME and XDG_DATA_HOME so these default paths remain stable.
  • Sessions: ~/.local/share/muse/sessions, resumed natively by the adapter. The executor mounts the isolated {home} directory at /root, which covers both the credential and session trees without mounting the real host home.

Failure and recovery

A missing muse executable makes discovery report unavailable before launch. An unauthenticated host fails the ACP session with the adapter's auth error; the user runs muse login or sets META_API_KEY. A Muse host newer than the adapter's verified schema is reported by the adapter as an advisory hostCompatibility session-info entry and does not block the session.

Security

The install script downloads to a temporary file so a failed download fails the job, installs only into an existing writable absolute PATH directory, and embeds no credentials. Windows does not expose the POSIX install script. Remote auth copies only auth.json.