The Mental Model
When an agent is created in AMFS, it implicitly gets a repository with amain branch. Every operation the agent performs is logged as an event on that branch:
Event Types
Every operation produces a typed event on the agent’s timeline:Querying the Timeline
Python SDK
HTTP API
MCP
Branches (Pro)
With AMFS Pro, you can create branches from an agent’s main timeline — just like Git branches. Branches let you:- Experiment safely — write to a branch without affecting main memory
- Share selectively — grant read or read/write access to specific users, teams, or API keys
- Review changes — see the diff between a branch and main before merging
- Merge or discard — bring branch changes into main, or close the branch
Creating a Branch
Writing to a Branch
All read/write operations accept abranch parameter:
Reading from a Branch
Access Control
Branch access is enforced at the API level. When a request targets a non-main branch, the caller’s API key is checked against the branch access grants:
Requests without access receive a
403 Forbidden response.
