npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mmcook/pi-brainmaxx

v0.2.1

Published

A project brain for Pi: repo-local memory, reflection, and session-history rumination

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-brainmaxx

Then, inside a repo:

/brain-init
/brain-init --apply-bootstrap
/reflect
/ruminate

What to expect:

  • /brain-init scaffolds a repo-local brain/ without overwriting existing files
  • /brain-init --apply-bootstrap writes one operations note when the repo does not already have one
  • /reflect captures durable learnings from the current Pi session
  • /ruminate mines older Pi sessions for repeated corrections, preferences, and missed durable knowledge
  • the included extension reads brain/index.md and brain/principles.md on 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-brainmaxx

Why 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

  1. /brain-init creates the starter brain.
  2. Pi reads brain/index.md and brain/principles.md on normal turns.
  3. /reflect writes durable learnings from the current session.
  4. /ruminate mines 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 in README.md, and partly in old session corrections
  • Pi needs the same operational reminders again

After:

  • /brain-init --apply-bootstrap creates brain/notes/<repo-name>-operations.md
  • the extension feeds brain/index.md and brain/principles.md into normal Pi turns
  • /reflect and /ruminate give you a path to keep that memory current

Generated entrypoints:

  • brain/index.md
  • brain/principles.md

User-owned after creation:

  • brain/principles/*.md
  • brain/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
  • ruminate depends on Pi's current session format
  • if Pi changes that format, ruminate reports the mismatch and needs an update

Operational bootstrap writes exactly one note:

brain/notes/<repo-name>-operations.md

That note is user-owned after creation. pi-brainmaxx creates it once and does not rewrite it automatically.