Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By vladolaruv1.14.1MITIn 1 marketplace
Stops Claude from running destructive commands such as rm -rf on your home directory, disk formatting or data exfiltration. A hook runs before every Bash, Read, Write and Edit call and asks before risky actions.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
YOLO mode safety net — because shipping fast shouldn't mean losing your home directory.
YOLO mode is great. Claude executes commands without asking, you move fast, life is good. Until it's not.
Real incidents have wiped home directories, deleted production databases, and published private packages to the world. All it takes is one rm -rf / or an accidental npm publish and "fast" turns into "catastrophic." I could do with less of those moments.
A PreToolUse hook evaluates Bash calls, Claude Code Read/Write/Edit calls,
and Codex apply_patch targets against safety rules. Four tiers, checked in
order - first match wins:
git checkout -b, rm -rf /tmp/, --force-with-lease)The hook auto-wires on install via hooks.json. Codex asks you to review and
trust plugin hooks before running them. Codex PreToolUse hooks cannot surface
an interactive ask decision, so ask-tier matches become explicit blocks in
Codex. The denial names the matching rule and explains how to opt in through
configuration when the action is intentional.
The runtime entrypoint stays at scripts/pre-tool-use-safety.py, but the implementation now lives in scripts/yoloing_safe/:
config.py — defaults, config loading, self-protection constantsshell.py — command normalization, tokenization, heredoc strippingpaths.py — path extraction and sensitive target handlingregistry.py — declarative detector compilation and custom detector wrappingruntime.py — allow/block/ask/allow flowrules/ — domain rule modules plus the assembled ordered RULES registryThis keeps the hook path stable for both hosts while making rule maintenance less error-prone.
| Category | Examples |
|---|---|
| Destructive deletion | rm -rf /, rm -fr /home (compound commands like &&, ;, pipes/background ops, and newline-separated commands are split and each segment is evaluated) |
| Alternative deletion | find / -delete, xargs rm, eval "rm" |
| Disk formatting | mkfs.ext4 /dev/sda1, dd of=/dev/sda |
| Network exfiltration | curl -d @/etc/passwd, curl -F, curl -T, scp upload, rsync upload, piping to nc, curl | bash, wget | bash |
| Credential access | .env, .pem, id_rsa, id_ecdsa, .p12, .pfx, .jks, .keystore via any tool (configurable) |
| Package publishing | npm publish, twine upload, gem push |
| SSH remote destruction | ssh host "rm -rf /", ssh host rm -rf / (quoted or unquoted), ssh host "DROP DATABASE" |
| GitHub repo deletion | gh repo delete |
| Protected paths | ~/.ssh/, ~/.gnupg/, ~/.aws/, ~/.config/gcloud/ (configurable) |
| Bare git push | git push, git push origin (no explicit branch — use git push origin HEAD) |
| Self-protection | Write/Edit/Bash writes or destructive mutations to the hook's own config or plugin files (non-configurable) |
| Category | Examples |
|---|---|
| Git force push | git push --force (not --force-with-lease — that's the safe alternative) |
| Git hard reset | git reset --hard, git reset --merge |
| Git discard changes | git checkout -- ., git restore (without --staged only) |
| Git stash/history | git stash drop, git filter-branch |
| Git config | git config --global, git config --system |
| Other git | git clean -fd, git branch -D, git remote remove |
| Permissions | chmod 777, setuid, recursive chown |
| Brew | brew install, brew uninstall, brew upgrade |
| Docker | docker system prune, docker-compose down -v |
| Database | DROP TABLE, TRUNCATE, DELETE without WHERE |
| Infrastructure | terraform destroy, terraform apply -auto-approve |
| GitHub CI/CD | gh secret delete, gh workflow disable |
| Sensitive writes | Shell init files (~/.bashrc, ~/.zshrc), git hooks (.git/hooks/*), home-directory ~/.gitconfig, ~/.npmrc via Write/Edit or Bash writes like echo ... > ~/.bashrc or `echo ... > |
| Shell subshell execution | bash -c, sh -c, zsh -c (interpreter one-liners like python3 -c are allowed — see Known Limitations) |
| Interpreter heredocs | bash << 'EOF', python3 << 'EOF', mysql << 'EOF' (writer heredocs like cat > are not flagged) |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub vladolaru/claude-code-plugins --plugin yoloing-safePlugins from other owners that cover similar ground