Give the model a todo list it can keep across long sessions. rpiv-todo adds the todo tool, the /todos slash command, and a live overlay above the editor to Pi Agent - tasks survive /reload and conversation compaction, so the model picks up where it left off.
- Live overlay above the editor - see the model's plan at all times; completed items stay visible until the next agent response starts, then fall away; auto-hides when empty.
-
Survives
/reloadand compaction - tasks replay from the conversation branch, not disk. - Status states - pending, in_progress, completed, plus a deleted tombstone for audit.
-
Dependency tracking -
blockedBywith cycle detection, so the model can sequence work. - Smart truncation - 12-line collapse threshold; completed tasks drop first, pending tasks stay visible last.
pi install npm:@juicesharp/rpiv-todoThen restart your Pi session.
rpiv-todo works standalone - install only this package and you get the full English UI. Install @juicesharp/rpiv-i18n alongside it to flip the overlay heading, /todos section headers, and status words to your active locale:
pi install npm:@juicesharp/rpiv-i18nWith the SDK present, locale resolves from --locale <code> → ~/.config/rpiv-i18n/locale.json → LANG / LC_ALL → English. The /languages interactive picker and pi --locale <code> startup flag are also enabled. Without the SDK, the extension stays online and renders English at every call site - no warning, no crash. Users who installed via pi install npm:@juicesharp/rpiv-pi + /rpiv-setup get the SDK automatically.
-
todo- create / update / list / get / delete / clear tasks. 4-state machine (pending → in_progress → completed, plus deleted tombstone). SupportsblockedBydependency tracking with cycle detection. Tasks persist via branch replay - survive session compact and/reload.
todo({
action: "create" | "update" | "list" | "get" | "delete" | "clear",
// create-only
subject?: string, // required for create
blockedBy?: number[], // initial dependency ids
// create + update
description?: string,
activeForm?: string, // present-continuous label shown while in_progress
owner?: string,
metadata?: Record<string, unknown>, // pass null per key to delete that key on update
// update-only
addBlockedBy?: number[], // additive merge into blockedBy
removeBlockedBy?: number[], // additive removal from blockedBy
// update / get / delete
id?: number, // task id
// update (target) or list (filter)
status?: "pending" | "in_progress" | "completed" | "deleted",
// list-only
includeDeleted?: boolean, // default false - hides tombstones
})Valid status transitions: pending ⇄ in_progress, either → completed, any → deleted (terminal). delete keeps the task as a tombstone so historic blockedBy references still resolve.
Returns:
{
content: [{ type: "text", text: string }], // human-readable summary of the op
details: { // full snapshot - replay reads this back
action: TaskAction,
params: Record<string, unknown>,
tasks: Array<{
id: number,
subject: string,
description?: string,
activeForm?: string,
status: "pending" | "in_progress" | "completed" | "deleted",
blockedBy?: number[],
owner?: string,
metadata?: Record<string, unknown>,
}>,
nextId: number,
error?: string, // present only on validation/transition failures
}
}-
/todos- print the current todo list grouped by status.
The aboveEditor widget auto-renders whenever any overlay-visible tasks exist. Completed tasks stay visible after completion until the next agent response starts, then disappear from later overlay renders. 12-line collapse threshold; completed tasks still drop first on overflow, pending tasks truncate last. Auto-hides when the list is empty.
rpiv-todo localizes its TUI chrome (overlay heading, /todos section headers, status words) through @juicesharp/rpiv-i18n when the SDK is installed. Bundled locales: de, en, es, fr, pt, pt-BR, ru, uk. LLM-facing output (tool response envelope, reducer errors, schema descriptions) stays English by design.
The SDK is a soft optional peer - rpiv-todo loads it via dynamic import at module init. If the SDK isn't installed, every render call site returns its inline English fallback and the extension stays online with English UI; no warning, no crash. See the Install section for adding the SDK after the fact. To contribute or override translations, see the @juicesharp/rpiv-i18n README "Contributing translations" section.
MIT

