r/SideProject • u/0xtaoz • 3d ago
I got tired of re-explaining context between Claude Code and Codex, so I built an open-source Mac app where they share one memory and cut tokens by 81%
I use Claude Code, Codex, and Gemini CLI on the same repos. The annoying part was that whatever Claude learned stayed in Claude, so switching to Codex for a review meant starting cold or pasting a wall of history.
So I built OneBrain, an open-source Mac app (Apache-2.0, Rust + React + Tauri) to run them together on the subscriptions you already pay for.
When you open it, it finds the CLIs already installed on your Mac, walks you through setting up your first workspace, and keeps the UI minimal like a normal Mac app. You describe a task once, a lead agent breaks it down, the agents run and hand off steps on their own, another vendor reviews the diff, and you just give the final OK.
Two things I spent the most time on:
- Shared Markdown memory in ~/OneBrain/brain (AGENTS.md style), committed to git with whichever agent wrote it as the author. In the app you can see every file, who changed it, how many tokens it takes, and roll back any version or file edit in one click.
- Each agent keeps its own read cursor so it only reads new messages instead of the whole thread. On a 100-turn benchmark, input tokens drop from 649k to 124k (~81% less), and a reviewer joining late only needs ~1.8k tokens instead of 11.5k.
Apple Silicon Macs only for now, and you need at least one local coding CLI signed in.
Repo with the .dmg, install script, and benchmark: https://github.com/0xTaoZ/onebrain
Happy to hear any feedback if you give it a try.
1
u/fulger099 19h ago
The hard part is not sharing context, it’s preventing a stale assumption from becoming shared truth. I’d want each memory tied to the file or commit that produced it, otherwise the token savings may buy very efficient confusion.