Skip to main content

Wt Switch Create

Skill Verified Active
Part of:Worktrunk

Create a new worktrunk worktree (optionally in another repo) and switch this session's working directory into it. Use when launching a session that should work in its own worktree (e.g. `/wt-switch-create my-branch -- <task>`, or `/wt-switch-create my-branch ~/workspace/other-repo -- <task>`), or mid-session to move work into a fresh branch.

Purpose

Streamline the process of creating and switching to dedicated git worktrees for AI agents or individual tasks, ensuring a clean and isolated working environment.

Features

  • Create new git worktrees
  • Switch session working directory to a worktree
  • Optionally specify a different repository for the worktree
  • Execute tasks within the newly created worktree
  • Idempotent worktree creation/switching

Use Cases

  • Launching a new session that should operate in its own isolated worktree
  • Mid-session, moving work into a fresh branch and worktree
  • Parallelizing AI agent tasks by assigning each to a dedicated worktree
  • Setting up isolated environments for specific development tasks

Non-Goals

  • Managing the lifecycle of branches independently of worktrees
  • Performing git operations like commit, push, or merge without explicit user permission
  • Automatically removing worktrees with uncommitted changes
  • Handling general git repository management beyond worktree operations

Prerequisites

  • Requires the `wt` CLI (https://worktrunk.dev)
  • Requires this plugin's WorktreeCreate hook

Installation

First, add the marketplace

/plugin marketplace add max-sixty/worktrunk
/plugin install worktrunk@worktrunk

Quality Score

Verified
98 /100
Analyzed about 23 hours ago

Trust Signals

Last commitabout 24 hours ago
Stars5.1k
LicenseMIT OR Apache-2.0
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.