Git Worktrees
Isolate parallel AI-agent or human tasks with git worktree — naming, setup, dependency handling, merge strategy, conflict avoidance and safe cleanup so concurrent work never collides in one checkout.
What it does
Isolate parallel AI-agent or human tasks with git worktree — naming, setup, dependency handling, merge strategy, conflict avoidance and safe cleanup so concurrent work never collides in one checkout.
- Category
- coregitworkflow
- Platforms
- generic
- Frameworks and tools
- git
- Capabilities
- workflowplanning
Example tasks
- “Set up three isolated worktrees so three agents can work on separate tasks in parallel.”
- “Review a pull request in a separate worktree without disturbing my current branch.”
- “Clean up finished worktrees and merge their branches in a safe order.”
Works with
Recommended alongside
Used by
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (71 lines in total).
- 01Git Worktrees
- 021. When to use a worktree
- 032. Create
- 043. Per-worktree setup
- 054. Work rules
- 065. Merge strategy
- 076. Cleanup
- 08Common mistakes
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Git Worktrees
1.0.0
- Initial release.