← Catalog

@henryqw/pi-notes

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

Package

Install

Install with PiG

pig install npm:@henryqw/pi-notes

Install with Pi

pi install npm:@henryqw/pi-notes
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.

{
  "image": "https://raw.githubusercontent.com/HenryQW/pi-harness/main/extensions/pi-notes/example.png",
  "extensions": [
    "./extensions/notes.ts"
  ]
}

README

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

@henryqw/pi-notes

Keep worktree reminders above the Pi editor across sessions.

Pi showing two persistent notes above the editor

Install

pi install npm:@henryqw/pi-notes

Use

Type /note , /note-rm , or /note-clear to see --project, which selects a worktree path. After a path in /note, completion offers --, which separates the path from the note text. Completion keeps paths with spaces and does not suggest note text.

Run /note Verify the migration rollback. in a Git worktree. The reminder appears immediately and in later sessions.

SurfaceTypePurpose
/note <text>commandAdd a worktree note.
/note-rmcommandSelect and remove a note.
/note-clearcommandClear worktree notes.
Notes widgetuiShow worktree notes.

Each worktree has separate notes.

Select a worktree

Use --project, which selects a project or worktree path for one command. Paths are absolute or relative to the session directory. Enter paths without shell quotes; spaces are allowed. For /note, -- separates the path from the note text.

/note --project first repo -- Verify the migration rollback.
/note-rm --project first repo
/note-clear --project first repo

Pi does not scan or select child repositories. Without a path, commands use the session directory and fail outside a Git worktree. An explicit selection does not change that default or select a project for other tools.

The widget stays with the session worktree. Explicit commands report the selected worktree's notes in a notification. Worktrees and symbolic links use the same canonical identity checks.

State and storage

Commands save notes to ~/.pi/agent/config/pi-notes/<worktree-sha256>.json.

Session start and note changes silently delete stale files for removed repositories and worktrees.

Limits and recovery

Each worktree holds at most four notes. /note trims surrounding whitespace and replaces whitespace sequences with one space. It rejects remaining control characters with Notes cannot contain terminal control characters.

The extension validates files as untrusted data. Malformed files stay unchanged and block changes for their worktree. Fix the file or reset it with /note-clear.