Skip to main content
SenseLab models everything an agent learns as a Git repository. Each write, outcome, cross-agent read, and compiled brief is recorded as an event on the agent’s timeline — like commits in Git. This is what lets the loop change shared knowledge safely. A fix to what agents know can be made on a branch, replayed against the failures that prompted it, reviewed as a diff, merged when it holds up, and rolled back if it regresses — the same discipline you apply to code, applied to learning. For the dashboard side of all of this, see Learning as Git.

The Mental Model

When an agent is created in SenseLab, it implicitly gets a repository with a main branch. Every operation the agent performs is logged as an event on that branch:
Events on an agent's main branch: branch created, write, cross_agent_read, brief_compiled, outcome — each with the fields it records

Event Types

Every operation produces a typed event on the agent’s timeline:

Querying the Timeline

Python SDK

HTTP API

Response:

MCP


Branches (Pro)

On Pro, Teams and Enterprise you can create branches from an agent’s main timeline — just like Git branches. SenseLab uses them itself: every fix the repair loop proposes is drafted on its own branch and only merged into main when it ships. 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 a branch parameter:
Or via the HTTP API:

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.

Viewing the Diff

Merging

Pull Requests

For team workflows, create a PR for review before merging:

Tags and Rollback (Pro)

Tags

Create named snapshots of your agent’s memory at a point in time:

Rollback

Restore memory to a previous state:
Or roll back to a specific timestamp:

Fork (Pro)

Clone an agent’s entire memory into a new agent:

Architecture

An agent repository: a main timeline of events with an experiment/retry-v3 branch forking from one of them
The timeline records everything on main from your first write, with nothing to turn on. Branching, merging, tags, rollback, cherry-pick, fork, and branch access control are available on Pro, Teams and Enterprise — see Learning Branching for the model and Learning as Git for the dashboard.