Run a review from Pi
Type: types/instruction.md
Goal: run commonplace-review from a Pi session or configure Pi as the headless reviewer worker in the shared worker roster.
The Pi session that starts a review and the worker that judges the note are separate. To use Pi only to start a review, ask it to run commonplace-review NOTE --criteria prose/source-residue --profile sonnet from the project root; that uses a Claude Code worker and needs no Pi worker credentials or subagent extension.
Use Pi as the reviewer worker
- Follow INSTALL.md for the consuming project. Use a Git repository with at least one commit (the checkout guard reads
HEAD) and an existing KB note. Confirmcommonplace-review --helpandpi --versionwork in the launch shell. - Pick a provider and model from
pi --list-models, set up provider credentials (for example via/loginin Pi), and verify in the launch environment withpi auth check --model PROVIDER/MODEL. The worker must read the note and installed library and write its result underkb/workflow-state/data/current/review/runs/without prompting. - Add an entry under the existing
profiles:key in the library's worker roster, replacingPROVIDER/MODELwith your chosen ID. For durable customization, use an editable Commonplace install and editkb/instructions/worker-profiles.yamlin that checkout (a file of the same name in a consuming KB is not an override):
yaml
pi-review:
harness: pi
launch-model: PROVIDER/MODEL
effort: medium
The workflows.review.harnesses.pi grant supplies the tools for every Pi reviewer. The built-in adapter selects print mode and JSON output; do not start a headless server or add those flags yourself. Because Pi's write tool is not restricted to the result path, always inspect the checkout guard (guard.changed) after a run.
Verify
Run one missing or stale gate on one note (replace NOTE with its repository-relative path):
commonplace-review status NOTE --criteria prose/source-residue
commonplace-review NOTE --criteria prose/source-residue --profile pi-review
commonplace-review status NOTE --criteria prose/source-residue
The review run should report reviewed (use --force only if the pair is already fresh) and the final status should report fresh, regardless of the verdict.