Snapshield snapshots a git repo before an AI coding agent session and restores it with one command

Ok-Conversation238 · reddit · 2026-07-28

A small CLI called snapshield snapshots the entire git working tree — tracked, staged, and untracked files — before an AI coding agent session starts, so a single snapshield undo can restore everything if the agent deletes files or runs a destructive reset.

The tool is a fast prototype built in an afternoon, MIT licensed, and depends only on git. The author says it is not meant to stop bad agent behavior, only to guarantee an easy rollback, and asks whether people prefer this approach over policy-based blockers.

Original post →

More from coding & agent

coding & agent channel →