Get Muse Code running in minutes.
Muse Code is in beta for macOS and Linux. It takes on complex software engineering tasks across large repositories — planning changes, writing code, and validating the results — entirely from your terminal.
1. Install
One command installs the CLI:
The script drops the muse binary into your PATH — verify with muse --version. Prefer to review the script first? Download it with -o install.sh, audit, then run.
2. Authenticate
Your first run opens the browser to authenticate at dev.meta.ai with your Meta developer account. Credentials cache locally — no re-auth per session. Access and billing run through the Meta Model API.
MODEL_API_KEY.3. Run your first task
Once auth is done, you’re free to get started in any of your project directories:
Describe the outcome you want in plain language. A good first task is small and verifiable — “add a missing test for parseDate and make sure it passes” — you’ll see a worker draft the change, a reviewer critique it, and the test run.
Two cost levers worth knowing from day one: Muse Spark is a reasoning model — it thinks before it answers, and those tokens bill as output — so /effort dials the thinking up or down per task. And your tone, format, and other standing rules can live in a system message so you don’t repeat them in every prompt.
Async background agents
Muse Code operates with a simple agent loop plus a set of async background agents that enhance the main agent’s capability. These specialized agents remain active throughout each session rather than being spawned per task, which avoids redundant information gathering. They carry out next steps on their own and choose when to communicate back to the main agent — their persistence reduces latency and the need for steering on difficult, multi-step tasks.
Agent fan-out & git worktrees
When a job splits into several tasks, they fan out automatically to separate agents: the parent spawns a write-capable child per task, and each child gets its own git worktree — so parallel children never collide on the same files and your working copy stays clean.
Event log
Muse Code uses a local event log to which every model call, tool run, approval, and edit is appended. This single source of truth makes the runtime replay-exact and restart-safe: after a crash, the agent resumes precisely where it stopped, letting it take on long-running tasks without being derailed by failures. Every subagent spawn, steer, and cancel is observable — muse replay walks a session step by step, and full traces export for handoff or audit.
Bundled skills & commands
Muse Code ships with several default skills — put a rough idea in, get a grilled, taste-checked feature out:
Muse Spark 1.2
Muse Spark 1.2 is a coding-focused update to Muse Spark 1.1, with improvements in code generation, complex debugging, codebase understanding, and end-to-end developer workflows — training compute on coding tasks was significantly scaled up while expanding environment diversity. Three things set it apart:
Benchmarks (with Muse Code): Terminal-Bench 2.1 · 82.9% — DeepSWE 1.1 · 59.3%. Full methodology in Meta’s evaluation report at research.meta.ai.
Case study: kernel optimization
Meta tested the model’s ability to iteratively optimize GPU kernels over 1,000+ tool calls — up to 24 hours. Inside Muse Code’s agentic environment, the model writes, compiles, profiles, and progressively improves kernel performance against a baseline, benchmarked on KDA and MLA kernels for NVIDIA Hopper GPUs. Barred from wrapping third-party kernel libraries, it implemented the algorithms in Triton directly — and kept finding substantial improvements over the baseline.
Meta Model API
The same models behind Muse Code are available directly — Muse Spark 1.2 ships in Muse Code, the Meta Model API, and OpenRouter, with expanded global access. The API is drop-in compatible with the OpenAI SDK, the Anthropic SDK, and agent CLIs like OpenCode and Claude Code: point your client at the base URL and keep the rest of your code. The context window is 1,048,576 tokens.
Cookbook
Recipes that run the first time you copy them — each one solves a focused problem, shows working code, and points to what’s next. Three sections, plus recipes for Muse Code’s core patterns.Browse all 28 recipes →