Co-Authored-By: Pi Codex <288921227+claudypoo@users.noreply.github.com>
pi-goals
Make a short list of goals in one Markdown plan file. The main Pi agent supervises a cheaper retained worker through pi-subagents.
The plan file looks like this:
## <short plan title>
<context: one short paragraph. What the human wants and why.>
### User-visible result
<one concrete sentence naming the final artifact or behavior the human will inspect>
### User voice
- │ "<the human's requirement, quoted in full word for word (with spelling fixes)>"
### Goals
1. [ ] goal: <one short judgeable imperative outcome>
- subtle failure mode: <a way this could look done but isn't>
- discriminator: <the concrete observation that tells real success from that failure>
- tasks:
1. [ ] <subtask>
- evidence: (empty until sign-off)
### Future work / out of scope
### Log
### Interview
### Learnings
### Papercuts - problems, gotchas, suggestions
Related work
Like pi-milestones and burneikis/pi-plan, it guides rather than guards. The plan resync after compaction follows tmonk/pi-goal-x.
Install
Requires pi-subagents 0.65.1 or newer. Install pi-processes so the supervisor can check managed processes. Install pi-vcc as a Pi extension for main-session compaction; pi-goals also loads its package in the worker.
pi install npm:pi-subagents
pi install npm:@aliou/pi-processes
pi install npm:@sting8k/pi-vcc
pi install npm:@wassname2/pi-goals
Or for development:
git clone https://github.com/wassname/pi-goals && cd pi-goals && npm install
pi -e npm:pi-subagents -e npm:@sting8k/pi-vcc -e ./src/index.ts
Use
/goals CSV export for the report view
/goals enters plan mode and starts a conversation; the objective is an optional seed. From there:
- Plan. The agent explores read-only and drafts the plan.
- Review. After Pi settles, the full plan is printed in the transcript. Check that User-visible result names the final artifact or behavior you expect. The menu offers Ready, Refine, Edit, or Cancel. Refine collects short notes. Edit opens the full plan in Pi's editor.
- Work. Ready forks the approved-plan conversation into a cheaper
goal-worker. pi-vcc compacts inherited context before the first worker turn when there is enough context to compact; a small exact fork is recorded as already below the compaction minimum. The main agent becomes the research supervisor. Worker completion wakes it through pi-subagents. It callsCheckGoalWorkbefore deciding that all subagents and managed processes stopped, steers or resumes the retained worker withGuideGoalWorker, reads the evidence, and callsCompleteGoalto sign off. FleetView and/subagents-fleetshow the worker. Every human reply and Refine note in plan mode is saved verbatim under## Interview.
Other commands: /goals clear disconnects this session from its active plan, preserving the
versioned file on disk. /goals auto [minutes|off] changes the supervisor check interval; Ready
enables a 60-minute interval. /goals model <model-ref> picks the cheaper worker model. Select the
stronger supervisor with Pi's normal /model command. Checks continue until all goals close, the
human uses auto off, or the plan is cleared.
Prompts
Planning and sign-off prompts live in src/prompts.ts. Worker registration and pi-subagents RPC calls live in src/worker.ts. src/worker-runtime.ts compacts the initial fork with pi-vcc.
Develop
pi -e npm:pi-subagents -e npm:@sting8k/pi-vcc -e ./src/index.ts # load locally
npm test # all unit, flow, and Pi RPC tests
npm run test:rpc # Pi RPC review flow with a local offline model
npm run typecheck
npm run lint
License
MIT
