@jerryan/pi-task-tree
Nested task list with completed tracking and focus mode for pi
Package details
Install @jerryan/pi-task-tree from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@jerryan/pi-task-tree- Package
@jerryan/pi-task-tree- Version
0.3.0- Published
- May 21, 2026
- Downloads
- 24/mo · 1/wk
- Author
- jerryan
- License
- MIT
- Types
- extension
- Size
- 105.2 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-task-tree
Nested task list with completed tracking and focus mode for pi.
⚠️ Early Stage Development: This extension is in active development. Expect bugs and breaking changes. Specifically, data loss of created plans may occur as the internal format evolves. Use with caution and back up important plans.
pi install npm:@jerryan/pi-task-tree
Or add to ~/.pi/agent/settings.json:
{
"packages": ["npm:@jerryan/pi-task-tree"]
}
⚠️ Context Cost Warning
This extension is relatively heavy compared to a simple flat todo list. It exposes 7 tools with rich parameters (hierarchical indexes, insert modes, soft deletes, etc.) that exist for functional completeness but are rarely used by agents in practice. Most agent workflows only need a flat list of tasks, yet the full schema descriptions sit in the system prompt on every turn.
If you typically use pi for short, interactive coding sessions rather than long-running autonomous agent work, consider whether this extension is worth the context cost. You may prefer to:
- Not install it globally — only add it to specific projects that need complex planning
- Use a simpler flat todo for basic task tracking (e.g., the built-in
todo.tsexample or a lightweight alternative)
Reserve pi-task-tree for sessions where you expect deep hierarchical planning, subtask breakdowns, and long agent runs where the tree structure genuinely adds value.
Features
- Hierarchical tasks: Break down work into parent tasks and subtasks
- Completed tracking: Mark tasks complete with
[✅]display - Focus mode: Shows the working path - first incomplete at each level
- Insert mode: Add tasks at specific positions
- Soft delete: Tasks can be deleted without losing context
- Persistence: State survives restarts
Usage
Once installed, the following tools are available:
task_create_root- Create a new task listtask_extend_root- Add tasks to root leveltask_breakdown- Add subtasks under existing taskstask_update- Update task title/descriptiontask_close- Mark tasks complete or delete themtask_list- Show tasks in focus or full modetask_get- Get details about a specific task
Development
# Install dependencies
npm install
# Run tests
npm test
# Watch mode
npm run test:watch
# Build
npm run build
# Type check
npm run lint
License
MIT