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.