pi-cc-todo0.1.0
Persistent todo overlay for Pi with strict task validation, batched creation, dependency checking, and automatic retirement of finished work.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-cc-todo
A persistent todo overlay for Pi: one todo tool, a live panel above the editor,
and a /todos command. Forked from
@juicesharp/rpiv-todo
2.16.0 (MIT), with four deliberate changes.
What the fork changes
1. Finished batches are retired in state, not masked in the render layer.
Upstream kept completed tasks in TaskState forever and only masked them inside
TodoOverlay. Every compaction reset that mask, so a long session kept
re-flooding the panel with its finished backlog. This fork keeps full
Todos (done/total) progress across turns while any task in the batch is still
pending or in_progress; once the whole batch finishes and the run settles,
the next run turns those completed tasks into tombstones. History stays
resolvable for get lookups while the panel and list stay clean.
{ "clearCompletedOnNewBatch": true, "keepCompleted": 0 }
keepCompleted: 2 keeps the last two finished tasks visible as a short trail.
2. Pure state-driven overlay.
Because retirement happens in TaskState, TodoOverlay needs no separate
render-side hidden-ID sets — compaction, /tree branch switches, /reload, and
session resume all show the exact state of the active branch without re-flooding.
3. Balanced two-sided prompt trigger.
Upstream's guideline opened with "immediately after receiving new instructions to
capture requirements", which reliably produced a list for one-line tasks. This
fork pairs an explicit WHEN TO CREATE A LIST rule (proactively plan 3+
non-trivial phases/steps up front and mark the final step completed before the
final reply) with a WHEN TO SKIP boundary (no list for conversational or 1-2
action requests).
4. No optional SDK dependencies.
English-only UI. No @juicesharp/rpiv-config, no @juicesharp/rpiv-i18n, no
bundled locale files.
Everything else — the strict reducer, dependency-cycle rejection, tombstones, atomic batch creation, branch replay without disk writes, the overlay's glyphs and row budget — is upstream's design, kept intact.
Install
Install the tagged release from GitHub:
pi install git:github.com/tarnish233/pi-cc-todo@v0.1.0
For a local checkout, use pi install ./pi-cc-todo from its parent directory,
or add the checkout path to packages in ~/.pi/agent/settings.json.
Enable only one extension that registers the todo tool at a time.
Configuration
Read-only, at $XDG_CONFIG_HOME/pi-cc-todo/config.json or
~/.config/pi-cc-todo/config.json. The extension never writes it. Upstream's
rpiv-todo path is deliberately not read so on-disk settings cannot collide
(only one todo tool extension should be enabled at a time).
| Key | Default | Effect |
|---|---|---|
maxWidgetLines |
12 |
Content rows the overlay may use, heading included. 0 turns the panel off; floor of 3. Read per render. |
collapseKey |
"ctrl+shift+t" |
Collapse/expand shortcut. "off" disables it. Rebind needs /reload. |
clearCompletedOnNewBatch |
true |
Retire tasks finished in a previous batch once new work starts. |
keepCompleted |
0 |
How many recently completed tasks the sweep spares. |
guidance |
— | Replaces the built-in prompt copy. Both fields are all-or-nothing. |
{
"maxWidgetLines": 8,
"clearCompletedOnNewBatch": true,
"keepCompleted": 1
}
Tool
todo with actions create (one task, or several independent tasks via
tasks[]), update, list, get, delete (tombstone), clear.
Status machine: pending → in_progress → completed, plus deleted as a
terminal tombstone. completed → in_progress is rejected. blockedBy rejects
dangling ids, deleted dependencies, self-blocks, and cycles before anything is
written.
Development
PI_TYPESCRIPT_PATH=/path/to/typescript/lib/typescript.js npm run typecheck
npm test
Licence
MIT. Original work © 2026 juicesharp; fork changes © the fork's author.