@huntye1/pi-codex-todo
A branch-aware Codex-style update_plan extension for Pi
Package details
Install @huntye1/pi-codex-todo from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@huntye1/pi-codex-todo- Package
@huntye1/pi-codex-todo- Version
0.1.0- Published
- Oct 9, 2026
- Downloads
- 397/mo · 397/wk
- Author
- huntye1
- License
- MIT
- Types
- extension
- Size
- 18.5 KB
- Dependencies
- 0 dependencies · 4 peers
Pi manifest JSON
{
"extensions": [
"./extensions/update-plan.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@huntye1/pi-codex-todo
A Codex-style update_plan extension for Pi. It provides a three-state task checklist, branch-aware session persistence, a persistent TUI widget, and bounded reminders on later user turns.
Installation
pi install npm:@huntye1/pi-codex-todo
Run /reload in an active Pi session. For local development:
pi --extension ./packages/pi-codex-todo/extensions/update-plan.ts
Features
- Codex-compatible
update_planinput withpending,in_progress, andcompletedstates - Complete-snapshot updates with at most one active item
- State restored from the active Pi session branch after resume or tree navigation
- Compact tool-result rendering plus a persistent widget and footer counter
- A bounded hidden reminder at the start of later user turns while work remains
/todos,/todos show,/todos hide, and/todos clear
This is an execution checklist, not Pi's read-only Plan Mode.
Tool input
The model calls update_plan with the complete current checklist:
{
"explanation": "Starting implementation",
"plan": [
{ "step": "Inspect the repository", "status": "completed" },
{ "step": "Implement the change", "status": "in_progress" },
{ "step": "Run tests", "status": "pending" }
]
}
At most one item may be in_progress. Every update replaces the previous snapshot, so completed and pending items must remain in the array until they are intentionally removed.
Commands
/todosshows the latest checklist./todos hidehides the persistent widget without clearing state./todos showrestores the widget./todos clearclears the checklist and persists the cleared state on the active branch.
State behavior
Checklist snapshots are stored in the Pi session and reconstructed only from the active branch. Abandoned branch state does not leak into the current branch. The reminder is added only when unfinished work exists and is bounded to avoid prompt growth.
Development and publishing
npm run check
npm run pack:check
npm publish --access public
Pi host APIs are optional peer dependencies supplied by Pi. The published package contains the extension entry point, source files, both READMEs, license, and package metadata.
License
MIT