docs(coding-agent): add placement note for extension hot-reload

This commit is contained in:
Mario Zechner 2026-01-26 21:55:49 +01:00
parent 3ae0cbe384
commit 3c252d50f5

View file

@ -4,6 +4,8 @@
Extensions are TypeScript modules that extend pi's behavior. They can subscribe to lifecycle events, register custom tools callable by the LLM, add commands, and more. Extensions are TypeScript modules that extend pi's behavior. They can subscribe to lifecycle events, register custom tools callable by the LLM, add commands, and more.
> **Placement for /reload:** Put extensions in `~/.pi/agent/extensions/` (global) or `.pi/extensions/` (project-local) for auto-discovery. Use `pi -e ./path.ts` only for quick tests. Extensions in auto-discovered locations can be hot-reloaded with `/reload`.
**Key capabilities:** **Key capabilities:**
- **Custom tools** - Register tools the LLM can call via `pi.registerTool()` - **Custom tools** - Register tools the LLM can call via `pi.registerTool()`
- **Event interception** - Block or modify tool calls, inject context, customize compaction - **Event interception** - Block or modify tool calls, inject context, customize compaction