@henryqw/pi-notes

Persistent notes in a Pi widget, managed with /note commands.

Packages

Package details

extension

Install @henryqw/pi-notes from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@henryqw/pi-notes
Package
@henryqw/pi-notes
Version
0.2.4
Published
Aug 30, 2026
Downloads
1,167/mo · 1,167/wk
Author
henrywang
License
MIT
Types
extension
Size
13.9 KB
Dependencies
1 dependency · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/notes.ts"
  ]
}

Security note

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

README

@henryqw/pi-notes

Keep persistent post-it reminders in a Pi widget. Manage them with slash commands.

Why

  • Created for: Keep a few brief post-it-style reminders visible per worktree without leaving the Pi session.
  • Advantage: Notes stay intentionally bounded and visible instead of becoming clipboard storage or history.

Install

pi install npm:@henryqw/pi-notes

Use

Surface Type Purpose
/note <text> command Add a note for current Git worktree (max 4).
/note-rm command Pick a note from current worktree to remove.
/note-clear command Clear current worktree's notes.
  • Each Git worktree has separate notes.
  • The widget numbers notes above the editor and shows at most two lines per note.
  • Each worktree has at most four notes.
  • Empty worktrees show no widget.
  • Stale files for removed repositories and worktrees are deleted silently when a session starts or notes change.

Each worktree file is validated as untrusted data. Malformed files are preserved. They block mutation for the affected worktree until fixed or reset with /note-clear.

State

The extension generates ~/.pi/agent/config/pi-notes/<worktree-sha256>.json for command-managed notes in one Git worktree.