name: brain-status description: Show health of the ~/brain/ vector store — collection counts (brain_raw, brain_wiki), indexed vs unindexed files, watcher daemon status, embedding-model consistency, and privacy-mode state. Use when the user says "/brain-status" or asks "is the brain up to date?"
brain-status
Workflow
Run via Bash:
cd /Users/HAR5HA/brain && .venv/bin/python -m scripts.statusShow the output verbatim inside a fenced code block.
Escalate the following conditions with a direct recommendation:
- Unembedded files present (raw_pending > 0 or wiki_pending > 0) → offer to run:
cd /Users/HAR5HA/brain && .venv/bin/python -m scripts.reembed_all - Watcher not running (
pid: NOT RUNNINGin output) → suggest:launchctl unload ~/Library/LaunchAgents/com.harsha.brain-watch.plist launchctl load ~/Library/LaunchAgents/com.harsha.brain-watch.plist - Mixed
embedding_modelsin a collection (warning line in output) → this means dim-mismatch risk; recommend:
Warn that querying in this state returns junk results.cd /Users/HAR5HA/brain && .venv/bin/python -m scripts.reembed_all --wipe PRIVACY_STRICT=on+ OpenAI model (fatal line in output) → tell the user to either unsetBRAIN_PRIVACY_STRICTin~/brain/.envOR switchEMBED_MODELinscripts/config.pyto a local provider.hash drift> 0 → files were edited but not re-embedded (watcher missed or was down). Offer/brain-statusfollow-up withreembed_all.
- Unembedded files present (raw_pending > 0 or wiki_pending > 0) → offer to run:
Always echo the
Recovery:footer line from the script output so the user always sees the escape hatch.
Rules
- Never auto-fix. Always propose the command and wait for user approval.
- Status is read-only — never write during this skill.