rusty-brain is a local memory for AI coding agents. Install it from a checkout of the repository:
cargo install --path .
rusty-brain setup-mlx # default Metal model, one time, needs uv
rusty-brain path # shows where the data livesWithout Apple Metal, set RUSTY_BRAIN_MODEL=BGESmallENV15Q before creating a brain to use a CPU model.
Try it from the terminal
rusty-brain remember "We reuse one DuckDB instance per customer" --tags decision
rusty-brain recall "how do we route duckdb jobs"
rusty-brain statsMount it over MCP
For Claude Code, run this inside the project:
claude mcp add rusty-brain -e RUSTY_BRAIN_AGENT=claude-code -- rusty-brain serveAny other MCP client can start rusty-brain serve over stdio. Set its working directory to the project, because that directory selects the brain.