pi-extension-lifecycle
CommunityMaster Pi agent lifecycle and extension timing.
Authorgotgenes
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a reference for the Pi coding agent's turn and tool execution model and extension event lifecycle, enabling teams to design timings, intercepts, and messages with a clear lifecycle diagram and documented capabilities.
Core Features & Use Cases
- Comprehensive agent loop reference detailing outer and inner loops, including turn_start, context, before_provider_request, and tool execution lifecycle.
- Clear documentation of event handler capabilities and input/output structures (context, tool_call, tool_result, turn_end, etc.).
- Guidance on tool_call sequencing, abort/interrupt lifecycle, and message delivery semantics (steering vs follow-up) across turns.
- Design implications for safe, reliable extension development with empirical session-data patterns.
Quick Start
Consult this lifecycle reference when designing extensions or integrating new tools for Pi agents.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: pi-extension-lifecycle Download link: https://github.com/gotgenes/pi-packages/archive/main.zip#pi-extension-lifecycle Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.