Last Look
Holds destructive commands and shows exactly what they would destroy.
The prompt
last-look / prompt
Build me a Claude Code mod called "last-look" that holds destructive commands until I approve them and shows exactly what they would destroy. What it catches (Bash tool calls)- rm -r / rm -rf, find ... -delete, git clean -fd(x), git reset --hard, git checkout -- . and git restore ., git push --force without --force-with-lease, git branch -D, and redirects that overwrite an existing file (> file). What it shows- A side pane (a band above the prompt on narrow terminals) with the command, what it would affect (each file to be deleted and the total size, or the commits or branch to be lost) and two buttons, Proceed and Cancel. Cancel has focus, so Enter cancels. What is new here- Git-aware: highlight files with uncommitted changes, because git cannot bring those back ("3 files have unsaved work you would lose").- Handles compound commands such as cd some/path && rm -rf build by measuring relative to the cd target.- An alwaysAllow setting for paths that are fine to delete without asking, e.g. dist, build, .next, coverage.- If it cannot measure a command, it still holds it and says "could not measure: review it yourself" instead of letting it through. Guardrails- A safety net, not a permission system: say so in the pane footer. Measure with read-only commands only (ls, du, find without -delete, git status, git log).