Watch · Brain diff
Brain diff
See what changed in the brain between two timestamps. Every create, update, and delete to brain files, read from the append-only event log and grouped by day.
Where to find it
- Localhost:
/brain-diff.html?repo=<id> - API:
GET /api/brain/diff?repo=<id>&from=<iso>&to=<iso> - Keyboard: ⌘ K then
brain diff - Sidebar: Sessions → Brain diff
What it does for you
Pick a range, get one row per change.Set From and To dates, choose a repo (or all your repos), and click Run. Each row shows the time, the kind (create, update, delete), the repo, the brain file path, the actor, and a one-line summary. Rows group under the day they happened, newest day first. The range defaults to the last 7 days.
A summary bar over the window.The chips read total events, a count per kind, and the top actors by event count. So you can see at a glance whether a range was mostly new files, edits, or deletions, and who wrote them.
View the brain as it stood at that point.Each row has a "View at this point" link that opens Ask the brain scoped to that repo and date (temporal Ask), so you can read the file as it was when the change landed.
Where the data comes from
The diff reads the append-only event log at .claude/brain/events/<YYYY-MM-DD>.jsonl. Events accrue as you or Claude Code edit brain files. Results are scoped to your account, and cross-account access is rejected. If a range is empty, widen the dates or come back once the brain has changed.