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

@mspiegel31/opencode-cmux

v1.3.1

Published

![Demo](assets/demo.gif)

Readme

opencode-cmux

Demo

An OpenCode plugin that integrates with cmux to give you visibility into subagent sessions running in your terminal.

When OpenCode runs inside cmux, subagent sessions automatically get their own TUI pane so you can see what agents are doing without any manual setup.

macOS only — cmux is a macOS terminal multiplexer.


Get started

Add the plugin to your OpenCode config. For global registration (all projects), edit ~/.config/opencode/opencode.json:

{
  "plugin": [
    "@mspiegel31/opencode-cmux"
  ]
}

For project-level registration only, create or edit opencode.json in your project root with the same content.

OpenCode installs the plugin automatically at startup — no npm install required.


Configuration

Per-plugin config lives at ~/.config/opencode/opencode-cmux.jsonc. The file is created the first time you run OpenCode inside a cmux session.

{
  "$schema": "https://raw.githubusercontent.com/mspiegel31/opencode-cmux/main/schema.json",
  "notify": {
    "sessionDone": true,
    "sessionError": true,
    "permissionRequest": true,
    "question": true
  },
  "sidebar": {
    "enabled": true
  },
  "cmuxSubagentViewer": {
    "enabled": true
  },
  "cmuxBrowserTools": {
    "enabled": true
  }
}

The notify object controls granular desktop notification settings for different event types. Set any option to false to disable that specific notification. The sidebar section controls the cmux status bar integration, cmuxSubagentViewer enables the automatic TUI pane viewer for subagent sessions, and cmuxBrowserTools enables AI-accessible browser control tools.


Reference

Plugins

CmuxPlugin

Sends a cmux notification when an OpenCode session goes idle or hits an error, and injects a cmux CLI reference hint into your first TUI prompt.

Only active inside a cmux session.

CmuxSubagentViewer

Automatically opens a new cmux split pane running opencode attach for each subagent session spawned by the Task tool. The pane closes automatically when the subagent completes or errors.

Requires OpenCode to start its HTTP server, which doesn't happen by default. Add a server block to ~/.config/opencode/opencode.json:

{
  "plugin": ["@mspiegel31/opencode-cmux"],
  "server": {
    "port": 4096
  }
}

This tells OpenCode to bind its API server on startup so opencode attach can connect to it. You can use any available port — 4096 is the OpenCode default.

Only active inside a cmux session.


CmuxBrowserTools

Exposes cmux browser CLI commands as AI-accessible tools, giving the AI agent direct control over the browser surface visible in your cmux workspace.

When running inside cmux, this replaces chrome-devtools-mcp with a browser the user can actually see in their terminal session.

Enable it in your config:

{
  "cmuxBrowserTools": {
    "enabled": true
  }
}

Requires CMUX_WORKSPACE_ID to be set (i.e., must be running inside cmux).


Requirements


License

ISC