Pi Subagents Guide
This guide describes the Pi-native /posttrain workflow for the NanoChat post-training project. It is separate from the pre-training /autolab flow.
Checked-In Pi Assets
.pi/settings.jsonProject Pi settings. It declarespi-subagentsand keeps Pi session files under.runtime/..pi/APPEND_SYSTEM.mdParent-session coordinator guidance appended to Pi's default prompt..pi/agents/Project agents:planner,reviewer,researcher,reporter,memory-keeper, andexperiment-worker..pi/prompts/posttrain.mdThe reusable/posttrainparent-session kickoff prompt.scripts/print_pi_kickoff.pyPrints a copy-paste parent-session prompt.
Setup
Install Pi once if it is not already available:
bash
npm install -g @mariozechner/pi-coding-agentFrom the post-training project root, start Pi:
bash
cd /Users/ben/code/multiautoresearch/post-training
piThe project .pi/settings.json declares npm:pi-subagents@0.22.0. Pi should install missing project packages on startup. If needed:
bash
pi install npm:pi-subagents@0.22.0 -lFor managed Hugging Face Jobs runs:
bash
hf auth whoami