@juicesharp/rpiv-todo

Pi extension. A todo list for the model, rendered as a live overlay that survives /reload and conversation compaction.

Package details

extension

Install @juicesharp/rpiv-todo from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@juicesharp/rpiv-todo
Package
@juicesharp/rpiv-todo
Version
1.1.5
Published
May 5, 2026
Downloads
9,144/mo · 5,058/wk
Author
juicesharp
License
MIT
Types
extension
Size
65.2 KB
Dependencies
0 dependencies · 5 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

rpiv-todo

npm version License: MIT

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.

Todo overlay widget above the Pi editor

Features

  • 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 /reload and compaction - tasks replay from the conversation branch, not disk.
  • Status states - pending, in_progress, completed, plus a deleted tombstone for audit.
  • Dependency tracking - blockedBy with cycle detection, so the model can sequence work.
  • Smart truncation - 12-line collapse threshold; completed tasks drop first, pending tasks stay visible last.

Install

pi install npm:@juicesharp/rpiv-todo

Then restart your Pi session.

Optional: localization

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-i18n

With the SDK present, locale resolves from --locale <code>~/.config/rpiv-i18n/locale.jsonLANG / 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.

Tool

  • todo - create / update / list / get / delete / clear tasks. 4-state machine (pending → in_progress → completed, plus deleted tombstone). Supports blockedBy dependency tracking with cycle detection. Tasks persist via branch replay - survive session compact and /reload.

Schema

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
  }
}

Commands

  • /todos - print the current todo list grouped by status.

Overlay

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.

Localization

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.

License

MIT