Memory Branching — Git for Agent Memory
Every plan records an agent’s memory as a timeline of events onmain. Branching adds the rest of the model on top: work an agent
does on a branch, review it before it lands, tag a known-good state, and roll
back to it when something goes wrong.
Branching is available on Pro, Teams, and Enterprise. You will find it under the
Git Repository section of any agent’s detail page in the dashboard.
Branches
Create a branch from an agent’smain memory and let the agent write to it
without touching what everyone else reads. Diff the branch against main to see
exactly what changed, then merge it or throw it away.
This is what makes risky work safe. An agent trying a new approach can build up
a whole set of beliefs on a branch, and if the approach turns out to be wrong,
none of it ever reaches the memory other agents rely on.
Merges default to fast-forward. Where the same key changed on both sides, the
merge reports the conflict and you choose which value wins.
Pull Requests
A branch can be opened as a pull request so a human or another agent reviews the change before it lands onmain. Reviews come in three kinds:
The dashboard lists pull requests and their reviews, and lets you create, merge,
and close them. Submitting a review is currently API-only.
Branch Access Control
Grant read or read/write access to a branch, so a branch of sensitive or in-progress memory is not readable by every agent on the account. Grants are made to an API key or a team, and each grant is eitherread or read_write.
Access is enforced by the server on API-key traffic to the entry and search
endpoints: a request targeting a non-main branch is checked against that
branch’s grants and refused with a 403 if it does not have them. Writes require
read_write — a read grant can see the branch but not change it.
