Problem
T3 Code does not ship a native Muse Code provider. Earlier submissions were closed during the orchestration V2 rewrite or because their base/interface no longer matched main. This adds one opt-in Muse driver against the merged V2 implementation, based on main at fed41fa88bb27cb4325cb208d571393850bc63c2.
Change
Register Muse Code as a disabled-by-default beta provider, using the official @muse-code/sdk 1.4.2 and native muse serve protocol. Port the Muse V2 adapter and focused tests from @cristianuibar's #11392 onto the current services and provider-instance registry.
- Translate native sessions, streamed messages/reasoning/tools, approvals, structured questions, steering, cancellation, compaction, history and recovery into V2 events. Batch text deltas and avoid logging every token delta.
- Pass the thread-scoped T3 MCP endpoint and authorization into native session start/resume using the granted
sessionMcp capability. Fail with update guidance if the runtime cannot accept it.
- Discover the host's models and reasoning choices without opening a conversation. Keep authentication/billing status unknown when the protocol does not report it. Preserve saved CLI login and exclude the
META_API_KEY override.
- Add provider-instance settings, model defaults, text generation, recognized-installation update support and setup documentation. Muse's release revisions need an optional native comparator in the existing maintenance service; other providers retain the existing comparator.
- Add Muse presentation/icons to the web UI shared with desktop and the separate mobile picker. The existing model picker, settings, server contracts and environment routing carry the new driver; credentials and processes remain on the selected host.
Native conversation rewind/fork boundaries, dedicated Plan mode, in-app install/login and T3-controlled native subagents are not advertised. Public forks use conversation-context handoff. CLI-history importing and usage/billing integration are outside this change.
Scope and approval
One problem: native Muse Code support on current orchestration V2. This credits and replaces the relevant Muse work from #11392 without carrying its stale branch history or unrelated providers.
Relevant maintainer direction:
These comments establish the migration context, not explicit approval of this implementation's direction and scope. Maintainer confirmation remains outstanding under CONTRIBUTING.md. Draft status does not waive that requirement.
Verification
Linux x86_64, Node 24.20.0. All checks were scoped to this change.
395 tests passed across 14 targeted files, including native protocol event ordering/recovery, approvals, cancellation, SDK cleanup, session MCP start/resume injection, missing-capability rejection, model-cache parsing, update revision comparison, settings and existing provider registry/UI model behavior:
vp test run \
apps/server/src/orchestration-v2/Adapters/MuseAdapterV2.test.ts \
apps/server/src/orchestration-v2/Adapters/MuseItemPresentation.test.ts \
apps/server/src/provider/Layers/MuseProvider.test.ts \
apps/server/src/provider/museSdk.test.ts \
apps/server/src/provider/museProtocol.test.ts \
apps/server/src/provider/museModelCatalog.test.ts \
apps/server/src/provider/museMaintenance.test.ts \
apps/server/src/textGeneration/MuseTextGeneration.test.ts \
packages/contracts/src/settings.test.ts \
apps/server/src/provider/Layers/ProviderInstanceRegistryLive.test.ts \
apps/server/src/provider/Layers/ProviderRegistry.test.ts \
apps/server/src/provider/providerMaintenance.test.ts \
apps/web/src/components/settings/ProviderSettingsForm.test.ts \
apps/web/src/providerModels.test.ts --maxWorkers=2 --pool=threads
Server, web and mobile TypeScript checks passed (tsc --noEmit -p apps/{server,web,mobile}/tsconfig.json, run separately); changed-file lint, formatting and git diff --check passed. The server compiler also emits existing Effect suggestions. Scoped server production Knip was inspected for new Muse dead code; unrelated existing findings remain.
Real local integration check: downloaded the official stable native runtime 1.4.2-R4684.1 and verified its published SHA-256. Its real SDK handshake returned protocol schema version 1 and granted sessionMcp. Started this checkout with vp run dev --home-dir /tmp/t3-muse-local-app --host 127.0.0.1, isolating both T3 state and Muse auth/config/data. Through authenticated HTTP pairing and the production Effect WebSocket RPC client:
- Created an isolated project and a Muse thread.
- Confirmed
server.getConfig exposes the configured native Muse instance.
- Refreshed that instance against the real binary; T3 returned
installed: true, version 1.4.2-R4684.1, status: warning, auth.status: unknown, zero models and the expected muse login guidance.
- Disabled and re-enabled the instance through
server.updateSettings and confirmed each state through server.refreshProviders.
- Confirmed the local web entry returns HTTP 200. Also served the same isolated backend through a second web dev entry bound to the LAN (
dev:web --port 13773 -- --host 0.0.0.0). Verified HTTP metadata/pairing and native Muse status over the production WebSocket RPC client through that web proxy; the user can inspect the UI from their own PC.
The catalog was initially empty in the isolated unauthenticated profile. After the user completed Meta device login, a fresh native probe returned four models and provider status ready. Sent one short message through the LAN web proxy and production orchestration RPC with muse-spark-1.3-contributor (low reasoning), then waited on the persisted thread event stream. The run completed and the assistant reply MUSE_OK was present in the thread projection. This exercised the real native adapter, thread-scoped MCP session configuration, streaming translation and persistence with an authenticated account.
Account billing and live native tool calls/approvals have not been verified. The live prompt requested no tools or filesystem changes; those interactive behaviors have focused transport tests.
Integrated web UI check: used the built-in Browser in T3 Code Desktop (Alpha 0.0.45) on Windows, connected over the LAN to the isolated Linux server. Confirmed Muse Code appears as Beta in Add provider, the configured native instance is Available, and all four discovered models are displayed. Opened the persisted real thread, composed and submitted a second message through the UI, and observed its completed assistant reply UI_MUSE_OK after 7.2 seconds with Muse Spark 1.3 Contributor / Low / Supervised selected.
Surfaces actually tested: web UI inside the Windows desktop Browser, backed by the Linux server. The installed desktop app's main renderer/IPC flow and native iOS/Android clients have not been tested. Web/server/mobile typechecks and focused tests passed as described above; they do not replace those native UI passes.
UI evidence
Unmodified Browser screenshots, 1000 × 1000 CSS pixels. Before uses main at fed41fa88bb27cb4325cb208d571393850bc63c2; after uses this PR at 8dd16711d45194e2e7e13c87c77bb9e2cb7c84cc. The isolated profiles differ in configured provider instances. Evidence is hosted as GitHub assets in the author's fork, outside the source tree.
| Before: provider picker |
After: Muse Code Beta |
 |
 |
Four models returned by the authenticated native runtime:

Real native replies, including the second message submitted through the UI:

The PR remains draft pending maintainer direction/scope confirmation and the untested native surfaces stated above.
Implemented with GPT-6.1-Sol through the Codex harness in T3 Code.