pi-dashboard
БесплатноЗапускает вложенные скриптыНе проверенMonitor and control the pi-dashboard server. List sessions, send prompts, abort runs, spawn new sessions, manage git branches, control flows, and configure…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
Pi Dashboard Control
Interact with the pi-dashboard server from any pi session via its REST API.
Typed bus client (preferred for commands)
Session/flow COMMAND verbs now ride the SAME WebSocket bus the web client uses,
via scripts/dashboard-bus.ts — a thin CLI wrapping
@blackbelt-technology/pi-dashboard-bus-client. It discovers the port itself
(config.json / DASHBOARD_PORT / 8000) and resolves an id-prefix to a full
session id from the live subscription snapshot, so command prose no longer needs
to teach BASE-URL derivation or GET /api/sessions id-resolution.
Canonical example:
npx tsx ./scripts/dashboard-bus.ts spawn /path/to/proj --prompt "/opsx-explore add-auth" --model @planning --thinking high
npx tsx ./scripts/dashboard-bus.ts until <id> idle
npx tsx ./scripts/dashboard-bus.ts prompt <id> "run the tests"
LLM authors can also write an ordinary type-checked .ts script importing
{ connect } from @blackbelt-technology/pi-dashboard-bus-client for multi-step
orchestration (spawn → prompt → until idle → read → plugin) using connect(),
spawn(), prompt(), until(), read.sessions(), and plugin("goal", …).
Tier split
- COMMAND verbs → bus (
dashboard-bus.ts): abort, send_prompt, spawn, resume, flow (flows plugin action), set_model, set_thinking_level, rename, archive/unarchive, attach/detach_proposal, plugin goal. - READ-ONLY + no-WS-twin → REST (
dashboard-api.sh): session / health / config reads, git ops, grep/browse,plugin_config_write, tunnel, peer scan, openspec archive/toggle. REST remains a supported compatibility shell.
Setup — Discover the Dashboard URL
Read the port from config, defaulting to 8000:
PORT=$(cat ~/.pi/dashboard/config.json 2>/dev/null | grep '"port"' | grep -o '[0-9]*' || echo 8000)
BASE="http://localhost:$PORT"
Verify the server is running:
curl -s "$BASE/api/health" | jq .
# Expected: { "ok": true, "pid": ..., "uptime": ... }
Authentication
By default, auth is disabled. Local requests still need to PROVE they come from this machine:
under the strict requireLocalProof default a bare curl to a non-observe route (anything that
changes state, plus /api/config, /api/ws-ticket, …) is refused with 403 local_proof_required.
Read-only (observe) routes such as /api/sessions and /api/health stay open to a plain curl.
Use pi-dashboard api <METHOD> <path> [--data '<json>'] (it mints a fresh local proof per request),
or scripts/dashboard-api.sh, for everything else.
When auth is enabled (remote/tunnel access), include the JWT cookie:
# Check auth status
curl -s "$BASE/auth/status" | jq .
# If auth is enabled, include token in requests:
curl -s -b "pi_dash_token=YOUR_JWT" "$BASE/api/sessions" | jq .
Quick Reference
Monitor
| Action | Command |
|---|---|
| List sessions | curl -s "$BASE/api/sessions" | jq . |
| Server health | curl -s "$BASE/api/health" | jq . |
| Session file diff | curl -s "$BASE/api/session-diff?sessionId=ID" | jq . |
| Read file | curl -s "$BASE/api/file?cwd=CWD&path=REL" | jq . |
| List pinned dirs | curl -s "$BASE/api/pinned-dirs" | jq . |
Control Sessions
The
/dashboard:session-*and/dashboard:flow-*MUTATION commands now route through the bus CLI (scripts/dashboard-bus.ts). The REST rows below stay as a supported compatibility shell.
| Action | Command |
|---|---|
| Send prompt | pi-dashboard api POST /api/session/ID/prompt --data '{"text":"your message"}' (optional delivery: "steer" = mid-turn after the current step, "followUp"/absent = after the agent finishes; other values → 400) |
| Steer a running session | pi-dashboard api POST /api/session/ID/prompt --data '{"text":"focus on X","delivery":"steer"}' |
| Abort | pi-dashboard api POST /api/session/ID/abort --data '{}' |
| Shutdown session | pi-dashboard api POST /api/session/ID/shutdown --data '{}' |
| Rename | pi-dashboard api POST /api/session/ID/rename --data '{"name":"my-name"}' |
| Archive | pi-dashboard api POST /api/session/ID/archive --data '{}' |
| Unarchive | pi-dashboard api POST /api/session/ID/unarchive --data '{}' |
GET /api/sessionslists RESIDENT sessions only — archived sessions are excluded. Resolve an archived id withGET /api/sessions/archived?q=<text>(or?cwd=<group-path>), or read one row withGET /api/sessions/archived/:id. Archiving an alive-but-idle session terminates its pi process and completes on the ended transition; a running or interrupted (live:true) session is refused (WS error / REST 409). | Spawn new |pi-dashboard api POST /api/session/spawn --data '{"cwd":"/path","model":"@fast","thinkingLevel":"low"}'(model/thinkingLevel/initialPrompt/attachProposaloptional;@roleresolved once; invalid → 400) | | Resume/Fork |pi-dashboard api POST /api/session/ID/resume --data '{"mode":"continue"}'
Установить pi-dashboard в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pi-dashboard?
Monitor and control the pi-dashboard server. List sessions, send prompts, abort runs, spawn new sessions, manage git branches, control flows, and configure the dashboard — all via REST API. Use when you need to interact with other pi sessions, check dashboard health, or orchestrate multi-session workflows.
Как установить скилл pi-dashboard?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pi-dashboard запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic