← Catalog

pi-manage-todo-list

A pi extension that replicates GitHub Copilot's manage_todo_list tool

Extension

Install

Install with PiG

pig install npm:pi-manage-todo-list

Install with Pi

pi install npm:pi-manage-todo-list
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.

Video

Declared by the package manifest. Open the file ↗

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://github.com/tintinweb/pi-manage-todo-list/raw/master/media/screenshot.png",
  "video": "https://github.com/tintinweb/pi-manage-todo-list/raw/master/media/demo.mp4",
  "extensions": [
    "./src/index.ts"
  ]
}

README

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

pi-manage-todo-list

A Pi extension that replicates VSCode Copilot Chat manage_todo_list tool. Track multi-step work with a structured todo list that persists across sessions and displays live progress in a widget above your editor.

Heads up: pi-tasks is a superior successor to this extension. New users should prefer it.

image

Features

Core manage_todo_list Tool (Copilot-compatible)

  • Two operations: read (retrieve current list) and write (complete replacement)
  • TodoItem schema: id, title, description, status (not-started | in-progress | completed)
  • Validation: Required fields, valid statuses, complete replacement only
  • Multiple in-progress: Supports parallel work and subagents
  • Smart warnings: Alerts when todo list is too small (<3 items)
  • LLM guidance: CRITICAL workflow — plan → mark in-progress → complete → mark completed → repeat

Enhanced Pi Features

  • ✓ Live widget above editor showing real-time progress with status icons
  • ✓ Session persistence across switches, forks, and tree navigation
  • ✓ Themed display with colors and strikethrough for completed items
  • ✓ User commands: /todos (toggle/stats) and /todos clear (reset)
  • ✓ Status icons: ✓ completed, ◉ in-progress, ○ not-started
  • ✓ Enhanced feedback: Progress stats and continuation instructions in tool responses
  • ✓ Small list detection: Warns when todo list might be unnecessary

Install

Option A — Install from npm:

pi install npm:pi-manage-todo-list

Option B — Load directly (dev):

pi -e ~/projects/pi-manage-todo-list/src/index.ts

Option C — Install from local folder:

pi install ~/projects/pi-manage-todo-list

Then run pi normally; the extension auto-discovers.

Usage

LLM-driven (automatic)

The agent automatically uses manage_todo_list for complex multi-step work:

You: Build a REST API with authentication, rate limiting, and tests.

Agent: I'll break this into a structured todo list:
[calls manage_todo_list with write operation]
1. ○ Design API endpoints (not-started)
2. ○ Implement authentication middleware (not-started)
3. ○ Add rate limiting (not-started)
4. ○ Write integration tests (not-started)

Now starting with the first task...
[calls manage_todo_list to mark #1 as in-progress]

The widget displays above your editor:

 Todo List — 0/4 completed
  ◉ 1. Design API endpoints
  ○ 2. Implement authentication middleware
  ○ 3. Add rate limiting
  ○ 4. Write integration tests

User commands

CommandDescription
/todosShow completion stats and refresh widget
/todos clearClear entire todo list

How It Works

State Management:

  • In-memory state per session via TodoStateManager
  • Persists via details field in tool results
  • Auto-reconstructs on session_start (covers startup/reload/new/resume/fork) and session_tree

Widget:

  • Read-only display with progress stats
  • Icons, colors, and strikethrough for visual clarity
  • Updates after every manage_todo_list call

Tool Rendering:

  • renderCall: Shows operation type and item count
  • renderResult: Expandable view with status breakdown

Comparison to Copilot

FeatureCopilotpi-manage-todo-list
Tool SchemaIdentical✓
Multiple in-progressAllowed✓
Small list warningYes (<3 items)✓
LLM WorkflowBasicEnhanced with continuation instructions
Progress StatsNot in response✓ Shows X/Y completed
UI VisibilityNoneLive widget
PersistenceConversation onlySession file + tool details
Visual FeedbackText onlyThemed icons + colors
User ControlNone/todos commands

Development

Lint / typecheck / test / build:

npm run lint        # biome check src/
npm run typecheck   # tsc --noEmit
npm test            # vitest run (end-to-end suite)
npm run build       # tsc → dist/

Test with Pi:

pi -e ./src/index.ts --print "create 3 todos: review code, write tests, deploy"

Project Structure

src/
  types.ts          # TodoItem, TodoDetails, TodoStatus
  state-manager.ts  # In-memory state + validation
  tool.ts           # manage_todo_list tool definition
  ui/
    todo-widget.ts  # Read-only widget above editor
  index.ts          # Extension entry point
test/               # End-to-end vitest suite

Changelog

See CHANGELOG.md for version history and release notes.

License

MIT (see LICENSE)

Author

tintinweb