About roli-lpci/agent-trash-guard
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, Cursor, Gemini CLI, OpenClaw, and Pi, backed by one detector and the agent-trash CLI. Recognized guarded delete commands are blocked before execution; use agent-trash put to make the recoverable move you can inspect and reverse. agent-trash gc reclaims the space those moves accumulate without ever reclaiming work that git cannot prove is safe to lose.