Docs
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 - Navigation: Attribution in the sidebar, then Brain diff under All tools, in the Pull requests, blame and graphs group
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.
Jump straight to that file in Ask the brain.Each row has a "View at this point" link that opens Ask the brain for that repo with the file path pre-filled as the query and the As-of date set to the day of the event, so it reads the file as it stood back then. Clear the As-of chip there to go back to the current state.
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.
Read more
Last updated