← Catalog

pi-cmux

Pi package with cmux-powered terminal integrations

Package

Install

Install with PiG

pig install npm:pi-cmux

Install with Pi

pi install npm:pi-cmux
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.6.0 (README.md). PiG does not review it.

pi-cmux — connected terminal panes on a dark background

CI npm version Node.js ≥22.19.0 Pi ≥1.3.0 license: MIT

Pi tools for cmux: parallel chats, terminal commands, browser annotations and task handoffs.

Install · Commands · Configuration · Usage guide

Capabilities

  • Start independent chats or related reviewers.
  • Jump to any cmux terminal or browser tab with /cm.
  • Run tools beside Pi, annotate browser pages and continue tasks in new worktrees.
  • Show progress, tokens and optional notifications in the sidebar.

Pi running inside a cmux workspace

Install

Requires Pi 1.3.0+ and Node.js 22.19.0+, with pi on your PATH or a Pi-compatible wrapper selected via PI_CMUX_BINARY.

pi install npm:pi-cmux
# Or install/update with:
npx pi-cmux

For native notifications, session restore and prompt previews:

cmux hooks pi install

Package notifications default to off to avoid duplicate alerts. Zoxide is needed only for fuzzy directory matching.

Commands

TaskCommand
Diagnose/setup cmux and panel/cmdoctor
New sidebar chat/cmn <prompt>
Pi right/below/cmv [prompt], /cmh [prompt]
Tool right/below/tab/cmo <cmd>, /cmoh <cmd>, /cmt <cmd>
Browser/cmb [--down] [--focus] <url>
Browser annotationsTurn on Annotate; sending requires confirmation in Pi
Jump directory/cmz <path-or-query>, /cmzh <path-or-query>
Return to origin/cmbk or Ctrl+Alt+B
Jump to pane/cm or optional PI_CMUX_SWITCHER_KEY
Continue task/cmcv [note], /cmch [note]
Continue in worktree/cmcv -c <branch> [--from <ref>] [note]
Peer messages/cmmsg inbox, /cmmsg status, /cmmsg on, /cmmsg off

Tabs use an available task name, otherwise the project name plus role/task tag. Explicit launch titles and /name take priority; this policy makes no extra model calls. See naming.

You can also ask Pi to open a tool, browser or another Pi session. Independent tasks default to new workspaces; the first active same-task agent/reviewer opens beside its creator, additional/background collaborators and handoffs use tabs.

Experimental SSH

Connect to javi
# Or choose a project:
Connect to javi in /srv/project

Pi and its credentials/session files stay local; ssh_read, ssh_write, ssh_edit and ssh_bash use the explicit remote target.See selection, guards and migration.

Resume/child launches restore selection, not readiness. Remote-owned layouts, SSH handoffs/worktrees and new browser previews are unsupported. See SSH setup, controls and limits.

Configuration

Set environment variables before starting Pi. Package settings belong in ~/.pi/agent/settings.json or project .pi/settings.json; project settings override global settings.

VariableDefaultPurpose
PI_CMUX_BINARYpiPi-compatible executable name or path, e.g. sumocode; no arguments or shell commands
PI_CMUX_PI_PATH_MODEminimalPrepend selected executable/Node directories to child PATH; full preserves caller PATH
PI_CMUX_SSH10 disables SSH execution/connections; saved remote intent stays blocked until explicit clear
PI_CMUX_SSH_DISCOVERY10 disables SSH suggestions
PI_CMUX_SSH_ALIAS_SAVE10 disables alias saving
PI_CMUX_NOTIFY_LEVELdisabledOpt in with all, medium or low
PI_CMUX_SIDEBAR_MODEdetailedminimal shows status/tokens without package logs/progress
PI_CMUX_RETURN_KEYctrl+alt+bChange shortcut or set off; /cmbk remains
PI_CMUX_SWITCHER_KEYoffPi-local shortcut for /cm, e.g. ctrl+alt+p; not a cmux-wide binding
PI_CMUX_AUTOTITLE0Enable model-generated topics; sends conversation excerpts and may incur charges

All settings and shortcuts · PATH behavior · Browser privacy

Sidebar

The packaged agent state right panel shows live state symbols/colors, foldable workspace groups, exact current-agent highlighting and surface actions only for workspaces with open tracked agents (including idle agents). Closed (ended) sessions are hidden, and closing the last session removes its workspace from the panel.

Auto-open (opt-in)

After separately installing the panel, manually add this to Pi's settings.json:

{ "pi-cmux": { "panel": { "autoOpen": true } } }