Pi Development Workflow
This guide summarizes a sane workflow for working on the pi integration in Pllan.Type Checking and Linting
- Type check and build:
pnpm build - Lint:
pnpm lint - Format check:
pnpm format - Full gate before pushing:
pnpm lint && pnpm build && pnpm test
Running Pi Tests
Run the Pi-focused test set directly with Vitest:src/agents/pi-*.test.tssrc/agents/pi-embedded-*.test.tssrc/agents/pi-tools*.test.tssrc/agents/pi-settings.test.tssrc/agents/pi-tool-definition-adapter.test.tssrc/agents/pi-extensions/*.test.ts
Manual Testing
Recommended flow:- Run the gateway in dev mode:
pnpm gateway:dev
- Trigger the agent directly:
pnpm pllan agent --message "Hello" --thinking low
- Use the TUI for interactive debugging:
pnpm tui
read or exec action so you can see tool streaming and payload handling.
Clean Slate Reset
State lives under the Pllan state directory. Default is~/.pllan. If PLLAN_STATE_DIR is set, use that directory instead.
To reset everything:
pllan.jsonfor configcredentials/for auth profiles and tokensagents/<agentId>/sessions/for agent session historyagents/<agentId>/sessions.jsonfor the session indexsessions/if legacy paths existworkspace/if you want a blank workspace
agents/<agentId>/sessions/ and agents/<agentId>/sessions.json for that agent. Keep credentials/ if you do not want to reauthenticate.