---
title: "agent-trash-guard"
description: "Recoverable deletion for coding agents: move files to trash, list them, and restore them with agent-trash."
canonical: https://agentpluginsdirectory.com/plugins/agent-trash-guard
last-updated: 2026-09-18
---

# agent-trash-guard
Recoverable deletion for coding agents: move files to trash, list them, and restore them with agent-trash.
- Slug: agent-trash-guard
- Publisher: Hermes Labs
- Repository: https://github.com/hermes-labs-ai/agent-trash-guard
- Manifest: plugin.json
- Version: 0.1.3
- License: MIT
- Category (editorial): other
- Skills: 1 (agent-trash-guard)
- MCP servers: 0
- Stars: 0
- Repository created: 2026-09-05
- Repository last pushed: 2026-09-18
- Publisher type: Organization
- Listing: https://agentpluginsdirectory.com/plugins/agent-trash-guard
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json

## What agent-trash-guard does, in the publisher's words

A safety net for coding-agent sessions: permanent deletes get blocked, and files get moved to a recoverable trash directory instead.

Agents are good at cleaning up. Sometimes they clean up the wrong thing, and rm has no undo. This project provides native pre-tool adapters for Claude Code, Codex, and Gemini CLI, backed by one detector and the agent-trash CLI. Every guarded "delete" becomes a move you can inspect and reverse.

The project was originally published as claude-trash-guard. GitHub redirects that historical repository URL, and claude-trash remains as a compatibility command. New integrations and documentation use the platform-neutral agent-trash-guard name.

From the project README, punctuation lightly normalized. Full text: https://raw.githubusercontent.com/hermes-labs-ai/agent-trash-guard/HEAD/README.md

## Skills

- agent-trash-guard: Move files to recoverable trash instead of deleting them, list what an agent trashed, and restore it with the agent-trash CLI. Trigger when trash-guard blocked a permanent delete in a shell command, when the user asks to delete or clean up files during an agent session, or when the user wants to se…

Descriptions come from the frontmatter of each SKILL.md, punctuation lightly normalized.
