@mmcook/pi-brainmaxx
v0.2.1
Published
A project brain for Pi: repo-local memory, reflection, and session-history rumination
Maintainers
Readme
pi-brainmaxx
Pi should not start every session blank.
@mmcook/pi-brainmaxx is a project brain for Pi. It gives each repo a
small, inspectable brain/ that Pi reads on normal turns, extends with
/reflect, and mines with /ruminate.
In 2 minutes
Install from npm, a local path, or the public GitHub repo:
pi install npm:@mmcook/pi-brainmaxx
pi install /absolute/path/to/pi-brainmaxx
pi install git:https://github.com/MylesMCook/pi-brainmaxxThen, inside a repo:
/brain-init
/brain-init --apply-bootstrap
/reflect
/ruminateWhat to expect:
/brain-initscaffolds a repo-localbrain/without overwriting existing files/brain-init --apply-bootstrapwrites one operations note when the repo does not already have one/reflectcaptures durable learnings from the current Pi session/ruminatemines older Pi sessions for repeated corrections, preferences, and missed durable knowledge- the included extension reads
brain/index.mdandbrain/principles.mdon normal turns
pi -p works too:
pi -p "/brain-init"
pi -p "/brain-init --apply-bootstrap"If you want the package attached to project settings instead of your global Pi agent state, use:
pi install -l npm:@mmcook/pi-brainmaxxWhy this exists
Most repo context is real, but scattered. Some of it lives in AGENTS.md. Some
of it lives in README.md. Some of it only exists in corrections you gave Pi
last week and now have to repeat. pi-brainmaxx is for turning that sprawl into
a small brain Pi can actually use.
Why not just use AGENTS.md?
You still should use AGENTS.md for stable instructions. pi-brainmaxx is not
a replacement for it. The value here is narrower and more specific: Pi-native
entrypoints, a lightweight operations note, and a workflow for capturing and
mining learnings over time.
AGENTS.md still carries:
- stable operating rules
- environment facts
- house style and constraints
pi-brainmaxx adds:
- repo-local entrypoints Pi reads on normal turns
- an operations note bootstrapped from existing docs
- learnings captured with
/reflect - patterns recovered later with
/ruminate
How it works
/brain-initcreates the starter brain.- Pi reads
brain/index.mdandbrain/principles.mdon normal turns. /reflectwrites durable learnings from the current session./ruminatemines repo-scoped Pi history when enough sessions exist.
This package stays intentionally small. It does not try to become another orchestrator, another dashboard, or a generic memory platform.
With regard to the core idea, pi-brainmaxx is inspired by
brainmaxxing by poteto. The
implementation here is Pi-native and specific to this package.
Example outcome
Before:
- the remote workflow lives partly in
AGENTS.md, partly inREADME.md, and partly in old session corrections - Pi needs the same operational reminders again
After:
/brain-init --apply-bootstrapcreatesbrain/notes/<repo-name>-operations.md- the extension feeds
brain/index.mdandbrain/principles.mdinto normal Pi turns /reflectand/ruminategive you a path to keep that memory current
Generated entrypoints:
brain/index.mdbrain/principles.md
User-owned after creation:
brain/principles/*.mdbrain/notes/<repo-name>-operations.md
When pi-brainmaxx updates brain/index.md and brain/principles.md, treat
them as generated entrypoints. Edit the linked principle files and notes, not
the generated indexes themselves.
Current limits
- Pi-only, not a generic agent-memory layer
- Repo-local, not a hosted memory service
ruminatedepends on Pi's current session format- if Pi changes that format,
ruminatereports the mismatch and needs an update
Operational bootstrap writes exactly one note:
brain/notes/<repo-name>-operations.mdThat note is user-owned after creation. pi-brainmaxx creates it once and does
not rewrite it automatically.
