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, and gh to 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 remove and docker builder prune based 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 --apply mode (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
Risk Level
SAFE
Analyzed
Nov 26, 2026, 08:55 AM