Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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/sessions lists RESIDENT sessions only — archived sessions are excluded. Resolve an archived id with GET /api/sessions/archived?q=<text> (or ?cwd=<group-path>), or read one row with GET /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/attachProposal optional; @role resolved once; invalid → 400) | | Resume/Fork | pi-dashboard api POST /api/session/ID/resume --data '{"mode":"continue"}'

Полный SKILL.md на GitHub

Установить pi-dashboard в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

commands/README.mdcommands/dashboard-flow-abort.mdcommands/dashboard-git-branches.mdcommands/dashboard-git-init.mdcommands/dashboard-git-stash-pop.mdcommands/dashboard-list-models.mdcommands/dashboard-list-models.md.AGENTS.mdcommands/dashboard-peer-list.mdcommands/dashboard-peer-scan.mdcommands/dashboard-pin-list.mdcommands/dashboard-proposal-archive.mdcommands/dashboard-proposal-attach.mdcommands/dashboard-proposal-detach.mdcommands/dashboard-server-config.mdcommands/dashboard-server-health.mdcommands/dashboard-server-tunnel-off.mdcommands/dashboard-server-tunnel-on.mdcommands/dashboard-server-tunnel-status.mdcommands/dashboard-session-abort-all.mdcommands/dashboard-session-abort.mdcommands/dashboard-session-diff.mdcommands/dashboard-session-fork.mdcommands/dashboard-session-hide.mdcommands/dashboard-session-info.mdcommands/dashboard-session-kill.mdcommands/dashboard-session-list-active.mdcommands/dashboard-session-list-here.mdcommands/dashboard-session-list.mdcommands/dashboard-session-model.mdcommands/dashboard-session-rename.mdcommands/dashboard-session-resume.mdcommands/dashboard-session-spawn.mdcommands/dashboard-session-tell.mdcommands/dashboard-session-thinking.mdcommands/dashboard-session-unhide.mdreferences/api-reference.agent.mdreferences/api-reference.mdreferences/recipes.mdreferences/slash-commands.mdscripts/dashboard-api.sh

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить pi-dashboard с