worktrunk
БесплатноБез исполняемых скриптовНе проверенGit worktree manager for parallel AI agent workflows. Use when the user needs to manage multiple working directories for parallel development, create feature…
от loonghao928 установок в других каталогахОб этом скилле
Worktrunk — Git Worktree Manager for AI Agents
One-sentence summary:
vx worktrunk(aliasvx wt) manages Git worktrees so you can run multiple AI agents in parallel without conflicts.
worktrunk is a Rust CLI tool designed for parallel AI agent workflows. It makes Git worktrees as easy to use as branches, with quality-of-life features like hooks, LLM commit messages, and per-worktree dev servers.
Why AI Agents Need This
When running multiple AI agents (Claude Code, Codex, etc.) on the same repo, they conflict:
- Agent A modifies
src/main.rs - Agent B modifies
src/main.rs→ conflict
Solution: Give each agent its own worktree (isolated working directory).
Main repo: ~/projects/my-app/ (main branch)
Agent 1: ~/projects/my-app.wt/feat-auth/ (feat/auth branch)
Agent 2: ~/projects/my-app.wt/feat-pay/ (feat/pay branch)
Installation (via vx)
vx install worktrunk
vx worktrunk --version # verify
Core Commands
wt switch — Navigate Worktrees
# Create new worktree + switch to it
vx wt switch -c feat/auth
# Switch to existing worktree
vx wt switch feat/auth
# Switch back to main repo
vx wt switch -
# Create AND launch an AI agent in one command
vx wt switch -c -x claude feat/auth
wt list — Show All Worktrees
vx wt list # compact list
vx wt list --full # with CI status, AI-generated summaries, diff preview
wt merge — Clean Merge Workflow
vx wt merge # squash merge + delete worktree + delete branch
vx wt merge --rebase # rebase merge
vx wt merge --keep # merge but keep worktree
wt remove — Clean Up
vx wt remove feat/auth # remove worktree only
vx wt remove --with-branch feat/auth # remove worktree + branch
Advanced Features
PR Checkout
vx wt switch pr:123 # checkout PR #123 into a worktree
Hooks (Automate Setup)
Configure in .worktrunk/hooks.toml:
[post_create]
command = "npm install" # auto-install deps on create
[pre_merge]
command = "vx run test" # run tests before merge
Share Build Caches Between Worktrees
# Copy node_modules/ to new worktree (skip cold install)
vx wt switch -c --copy-cache feat/auth
Per-Worktree Dev Server (Unique Port)
worktrunk can assign each worktree a unique port (via hash_port template filter):
# In package.json:
"scripts": {
"dev": "next dev -p {{ hash_port 3000 }}"
}
# Main repo → port 3000
# feat/auth → port 3217 (deterministic hash)
Typical AI Agent Workflow
# 1. Main repo: assign tasks to agents
cd ~/projects/my-app
echo "Add JWT auth" > .AITASK
# 2. Create isolated worktree for agent 1
vx wt switch -c -x claude feat/auth
# (inside worktree, agent runs autonomously)
# Agent modifies files, commits, etc.
# 3. Meanwhile, create another worktree for agent 2
vx wt switch -c -x claude feat/pay
# 4. When agents finish, merge both
vx wt merge feat/auth
vx wt merge feat/pay
vx Integration
worktrunk is installed and managed by vx:
# Install
vx install worktrunk
# Run (vx auto-installs if missing)
vx worktrunk --version
vx wt switch -c feat/auth
# Update
vx install worktrunk@latest
Command Reference
| Command | Description |
|---|---|
vx wt switch [branch] |
Switch to worktree |
vx wt switch -c [branch] |
Create worktree + switch |
vx wt switch -c -x <cmd> [branch] |
Create + run command (e.g., launch AI agent) |
vx wt switch pr:<number> |
Checkout PR into worktree |
vx wt list |
List worktrees |
vx wt list --full |
Detailed list with CI/LLM summary |
vx wt merge |
Squash merge + cleanup |
vx wt remove [branch] |
Remove worktree |
vx wt remove --with-branch [branch] |
Remove worktree + branch |
Tips for AI Agents
- Always use
vx wt switch -cto create isolated environments before making changes - Use
-x claudeto automatically launch the AI agent in the new worktree - Use
vx wt mergeinstead of manualgit merge— it handles worktree cleanup - Configure hooks in
.worktrunk/hooks.tomlto auto-install dependencies on create - Use
--copy-cacheto sharenode_modules//target/between worktrees
Delivery Surface — External Systems Are Evidence
GitHub PRs, CI runs, and dashboards are supporting evidence, not the delivery surface. The conclusion has to land where the work is tracked.
- Record the outcome once, completely — one issue comment carrying status, branch/commit/PR, what you validated, the blocker, and the next owner.
- Verify terminal state, not intermediate state. A green CI run or an open, review-ready PR is not "shipped". Confirm merged / released / deployed, then record that.
- Keep public surfaces public-safe. PR titles, bodies, and commit messages carry technical content only — no internal issue IDs, routin
Установить worktrunk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл worktrunk?
Git worktree manager for parallel AI agent workflows. Use when the user needs to manage multiple working directories for parallel development, create feature branches with isolated environments, or run multiple AI agents concurrently. Covers `vx worktrunk` and `vx wt` commands.
Как установить скилл worktrunk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл worktrunk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic