pi-checklist
pi extension: session-scoped task checklist with dependencies and a live TUI renderer
Package details
Install pi-checklist from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-checklist- Package
pi-checklist- Version
4.2.0- Published
- Nov 23, 2026
- Downloads
- 1,008/mo · 336/wk
- Author
- championswimmer
- License
- MIT
- Types
- extension
- Size
- 132.5 KB
- Dependencies
- 1 dependency · 4 peers
Pi manifest JSON
{
"extensions": [
"./dist/index.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-checklist
A pi extension that gives the coding agent a session-scoped task checklist.
The agent can:
- create a list of tasks for the current coding session
- read the current list
- move tasks through
planned→ongoing→done/cancelled - declare
dependsOnso blocked work is obvious - render the list in the TUI after each turn so you can see what is done and what is left
Preview

The /checklist dialog (above) shows every task. Session checklists hold at most 10 tasks; the live widget shows the top 5 by priority and the ☑ n/m footer tracks overall progress.
Check out my other Pi extensions
— Real-time prompt cache hit rates and token metrics.
— Session task checklist with dependencies and a TUI renderer.
— Selects relevant skills and optionally filters tools for each task.
— Prunes verbose tool outputs from context while preserving history.
— Dot-grid visualization of context window token usage.
— Live tokens/sec and TTFT in the status bar.
— Delegate work to parallel subagents and monitor their progress.
Status
Implemented; see the usage and development sections below.
Usage
Checklist 4.0 requires Pi 1.5.0 or newer and Node.js 22.19.0 or newer. Existing settings are converted in place when Checklist starts. The global settings path stays <agentDir>/pi-checklist.json.
The agent gets three tools:
| Tool | Purpose |
|---|---|
checklist_create |
Create (or replace/append) the session task list |
checklist_read |
Read tasks, statuses, and which items are blocked |
checklist_update |
Move tasks through planned / ongoing / done / cancelled |
Each task gets a 3-character alphanumeric id (FNV-1a hash of the title, e.g. k7q). dependsOn names those ids. A task cannot become ongoing (or shortcut to done) until every dependency is done.
Status machine: planned → ongoing / done / cancelled, ongoing → done / cancelled / planned, cancelled → planned. done is terminal in v1.
A session checklist holds at most 10 tasks. The live TUI widget shows the top 5 prioritized tasks (with an overflow hint when needed) plus a ☑ n/m footer; /checklist (or /checklist show) opens a centered dialog with all tasks (/checklist clear empties the list, /checklist add adds a task by hand — see below). /checklist settings opens an interactive settings dialog (powered by pi-extension-settings-tui, with keyboard, fullscreen mouse, RPC menu fallback, and Global/Project scope overrides), or quick-set them inline, e.g. /checklist settings end-of-turn pill emoji moderate:
Use Statusbar widget and Status footer in /checklist settings to control the widget and footer separately. In the TUI, the inline Preview updates as you change the progress style, icons, or subtasks setting. The display shortcuts are listed below.
statusbar— persistent widget below the input box + compact footer summary (default).widget-only— persistent widget below the input box without footer.status-minimal— compact progress summary in the footer only (no task widget).end-of-turn— widget above the input box when each turn settles, plus footer.hidden— neither widget nor footer (open/checkliston demand).
Both summaries use a checkmark, done/total ratio, then icon counts for done, ongoing, ready, blocked and cancelled, e.g. ☑️ 2/5 ✅ 2 🔄 3. Zero-count states are hidden. They honor your Nerd Font / emoji setting regardless of task-row style; the footer omits the checklist title. Cancelled tasks don't count toward the progress denominator.
The footer summary colors each icon and count using the active Pi theme (done: success, ongoing: warning, blocked: error, ready: text, cancelled: dim). It is published with ctx.ui.setStatus under the key checklist. In pi-footer, add a Pi Extension Status widget with key checklist in /footer, or enable its Pi extensions status row; choose one to avoid duplicates. Leave widget color and bold overrides unset to preserve the summary's colors. This uses extension status, not pi-footer event widgets. The status clears when the checklist is empty or hidden.
Progress status style:
color— rows are only color-coded, no status word.pill— the status word is a pill: text on a colored background (default).icon— status is a leading progress icon only, no status word.
Progress icons (for compact summaries and the icon task-row style):
nerd-font— Nerd Font Octicons: sync / play / blocked / check-circle / x-circle (needs a Nerd Font patched font — get one at nerdfonts.com; default).emoji— 🔄 ▶️ ⛔ ✅ ❌ (works anywhere).
Usage guidance (how strongly the agent is steered toward the checklist):
moderate— the injected hint asks for the checklist on long-running / multi-step work (refactors, audits, multi-part features); quick one-shot questions go untracked (default).aggressive— the hint asks for the checklist on almost every task, even small ones; only trivial single-step questions go untracked.
Usage guidance is baked into the system prompt, so it is captured once when the extension loads — after changing it, run /reload or start a new pi session for it to take effect. The display settings above apply immediately.
Subtasks (preview):
- Enable with
/checklist settings subtasks(off with/checklist settings no-subtasks), or use the Subtasks toggle. - Each task holds at most 3 subtasks (fixed cap, like the 10-task limit). Subtasks are born
plannedand run the same status machine as tasks. - A subtask's
dependsOnmay name only siblings inside the same parent task. - In the
/checklistdialog, tasks open collapsed; press → (orl) on a task with subtasks to expand it and ← (orh) to collapse (works from a subtask row too). - State primitives: a parent cannot finish (
→ done) while any subtask is still open (planned/ongoing—cancelledcounts as resolved); starting a subtask pulls aplannedparent toongoingautomatically; a subtask cannot start while its parent is blocked (it inherits the parent's block); cancelling a parent cascade-cancels its open subtasks; finish parent + subtasks together in onechecklist_updateentry.
Task meta (preview):
- Free-form key/value facts on a task or subtask — e.g.
{ "agent": "impl-auth", "pr": 42 }— so the agent (or another extension driving the same tools) can tag work. No namespaces, claims or special API: it is just a flatmetaobject. - Enable with
/checklist settings meta(off with/checklist settings no-meta), or use the Task meta toggle. The change applies immediately. While it is on, the system prompt tells the agent how to use meta. - Create:
checklist_createtasks (and subtasks) acceptmeta: { key: value }. - Update:
checklist_updateentries (and subtask patches) takemeta, which is merged into the existing meta — listed keys are set/overwritten, unlisted keys stay, andkey: nulldeletes that key. Deleting the last key removesmeta. - Values are
string(≤ 200 chars), finitenumberorboolean; keys are 1–40 chars; at most 10 keys per task. Anything else (objects, arrays) is rejected.nullonly means "delete" in updates (it is skipped on create). - Gating matches subtasks: a non-empty
metais rejected while the preview is off. Meta already stored is kept (just hidden) if you switch it off. Done tasks stay frozen, meta included. checklist_readlists each task's meta when the feature is on. In the TUI, only the/checklistdialog shows it: alignedkey: valuerows under each task (and under expanded subtasks) that has meta. The widget, footer and status line never show meta, and the rows are not selectable, so navigation and expand/collapse are unchanged. The dialog scrolls with the selection to fit short terminals (borders and key hint stay visible; the header showsrows a–b of n), and a task whose meta alone is taller than the dialog shows… +N more.
/checklist hide is shorthand for hidden mode.
Adding tasks by hand
/checklist add opens a dialog so you can add a task yourself (the agent keeps its own tools; manually added tasks are ordinary tasks and show up in the widget, the footer and the agent's next turn):
- ID — an autogenerated, free 3-character id (
a–z,0–9). Edit it if you like, or pressCtrl+Rfor another random one. - Task — the task text.
- Depends on — a checkbox picker over the tasks already in the checklist (optional).
Keys: the dialog opens on Task. Tab / Shift+Tab (or ↑ / ↓) move between the fields; in the picker ↑ / ↓ (or j / k) move and Space (or x) toggles; Enter adds the task from any field; Esc / Ctrl+C cancels. Problems (bad or duplicate id, empty text, full checklist) show inline and the dialog stays open.
Validation is deliberately basic: the id must be 3 characters from a–z / 0–9 and unique among all tasks and subtasks (all is reserved), the text must not be empty, dependencies must be existing tasks, and the checklist must have room (at most 10 tasks). It does not check dependency or blocking state — a new planned task may depend on tasks that are unfinished, ongoing, done or cancelled; it just stays blocked until they are done.
/checklist add <text> pre-fills the task text. Without a TUI (print mode) the dialog is unavailable, so /checklist add <text> adds the task directly with an autogenerated id and no dependencies.
Checklist tasks live in the session JSONL and survive /resume, /branch, /undo, and compaction. Settings persist in <agentDir>/pi-checklist.json (Global, with agent dir set by $PI_CODING_AGENT_DIR or defaulting to ~/.pi/agent) and optionally in <cwd>/.pi/pi-checklist.json (Project, when trusted).
On upgrade, Checklist converts legacy displayMode to widgetDisplay and footerEnabled in the same file. widgetDisplay accepts "persistent", "off", or "end-of-turn", and footerEnabled is a boolean. The other setting keys keep their existing values. Files store overrides, so default settings can be omitted.
Install
From npm (release):
pi install npm:pi-checklist
From git:
pi install git:github.com/championswimmer/pi-checklist
Quick one-off test (built output — this is what ships):
npm run build
pi -e ./dist/index.js
Development (symlink sources for hot-reload, no rebuild needed):
mkdir -p ~/.pi/agent/extensions
ln -s "$(pwd)/src/index.ts" ~/.pi/agent/extensions/pi-checklist.ts
Hot-reload inside pi with /reload.
Developing / releasing
- Sources live in
src/; the published + git-installed entry is the built outputdist/index.js(npm run build, TypeScript). Runnpm testfor the permanent Node built-in test suite (it rebuildsdist/first). dist/is intentionally committed: pi installs git packages withnpm install --omit=devand no build step, so the built files must exist in the clone. Rebuild (npm run build) before every commit that touchessrc/.- The npm tarball is a whitelist (
filesin package.json:dist,README.md,LICENSE) plus.npmignoreas backup — no.tssources ship, so pi loads plain JS without jiti transpiling. - Release flow: bump
versionin package.json →npm run build→ commit (includingdist/) →git tag vX.Y.Z && git push origin vX.Y.Z. Pushing the tag triggers.github/workflows/release.yml, which verifies the tag matchespackage.json, builds, and publishes to npm via trusted publishing (GitHub OIDC — noNPM_TOKENneeded). One-time setup: on npmjs.com/package/pi-checklist → Settings → Trusted Publisher, add GitHub Actions publisherchampionswimmer/pi-checklist/release.yml. - Maintainers cut releases with
node scripts/release.mjs <major|minor|patch>(see.agents/skills/release/SKILL.md) — it bumps, rebuildsdist/, commits, tagsvX.Y.Z, and pushes, and the tag push publishes to npm.
Releases and changelog
Run node scripts/release.mjs patch (or minor / major) from a clean,
up-to-date main checkout to bump and push a release tag. The release workflow
publishes to npm and, for stable tags, uses GitHub's generated release notes and
Git history to create a GitHub release and update CHANGELOG.md
on main. The changelog includes merged PRs as well as direct commits. Allow
Actions to write repository contents; if the changelog push races with another
update to main, re-run the failed workflow. Prerelease tags do not update it.
To regenerate locally, fetch all history and tags, authenticate the GitHub CLI,
and run node scripts/changelog.mjs. Add --release vX.Y.Z to create a
missing GitHub release without changing an existing release's notes.