using-git-worktrees
Pass
Audited by Gen Agent Trust Hub on May 27, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: Orchestrates various shell commands to manage Git worktrees, including
git worktree add,git rev-parse, andgit check-ignore. - [COMMAND_EXECUTION]: Automatically modifies repository configuration by adding worktree directories to
.gitignoreif they are not already ignored, and commits the change to maintain repository cleanliness. - [EXTERNAL_DOWNLOADS]: Invokes package managers such as
npm,pip,poetry, andgoto download and install project dependencies when setting up the newly created worktree. - [COMMAND_EXECUTION]: Executes project-defined test suites (e.g.,
npm test,cargo test,pytest) to verify that the worktree baseline is clean before starting feature development.
Audit Metadata