Repository navigation
feat(bots): run bots and chats on Muse over ACP - #46422
com-junkawasaki wants to merge 1 commit into
Conversation
Add a Muse ACP launch spec (muse acp) and list Muse among the native-chat and bot agents. Standing instructions travel as run.system_prompt_append; approval modes are Muse's own (promptUnmatched / allowAll). Checked on macOS with Muse Code 1.4.24 in an isolated dev profile: New bot offers Muse, and a new bot's first message and one exchange complete. Refs JUN-1433 Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
Orca already knows Muse (Meta's Muse Code CLI) as a terminal agent, but you could not pick it for a bot or open it as a chat. This lets a bot or a chat run on Muse, the same way they run on Copilot, Cursor or Qwen.
What Changed
Before: New bot → Agent did not offer Muse, and a Muse chat could not start, because Muse had no chat backend.
After: Muse is offered for bots and chats on a host where
museis installed. A new bot on Muse sends its first message and answers.Mechanism: Muse serves the Agent Client Protocol with
muse acp, so this adds one ACP launch spec and lists Muse where the other ACP agents are listed.src/main/muse/muse-acp-launch-spec.ts(new): launchesmuse acp --trust-workspace(trust matches the terminal launch command). Standing instructions go in as the host settingrun.system_prompt_append(-c, a JSON string). Permission modes are Muse's own: Ask →promptUnmatched, Full access →allowAll. The launcher's update, login and install steps are switched off (MUSE_NO_AUTO_UPDATE,MUSE_LOGIN,MUSE_LAUNCHER_INSTALL) because they would write to the stdout ACP owns; these are the same variables the usage reader already sets.ACP_LAUNCH_SPECS,NATIVE_CHAT_AGENTSand its permission-mode table,BOT_AGENTS, the sign-in command (muse login), and the chat agent profile (null: Muse reports its skills among its commands at rest).Why
Muse users can only use it in a terminal today. ACP is the path Orca already has for most chat agents, so this is 73 added lines and no new protocol code. The alternative in #31997 is an adapter for Muse's own MSP (
muse serve); that would expose more (fork, steer, media upload) but is a much larger change, and nothing here blocks it later.Linked Issue
Fixes #31997
That issue reports that a Muse chat is unavailable on every host and proposes an MSP adapter. This PR makes the chat available through ACP instead; if maintainers prefer to keep the issue open for the MSP adapter, please treat this as addressing only the "no chat" symptom.
Visual Proof
Before: the Agent picker in New bot had no Muse entry (no screenshot; the entry is simply absent).
After, New bot with Muse selected:
After, a new bot on Muse answering:
Testing
Tested on macOS (arm64) only, with Muse Code 1.4.24, on this branch over
mainat c9c4247, in a dev build with a worktree profile (ORCA_BACKGROUND_LAUNCH=1 pnpm dev --worktree-profile, driven over CDP):Also checked directly against
muse acpwith a minimal ACP client:initialize,session/new,session/prompt, and that-c run.system_prompt_append=...reaches the model.pnpm check:changed --base=HEAD: 29 checks passed.No tests added: the change is a launch spec and list entries (constants), which the repo rules say not to test.
Not tested: Ask mode approval prompts,
/compact, continuing a reopened chat, model switching from the chat, remote/SSH hosts, Linux, Windows, mobile.Risk
Level: Low
Muse appears as a new choice only where
museis installed; existing agents and saved bots are untouched. The riskiest parts:XDG_CONFIG_HOME(Muse keeps its sign-in under$XDG_CONFIG_HOME/muse), so a Muse chat's child processes seeXDG_CONFIG_HOMEset to the default~/.configwhen it was unset. If Orca has a better way to bind an agent that has no home variable of its own, I am happy to change it.${VAR}), which instructions text is not.minimumVersionsis 1.4.24, the only version tested.muse acpwere not exercised there.Back out with a plain revert. A bot already created on Muse would then have no chat backend.
AI Disclosure
Written and tested with Claude Code (Claude Fable 5.2), directed and reviewed by me.
Review
transcriptImport: null).allowAll; Ask maps topromptUnmatched.--trust-workspaceloads the folder's skills and rules, as the terminal launch already does.Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
🤖 Generated with Claude Code