| name | brain |
| description | Use when working on a project with Brain agent memory management. Triggers on memory_commit, memory_branch tool usage, or when the project has a .memory/ directory. |
Brain — Agent Memory
Initialization
When the <skill> tag loads this file, it includes a location attribute with the
absolute path to this SKILL.md. Use that to derive the init script path:
bash "/absolute/path/to/skills/brain/scripts/brain-init.sh"
Replace /absolute/path/to/skills/brain with the skill directory shown in the
<skill> tag's location attribute (strip the /SKILL.md suffix).
Committer Configuration
memory_commit runs its distiller as a child Pi process. By default, it inherits
the currently selected model and thinking level from the active Pi session. To
choose a dedicated committer, add .memory/config.yaml:
committer:
model: google/gemini-3.6-flash
thinking: low
extensions:
- ./custom-provider.ts
Omit model or thinking to inherit the active session value. By default the
committer child starts with --no-extensions (so it does not reload Brain onto
the log it is distilling), then Brain re-adds session extensions from pi -e,
.pi/settings.json, ~/.pi/agent/extensions/, and ,
skipping this package. Set to replace that list — a YAML
list of specs, or a comma-separated string. Pi resolves provider authentication
normally; do not put API keys or other credentials in this file.