Pi 0.23.3
Fixed
- Check for compaction before submitting user prompt, not just after agent turn ends. This catches cases where user aborts mid-response and context is already near the limit.
Changed
Improved system prompt documentation section with clearer pointers to specific doc files for custom models, themes, skills, hooks, custom tools, and RPC.
Cleaned up documentation:
theme.md: Added missing color tokens (thinkingXhigh,bashMode)skills.md: Rewrote with better framing and exampleshooks.md: Fixed timeout/error handling docs, added import aliases sectioncustom-tools.md: Added intro with use cases and comparison tablerpc.md: Added missinghook_errorevent documentationREADME.md: Complete settings table, condensed philosophy section, standardized OAuth docs
Hooks loader now supports same import aliases as custom tools (
@sinclair/typebox,@mariozechner/pi-ai,@mariozechner/pi-tui,@mariozechner/pi-coding-agent).
Breaking Changes
- Hooks:
turn_endevent'stoolResultstype changed fromAppMessage[]toToolResultMessage[]. If you have hooks that handleturn_endevents and explicitly type the results, update your type annotations.