Personal workspace for building, testing, and iterating on custom Pi extensions.
piexts/
extensions/
handoff/ # Hybrid handoff extension (ported from breadcrumbs work)
docs/
quickstart.md
references.md
workflow-tips.md
templates/
extension-checklist.md
cd piexts
pnpm install
pnpm typecheckRun Pi with the handoff extension loaded:
cd extensions/handoff
piPi reads pi.extensions from extensions/handoff/package.json and loads index.ts directly.
extensions/handoff/handoff [goal]command with interactive fallback- streaming extraction UI (
Ctrl+Oexpand,Esccancel) - lineage custom messages (source + marker)
handofftool (recommend-first; guarded execute config currently degrades to recommend)- configurable
extractionTimeoutMs,postSwitchMode,handoffTool,toolBehavior
Config file:
- Global:
~/.pi/agent/extensions/handoff.json - Project:
.pi/extensions/handoff.json
Example:
{
"handoffTool": true,
"toolBehavior": "recommend",
"postSwitchMode": "draft",
"extractionTimeoutMs": 30000
}- Create
extensions/<name>/ - Add
package.jsonwith:"pi": { "extensions": ["./index.ts"] }
- Add
index.tsdefault export(pi: ExtensionAPI) => { ... } - Add
tsconfig.jsonextending../../tsconfig.base.json - Run
pnpm -r typecheck
See:
docs/references.mdfor official Pi docs and example extension links.docs/workflow-tips.mdfor practical build/test workflow and gotchas.templates/extension-checklist.mdbefore publishing or sharing.