Plugin Lifecycle
No formal plugin lifecycle specification exists. TokenPilot uses host-specific mechanisms:
- OpenClaw: native plugin slot with bundled runtime
- Codex CLI: hooks (
SessionStart,PreToolUse,PostToolUse,Stop) viahooks.json - Claude Code:
SessionStarthook + gateway + MCP recovery
Next
- Configuration Model — how plugin config works
- Runtime API — the plugin programming interface