← Catalog

@xaccefy/pi-xtodo

Simplified todo extension for tracking multi-step progress in Pi Agent

Extension

Install

Install with PiG

pig install npm:@xaccefy/pi-xtodo

Install with Pi

pi install npm:@xaccefy/pi-xtodo
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.9.4 (README.md). PiG does not review it.

pi-xtodo

Task list for step-by-step agent work: blockedBy links (a DAG), persistent widget above the editor, TUI overlay, replay from history or save to disk.

Install

pi install npm:@xaccefy/pi-xtodo

Tool: todo

ActionPurpose
createNew task (subject needed); optional blockedBy, description, owner
updateChange fields / status / links (id needed)
listFilter by status; includeDeleted for tombstones
getFull detail including blockedBy / blocks
deleteSoft-delete (kept as a tombstone)
clearClear all tasks

Status lifecycle

pending ↔ in_progress → completed → deleted
                ↘ deleted
  • completed → pending is not allowed (make a new task to reopen).
  • Ids must be whole positive numbers ("1" works; "2.7" / "1e2" are rejected).

Dependencies

  • blockedBy / addBlockedBy / removeBlockedBy form a DAG; cycles are rejected.
  • Deleting a task (or update status: deleted) pulls its id out of every other task’s blockedBy, so dependents don’t hang on a tombstone.

Persistence

  • Main copy: the session’s tool-result history (replay on session_start / compact / tree).
  • If that’s empty, use the disk file ~/.pi/xtodo/<safe-session-id>.json.
  • Session ids are cleaned so they can’t escape the folder.

Display

  • A persistent widget above the editor shows the live list (Todos (done/total) header, tree rows, overflow collapses completed first). It auto-hides when no visible tasks remain and refreshes on every todo mutation, session_start, compact, and tree events.
  • Tool results render as a one-line summary (glyph + first line / task count). Expand the tool row (app.tools.expand keybinding) to see full lists and details. Errors render as ✗ <message>.

Command

  • /todos — overlay with the full list, grouped active → completed → deleted (esc/q/enter closes). Falls back to a notification when overlays are unavailable.

Development

bun test packages/pi-xtodo
bun run typecheck