← Catalog

pi-brain-dump

Brain Dump for pi: catches a long, loose prompt before it is sent, asks up to three gap questions, and fills the editor with a four-part brief (the job, the why, the guardrails, done means)

Package

Install

Install with PiG

pig install npm:pi-brain-dump

Install with Pi

pi install npm:pi-brain-dump
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": [
    "./dist/index.js"
  ]
}

README

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

pi-brain-dump

Brain Dump for pi: catches a long, loose prompt before it is sent, asks up to three questions about what the prompt leaves out, and fills the editor with a four-part brief — the job, the why, the guardrails, done means. You review the brief and press Enter. Ported from the Brain Dump mod for Claude Code.

Part of the coedit monorepo.

How it works

Mechanical heuristics, no model calls. A prompt is caught when it is long (25+ words), not a /command, and not already a brief. Each question is only asked when its signal is missing from the prompt:

  1. Scope — no files or paths named? "Which files or parts of the repo should this touch?" → appended to the job as Scope: …
  2. Why — no motivation? "Why does this matter?" → The why
  3. Guardrails — nothing to avoid? "Anything to avoid or keep unchanged?" → Guardrails
  4. Done — no end state? "What does done look like?" → Done means (asked when a slot frees up; at most three questions per prompt)

Escape on the first question cancels the interception (the original prompt sends unchanged); Escape later skips that section. Skipped sections get honest fallbacks, not empty headers. /brain-dump toggles it off and on.

Install

pi install npm:pi-brain-dump      # once published
pi install ./packages/pi-brain-dump   # from a checkout

Development

npm run build && pi -e ./packages/pi-brain-dump   # one-shot run
npm run check                                      # registry, typecheck, tests