How I split a personal AI system into a public engine and a private memory

Over the past few weeks I have been building brain: a personal AI workspace that several agents share, running on a small always-on Linux server. Today I made its engine public at github.com/iexarchos/brain.

What it is

At its core, brain is a folder of plain Markdown notes in git: one note per project, person, organization or topic, linked with wikilinks. Any agent CLI (Claude Code, Codex, and others) works in the same directory and reads the same instructions file, so switching models means running a different command, not migrating a memory.

Around the notes sit a few pieces that make it useful day to day:

  • A memory index. Hindsight runs locally and turns past sessions into facts that are recalled at the start of every new one. It is a derived index: the notes stay the source of truth, and the index can be rebuilt from them.
  • A nightly reflect job. Each night an agent folds new facts from the day’s sessions into the notes and opens a pull request. Nothing automated reaches the notes without my review.
  • A multi-model council. For decisions that deserve a second opinion, the same question goes to two models independently, and a third call merges the answers, with a claim-by-claim agreement table. When the models disagree, I know to be careful.
  • Phone access over Signal. A small bridge lets me message the system from my phone, end-to-end encrypted.

Everything runs through subscription CLIs rather than pay-per-token APIs, on a host with 1 GB of RAM.

The hard part: sharing the design without the data

A personal system is, by definition, full of personal data. I wanted to share the design without sharing myself, so I split it into two repositories:

  • The engine (public): scripts, prompts, skills, service files and documentation.
  • The data (private): the notes, archived answers, memory backups, and a small file of personal settings.

The data repository is checked out inside the engine’s folder, and git ignores it there. The useful consequence is that the file you touch decides where a change goes: a new fact is committed to the private repository, a fix to a script to the public one. There is no filtering or mirroring step to get wrong.

The design alone doesn’t stop an agent from writing my name into a public commit, so the engine has a guard: commit and push hooks check every change, message and author against a private list of identifying strings, plus common secret formats, and block anything that matches. The list itself lives in the private repository, so it can’t leak either.

Try it

The repository includes a skeleton for the private half and a script that sets it up for a new owner. If you build something with it, or have ideas for the memory design, I’d be glad to hear about it.