Skip to content
The Daily Repo

mishoko / claude-code-recursive-delete-guard

Claude Code hook that blocks unquoted rm -rf $VAR and repo-root deletes, even in bypassPermissions mode

Why this job: works in the areas we cover, but does not say which job it does

What it does

  • Other platforms and agents. Windows (cmd.exe, PowerShell Remove-Item -Recurse, C:\ paths) and the Codex CLI
  • Values the shell only knows at run time. A command built from a variable whose value is not visible in the same
  • Deletes by other programs. python -c 'shutil.rmtree(…)', node, perl, make clean, npm run clean,
  • find and xargs fed through other filters (find … | grep … | xargs -0 rm -rf): only find and ls piped
  • Names more than one level down. A directory is protected when it is a git work tree, or when a directory

Get started

No single install command. Read the steps in the README (opens in new tab)

Maintenance
Active
Last commit 4 days ago
Stars
16
+8 this week
Licence
MIT
Allows business use
Downloads for
None listed
No release files
Latest version
v1.2.0
Released 4 days ago
Built with
Python
100% of the code

Is it looked after?

Contributors
0
Last 90 days
Issues
None
No issues filed
Pull requests
0 merged
0 waiting
Releases
1
1 in the last year
  • No contributing guide
  • No security policy
  • No code of conduct

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
runesleo / claude-code-workflow71121 days agoMITNo downloads
More: languages, topics and project record

Languages

  • Python 100%

Topics

  • ai-agents
  • ai-safety
  • claude-code
  • claude-code-hooks
  • shell

Project record

  • JobOther AI tools
  • StatusNew to our list
  • Commits10
  • Forks0
  • Watching0
  • CreatedNov 4, 2026
  • First seen by usNov 7, 2026
  • CheckedNov 8, 2026

Type to search.

Try