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.
| Type | Claude code mod |
|---|---|
| Author | irfanfaraaz |
| Repository | irfanfaraaz/claude-kit |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Low risk (92/100) |
| Rank | #3,466 of 5,272 Claude Code mods; #378 in Security |
| Last commit | 2026-10-11 |
| Hooks | 1 events |
| Sees | Bash calls |
| Draws on | nothing |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.ui.toast | draws interface |
How do I install rm-to-trash?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)