npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-muse-bridge

v0.3.0

Published

Add Muse Spark to Pi's official subagent tool through Muse Code

Readme

pi-muse-bridge

Use Muse Spark as an agent in Pi's official subagent extension through an authenticated Muse Code installation.

The package registers Muse Code as a Pi model provider. It does not register another subagent tool or require a modified subagent host.

Requirements

  • Pi 0.84.x
  • Pi's official subagent extension
  • Muse Code installed and authenticated with muse login

Install

pi install npm:pi-muse-bridge

Restart Pi, then install the bundled agent definition explicitly:

/muse-setup

The command copies the bundled definition to ~/.pi/agent/agents/muse-spark.md. It is idempotent and refuses to overwrite an unrelated agent with the same name.

Pi's official subagent extension discovers agents when its tool runs, so no subagent-host fork or reload is required.

Use

subagent({ agent: "muse-spark", task: "Explain this repository" })

Official-host parallel and chain modes work normally:

subagent({
  tasks: [
    { agent: "muse-spark", task: "Review the API" },
    { agent: "muse-spark", task: "Review the implementation" },
  ],
})

The official host launches a child Pi process with muse-code/muse-spark. The bridge provider then launches Muse Code and streams its response back as a regular Pi assistant message.

Models

muse-code/muse-spark is a stable alias for the model marked is_default in Muse's local catalog. Catalog models are also registered under muse-code/<model-id> and can be pinned by editing the installed agent definition:

model: muse-code/muse-spark-1.2

Missing, corrupt, or unknown catalog data produces an explicit execution error. The provider remains registered when Muse has not been installed yet so Pi itself can still start and explain the setup problem when the agent is used.

Pi thinking levels are passed to Muse (off becomes none, and max becomes ultra).

Security

Delegated runs use Muse's unrestricted mode by default:

muse exec --yolo

This disables Muse approval prompts and sandboxing. To retain Muse's sandbox while keeping headless approval prompts disabled, start Pi with:

pi --muse-sandboxed

For official subagents, the child Pi process receives Pi's extension flags only when they are part of its invocation. To apply sandboxing consistently to child Pi processes, set:

PI_MUSE_SANDBOXED=1 pi

Sandboxed mode uses muse exec --trust-workspace --disable-approval.

Extensions and unsandboxed agents execute with your user permissions. Only install packages you trust.

Remove the agent

/muse-remove

This removes only an agent definition managed by pi-muse-bridge. Removing the Pi package itself does not silently mutate your agent directory.

Development

npm install
npm run check
npm test