← Catalog

@pedro_klein/pi-adhd

Attention management for Pi — sticky notes, side-chat, and reminders

Package

Install

Install with PiG

pig install npm:@pedro_klein/pi-adhd

Install with Pi

pi install npm:@pedro_klein/pi-adhd
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.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

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

pi-adhd

Sticky notes, side-chat, and reminders for Pi.

You know how you're deep in a conversation with the agent, and you think "oh, I should ask it to generate ADRs at the end" but you don't want to inject that now? This is for that. Capture the thought, keep working, inject it later.

Install

pi install npm:@pedro_klein/pi-adhd

Features

Sticky notes

Session-scoped notes that live outside the LLM context window. The agent never sees them until you explicitly inject one.

Three categories:

  • prompt - actions to take later (injected as a user message, triggers an agent turn)
  • reminder - things to not forget (never injected, just for you)
  • reference - context to remember (injected as passive context)

AI classification picks the category automatically when you add a note. You can override it.

Two-column TUI with vim keybindings lets you browse, edit, inject, delete, or pin notes.

Side chat

A floating conversation overlay for quick questions. Replaces the standalone btw extension.

  • Streaming responses with model picker (Ctrl+L to cycle)
  • Template modes: /btw compact summarizes your main conversation as context
  • 5 exit actions: discard, inject, summarize+inject, steer, save as note
  • No tools, just a simple LLM chat

Reminders

The status bar shows 🧠 3 notes whenever you have pending notes. After 8 assistant turns without you looking at them, it appends ⚡ and fires a toast notification so you don't forget.

When you close the session, an overlay shows any orphan notes (not pinned, not injected) and lets you pin them before they disappear.

Installation

pi install npm:@pedro_klein/pi-adhd

Or add to ~/.pi/agent/settings.json manually:

{
  "packages": ["npm:@pedro_klein/pi-adhd"]
}

Commands and shortcuts

CommandShortcutWhat it does
/noteCtrl+Shift+NOpen notes TUI
/note <text>Add a note (AI classify, preview form, confirm)
/btwCtrl+Alt+BOpen blank side-chat
/btw compactSide-chat with main conversation context
/btw explainContext + "Explain what you're doing"
/btw whyContext + "Why did you choose this approach?"
/btw helpContext + "What should I know?"

Notes TUI keybindings

KeyAction
j/k or arrowsNavigate
EnterInject selected note
eEdit note content
cCycle category
dDelete
pPin to project — press again to unpin (survives sessions)
PPin globally — press again to unpin
Esc / qClose

Configuration

In Pi's settings.json:

{
  "pi-adhd": {
    "reminderTurns": 8
  }
}

reminderTurns controls how many assistant turns pass before the reminder fires. Default is 8.

How it works

Adding a note: /note generate ADRs for auth decisions runs AI classification (LLM with a heuristic fallback), shows a preview form, you confirm.

Remembering: Note sits in memory. Status bar shows the count. After 8 turns, it nudges you.

Using it: Open the TUI, pick a note, press Enter. Prompt notes get injected as a user message (the agent responds). Reference notes get injected as context (the agent sees it silently). Reminder notes can't be injected at all.

Pinning: Notes are ephemeral by default. Press p to save to ~/.pi/adhd/<org-repo>.json (project-scoped) or P for ~/.pi/adhd/global.json. Pinned notes reload next session.

Development

pnpm test        # run tests
pnpm build       # build for publish
pnpm typecheck   # type-check without emitting

License

MIT