/pi-dashboard:pi-dashboard-controlfrom pi-dashboard
Controls a local pi-dashboard via its REST API using curl. Lists sessions, sends prompts, aborts runs, and spawns new sessions.
Ships in pi-dashboard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run pi-dashboard-bootstrap first and use its literal BASE (for example http://localhost:8000).
REST is the command path. Full endpoint list: references/api-reference.md.
curl -s BASE/api/health
curl -s BASE/api/sessions
curl -s -X POST BASE/api/session/ID/prompt -H 'Content-Type: application/json' -d '{"text":"run the tests"}'
curl -s -X POST BASE/api/session/ID/abort -H 'Content-Type: application/json' -d '{}'
curl -s -X POST BASE/api/session/spawn -H 'Content-Type: application/json' -d '{"cwd":"/path/to/project"}'
# optional: "model":"@planning" (or provider/id), "thinkingLevel":"high", "initialPrompt":"...", "attachProposal":"<change>"
# @role resolves once at spawn time; an invalid model, unknown role or bad level returns 400
Take ID from GET /api/sessions. Replace BASE with the literal URL every time.
To be notified when a session asks a question or finishes a run instead of polling, use the pi-dashboard-watch skill.
To show a session to the user, list sessions and open that row's uiUrl (or diffUrl for the changes view) in your browser pane:
curl -s BASE/api/sessions
id, or the row's uiUrl / diffUrl, exactly as listed. Never shorten the id: build BASE/session/<full id> only when you have no uiUrl. When auth is on, this listing follows the token rules in "When a call is refused" below. The sign-in in the pane is separate and gives you no token.?embed=1 for a narrow pane: the page then shows the session without the session list.GET /api/sessions/archived (50 per page: while the response has a nextCursor, request the next page with ?cursor=<nextCursor> until you find it): open BASE/session/<full id>?archived=1.Other pages (folders, OpenSpec board and archive) are listed in the "UI routes (browser)" section of references/api-reference.md.
A 401, or a 403 with "reason":"local_proof_required", means the dashboard needs a token.
Ask the user to run:
pi-dashboard token create --label claude-code --tier control
control covers prompt, spawn and abort. Ask for a higher tier only if the user explicitly wants one.
Preferred: the user saves the line Authorization: Bearer <token> in a file they create with
owner-only permissions and tells you its path. Never create that file yourself. Send every
credentialed request in the same command as a verification, so credentials only reach a verified dashboard:
sh "${CLAUDE_SKILL_DIR}/../pi-dashboard-bootstrap/scripts/ensure-dashboard.sh" --check && curl -s -H @/path/to/header-file BASE/api/sessions
Otherwise accept a token the user pastes, send it only as an Authorization: Bearer header, and
never write it to a file or repeat it in output. Tell the user it then stays in the conversation history.
Never add curl verbose or trace options to credentialed requests: they print the header.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/pi-dashboard-bootstrapMake sure the local pi-dashboard server is running before any pi-dashboard action. Use FIRST whenever the user mentions the pi dashboard, pi sessions or pi agents, or asks to start or open the dashboard; also when a dashboard call fails with "connection refused"./pi-dashboard-watchGet notified when a pi session asks a question, changes status (streaming, idle, ended) or is added or removed, instead of polling. Use after pi-dashboard-bootstrap has printed BASE, whenever you start or prompt a pi session and must react to it, or the user asks to watch pi sessions.npx claudepluginhub blackbelttechnology/pi-agent-dashboard --plugin pi-dashboardOther plugins' skills for the same job