--- name: memory description: Project memory powered by Hippo. Use when starting a session, after learning something, after hitting an error, or when the user mentions memory/remember/recall. Auto-invoked at session start. --- # Hippo Memory Make your agent's memory work like a brain. Hippo is long-term memory for coding agents. Memories decay over time unless retrieved. Errors stick longer. Sleep consolidates. ## At session start (MANDATORY) Before doing any work, load relevant context: ```bash hippo context --auto --budget 1500 ``` Read the output. These are things the project has learned from past sessions. ## When you learn something non-obvious ```bash hippo remember "" --tag ``` ## When you hit an error or unexpected failure ```bash hippo remember "" --error ``` The `--error` flag doubles the half-life. Hard lessons don't fade quietly. ## After completing work successfully ```bash hippo outcome --good ``` If the recalled memories were irrelevant: ```bash hippo outcome --bad ``` ## When stuck or hitting repeated errors ```bash hippo recall "" --budget 2000 --why ``` ## When making an architectural decision ```bash hippo decide "" --context "" ``` Decisions get a recall boost so they surface when relevant, and stay active until superseded. ## When migrating or replacing a tool ```bash hippo invalidate "" --reason "migrated to " ``` Or let `hippo learn --git` detect it automatically from migration commits. ## After significant coding sessions ```bash hippo learn --git ``` This scans recent commits, auto-extracts lessons, and invalidates memories about replaced tools. ## Export memories ```bash hippo export memories.json hippo export --format markdown memories.md ``` ## Check memory health ```bash hippo status ```