Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/share-skills/piWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/share-skills/pi/visualize)<a href="https://agentmods.dev/commands/share-skills/pi/visualize"><img src="https://agentmods.dev/badge/commands/share-skills/pi/visualize/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/share-skills/pi/visualize"><img src="https://agentmods.dev/badge/commands/share-skills/pi/visualize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.00840 |
| Opus 5.5 | $0.00016 | $0.00336 |
| Sonnet 5.5 | $0.00008 | $0.00168 |
| Haiku 4.5 | $0.00004 | $0.00084 |
Grade C, and why
visualize scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
- Else, fail and tell the user to run `curl -fsSL https://raw.githubusercontent.com/share-skills/pi/main/scripts/setup-standalone-visualize.sh | bash`. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Else, fail and tell the user to run `curl -fsSL https://raw.githubusercontent.com/share-skills/pi/main/scripts/setup-standalone-visualize.sh | bash`. How it starts
The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PI Visualize Command
Launch the local PI decision-history visualizer backed by visualize/.
Behavior
- Locate the visualizer tool:
- If
./visualize/package.jsonexists in the current workspace, use./visualize. - Else if
~/.pi/visualize.shexists, use that directly. - Else if
~/.pi/visualize/visualizeexists and containspackage.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
gitandnode/npm.
- The standalone bootstrap requires
- If
- Install dependencies and build if needed:
cd [detected-visualize-dir] && npm install && npm run build
- 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]
- Production server:
- If the user provides additional flags, forward them exactly as provided.
- Example:
/visualize --no-open
- Example:
- 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 serverflow
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
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 89 lines · 39 tokens per session scan C 1e9cc1c2b0d6
visualize is a command published in the GitHub repository share-skills/pi (108 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 840 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
test-feature
Test a React Native feature on the running simulator/emulator. Verifies UI, user flows, and internal state. Generates a persistent Maestro test file.
nav-graph
Extract, inspect, and query the app navigation graph — a complete map of all screens and navigators.
check-env
Check that the fenced React Native session, Metro, app target, and device inventory are ready for testing.
run-workflow
Validate and establish the proven rn-dev-agent operating sequence before a real React Native journey — declared package manager and dependencies, read-only inventory, typed session recovery, one exclusive device, managed integration and Metro, only the requested proof, reverse-order cleanup.
observe
Show the observability web UI URL (it autostarts with the session); stop or restart it.
rn-feature-dev
Guided feature development for React Native — explore codebase, design architecture, implement, verify live on device, and review quality.