worktree-janitor

Pass

Audited by Gen Agent Trust Hub on Oct 15, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The core logic in scripts/worktree_janitor.py and its tests involves executing git commands via subprocess.run. The implementation passes arguments as lists and avoids using shell=True, which mitigates the risk of command injection from maliciously crafted filenames or branch names.
  • [SAFE]: The skill incorporates multiple defensive programming patterns, such as directory traversal prevention using path.resolve() and path containment checks to ensure file operations are restricted to the intended directories. It also implements secure file handling with restrictive permissions and atomic updates for its state files.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 15, 2026, 12:05 AM