Rewind is a governance and forensics layer for autonomous coding agents. Every tool call, prompt and file change is captured through machine policy the observed user cannot disable, secrets are stripped before anything is stored, destructive commands that escape the project directory are flagged, and the whole history is searchable in plain English with citations back to the evidence.
A coding agent is not a chatbot. It holds a shell, a filesystem and your credentials, and
it acts without a human reading each step. The interesting failures are not bad answers —
they are a rm -rf that resolved somewhere unexpected, a credential written
into a file, a change to a deploy script nobody reviewed.
Those actions leave almost no trace. A terminal scrollback disappears, and the agent's own transcript lives on the machine that produced it, controlled by the person being audited. Neither is evidence.
Rewind puts the record somewhere the observed user does not control, keeps it whether or not anyone was watching, and makes it answerable months later.
&&, ;
and || first, sudo and env prefixes stripped, ~ and
.. resolved — so a destructive command hidden behind a benign one is still seen.
Authorization headers are stripped before anything is written —
not filtered at display time. The unredacted value never reaches storage.
Hooks fire on session lifecycle and every tool call. The Worker authenticates the event, strips secrets, extracts effects, runs the detection rule, and appends the event and its effects in a single transaction. Enrichment happens afterwards and never blocks capture — if the model is slow or unavailable, the record is unaffected.
Keep these separate. The ingest token will sit in a file on every observed machine; it must not be able to read anything back.
This renders the settings file and prints the sudo cp that installs it at
/Library/Application Support/ClaudeCode/managed-settings.json.
It stops there deliberately — read the file before it becomes machine policy.
Replays a realistic session ending in a flagged deletion, so the dashboard, detection and Ask can all be exercised on their own.