Add todo hook companion to todo custom tool

- /todos command displays all todos on current branch with custom UI
- Update hooks.md to clarify components must not be wrapped in Box/Container
- Cross-reference tool and hook in example READMEs
This commit is contained in:
Mario Zechner 2026-01-02 22:58:45 +01:00
parent a3772d2fd7
commit 74dc5e7c49
6 changed files with 148 additions and 2 deletions

View file

@ -28,6 +28,7 @@ cp permission-gate.ts ~/.pi/agent/hooks/
| `snake.ts` | Snake game with custom UI, keyboard handling, and session persistence |
| `status-line.ts` | Shows turn progress in footer via `ctx.ui.setStatus()` with themed colors |
| `handoff.ts` | Transfer context to a new focused session via `/handoff <goal>` |
| `todo/` | Adds `/todos` command to view todos managed by the [todo custom tool](../custom-tools/todo/) |
## Writing Hooks