Capture memory
pmb note
Jot a memory from the terminal. --pin keeps it forever; --ttl 30d auto-expires it.
pmb learn
Record a durable lesson. --failed records a failure to avoid repeating.
pmb fact
Record a standalone fact. --ttl 30d optional.
pmb remember
Store a question / answer pair.
pmb import
Import existing history and rebuild the graph after. Sources: chatgpt, claude, mem0, markdown (Obsidian vault).
pmb watch
Auto-capture new paragraphs from a notes file or folder. --once for cron.
Project tracking
A semantic layer overpmb index project: the structural index says which symbols
exist, this says why a file exists and why it changed. Local, idempotent.
pmb track changes
Summarise the intent of new git commits and link it to the files touched. Idempotent via a per-repo cursor. Flags: --since, --max-commits, --backend.
pmb track modules
A one-line “what this file does” per indexed file. Run pmb index project first. Flags: --limit, --force.
pmb track install
Install a git post-commit hook so track changes runs automatically (background, non-blocking, never clobbers an existing hook).
Resume note
A committable markdown snapshot of “where we are now”, sourced from PMB’s typed memory.pmb resume save
Write the resume note now. --path .pmb/resume.md to choose the location.
pmb resume show
Print the current resume note.
pmb resume install
Enable auto-refresh at every turn end (Stop hook). Hand-edited additions below the PMB-RESUME-MARKER line are preserved across regenerations.