Rafael Arias Calles
  • About me
  • Articles
GitHubContact

Projects

Built by Rafael

rusty-brainAll projects
About meArticles
GitHubContact
Rafael Arias Calles

MLOps, inference systems, and Rust notes.

Explore

ProjectsArticlesAbout me

Connect

Contactrusty-brain

Elsewhere

GitHubLinkedIn

© 2026 Rafael Arias Calles. All rights reserved.

Articles/Guides

Give Your Coding Agent a Local Memory

Rafael Arias CallesRafael Arias CallesDecember 3, 2026
Give Your Coding Agent a Local Memory

Table of content

  • Try it from the terminal
  • Mount it over MCP

Share article

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 lives

Without 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 stats

Mount it over MCP

For Claude Code, run this inside the project:

claude mcp add rusty-brain -e RUSTY_BRAIN_AGENT=claude-code -- rusty-brain serve

Any other MCP client can start rusty-brain serve over stdio. Set its working directory to the project, because that directory selects the brain.

Want to see what I’m building with Rust?

Explore the products, open-source tools, and engineering work behind these articles.

Explore my projects