### Development setup Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/CONTRIBUTING.md Clone the repository and run the test suite. No install step is required; the project has no dependencies beyond Python 3 (stdlib only) and bash. ```bash git clone https://github.com/hermes-labs-ai/agent-trash-guard.git cd agent-trash-guard ./tests/run.sh ``` -------------------------------- ### Manual Claude installation fallback Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/README.md Clones the repository, runs tests, and installs the Claude adapter. install.sh symlinks claude-trash into ~/.local/bin and registers the adapter in ~/.claude/settings.json, writing a timestamped backup first. Restart any running Claude Code session afterwards. ```bash git clone https://github.com/hermes-labs-ai/agent-trash-guard.git cd agent-trash-guard ./tests/run.sh ./install.sh ``` -------------------------------- ### Install Gemini CLI extension Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/README.md Installs the Agent Trash Guard extension for Gemini CLI from the main branch. The --ref main flag is required because without it, Gemini CLI installs the latest release archive, and releases up to v0.1.2 predate the skill. ```bash gemini extensions install https://github.com/hermes-labs-ai/agent-trash-guard --ref main ``` -------------------------------- ### Update and uninstall Gemini CLI extension Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/README.md Updates or uninstalls the Agent Trash Guard extension for Gemini CLI. Restart Gemini CLI after installation or update for changes to take effect. ```bash gemini extensions update agent-trash-guard ``` ```bash gemini extensions uninstall agent-trash-guard ``` -------------------------------- ### Run the test suite Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/CONTRIBUTING.md Run these commands to execute the test suite before submitting a pull request. The first command covers the hook's block/allow matrix, the full put/list/restore/empty lifecycle, and the quality rail's review range. The second is a self-contained, deterministic proof that a blocked delete and a full trash round-trip lose nothing. ```bash ./tests/run.sh ./tests/recoverability-demo.sh ``` -------------------------------- ### Manual uninstall: ./uninstall.sh Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/README.md Run the uninstall script to remove the hook entry and symlink. The trash directory is left intact. ```bash ./uninstall.sh ``` -------------------------------- ### Evaluate local checkout with Claude Code Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/README.md Clone the repository, run the test suite, and launch Claude Code with the local plugin directory. Use this to test the agent-trash-guard plugin locally. ```bash git clone https://github.com/hermes-labs-ai/agent-trash-guard.git cd agent-trash-guard ./tests/run.sh claude --plugin-dir "$PWD" ``` -------------------------------- ### Delete recoverably with agent-trash put Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/skills/agent-trash-guard/SKILL.md Moves one or more quoted paths into the trash directory. Refuses missing, duplicate, or nested paths and moves nothing on refusal. On success prints 'trashed N item(s) -> ', the original absolute paths, and 'restore with: agent-trash restore '. Report the id to the user. ```bash agent-trash put '' ['' ...] ``` -------------------------------- ### Restore trashed items with agent-trash restore Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/skills/agent-trash-guard/SKILL.md Moves every item in the entry back to its original path, recreating parent directories. Exits 0 only when every item is restored. Exit 1 with 'no such entry' means wrong id; exit 1 with 'destination exists, skipping (use --force)' means a newer file occupies the path. Use --force only with user agreement; it moves the newer file to a .displaced file not shown in list. ```bash agent-trash restore '' ``` -------------------------------- ### List trashed entries with agent-trash list Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/skills/agent-trash-guard/SKILL.md Prints one line per entry with id, item count, and timestamp, followed by original absolute paths. If trash is empty, prints 'trash is empty ()'. Ids sort oldest first. ```bash agent-trash list ``` -------------------------------- ### Regenerate platform bundles Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/CONTRIBUTING.md Run these commands to regenerate the platform bundles after modifying hooks/trash_guard.py, bin/, lib/, or anything under integrations/claude/ or integrations/codex/. The --check flag verifies that the generated copies are up to date. ```bash python3 tools/build_platform_bundles.py python3 tools/build_platform_bundles.py --check ``` -------------------------------- ### Escape hatch: TRASH_GUARD_ALLOW=1 rm -rf node_modules Source: https://github.com/hermes-labs-ai/agent-trash-guard/blob/main/README.md Prefix a permanent delete command with TRASH_GUARD_ALLOW=1 to explicitly approve it. The override is visible in the command itself, appearing in session logs and permission prompts. ```bash TRASH_GUARD_ALLOW=1 rm -rf node_modules ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.