New advertisers: 50% off your first month with code FIRSTMONTHSee slots
max-sixty avatar

Wt Switch Create

Creates a new worktrunk worktree, optionally in another repo, and moves the session into it.

skills.sh installs
1.4K
GitHub stars
12.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers branch selection, worktree creation via wt switch --create, and re-rooting the session with EnterWorktree or a fallback cd
  • Handles mid-session uncommitted work by stashing it before entry and restoring it if entry fails
  • Reads the target repo's root CLAUDE.md and AGENTS.md after moving into another repository, so its instructions apply
  • Designed for launching a session that should work in its own worktree, with a stop-and-ask path when the directory is unreachable

Install

$ npx -y skills add max-sixty/worktrunk --skill wt-switch-create -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Arguments: $ARGUMENTS. Grammar: [<branch>] [<repo>] [-- <task>].

  • branch — optional; the branch name for the new worktree. When omitted, pick one (step 1 below).
  • repo — optional path or name; create the worktree in this repo instead of the session's current one.
  • task — optional; what to do inside the new worktree. No task means enter the worktree and wait.

Details

Repository
github.com/max-sixty/worktrunk
Categories
Git & Releases, Agent Workflow & Planning
First seen
Jun 3, 2026

More from max-sixty/worktrunk

All 2

Similar to Wt Switch Create

More Git & Releases