Skip to main content

agentmux_srv_core/backend/providers/
muse.rs

1// Copyright 2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3
4use super::{Tier, ControllerType, ProviderConfig};
5
6// Muse Code (Meta): no ACP, but a typed protocol of its own, MSP (`muse
7// serve`), which the `msp` controller drives in an agent pane. Closed source:
8// AgentMux downloads the pinned native binary itself (`cli_download::SPECS`),
9// with no launcher and so no hourly launcher self-update; a copy from Meta's
10// installer is still found beside its launcher (`known_install_paths`). Checked
11// against 1.4.7-R6101.1 on 2026-10-14
12// (SPEC_NINE_NEW_HARNESSES_2026_10_14.md ยง7.7); pin moved to 1.4.14-R7309.1 on 2026-11-09
13// after diffing `muse schema generate-ts` (additive) and an MSP `initialize`.
14pub(super) static MUSE: ProviderConfig = ProviderConfig {
15    id: "muse",
16    tier: Tier::FirstClass,
17    cli_command: "muse",
18    controller_type: ControllerType::Msp,
19    app_server: None,
20    // Project rules (the agent's AGENTS.md) load only in a trusted workspace:
21    // this trusts the agent's own folder.
22    launch_args: &["serve", "--trust-workspace"],
23    persistent_launch_args: None,
24    resume_flag: None,
25    session_id_field: "sessionId",
26    styled_output_format: "msp",
27    // Muse keeps muse/auth.json and its settings under XDG_CONFIG_HOME.
28    auth_config_dir_env_var: "XDG_CONFIG_HOME",
29    auth_dir_name: "muse",
30    history_native_subdir: None,
31    auth_extra_env: &[("MUSE_NO_AUTO_UPDATE", "1"), ("TBH_DISABLE_TELEMETRY", "1")],
32    unset_env: &[],
33    npm_package: "",
34    pinned_version: "1.4.14-R7309.1",
35    base_url_env_var: None,
36    supported_vendors: &["meta"],
37    startup_instructions_filename: Some("AGENTS.md"),
38    native_instruction_sources: &["AGENTS.md", "CLAUDE.md"],
39    native_instruction_dirs: &[],
40};