THRSP1072 · Theater
Building with Muse Code on Windows
Speakers: Evgenii Titkov
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Evgenii Titkov from Meta Superintelligence Labs demonstrates Muse Code, Meta's coding agent, across four areas: the CLI, headless mode for pipelines, the Muse session protocol SDK and ACP mode for existing editors. The CLI demos port the SVGO Node.js library to Rust with six parallel sub-agents (all tests passed, about 2.2x faster, 71 million tokens, about 31 dollars), generate reusable skills from session logs, guard environment files with lifecycle hooks and run an executor/critic loop in Blender. Headless mode (muse exec) supports token budgets and JSON schema output, and is shown in GitHub Actions (label-triggered issue fixing, a two-agent security review loop) and Azure Pipelines (fixing a performance regression, a Lighthouse audit, a scheduled code modernizer). The session ends with a Windows desktop client built on the session protocol SDK and a brief mention of ACP mode.
Best for: Developers and DevOps engineers evaluating coding agents for CLI work and for automating CI/CD in GitHub Actions or Azure Pipelines.
New material starts at 01:53. The first 1:53 covers the speaker introduction and agenda; at 01:53 the live CLI demo of the Rust port with parallel sub-agents begins.
Where to skip: Start at 01:53. Watch the hooks and skills demo at 06:25, the headless and pipeline section from 12:13 to 20:35, and the session protocol SDK at 20:35. The Blender demo (08:38) and the cost comparison (04:52) are optional, and the closing at 23:24 can be skipped. This is a Meta product with no Microsoft 365 Copilot content.
Chapters (10)
- 00:00 Recap Depth 100 · Novelty 0/3
Introduction of Meta's Muse Code and the four-part agenda
The host introduces Evgenii from Meta Superintelligence Labs, who works on Muse Code and agentic workflows, and mentions another Muse product that runs largely on Azure AI Foundry. The talk is split into four parts: the CLI in development workflows, headless mode for GitHub and Azure pipelines and scheduled jobs, the Muse session protocol for building custom interfaces, and ACP mode for integrating Muse Code into existing editors. Token and budget efficiency is set as the recurring theme.
- 01:53 Demo Depth 300 · Novelty 2/3
CLI demo: rewriting the SVGO Node.js library in Rust with six parallel sub-agents
The Muse Code harness is described as a coding agent focused on delegating work to sub-agents, with the claim that agentic workflows need not be token-expensive. In the demo, a lead agent analyzes the SVGO library (six main modules plus a helper module), splits the work across six sub-agents that communicate through a channel, and then a parity agent runs the original Node.js tests and benchmarks against the Rust port. All tests passed, with about 2.2x speed improvement on multi-core processing and 71 million tokens spent.
- 04:52 Deep dive Depth 200 · Novelty 2/3
Cost and quality comparison of Muse Code against other coding agents
The speaker compares the same Rust migration task across several coding-agent harnesses, all at maximum effort. Muse Code completed it in 37 minutes for about 31 dollars (71 million tokens), Claude Code is described as more token-hungry, and Codex also performed well, possibly because the code base may have been in a training set. Output quality was similar across agents, and the speaker says that with a subscription the run would effectively be free because the limits are generous.
- 06:25 Demo Depth 300 · Novelty 2/3
Generating skills from session logs and guarding env files with lifecycle hooks
Muse Code can analyze session logs, extract tool calls and generate an optimized, reusable skill that consumes fewer tokens; more than 15 lifecycle hooks let teams control what the model receives, including hooks that run before a prompt is submitted. The demo creates a skill that reviews code and writes PR notes, installs it automatically and uses it to publish a PR on GitHub. A second demo creates a guard hook that blocks the model from reading or writing environment variables, so an attempt to access a private key returns an error with the reason.
- 08:38 Demo Depth 200 · Novelty 2/3
3D in Blender: executor and critic agent loop replicating a room from an image
Meta researchers are investing in 3D work with Blender, which requires an executor agent that builds and a critic agent that reviews the result and sends corrections over multiple loops. In a previous two-hour run four correction rounds were possible; the live run sets a three-hour limit, CPU-only rendering, an empty project without reused textures, and asks Muse to use Blender 5.2 to replicate a room photo. Each round brings the render closer to the original, ending with a fly-through; the run cost about 24 million tokens, roughly 16 dollars.
- 12:13 Deep dive Depth 300 · Novelty 2/3
Headless mode: muse exec with token budgets and JSON schema output for pipelines
Headless mode uses the muse exec command to run the agent on a single task inside Azure Pipelines, GitHub pipelines or scheduled jobs. You can cap the tokens a single run may spend, pass a JSON schema defining the expected output, and get statistics on tokens and turns used to optimize workflows. The speaker outlines a reference pipeline: delegating GitHub issues, a security review loop on PRs, Lighthouse site audits, A/B performance testing per PR, and a team of agents continuously modernizing the code.
- 14:28 Demo Depth 300 · Novelty 2/3
GitHub Actions demos: muse-fix label issue fixing and two-agent security review loop
Labelling a GitHub issue with a muse fix label triggers a GitHub Actions workflow that runs muse exec, reproduces the color-conversion bug in the Rust SVGO port, fixes it, adds a regression test and opens a PR explaining the fix and guardrails. For security, a read-only Muse agent reviews every PR and hands recommendations to a second Muse agent that applies the fix and proves tests pass, looping until the PR is green. The demo catches a critical local-file inlining vulnerability introduced by an image-inlining feature.
- 17:34 Demo Depth 300 · Novelty 2/3
Azure Pipelines perf regression fix, Lighthouse site audit and scheduled code modernizer
In Azure Pipelines, a benchmark on every PR shows a 57% slowdown; the result is passed to the Muse agent, which investigates, fixes the code, reruns tests and publishes a corrected PR. A Lighthouse audit on a new gallery page detects accessibility and SEO regressions, and the agent adds missing ARIA attributes, labels and headings before republishing the PR. Finally, a code modernizer pipeline, run as a cron job, continuously updates Rust crates to a modern setup.
- 20:35 Demo Depth 300 · Novelty 2/3
Muse session protocol SDK: building a Windows desktop client for Muse Code
The Muse CLI runs on the Muse session protocol, and an SDK lets you build your own client or agent on Muse Code; sessions start with an initialize event and stream events such as agent questions and transcript content until session end. In the demo, the agent is given a template and the SDK and builds a Windows desktop app with a session list, a transcript and composer, and a panel of parallel agents, taking about 40 minutes. The new app is then used to build a simple photo editor, running 10 sub-agents for under 1 million tokens; the speaker notes custom harnesses built on the protocol already appearing on GitHub.
- 23:24 Closing Depth 100 · Novelty 1/3
ACP mode for existing editors, wrap-up, resources and short Q&A
Muse Code supports the agent session protocol (ACP mode), so it can be plugged into an existing editor out of the box without switching harness. The speaker encourages trying Muse Code in coding workflows and in GitHub and Azure pipelines, and shares links to the GitHub SDK and a QR code to download Muse Code. Asked whether the repo allows repeating the demo exercises, he confirms that it does.
Announcements (2)
-
Skill generation from session
Analyzes session logs, extracts tool calls and creates an optimized reusable skill that consumes fewer tokens.
Speaker’s quote (at 06:25)
„we've added some quality of life improvement, including like you can generate the skill from your session“
-
Lifecycle hooks
More than 15 hooks that let developers control the harness lifecycle, including what the model receives as a prompt.
Speaker’s quote (at 06:25)
„Also, we've added more than 15 life cycle hooks that allows you to control the harness life cycle.“
Demos (6)
-
A developer ports the SVGO Node.js SVG-optimization library to Rust with multi-core processing, using parallel sub-agents and automatic parity testing against the original library.
Steps (5)
- Open the Muse Code CLI in the SVGO repository on Windows.
- Prompt the agent to port the SVGO library to Rust with a focus on multi-core CPU processing.
- Let the lead agent analyze the code structure and split the work across six sub-agents running in parallel, sharing the helper module via the communication channel.
- After the sub-agents finish, let the harness spin up the parity agent, which writes tests and runs the original Node.js tests and benchmarks against the Rust port.
- Review the results: test pass status, speed improvement and total tokens spent.
Prerequisites: Muse Code CLI on Windows and a local clone of the SVGO repository with its Node.js test suite.
-
A developer creates a reusable code-review skill that publishes PRs, and a guard hook that protects environment variables from the model.
Steps (5)
- Ask Muse Code to create a skill reused across projects that reviews code and creates PR notes.
- Confirm that the skill is installed automatically.
- Run the skill to review the code changes and publish the PR on GitHub.
- Create a guard hook that prevents the model from reading or writing environment variables in the project.
- Try to add a private key to an environment variable and observe the harness returning an error with the reason it cannot read the file.
Prerequisites: Muse Code CLI and a GitHub repository for publishing the PR.
-
Recreating a 3D room in Blender from a single reference photo using an iterative builder and critic agent loop.
Steps (5)
- Provide Muse Code with a photo of a room.
- Set conditions: a three-hour time limit, CPU rendering because the machine lacks a strong GPU, and an empty project without reused textures.
- Prompt Muse to use Blender 5.2 and replicate the image as closely as possible.
- Let the executor agent build the scene, then the critic agent analyze the result and send corrections to the next round.
- Repeat for about five to six rounds and review the final fly-through of the room.
Prerequisites: Muse Code, Blender 5.2 installed locally; a better GPU allows more iteration rounds within the time limit.
-
Automating bug fixes and security reviews in a GitHub repository by running Muse Code headlessly from GitHub Actions.
Steps (5)
- Add a GitHub Actions workflow that runs muse exec when an issue gets the muse fix label.
- Label the issue about incorrect color conversion in the SVGO parser with muse fix.
- Let the agent reproduce the bug, analyze the code base, create a fix and run a regression test, then open a PR explaining the problem and guardrails.
- Add a workflow that, on every pull request, runs a read-only Muse agent to find security issues and passes its recommendations to a second Muse agent.
- Open a PR adding image inlining; let the second agent fix the detected local-path inlining vulnerability, rerun tests and repeat until the PR is green, then merge.
Prerequisites: A GitHub repository with GitHub Actions, a muse fix label and Muse Code available to the workflow.
-
Using Muse Code in CI pipelines to automatically fix performance regressions and Lighthouse regressions and to keep code modernized.
Steps (5)
- Configure an Azure Pipelines workflow that runs performance benchmarks on every PR.
- When a PR shows a regression (57% slower), pass the benchmark result to the Muse agent.
- Let the agent analyze the code, fix it, rerun tests and publish the PR with an explanation of the fix.
- Add a pipeline step that runs Lighthouse on every PR and hands regressions to Muse; the agent adds missing ARIA attributes, labels and headings and republishes the PR.
- Set up a scheduled cron job that runs a code modernizer team of agents to update the Rust crates regularly.
Prerequisites: Azure Pipelines (or GitHub pipelines), benchmark and Lighthouse checks in CI, and Muse Code available in the pipeline.
-
A developer builds a custom Windows desktop client for Muse Code using the Muse session protocol SDK and then uses it to build a photo editor.
Steps (5)
- Pass the agent a UI template: session list on the left, parallel agents on the right, transcript with questions and composer in the center.
- Give the agent the Muse Code SDK.
- Let the agent build the Windows desktop app, which takes about 40 minutes.
- Use the new desktop app to ask Muse to build a simple photo editor with filters.
- Review the result: 10 sub-agents ran and less than 1 million tokens were spent.
Prerequisites: Muse Code and the Muse Code SDK, which has public documentation.