# Meta for Developers 推出 Muse Code 正式版，新增跨 Session 訊息與 subagent 團隊協作

> 📖 本站完整內容索引（documentation index）：[llms.txt](/llms.txt)

> 原作者：Meta for Developers (@MetaforDevs) · 策展與摘要：EasyVibeCoding · 平台：X (Twitter) · 熱度：🔥🔥 · 日期：2026-09-01

> 原始來源：https://x.com/MetaforDevs/status/2094502049912439068

## 證據與延伸閱讀

- [Meta for Developers 推出 Muse Code 正式版，新增跨 Session 訊息與 subagent 團隊協作。](https://github.com/meta-models/muse-code-sdk) — 官方 Repository · 最後核對：2026-09-01 · 支持主張：The first-party repository and docs specify the @muse-code/sdk package, MSP wire/schema guides, a Node.js 20+ requirement, zero runtime dependencies, generated declarations, and a pre-1.0 preview with no stability promise. The installer downloads a launcher from api.meta.ai, installs it under ~/.local/bin by default, and can modify shell PATH profiles.
- [Muse Code and Muse Session Protocol SDK — meta-models.github.io](https://meta-models.github.io/muse-code-sdk) — 一手來源 · 最後核對：2026-09-01 · 支持主張：The announcement adds out-of-beta messaging and subagent workflow features plus plan availability; the attached docs and repository describe the Muse Session Protocol sessions, turns, idempotent commands, approvals, resume, wire framing, backpressure, transcript conformance, and the TypeScript @muse-code/sdk package.
- [Muse Code SDK and Muse Session Protocol — @alexandr_wang](https://x.com/alexandr_wang/status/2094502557129543774) — 官方文件 · 最後核對：2026-09-01 · 支持主張：The first-party repository and docs specify the @muse-code/sdk package, MSP wire/schema guides, a Node.js 20+ requirement, zero runtime dependencies, generated declarations, and a pre-1.0 preview with no stability promise. The installer downloads a launcher from api.meta.ai, installs it under ~/.local/bin by default, and can modify shell PATH profiles.
- [Muse Code SDK and Muse Session Protocol — dev.meta.ai](https://dev.meta.ai/install.sh) — 一手來源 · 最後核對：2026-09-01 · 支持主張：The first-party repository and docs specify the @muse-code/sdk package, MSP wire/schema guides, a Node.js 20+ requirement, zero runtime dependencies, generated declarations, and a pre-1.0 preview with no stability promise. The installer downloads a launcher from api.meta.ai, installs it under ~/.local/bin by default, and can modify shell PATH profiles.
- [Meta宣布Muse Code出beta](https://x.com/MetaforDevs/status/2094502049912439068)
- [影片展示sky與oak互傳訊息](https://video.twimg.com/amplify_video/2094502180812378112/vid/avc1/1280x720/0VVz2ceuSglLitiK.mp4?tag=29)

## 中文摘要

Meta for Developers 推出 Muse Code 正式版，新增跨 Session 訊息與 subagent 團隊協作。

**核心發布** Meta for Developers 於 2026 年 8 月 31 日宣布 Muse Code out of beta，功能重點包括：

- 不同 Session 可以互傳訊息。
- 以 workflows 編排 subagent teams。
- 透過 Developer Preview 版 TypeScript SDK，讓開發者以程式控制 Muse Code agent sessions。
- 月費方案同步推出；官方公告指出方案起價為每月 $5，但另一則由 Alexandr Wang 發布的公告只提到 rolling out monthly subscription plans，沒有提供價格、方案內容、推出範圍或存取限制的完整細節。

官方宣稱與文件目前仍屬公告及說明材料，沒有附上獨立的正式環境驗證，因此 out-of-beta 功能與 SDK 的生產環境表現仍需自行核對。

![](https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/e5288a4517aa2df3.png)
> Meta 的 Muse Code 宣傳圖片，頂端標有 Meta 標誌，中央標題顯示「Muse Code」與「New plans and features.」，下方則有帶有「Reviewing」標籤與程式碼區塊介面線框的插圖。

**SDK 與協定架構** `@muse-code/sdk` 是用來建立客戶端或 Agent 的 TypeScript SDK，讓程式透過 Muse Session Protocol（MSP）驅動 Muse Code Session。它需要 Node.js 20 或更新版本，沒有 runtime dependencies，並內建 TypeScript declarations；開發者也可以不使用官方 SDK，改依照 MSP 的傳輸格式（wire）、schema 與 transcript 資料，在其他語言實作客戶端。

文件將 MSP 拆成幾個實作面向：

- Session、回合（turn）、命令（command）與 idempotency，處理工作單位與可重複呼叫。
- approvals 與 resume，處理授權確認及中斷後恢復。
- item fold 與 host exit codes，協助客戶端還原 Session 狀態並判讀 host 結束原因。
- wire framing、四種 frame 形狀、識別碼、backpressure 與 typed error vocabulary，定義訊息如何傳輸及在壅塞時控管流量。
- schema bundle、保留識別碼與 recorded transcript corpus，用來驗證不同語言客戶端是否符合協定。

協定參考頁面由 schema 產生，每個方法（method）、通知（notification）、錯誤（error）、型別（type）與能力（capability）都有對應說明。文件網站此次建置來自 commit `36e29c15c8c300cb18da01808eb554d934505f6c`，使用的 schema fingerprint 是 `sha256:577d717d09bf3aae6ad43c85d3c2d8e0c37bbde350897c94808626d2f362060c`；該 fingerprint 也會由伺服器在 `initialize` 結果回報，方便確認文件與實際 host 是否相符。

**示範中的跨 Session 互動** 附帶影片展示兩個名為 `sky` 與 `oak` 的 Session，在啟用 `MUSE_EXPERIMENTAL_LOCAL_SESSION_MESSAGING` 後互相傳遞工作。`sky` 要求 `oak` 讀取自己 workspace 中的 `mission.txt`，再回覆檔案內的秘密字串；畫面顯示訊息先以 `accepted`、`unverified recipient` 狀態送出，`oak` 收到後檢查檔案，並在確認請求來源後回傳 `BROKERLESS-ALPHA-395`。

這段畫面只能視為 demo 展示，不足以單獨證明正式產品規格或安全保證。它同時突顯了訊息驗證與授權的重要性：`oak` 看到的是 unverified peer request，先檢查 workspace 檔案，也明確顯示在獲得確認前不會把秘密字串轉傳給 `sky` 或其他 peer Session。

<video src="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/1788236443451-newk6rq7.mp4" poster="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/5ce08aba1a1821e9.jpg" controls playsinline preload="metadata" style="max-width:100%;height:auto;display:block;margin:1rem 0"></video>
> 來源：[@alexandr_wang](https://x.com/alexandr_wang/status/2094502557129543774)｜左右雙視窗終端機介面展示 Muse Code 中名為 `sky` 與 `oak` 的 Session 透過 inter-session messaging 互傳訊息、執行跨 workspace 檔案讀取與確認授權的完整流程。

**安裝與快速開始** 官方文件建議先安裝 SDK，再將它與 release-built 的 `muse` host 搭配使用：

1. 執行 `npm install @muse-code/sdk`。
2. 使用 Node.js 20 或更新版本，依照 Quickstart 建立第一個 TypeScript Session。
3. 若要從原始碼建置，需在 repository 根目錄依序執行：

```bash
npm install
npm run build
npm test
```

其中 `npm install` 會連結 workspace packages 並安裝固定版本的 TypeScript；`npm run build` 會執行 `tsc --build`；`npm test` 會先建置，再執行 `node:test` 測試。若只要檢查已提交的 MSP TypeScript declarations，則執行 `scripts/check-msp-ts-typecheck.sh`。

獨立 checkout 的測試中，`clients/sdk-ts/test/muse-serve-child.test.ts` 與 `clients/sdk-ts/test/spawn-handshake.test.ts` 會啟動 repository 未附帶的真實 `muse` host binary，因此缺少該 binary 時這兩項測試會依設計失敗；其他測試若失敗，文件將其視為真正的問題。

**官方安裝器與風險** Alexandr Wang 的貼文提供以下安裝方式：

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

這是需人工核對的高風險來源指令，因為它會從網路下載 Shell script 後直接交給 `bash` 執行，不應被描述成可安心直接執行。來源文件顯示，安裝器預設會從 `https://api.meta.ai/muse-launcher.sh` 下載 launcher，放到 `~/.local/bin/muse`，並可能修改 `.zshrc`、`.bashrc`、`.bash_profile`、`.bash_login`、`.profile` 或 Fish 的設定檔來加入 PATH；也會在伺服器提供 `x-content-sha256` 時驗證下載檔案的 SHA-256。使用前應審查 script、確認下載內容與雜湊，檢查 PATH 變更，再驗證 launcher 與 host 的安裝結果。

**穩定性與採用限制** `@muse-code/sdk` 及文件網站都明確標示為 Developer Preview，版本為 pre-1.0，尚未提供 stability promise；minor release 可能改變 API 與 protocol surface。因此，若要整合到正式環境，應固定文件所述 commit 或 schema fingerprint，並把協定相容性測試納入流程。GitHub repository 以 MIT License 釋出，但多數檔案是從上游鏡像而來，下一次 publish 可能覆寫直接修改；可手動維護的檔案限於 `README.md`、`.nojekyll`、`LICENSE`、`.github/` 與 `publish-anchor.json`。這代表 Muse Code 正在把 Agent 協作從單一 Session 推向可編排的多 Session 基礎設施，但目前更適合受控試用，而非視為已完成穩定化的生產平台。

## 媒體內容

**左右雙視窗終端機介面展示 Muse Code 中名為 `sky` 與 `oak` 的 Session 透過 inter-session messaging 互傳訊息、執行跨 workspace 檔案讀取與確認授權的完整流程。**

**影片中的 Prompt 與操作**

操作步驟：

1. （00:01）- @00:02 於左側視窗輸入並發送 inter-session 訊息給 oak 讀取 mission.txt
2. （00:07）- @00:12 右側視窗收到 unverified peer request 並執行讀取 `/tmp/msgdemo-ws/mission.txt` 檔案
3. （00:15）- @00:20 右側視窗確認並授權回傳密碼給 sky

## 標籤

新產品, SDK, Muse Code, Meta for Developers, Alexandr Wang, Node.js, TypeScript
