Repository navigation
feat: Muse Code as a first-class provider (#873) - #876
Conversation
Approved design: spawn muse exec --json as a Solenta provider, XDG overlay for MCP/hooks, no --yolo, no Muse --worktree.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9bc2851ba4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "--trust-workspace", | ||
| "--approval-mode", | ||
| "never", |
There was a problem hiding this comment.
Disable Muse tools in read-only helper runs
When fm is unavailable, Ask mode runs this argv directly, and the identical Muse argv in electron/commitmsg.js runs against the thread worktree. --approval-mode never controls approval behavior; it does not make the agent tool-free. The captured CLI help explicitly provides --disable-write and --disable-shell for that purpose (electron/test/fixtures/muse/help.txt:162-183). If the model follows prompt-injected content or independently invokes a tool, a supposedly read-only question or commit-message request can execute shell commands or alter files, so both helper argv builders should disable those capabilities rather than relying on prompt text.
Useful? React with 👍 / 👎.
| mcp_servers[name] = { | ||
| transport: "stdio", | ||
| command: entry.command || "", | ||
| args: Array.isArray(entry.args) ? entry.args : [], | ||
| enabled: true, | ||
| mode: "optional", | ||
| }; |
There was a problem hiding this comment.
Preserve environment and cwd for stdio MCP servers
For any configured stdio MCP server that relies on environment variables or a working directory, this conversion silently drops both fields. kimiMcpServersForRun deliberately supplies env and optional cwd on each stdio entry (electron/memory-sup.js:657-665), but the generated Muse settings retain only command and args; common servers needing credentials or relative paths therefore fail to start or run with the wrong configuration under Muse.
Useful? React with 👍 / 👎.
| mcp_servers[name] = { | ||
| transport: "streamable_http", | ||
| url: entry.url || "", |
There was a problem hiding this comment.
Do not relabel legacy SSE servers as Streamable HTTP
When an enabled MCP server has transport sse, kimiMcpServersForRun preserves that distinction as entry.type === "sse", but this catch-all branch rewrites it to streamable_http. Legacy HTTP+SSE and Streamable HTTP use different connection protocols, so an SSE-only endpoint advertised as supported in the import UI will fail when Muse connects. Preserve a Muse SSE transport if supported, or reject/omit SSE for Muse instead of silently changing its protocol.
Useful? React with 👍 / 👎.
Closes #873.
Adds Muse Code (
muse) as a Solenta agent harness, same shape as kimi/cursor: spawnmuse exec --json, resume with--session-id, isolate MCP/hooks in a per-thread XDG overlay.What landed
muse, display name Muse Code, default modelmuse-spark-1.3(1M context).exec --json --trust-workspace, prompt last.defaultmaps to--approval-mode never;bypassPermissionsto--disable-approval. Never--yoloor Muse--worktree.userDataPath/muse-homes/<threadId>with childXDG_CONFIG_HOME/XDG_DATA_HOME. Fail-closed. Auth, sessions, and skills are symlinked;settings.jsonis written withschema_version: 1and Solenta MCP only.managed_hooks_path. Ask-tier is deny.--provider echocaptures (stream.idis the session handle; assistant text ispayload.text).Spec:
docs/superpowers/specs/2026-09-03-muse-code-provider-design.mdPlan:
docs/superpowers/plans/2026-09-03-muse-code-provider.mdTests
Focused suite: 165 pass (
muse*, providers, permission-modes, ask, commitmsg, skills, remote-overlay-reclaim) plus typecheck. Overlay IPC/skills/sessions follow-up: 18 pass.Known v1 gaps (do not invent)
META_API_KEYwas unset). Tool cards and thinking are no-ops until a Spark recapture.--disable-approvalis unproven. OptionalMUSE_LIVEcanary later.mcp_serversand has no per-phaseoverlayKey(kimi remote parity).musebinary; the row staysavailable: falseuntil PATH has it.Review read order
electron/providers.js(muserow /buildArgs)electron/muse.js+electron/muse-guardrail-hook.jselectron/runner.jsstartMuseRunelectron/test/muse*.jsandworkflow-muse-resume.test.js