@zhushanwen/pi-todo
AI-driven todo list for Pi — stateful task management with session persistence and /todos command.
Package details
Install @zhushanwen/pi-todo from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@zhushanwen/pi-todo- Package
@zhushanwen/pi-todo- Version
0.1.2- Published
- Jun 2, 2026
- Downloads
- not available
- Author
- zhushanwen321
- License
- MIT
- Types
- extension
- Size
- 25.9 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
todo
轻量级 AI 任务清单 — 三态(pending / in_progress / completed),支持 session 持久化、状态栏、批量操作。
功能
- 三态任务:
pending→in_progress→completed - 批量操作:add / update / delete / clear
- Session 持久化:任务状态保存在 session entries 中,重启后恢复
- 状态栏:底部显示任务进度(如
2/5 done) - 自动清理:所有任务完成后自动清空
安装
# symlink 方式(开发推荐)
ln -s /path/to/xyz-pi-extensions-workspace/main/packages/todo \
~/.pi/agent/extensions/todo
# npm 方式(正式)
pi install npm:@zhushanwen/pi-todo
使用
AI 可调用 todo 工具:
| Action | 说明 |
|---|---|
list |
查看所有 todo |
add |
批量添加 todo |
update |
更新 todo(状态/文本) |
delete |
批量删除 |
clear |
清空所有 |
用户命令:/todos 交互式面板。
文件结构
todo/
├── index.ts
└── src/
└── index.ts # 入口 — 工具、命令、事件、状态栏