Home / Claude Code mods / Security / rm-to-trash

rm-to-trash

rm-to-trash is a Claude Code mod by irfanfaraaz that rewrites rm into macOS trash so deletes are recoverable and stop hitting the rm deny rule.

Updated 2026-10-11

What is rm-to-trash?

rm-to-trash is a Claude Code mod by irfanfaraaz that rewrites rm into macOS trash so deletes are recoverable and stop hitting the rm deny rule. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorirfanfaraaz
Repositoryirfanfaraaz/claude-kit
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (92/100)
Rank#3,466 of 5,272 Claude Code mods; #378 in Security
Last commit2026-10-11
Hooks1 events
SeesBash calls
Draws onnothing

Is rm-to-trash safe to install?

rm-to-trash scores 92/100 on the MCPMods security check: Low risk. No checks raised a concern. 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 no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.ui.toastdraws interface

How do I install rm-to-trash?

  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/irfanfaraaz/claude-kit
    claude plugin validate ./claude-kit/mods/rm-to-trash
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/irfanfaraaz/claude-kit && claude --plugin-dir ./claude-kit/mods/rm-to-trash

Or ask Claude to set it up

Paste this into Claude Code and it installs rm-to-trash for you:

Install the "rm-to-trash" Claude Code mod from https://github.com/irfanfaraaz/claude-kit/tree/main/mods/rm-to-trash. Run claude plugin validate on it first and show me what it can access before you enable it.

More from irfanfaraaz/claude-kit

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

  • carousel-ship: After a carousel render: Caption, Queue Threads and Log ledger buttons; blocks Threads posts with a part over 500 charac (Low risk)
  • commit-guard: Never commits docs/superpowers, never pushes unless you said push, asks before committing on main/staging/prod (High risk)
  • ctx-keeper: Cache countdown, context, limits and cost band; past 350k it runs /re-fresh, copies it, compacts and pastes it back (High risk)
  • env-bootstrap: Per-project Node version on PATH and env file auto-loaded for Bash, so Claude stops typing nvm use / source .env (Review before installing)
  • git-band: Git state above the prompt: branch, upstream, ahead/behind, Claude vs your changes, PR and CI, worktree, stash; toasts w (Low risk)
  • hybrid-agents: Subagents default to Sonnet; pasting a plan path adds the hybrid rule (inline small tasks, Sonnet subagents for big ones (Low risk)
  • tool-preload: Keeps context-mode, jcodemunch, claude-mem, WebSearch, Task and Supabase tools loaded so Claude stops calling ToolSearch (Low risk)
  • turn-coach: One fork per turn: a verdict on work turns (solved, gaps, shortcuts) plus up to 3 next prompts, in one compact block abo (Low risk)