npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pi9/todo

v0.3.2

Published

Phased, session-aware todo planning for Pi agents.

Readme

@pi9/todo

A phased, session-aware todo tool for the Pi coding agent, with adaptive system reminders and a persistent widget that keeps the current plan visible while you work.

A phased todo plan showing completed, active, and pending tasks

Features

  • Phased planning. Organize work into concise phases with immutable task names, detailed descriptions, and explicit pending, in_progress, completed, or cancelled statuses.
  • Context-efficient tool. A compact, purpose-built tool description gives the model clear planning controls while consuming minimal context-window space.
  • Session-aware state. Todo snapshots travel with Pi session branches, so /tree navigation restores the plan associated with each branch.
  • Persistent widget. Keep active work visible above or below the editor, with configurable placement, task limits, and status glyphs.
  • Adaptive reminders. System reminders refresh the model's awareness of stale plans during long runs and restore the full plan after context compaction.
  • Native tool rendering. Compact tool output summarizes active work and expands into phase progress while respecting configurable visibility settings.

Install

pi install npm:@pi9/todo

For local development:

pi -e ./packages/todo/src/index.ts

UI settings

The settings loader reads global settings from ~/.pi/agent/todo/settings.json. For a trusted project, .pi/todo/settings.json overrides the global values. Pi's project-trust decision is required before the project file is read; an untrusted project cannot affect these settings.

{
  "widgetPlacement": "aboveEditor",
  "maxVisibleTasks": 5,
  "fallbackGlyphs": false,
  "toolVisibility": "set-only",
  "dynamicReminders": true,
  "reminderMinTurns": 4,
  "reminderMaxTurns": 8,
  "reminderOutputTokens": 16000,
  "reminderMaxPerRun": 2
}

widgetPlacement accepts "aboveEditor", "belowEditor", or "off". maxVisibleTasks must be a positive integer, and fallbackGlyphs must be a boolean. Nerd Font status glyphs are the default; set fallbackGlyphs to true to use broadly supported Unicode symbols instead.

toolVisibility controls Todo tool output in the terminal UI only:

  • "all" shows every Todo action.
  • "set-only" shows only set operations.
  • "none" hides normal Todo activity.

Errors are always shown, while hidden successful operations take up no terminal space. Expanded output stays synchronized with the latest plan on the active branch.

Dynamic reminders keep the model aware of the plan during longer runs without adding messages to session history. The turn, output-token, and per-run settings control their cadence; set dynamicReminders to false to disable them.

After Pi compacts the context window, the extension supplies the full phased plan once on the next turn so work can continue without losing task state. This does not alter Pi's compaction summary or session history.

Settings load when a session starts. The widget refreshes after todo changes and /tree navigation. Active tasks keep their normal status glyph; when work is active, a separate indented current-work line below the plan uses Pi's standard spinner and dim text. After all tasks become terminal, the widget shows the final phase summary for five seconds before clearing. Set widgetPlacement to "off" to disable the widget.

Development

npm run typecheck --workspace @pi9/todo
npm test --workspace @pi9/todo