What it does
The create-worktrees command uses GitHub CLI to fetch all open pull requests, then creates a git worktree for each pull request's branch in a ./tree/<BRANCH_NAME> directory.
A git worktree is a separate working directory linked to the same repository, so each branch can be checked out side by side. This suits cases where several open pull requests need to be examined at once without switching branches in a single checkout.
Running it requires GitHub CLI to be available so the command can list the open pull requests.
Limitations and requirements
Requires GitHub CLI to fetch the open pull requests.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- AI Templates (aitmpl) first seen 13 Nov 2026 · last seen 19 Nov 2026 · its page on the source · figures reported by the source: aitmpl downloads 375
create-worktrees
This command fetches all open pull requests using GitHub CLI, then creates a git worktree for each PR's branch in the ./tree/<BRANCH_NAME> directory.
As shown on www.aitmpl.com when we last read it