MantisDocs

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 / sourceDefault actorKindDefault actorLabel
Dashboard userpersondashboard
Agent key (mk_agent_)agentagent
Branch-only key (mk_branch_)branch_onlybranch-agent
Secret key (mk_secret_)secretsecret-key
Publishable key (mk_pub_)publishableapp

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 25

Each 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:

  1. Mint a dedicated agent or branch_only key per coding agent or CI workflow in the dashboard.
  2. Put that key in the agent's environment instead of your server's mk_secret_ key.
  3. 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.

On this page