What's the best way to integrate this with a workflow (PRs before merge to main)
I don't fully understand the usefulness of wt merge - in team environments, you're not allowed to merge to main/master in your local environment. It goes through a PR process...
What is the best way to use this tool with that. Do we just ignore the wt merge command and use wt remove after the branch is merged?
Thanks for reaching out! This is a great question — you're right that wt merge is designed for local merging (similar to clicking "Merge PR" on GitHub, but locally). In team environments with PR-based workflows, you'd skip wt merge entirely.
The recommended workflow for PR-based teams:
- Create a worktree:
wt switch --create feature-branch - Work on your feature (commit, iterate)
- Push to remote:
git pushorwt step push(which fast-forwards your target branch locally and pushes) - Open a PR on GitHub/GitLab as usual
- After the PR is merged remotely:
wt remove feature-branch— this removes the worktree and deletes the local branch (it detects the branch is already merged)
You can also use wt step prune to bulk-remove worktrees whose branches have been merged into the default branch — handy if you accumulate several merged branches.
wt list helps here too — branches that are fully merged show ⊂ or _ status and are dimmed, making it easy to see which worktrees are safe to clean up.
A maintainer can provide more detail if needed.
What is the best way to use this tool with that. Do we just ignore the wt merge command and use wt remove after the branch is merged?
yes! if you git fetch after merging on GH, then wt remove identifies the branch as merged and remind it along with the worktree
Thanks for responding @max-sixty - this is good to know. Next up then for a question -
I saw that you have a skill installable for using this with claude, but I'm worried it's going to try to land the plane by merging locally back to main/master. Is there a plan to support a "PR workflow" with the skill?
I saw that you have a skill installable for using this with claude, but I'm worried it's going to try to land the plane by merging locally back to main/master.
@worktrunk-bot assess this risk please
The risk is low — the skill doesn't instruct Claude to use wt merge as part of any standard workflow.
Here's what the skill (SKILL.md) actually covers:
- Configuration help: setting up LLM commits, project hooks, worktree path templates
- Troubleshooting: shell integration, hook issues
- Agent handoffs: spawning worktrees with
wt switch --create(not merging)
The wt merge documentation is included in the reference files, but only as reference material — there's no guidance telling Claude to run wt merge proactively. The merge docs themselves frame it as a "local CI" tool for personal projects.
In a PR-based workflow, Claude would use git push / wt step push and leave merging to the remote. It would only run wt merge if you explicitly asked it to.
What Claude sees when the skill loads
The skill's core workflows section covers:
- Setting up commit message generation (user config)
- Setting up project hooks (project config)
- Adding hooks to existing config
None of these involve wt merge. The agent handoff pattern uses wt switch --create <branch> -x claude -- '<task>' — it creates worktrees, not merges.
great — @ortonomy keep any questions coming!