Agent activity
Track every schema change, branch action, snapshot, and write by actor — with 1-click Rewind in the dashboard.
Every action taken against a Mantis project — migrations, branch creates/resets/promotions,
snapshots, rewinds, and data writes — is recorded in _mantis.activity with who performed it,
which branch it hit, what changed, and a timestamp ready to rewind to.
Actor attribution
Mantis classifies each request by the key kind that authenticated it and an optional
Mantis-Actor header (up to 80 characters):
| Key kind / source | Default actorKind | Default actorLabel |
|---|---|---|
| Dashboard user | person | dashboard |
Agent key (mk_agent_) | agent | agent |
Branch-only key (mk_branch_) | branch_only | branch-agent |
Secret key (mk_secret_) | secret | secret-key |
Publishable key (mk_pub_) | publishable | app |
To distinguish multiple agents or scripts sharing a key, send the Mantis-Actor header (for
example Mantis-Actor: claude-code or Mantis-Actor: cursor-billing-bot). When present, its value
becomes actorLabel in the feed.
View activity & 1-click Rewind
Dashboard
Open your project's History page in the dashboard. The Agent Activity Feed displays each event with its actor badge, branch, action summary, and timestamp.
Any event that modified data includes a Rewind before this action: clicking it opens a live
rewind preview right to the moment before that action ran (rewindTo), showing exactly how many
rows will be restored, reverted, or removed before you confirm.
CLI
npx shipmantis activity
npx shipmantis activity --limit 25Each line prints the timestamp, actor label and kind, branch, action, summary, and (when rewindable)
the exact rewind --to <timestamp> value.
MCP tool
Agents can inspect recent activity with list_activity:
{
"name": "list_activity",
"arguments": { "limit": "20" }
}Pairing with scoped keys
For the clearest audit trail and strongest isolation:
- Mint a dedicated
agentorbranch_onlykey per coding agent or CI workflow in the dashboard. - Put that key in the agent's environment instead of your server's
mk_secret_key. - Review the Agent Activity Feed on History — if an agent ever writes bad rows, click Rewind before this to put the table back to the second before the agent ran.