How to Use Meta Muse Code: Setup, Workflow, and First Project Guide
Step-by-step developer guide for Meta Muse Code: installation on macOS and Linux, dev.meta.ai authentication, workspace initialization, and autonomous agent workflows.


Synthesizing article benchmarks & model metrics...
Meta Muse Code is a high-performance terminal coding agent engineered by Meta Superintelligence Labs. Powered by the Muse Spark 1.2 foundation model, Muse Code is designed to operate directly inside your local developer terminal, executing end-to-end software engineering tasks: inspecting repository dependency graphs, writing cross-file patches, executing shell commands, running test suites, and autonomously healing build failures.
On standardized evaluations, Muse Spark 1.2 achieves 82.9% on Terminal-Bench 2.1, surpassing Claude Sonnet 5 (80.4%) by +3.1% relative and scoring 90.3% on MCP-Atlas tool execution.
This guide delivers a step-by-step walkthrough to install Muse Code, authenticate your developer credentials, initialize your first project, and configure multi-agent worktrees. Explore where Muse Spark ranks in our AI Model Leaderboard and read our Muse Code vs Claude Code Comparison.
Step 1: System Requirements & Installation
Muse Code runs natively on macOS (Apple Silicon & Intel) and modern Linux distributions (Ubuntu, Debian, Fedora, Arch). Windows developers should execute the setup inside WSL2.
1. Execute the Official Installer
Open your terminal and run the one-line shell installer:
curl -fsSL https://dev.meta.ai/install.sh | bash[!NOTE] Security Best Practice: In production corporate environments, review the installer script before piping to bash:
curl -fsSL https://dev.meta.ai/install.sh -o install.sh && less install.sh.
2. Verify Shell Path Configuration
Once the installer completes, reload your shell environment:
source ~/.bashrc # Or source ~/.zshrc on macOSmuse --versionYou should see confirmation of the active release: muse-code v1.2.0-beta (build 2026.08).
Step 2: Developer Authentication via dev.meta.ai
Muse Code authenticates through Meta’s developer API portal:
- Navigate to dev.meta.ai and sign in with your developer credentials.
- Under Model API Access, select Muse Spark 1.2 and generate an API key.
- In your terminal, run the authentication command:
muse auth login- Paste your API token when prompted. The CLI securely encrypts and stores the key in
~/.config/muse/credentials.jsonwith restricted file permissions (chmod 600).
Step 3: Project Workspace Initialization
Muse Code operates best when launched from the root directory of a clean Git repository.
Initializing an Existing Codebase:
cd ~/projects/my-production-appgit status # Ensure working tree is clean or stashedmuseInitializing a Greenfield Project:
mkdir auth-microservice && cd auth-microservicegit initmuseUpon launch, Muse Code presents its interactive terminal cockpit:
┌─────────────────────────────────────────────────────────────┐│ Muse Code v1.2 (Beta) • Engine: Muse Spark 1.2 (1M ctx) ││ Workspace: ~/projects/auth-microservice ││ Git Branch: main • Status: Clean │└─────────────────────────────────────────────────────────────┘muse >Step 4: Structuring Your First Agent Trajectory
The critical error developers make with autonomous coding agents is treating them like simple conversational chatbots. Muse Code is an execution loop: it plans, searches, modifies, and tests.
Phase 1: Repository Exploration (Read-Only)
Start by allowing the model to index the project without authorizing modifications:
muse > Inspect this repository architecture. Summarize the database schema,identify the API route handlers, and report any failing test suites.Do not modify any files.Muse Code will scan your file tree, build an internal AST representation, and report back with a structured architecture summary.
Phase 2: Targeted Multi-File Feature Implementation
Once the model understands the project layout, assign a bounded engineering task:
muse > Implement a JWT token refresh endpoint in src/auth/refresh.ts.1. Add the refresh route to the Express router in src/routes/api.ts.2. Create unit tests in tests/auth.test.ts covering expired and invalid tokens.3. Execute 'npm test' and verify that all tests pass.4. Show me the git diff before finalizing.Step 5: Advanced Features—Parallel Subagents & Worktrees
When handling large-scale refactors, Muse Code can fan out tasks across parallel subagents operating in isolated Git worktrees:
# Enable parallel subagent execution in configmuse config set agents.parallel 4When instructed to refactor multiple modules, Muse Code creates separate worktree branches (muse/worker-1, muse/worker-2), executes modifications in parallel, runs tests across branches, and generates a merged patch. This prevents file collisions and dramatically accelerates multi-file migrations.
Crash Recovery via Append-Only Event Logs
If your terminal session disconnects or an out-of-memory error occurs 2 hours into a large task, Muse Code does not lose state. All prompt embeddings, tool calls, and AST diffs are logged locally in .muse/events.jsonl.
To resume an interrupted session:
muse resume --lastMuse Code parses the event log, reconstructs its reasoning graph, and continues from the exact step where execution paused.
Common Troubleshooting Scenarios
| Issue | Root Cause | Resolution |
|---|---|---|
muse: command not found |
PATH variable missing binary location | Add export PATH="$HOME/.muse/bin:$PATH" to your shell rc file |
Auth token expired |
Inactive API session | Run muse auth refresh or generate a new key on dev.meta.ai |
Worktree conflict error |
Uncommitted changes in working tree | Run git stash before initiating multi-agent tasks |
Rate limit exceeded |
Account quota threshold reached | Switch to Contributor tier or increase quota at dev.meta.ai |
Final Takeaway & Best Practices
Meta Muse Code represents a major advancement in autonomous developer tooling. To maximize productivity:
- Always start with read-only inspection before granting write permissions.
- Require test verification in your prompt so the agent validates its own patches.
- Review diffs carefully using
muse diffbefore committing changes to main branches.
Compare Muse Spark against competing models in our AI Model Leaderboard and explore our comprehensive guide on the Best LLMs for Coding.
RankLLMs independent evaluations verify official benchmarks against reproducible testing suites, community logs, and provider documentation.
- •Meta AI Developer Portal & Muse Code Documentation(Primary Source →)
- •Meta Muse Spark 1.2 System Evaluation(Primary Source →)
- •Meta Open-Source AI Gateway(Primary Source →)
Was this benchmark analysis helpful?
Thank you for your feedback! We update our benchmarks weekly based on developer input.

Lucky Yaduvanshi(luckyyaduvanshi.in →)
Founder of RankLLMs • AI Researcher & Software Engineer focusing on LLM benchmarking, DevOps, and autonomous coding agents.
Recommended Reading
Continue exploring related technical benchmarks, model deep-dives, and autonomous coding agent guides.

Muse Code vs Claude Code: CLI Coding Agents Head-to-Head
Comprehensive head-to-head comparison between Meta Muse Code (powered by Muse Spark 1.2) and Anthropic Claude Code across Terminal-Bench, agent architecture, token pricing, and large repository workflows.
Lucky Yaduvanshi
Muse Spark 1.2: Technical Specifications, Pricing, and Context Length
Technical review of Meta Muse Spark 1.2: 1M context window, context compaction, 82.9% Terminal-Bench score, token pricing, and co-training with Muse Code.
Lucky Yaduvanshi
GLM-5.3-FlashX: 200 Tokens/sec Throughput vs 2.5x Price Analysis
In-depth review of GLM-5.3-FlashX: 200 tokens/second inference throughput, latency benchmarks, and whether the 2.5x pricing premium is justified.
Lucky Yaduvanshi
TypeSafe AI Jev Access Guide: Free Trial Endpoints, API Pricing, and System One Architecture
How to access TypeSafe AI's Jev model for free: Vercel AI Gateway promotion, OpenRouter pricing at $0.042/1M tokens, latency benchmarks, and System One design.
Lucky Yaduvanshi