docs(coding-agent): add placement note for extension hot-reload
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user