Curated with by@mohithkumar808

№ 0595Skill

pi-muse-code MSP provider

Pi extension that registers a muse-code provider through @muse-code/sdk over the Muse Session Protocol, resuming the same Muse session when switching models mid-conversation.

zereight/pi-muse-codeREADME ↗

pi-muse-code

Pi extension that registers a muse-code model provider backed by the
Muse Code agent, through the TypeScript SDK
@muse-code/sdk over
MSP (the Muse Session Protocol) against a long-lived muse serve host.

Switching models mid-session (e.g. grok → muse → grok) resumes the same
muse session instead of re-sending the whole conversation as text on
every turn.

Uses your local muse CLI login, not the Muse OAuth API.

Requirements

  • Pi 0.85.1 (verified; other 0.8x versions likely work)
  • Node 20 or newer (the MSP SDK's floor)
  • The muse CLI on PATH (or PI_MUSE_BINARY pointing at it), logged in.
    The SDK drives it as muse serve. Muse 1.3.x pairs with SDK 1.3.x; a
    protocol-fingerprint mismatch is a warning, not a failure.
  • No pi-muse-bridge alongside this package; remove it if installed
    (pi remove npm:pi-muse-bridge) to avoid two extensions registering the
    same muse-code provider id.

Install

# from source (until published)
npm install            # pulls @muse-code/sdk for the extension
pi install ~/pi-muse-code
# or after cloning your fork
pi install git:github.com/zereight/pi-muse-code

Then reload the running Pi session:

/reload

Behavior

  • Registers the muse-code provider directly (pi.registerProvider("muse-code", ...)),
    with models read from Muse's local model catalog.
  • One muse serve host per Pi process (src/host.ts), spawned lazily on
    the first muse-code turn and shut down on session_shutdown. Turns are
    turn/start commands on an open session, so a turn pays no process spawn
    or handshake.
  • One muse session per Pi conversation, keyed by the Pi session file. Its
    muse session id is written to ~/.pi/agent/muse-code-sessions/<hash> so a Pi
    restart (or /resume of an old conversation) resumes the same muse session
    instead of starting cold. A marker that no longer resolves — pruned log, or
    sessionInUse from another live host — falls back to a fresh session.
  • The first muse-code turn of a fresh session folds the full prior Pi
    conversation (other models included) into the prompt, since there's nothing
    to resume yet. Every later turn sends the newest user message plus a
    catch-up of the turns other models ran since muse last answered
    (buildCatchUpPrompt), so grok → muse → grok → mus
pi-muse-code MSP provider on github.com

Also filed under Coding & dev tools

See all →
  1. 0870

    CodexBar adds Muse Code usage tracking★

    CodexBar learned a few new tricks in the last few weeks! TypeSafe, Nous Portal, Muse Code, CodeRabbit, Replicate, HuggingFace, Pi, Helmcode, v0, Charm Hyper, GitKraken AI, Bifrost My ambitions for this app REALLY outgrew the app name. (Oh and these keychain alerts are no more)

    @steipete

    X post

    Coding & dev tools

  2. 0656

    Custom terminal built with a Muse★

    A cool thing about @Muse is that every Muse runs on its own Linux machine. So you and your Muse can do normal Linux stuff together — like build your own terminal!

    @lucas_switzer

    X post

    Coding & dev tools

  3. 0597

    Spark 1.3 Contributor free in Cline★

    Meta’s Muse Spark 1.3 Contributor model is now available for free in Cline. Benchmarks show it’s similar in performance to Opus 5, but considerably more affordable.

    @cline

    X post

    Coding & dev tools

  4. 0574

    Muse Spark 1.3 in Cursor★

    Muse Spark 1.3 from Meta is now available in Cursor!

    @cursor_ai

    X post

    Coding & dev tools

More Skills

See all →
  1. 1073

    Xahau skill for Muse

    Lets a Muse send XAH, manage trustlines, mint URITokens, claim the monthly reward and check out on xMerch stores, where the skill only proposes and the owner approves every transaction in the Xaman app on their phone.

    @terramike

    Skill

    Business & commerce

  2. 1072

    Review Times MCP server and skill

    An MCP server and skill that reports live review times for AI app, connector and plugin stores, including Meta Muse, so builders can see how long a connector submission is taking.

    @stevysmith

    Skill

    Connectors & MCP

  3. 1068

    musebook: shared family boards for Muses

    An open protocol plus Muse skill and Cloudflare Workers reference server that lets each family member's Muse join shared boards (groceries, trips, household lists) with per-board identities and an approval card before anything is ordered.

    @amanbthakkar

    Skill

    Errands & personal agent

  4. 1062

    xrpl-muse-skill: let your Muse trade XRP

    A terminal skill for trading any XRP Ledger token pair and minting NFTs, with a hard boundary between proposing and signing; testnet by default, and mainnet needs the Muse vault signer or a protected signer with per-transaction approval.

    @terramike

    Skill

    Business & commerce

Curator picks

  1. 1057

    Muse Mail: your agent gets an email address★

    MUSE FEATURE ALERT: y'all have been asking for this one. your @muse is getting its own email address. add it to a thread or forward it stuff and it’ll handle it for you. muse mail!

    @alexandr_wang

    X post

    Agents & automation

  2. 1054

    Kevin Roose gives his Muse $100 and a Kalshi account★

    gave my Muse $100 and a kalshi account, let's see how frontier this thing is

    @kevinroose

    X post

    Agents & automation

  3. 1046

    Medical bills audited line by line, $4,000 saved★

    Got Muse logged in to my medical provider’s portal, he pulled the itemized bills, and questioned every line. So far he’s found several times I’d been double billed, asked for some discounts and has saved me over $4,000. If your moat is bureaucracy, you’re cooked.

    @Ryan_Holdaway

    X post

    Errands & personal agent

  4. 1042

    GitHub connector for Muse★

    GitHub 🤝 @Muse A new way to connect your GitHub account to review PRs, catch up on issues and notifications, and leave comments without switching tabs.

    @github

    X post

    Connectors & MCP

Want more AI builds?artificialbuilds.com