chainsaw undo

Roll back the most recent agent action (or a specific action by id)

Roll back the most recent agent action (or a specific action by id)

chainsaw undo [flags]

Undoes the inverse of a previously recorded agent action in the current org. By default, targets the ORG’s most recent undoable action — not your own: if a teammate or an agent acted after you did, theirs is the one that gets reversed. Pass –action-id to target a specific entry. Use –dry-run to preview what would be undone without applying it — worth doing first, since it names the action you are about to reverse. Permission is checked dynamically per action type: undoing a policy mutation requires policies:manage, an exception mutation requires exceptions:manage. The server returns 403 when the caller lacks the inverse permission — even when they recorded the original action.

Flags

FlagTypeDefaultDescription
--action-idstring—Action id to undo (default: the org’s most recent undoable action)
--dry-runbool—Preview what would be undone without applying
--jsonbool—Output the server response as JSON
--yesbool—Skip confirmation prompt (required on non-TTY)

The global flags apply here too.