Skip to content

Add brain CLI, upgrade/uninstall, and gstack-style install flow & docs - #1

Merged
criptogus merged 1 commit into
mainfrom
claude/hermes-repository-improvements-x27cyz
Aug 3, 2026
Merged

criptogus merged 1 commit into
mainfrom
claude/hermes-repository-improvements-x27cyz

Conversation

@criptogus

Copy link
Copy Markdown
Owner

Makes brainstack as complete and easy to install on Hermes as gstack, following its patterns (one-line install, single CLI entry point, upgrade/uninstall commands, layered docs).

What's new

  • brain CLI (bin/brain) — single entry point for the whole engine: brain inbox | dream | doctor | search | index | compile | decision | session | sync | status | log | upgrade | uninstall | help. Automatically uses the setup venv when present; works both from the install dir and the repo checkout.
  • brain uninstall (bin/brainstack-uninstall) — clean removal of skills, engine, launcher and cron; the vault is never touched.
  • brain upgrade (bin/brainstack-upgrade) — git pull + non-destructive re-setup, using the repo path recorded at install time.
  • setup improvements — links brain into ~/.local/bin, records the repo path, adds --upgrade (refresh skills/bin in place) and --embeddings (venv + sentence-transformers for real semantic search), and fixes a bug where flags like --dry-run were parsed as the vault path.
  • README restructured gstack-style — 30-second install one-liner up top, "See it work" section with conversational and CLI examples, docs index, short troubleshooting, updated roadmap (brain CLI + upgrade/uninstall now shipped).
  • docs/SKILLS.md — deep dive on all 13 skills: the pipeline, trigger phrases, and the skill→script→CLI mapping.
  • docs/TROUBLESHOOTING.md — skills not loading, PATH, weak search, cron, sync, uninstall.

Testing

  • bash -n on all shell scripts.
  • Full end-to-end setup in a sandboxed $HOME: 13 skills installed, vault scaffolded, brain symlink resolves and brain doctor runs against the scaffolded vault.
  • brain help, unknown-command exit code, and setup --dry-run verified.
  • Uninstall verified: removes skills/engine/launcher, leaves the vault.

🤖 Generated with Claude Code

https://claude.ai/code/session_01A74XFSNNVBc1YcG4R7KgQ6


Generated by Claude Code

- bin/brain: single entry point for the whole engine (inbox, dream,
  doctor, search, index, compile, decision, session, sync, upgrade,
  uninstall), auto-using the setup venv when present
- bin/brainstack-uninstall: clean removal of skills, engine, launcher
  and cron - the vault is never touched
- bin/brainstack-upgrade: git pull + non-destructive re-setup
- setup: installs the brain launcher into ~/.local/bin, records the
  repo path for upgrades, adds --upgrade (refresh in place) and
  --embeddings (venv + sentence-transformers), and no longer
  misparses flags as the vault path
- README: gstack-style structure - 30-second install, 'See it work'
  examples, docs index, short troubleshooting, updated roadmap
- docs/SKILLS.md: deep-dive on all 13 skills, pipeline and CLI mapping
- docs/TROUBLESHOOTING.md: skills not loading, PATH, search quality,
  cron, sync, uninstall

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A74XFSNNVBc1YcG4R7KgQ6
@criptogus
criptogus marked this pull request as ready for review August 3, 2026 19:48
@criptogus
criptogus merged commit 4953476 into main Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants