Home / Claude Code mods / Security / delete-guard

delete-guard

delete-guard is a Claude Code mod by Tihi321 that holds recursive deletes (rm -rf, Remove-Item -Recurse, rmdir /s, git clean -f), shows what would go, and offers move-to-trash with /undo-delete, delete, or refuse. Leaves a receipt.

Updated 2026-10-04

What is delete-guard?

delete-guard is a Claude Code mod by Tihi321 that holds recursive deletes (rm -rf, Remove-Item -Recurse, rmdir /s, git clean -f), shows what would go, and offers move-to-trash with /undo-delete, delete, or refuse. Leaves a receipt. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
AuthorTihi321
RepositoryTihi321/claude-mods
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (84/100)
Rank#4,843 of 5,272 Claude Code mods; #504 in Security
Last commit2026-10-04
Hooks3 events
SeesBash|PowerShell calls
Draws onnothing

Is delete-guard safe to install?

delete-guard scores 84/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.clock.after
$.command.register
$.process.runruns processes
$.session.cwd
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.logdraws interface

How do I install delete-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/Tihi321/claude-mods
    claude plugin validate ./claude-mods/plugins/delete-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add Tihi321/claude-mods && claude plugin install delete-guard@tihi-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs delete-guard for you:

Install the "delete-guard" Claude Code mod from https://github.com/Tihi321/claude-mods/tree/master/plugins/delete-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from Tihi321/claude-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • cache-clock: Shows above the prompt how long the prompt cache stays warm, the cache hit rate, context use and plan limits, with a com (Low risk)
  • ci-watch: After a git push, watches the GitHub Actions runs for that commit and reports pass or fail without you opening GitHub. (High risk)
  • eol-guard: Keeps files' git line endings (CRLF/LF) after Claude's edits and shell commands, and stops prettier checks failing on a (Review before installing)
  • mod-doctor: /mod-doctor checks every installed mod in one report: hook scripts, plugin mods loaded, Node, Claude Code version, error (Review before installing)
  • next-steps: After each turn, suggests three next prompts above the prompt box. Type 1, 2 or 3 (or click) to send one. Uses a small H (Review before installing)
  • plan-to-ticket: When you approve a plan, saves it as .claude/tickets//plan.md in the project and points Claude at that copy. (Review before installing)
  • session-ref: When a prompt names an earlier session's ID, attaches a digest of that session (prompts, files, commits, last reply) for (Review before installing)
  • ship-bar: A band above the prompt with the repo's branch, changed files, unpushed commits and PR, plus Commit & push, Open PR and (High risk)