@mblarsen/pi-follow-ups

extensionmaintained

Capture follow-up notes anchored to Pi assistant messages.

by — · v0.1.0 · published 4w ago

$ pi install npm:@mblarsen/pi-follow-ups
downloads/mo
0
stars
2
last push
16h ago
open issues
0

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

No downloads in the last 12 weeks.

README

follow-ups

Capture follow-up notes anchored to the nearest previous assistant message, then pop them back into the Pi chat input later.

Use it when the agent says something you want to revisit, but you do not want to interrupt the current flow.

Install

pi install npm:@mblarsen/pi-follow-ups

Usage

CommandDescription
/follow-upOpen a composer and save a follow-up anchored to the nearest previous non-empty assistant message.
/follow-up listOpen the follow-ups list for the current session.

Follow-ups are stored in .pi/follow-ups.jsonl at the repo root, shared by linked worktrees.

When not-done follow-ups exist, the footer status item with key follow-up shows follow-up: <session-count>/<worktree-count>/<repo-count>.

List controls

KeyAction
enterPop selected follow-up into the chat input and mark it done.
pPreview the anchored assistant message in a scrollable window.
eEdit selected follow-up.
ctrl-dDelete selected follow-up with confirmation.
u / dMove selected follow-up up or down.
tabCycle between current-session, current-worktree, and whole-repo scope.
nCreate a new follow-up using the selected item’s anchor.
j / k, arrowsNavigate.
q, escape, ctrl-cClose the list, or close preview mode when previewing.

Done follow-ups stay in the list, move below active items, and are dimmed.

Anchor model

Each follow-up stores:

  • message text
  • created timestamp
  • session ID
  • Pi tree node ID
  • worktree root
  • snippet of the anchored assistant message
  • full anchored assistant text for previewing

The anchor search walks backward through the current session branch and skips empty or aborted assistant entries.

In preview mode, use j/k or arrows to scroll and p/q/escape to close.