rustbrain-0.3.4 is not a library.
rustbrain (CLI)
Command-line interface for rustbrain.
crates.io: rustbrain · binary: rustbrain · library: use rustbrain-core
Install
# pin: cargo install rustbrain --version 0.3.4 --locked
Requires a C toolchain (bundled SQLite + tree-sitter).
Typical workflow
# Point coding agents at the generated AGENTS.md (edit or template it org-wide)
AGENTS.md
Written by setup / bootstrap unless --no-agents-md. Customize with:
--agents-template PATHRUSTBRAIN_AGENTS_TEMPLATE- committed
AGENTS.template.mdor.rustbrain/AGENTS.template.md
Commands
| Command | Description |
|---|---|
setup |
One-shot init + bootstrap + sync + doctor (--no-agents-md, --agents-template) |
init |
Create .brain/db.sqlite |
bootstrap |
Scaffold docs, AGENTS.md, ignore, README harvest, AST map (--no-agents-md, --agents-template) |
sync |
Index notes + Rust AST; bake CSR mmap |
doctor |
Health + pending links (--json, --strict) |
note new |
Create note (--type, --title, --note, --sync) |
links |
List pending unresolved links |
query |
Ranked search (--no-symbols, --type, --scores, --all-workspaces) |
context |
Agent context (positional/-p, excerpts, --with-symbols, --no-hop-symbols, -F) |
watch |
Debounced live re-index |
export / import |
.brainbundle portable graph |
Full flag reference and nuances: docs/CLI.md in the repo.
Agent tip: note new
Bootstrap tip: interactive ignore
On a TTY without --yes, bootstrap asks whether to create .rustbrainignore, import .gitignore, and add recommended extras (data/, *.parquet, .env, …).
Exit codes
0— success1— error, ordoctor --strictwith pending/unhealthy state
License
MIT OR Apache-2.0