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/Architecture

One SQLite File per Project

Rafael Arias CallesRafael Arias CallesDecember 2, 2026
One SQLite File per Project

Table of content

  • What this gives you
  • Where it stops

Share article

rusty-brain keeps one brain.db per project under ~/.rusty-brain/projects. The directory name combines the repository name with a hash of its absolute path.

What this gives you

  • Two checkouts of the same repository never share memories.
  • Each write is one transaction: the row and its full-text entry land together.
  • Every memory records the agent and the session that wrote it.
  • Removing a project's memory means removing one directory.

Where it stops

On Unix, directories are 0700 and the database is 0600. That protects against other users, within a trusted single-user setup. Agent and project fields are not authorization, and this is not a multi-tenant design.

Parquet exports are derived snapshots for tools such as DuckDB. The database stays the source of truth.

Want to see what I’m building with Rust?

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

Explore my projects