@groeponline/pi-control

Pi runtime control and QA extension: sessions, models, tools, state, verification, guardrails, and operator workflows.

Packages

Package details

extensionskill

Install @groeponline/pi-control from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@groeponline/pi-control
Package
@groeponline/pi-control
Version
0.1.2
Published
Aug 30, 2026
Downloads
335/mo · 72/wk
Author
chefgroeponline
License
MIT
Types
extension, skill
Size
63.4 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/pi-control/index.ts"
  ],
  "skills": [
    "./skills"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@groeponline/pi-control

Pi-native runtime control and QA for operators and coding agents. pi-control exposes a small control plane for sessions, models, active tools, saved state, verification workflows, and guardrails without replacing Pi's agent runtime.

npm Pi package License

Install

pi install npm:@groeponline/pi-control

For one session only:

pi -e npm:@groeponline/pi-control

Architecture · Changelog · Issues

Where it fits

pi-control owns Pi runtime control and verification: sessions, models, active tools, saved state, and assertions about the current Pi process. It is not the capture/showcase package. For browser/terminal capture, QA evidence recipes, Skill Studio, and showcase rendering use @groeponline/pi-agent-control-extension.

The wider flow is idea (wishcraft) -> durable mission (missions) -> execution run (orchestrator) -> runtime/evidence verification (pi-control / pi-agent-control-extension).

What it gives you

Surface Purpose
/pi-demo Demonstrate a concrete Pi workflow or feature with explicit verification.
/pi-verify Test claims about Pi runtime behavior and report evidence.
/pi-qa Run a structured QA flow and report PASS/FAIL evidence.
pi_session List, inspect, fork, switch, compact, label, and rename sessions.
pi_model List/switch models, inspect providers, and change thinking level.
pi_tool Inspect the tool inventory and change the active tool set.
pi_state Save, apply, diff, and inspect runtime state history.
pi_verify Verify session, tool-output, and behavioral expectations.
Guardrails Lifecycle and tool-call hooks for bounded operator workflows.
skills/pi-control Packaged operating guidance for control/verify/QA workflows.

Tool examples

Agent tools accept structured arguments. These examples show the minimum useful shape rather than pseudocode hidden behind a slash command.

{"tool":"pi_session","action":"inspect"}
{"tool":"pi_model","action":"thinking","level":"high"}
{"tool":"pi_tool","action":"inspect","toolName":"bash"}
{"tool":"pi_state","action":"save","key":"before-refactor","data":{"phase":"baseline"}}
{"tool":"pi_verify","action":"session","expectations":{"entries.gt":5}}

For state-changing operations, inspect first, make the smallest change, then verify. pi_tool set_active replaces the complete active-tool set, so it should never be used as an additive toggle by assumption.

Operating model

pi-control acts on Pi's live runtime state. It does not create a second session store, model router, or remote control service. A normal workflow is capture → change → verify → report, with evidence coming from the same Pi process being controlled.

State-changing tools should be used deliberately: switching models, changing active tools, restoring state, or moving between sessions affects the current Pi process. The packaged skill documents the expected capture/verify discipline.

Package layout

extensions/pi-control/
  index.ts
  tools.ts
  guardrails.ts
  commands/
skills/pi-control/SKILL.md

Pi loads both the extension and the skill from the package manifest. The npm package carries the pi-package, pi-extension, and pi-skill discovery keywords.

Development

Package boundary check:

npm run pack:check

Extension tests:

cd extensions/pi-control
npm ci
npm test

Privacy and telemetry

pi-control does not collect telemetry or send runtime data to external services. It operates on the local Pi process and any state or evidence it handles remains under the operator's control.

Source and issues

License

MIT © GroepOnline