disk-cleanup
Pass
Audited by Gen Agent Trust Hub on Nov 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Utilizes local system binaries including
git,docker,ps,lsof, andghto inventory files and system state to identify reclaimable space. It can delete directories and remove git worktrees within the user's home directory. - [DYNAMIC_EXECUTION]: Dynamically constructs and executes shell commands such as
git worktree removeanddocker builder prunebased on the detected system items. While destructive actions require user confirmation, the script has the capability to perform broad deletions of caches and worktrees. - [INDIRECT_PROMPT_INJECTION]:
- Ingestion points: Processes external data including branch names, PR titles from
gh pr list, and local filenames into the agent's context (scripts/disk_cleanup.py). - Boundary markers: The script does not wrap untrusted metadata in specific delimiters or instructions when presenting the reclaimable inventory to the agent.
- Capability inventory: The agent can execute shell commands and file deletions via the script's
--applymode (SKILL.md, scripts/disk_cleanup.py). - Sanitization: Although the Python script uses shell-quoting for its own subprocess calls, the metadata is displayed directly to the agent, potentially allowing third-party data to influence the agent's subsequent decisions.
Audit Metadata