Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Contributing

We welcome contributions! The project is organized as a Rust workspace with 29 crates.

Getting started

git clone https://github.com/keshavashiya/brain.git
cd brain
cargo build --workspace
cargo test --workspace

Development tools

just build       # Build workspace (debug)
just test        # Run all tests
just ci          # fmt + clippy + tests
just fmt         # Format code
just lint        # Clippy
just serve-dev   # Start with debug logging

PR checklist

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace
  • One intent per PR
  • Conventional commits (feat:, fix:, docs:, etc.)

Key conventions

  • Single-word crate names matching folder names
  • brainos- package prefix for crates.io
  • Every capability lives in its backend crate, not in cli
  • Operator commands (init, doctor, service, vault, config) stay CLI-only
  • CI parity enforced before every push

Documentation