Skip to content
Agent Orchestration
Command

/visualize

Open the local PI decision visualizer. Start the visualizer server backed by ~/.pi/decisions data, and open the result in the browser unless --no-open is passed.

BOOST
From plugin
pi
1073 skills4 agents3 commands7 hooks
Install
> /plugin marketplace add share-skills/pi
> /plugin install pi@pi-skills

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/visualize

Context preview

What this command does when you run it.

Open the local PI decision visualizer. Start the visualizer server backed by ~/.pi/decisions data, and open the result in the browser unless --no-open is passed.

Command definition

visualize.md
name: visualize
description: "Open the local PI decision visualizer. Start the visualizer server backed by ~/.pi/decisions data, and open the result in the browser unless --no-open is passed."

PI Visualize Command

Launch the local PI decision-history visualizer backed by `visualize/`.

Behavior

1. Locate the visualizer tool:

  • If `./visualize/package.json` exists in the current workspace, use `./visualize`.
  • Else if `~/.pi/visualize.sh` exists, use that directly.
  • Else if `~/.pi/visualize/visualize` exists and contains `package.json`, use that.
  • Else, fail and tell the user to run `curl -fsSL https://raw.githubusercontent.com/share-skills/pi/main/scripts/setup-standalone-visualize.sh | bash`.
  • The standalone bootstrap requires `git` and `node`/`npm`.

2. Install dependencies and build if needed:

  • `cd [detected-visualize-dir] && npm install && npm run build`

3. Run the visualizer:

  • Production server: `cd [detected-visualize-dir] && npm run server` (serves on port 3141)
  • Development mode: `cd [detected-visualize-dir] && npm run dev`
  • Or if using the wrapper: `~/.pi/visualize.sh [args]`

4. If the user provides additional flags, forward them exactly as provided.

  • Example: `/visualize --no-open`

5. On success, report:

  • server URL (default: http://localhost:3141)
  • whether the browser auto-opened
  • session count and warning count from server output

Default behavior

  • source: `~/.pi/decisions`
  • server port: 3141
  • browser: auto-open enabled

Live development mode

Use `npm run dev` when you want hot-reloading during development:

cd visualize && npm run dev
  • Vite dev server starts on an ephemeral port
  • Hot module replacement enabled
  • This is distinct from the production `npm run server` flow

Installation & Updates

The one-click PI installer now provisions `~/.pi/visualize.sh` as a bootstrap launcher. The first run can set up the standalone runtime for you.

For standalone usage (without the full PI skill environment), you can also use the setup script directly:

curl -fsSL https://raw.githubusercontent.com/share-skills/pi/main/scripts/setup-standalone-visualize.sh | bash

This installs the visualizer to `~/.pi/visualize` and creates a wrapper at `~/.pi/visualize.sh`. The standalone bootstrap requires `git` and `node`/`npm`.

Troubleshooting

  • **"node: command not found"**: The visualizer requires Node.js. Install [Node.js](https://nodejs.org/) or ensure it's in your PATH.
  • **"git: command not found"**: The standalone setup script clones or refreshes the PI repository. Install Git before running the bootstrap command.
  • **Browser not opening**: Use `--no-open` and check the server URL.
  • **Missing data**: Ensure `~/.pi/decisions` exists and is populated by PI hooks.

Host Integration

`/visualize` is a host-wired shortcut, not a universally installed shell command.

If your host loads `commands/visualize.md` and `commands/pi.md` as slash-style commands, you can use:

/visualize
/pi visualize

Otherwise, use the guaranteed local entrypoint:

~/.pi/visualize.sh

Notes

  • This command is the standalone sibling of `/pi visualize` when the host has wired both command files.
  • The visualizer serves a React SPA backed by a Node.js/Express server reading `~/.pi/decisions`.
Read more
Ships withpi

阿里内网用户欢迎加群交流 【群号: 156800004200 / TMCP 天使用户群】 PI(智行合一) 是一套融汇东方百家智慧、禅宗截教修行哲学、MBTI 认知策略与西方方法论的 AI 引擎,驱动人机协同达到前所未有的高度。它不是在"惩罚" AI——而是唤醒 AI 内在的卓越本能,让 AI 与人共同开创文明新纪元。

Get the whole plugin

Other commands on pi.

iterate
Command

iterate

PI SKILL_META.md 迭代审计引擎。用 PI 自身的规则审计 PI,五维十八检+逻辑链,AgentSkills 规范合规,Description 触发纯度校验,Loop/Auto…

@share-skills@share-skillsInstall Command