omp packages

pi-brain-dump0.1.0

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)

aadiverma Published 7 days ago MIT ~343 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

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