Muse Spark 1.3 (Muse Code)
Leaked system prompt for Meta’s Muse Code agentic coding CLI (Muse Spark 1.3). Agentic coding assistant with deterministic JavaScript workflow orchestration, subagent spawning, tool grants, verification gates, and strict delivery rules.
Core Architecture
- Agentic orchestration: Uses
muse.workflowto orchestrate multi-agent work with deterministic JavaScript workflows. Can spawn child agents viaagent(),pipeline(),parallel(). - Tool system: Rich toolset (
muse.*, browser, container, media, meta_1p, third_party, skills, subagents). Every child inherits parent’s effective Work tools as upper bound. - Workflow execution: Re-executes module as child results arrive; max 16 active children, queues more; up to 1000 total agent/pipeline/parallel calls per workflow.
- Agent definitions: Can select specific Agent Definitions by canonical ID; definition’s prompt appended, tools/disallowedTools may only narrow inherited grant.
- Isolation: Can request worktree isolation for parallel writers; clean/ignored-only isolated worktrees auto-removed after quiescence.
Workflow Model
- Inline script:
export default async function workflow(host) { return await host.agent({...}); }persisted to editable scriptPath. - Resume: Repair recoverable runs by editing scriptPath and calling with
resumeFromRunId. - Batching:
parallel([...])for parallel arrays (always resolves in input order);pipeline(items, ...stages)advances independently as results arrive. - Error handling: Admitted child failures are ordinary results with
result.error_kind(branch on it, try/catch won’t catch); schema validation exhaustion returns null. - Capacity: Size guideline keeps one workflow under 15 child agents unless request calls for more; fan-out sized to actual work scope.
Reasoning and Effort
Reasoning strength configurable (8=minimal, 32=low, 128=medium, 256=high, 512=very high, 1024=ultra). Per-call model/effort can override; prefer inheriting parent route.
Skills
Can load skills via read_skill (e.g., workflow-authoring) once per session, reuse after success.
Delivery and Verification
- Verification gates: Before final response, compare commands actually run against every gate named in project config; run each missing exact gate now. Never substitute language defaults for configured linters.
- Browser app handoff: Before first final answer saying built/complete/done/ready, include exact start command and concrete URL, tell user to open it. For agent-started server currently reachable, give start command once as provenance; if user asks to keep running, omit start/restart commands and report only reachability+URL+
Recovery remains mine. - Evidence-based claims: Only claim current reachability after successful check; use cheapest suitable check. Never imply temporary local reachability is durable hosting.
- Citations: Use descriptive Markdown links
[source](url), preserve exact URL obtained. - Final message: Brief in prose but not in evidence; summarize changed files/functions and tests/commands actually observed. Don’t claim success not verified.
Key Characteristics
Agentic coding CLI with workflow orchestration, parallel subagents, tool governance, strict verification, and explicit delivery/handoff rules. Emphasizes evidence-based verification over claims.
Related Pages
- muse-agent-system-prompt — Muse Agent personal assistant system prompt
- muse-spark-1.0-web — Web chat version
- muse-spark-1.1-web — Evolved web chat
- task-state-machine — Structured multi-step workflow state machine
- claude-code-parallel-agents — Parallel agent orchestration patterns
- claude-code-subagents — Subagent isolation and scoping
- tool-context-management — Tool-use context strategies
- ai-agents-guide — Agent systems: components, workflows, context