Without git, one wrong delete can wipe out a project. Even with git, some commands throw away work for good. These add-ons block destructive commands, so a mistake does not cost you days.
Free picks (tested by us)
Most useful first. Each one was installed on a clean test system; start with the first, try it, then add the next.
Stops the assistant before it runs a command that could delete your files.
Test: installs cleanly; its main features need an account we did not use. Not yet used on real work.
EveryoneWatch outThe install command changes your agent's hook settings. It runs a program on every shell command, so a bug in the tool could block normal work.
Anthropic's plugin adds /commit to save your changes in Git with a written message, and /commit-push-pr to also upload them and open a pull request.
Test: installs cleanly and works without an account. Not yet used on real work.
Good forBuild an appWatch outWhile a command runs, Claude may use the git commands named in its allowed-tools without asking you each time: git add, git status and git commit for /commit; also git push, gh pr create and a git checkout form for /commit-push-pr (commands/*.md)
Conductor makes your assistant write a spec and a step-by-step plan for each feature before coding, keeps project context in files and can undo work.
Test: installs cleanly and works without an account. Not yet used on real work.
Good forBuild an appWatch outIt writes a conductor/ folder into your repo and makes git commits as it works: your code changes, plan updates such as conductor(plan): Mark task '...' as complete, and chore(conductor) commits that start, finish, archive or delete a track. The default workflow also adds a git note to each task commit (skill files, workflow.md)
Free MIT plugin that stops git push and new pull requests until you answer a few questions about what changed, so you understand the code you ship.
Test: installs cleanly and works without an account. Not yet used on real work.
Good forBuild an appWatch outAdds a PreToolUse hook on Bash (bash hooks/gate.sh) that checks every shell command the assistant runs for git push and gh pr create, and blocks them (exit 2) until the current commit has a pass
For Claude CodeAlso works with Codex CLI — see all steps
Free MIT plugin that stops Claude Code writing an API key into a file git would commit, and blocks a commit or push that adds one.
Test: installs cleanly and works without an account. Not yet used on real work.
Good forSecurity testing, Build an appWatch outAdds a PreToolUse hook on Write, Edit, MultiEdit, NotebookEdit and Bash that runs node hooks/guard.mjs (15 s timeout) before each of those actions; it runs git ls-files, check-ignore and diff locally and makes no network calls
Claude Code hook that blocks rm -rf on unquoted variables, your home folder, a repo root or .git, also inside scripts, even in bypassPermissions mode.
Test: installs cleanly; its main features need an account we did not use. Not yet used on real work.
EveryoneWatch outThe install line downloads the latest release file from GitHub and runs it. --install copies it to ~/.claude/hooks/recursive_delete_guard.py, runs its self-test (temporary folders only), backs up ~/.claude/settings.json if it exists and adds one PreToolUse entry (matcher Bash|Monitor|Write|Edit|MultiEdit, timeout 10 s)