wtlisted
Install: claude install-skill x-mesh/xm
# x-wt — Session Worktree
## Overview
`/xm:wt` runs the WHOLE current session inside an isolated git worktree, then
lands that work back onto the branch you started from. Two verbs:
- **`/xm:wt`** (or `/xm:wt start [name]`) — create a worktree, switch the session into it.
- **`/xm:wt land`** — merge the worktree branch into its parent (no push), return the session.
This is session-scoped isolation. It is NOT x-build's worktree mode
(`/xm:build run --worktrees`), which fans ONE worktree out PER task from a
project's task DAG. `/xm:wt` has no tasks and no gate panel — it is the thin
"work aside, then merge back" wrapper.
**Mechanism split** (do not blur):
- The harness tools `EnterWorktree` / `ExitWorktree` own the SESSION cwd switch.
- `git-kit worktree finish` owns the merge-back: it wraps `promote` (commit + one-hop merge into `gk-parent`, no push) AND owns worktree/branch cleanup.
- The skill just sequences them and records the parent so `land` merges correctly.
> `EnterWorktree` / `ExitWorktree` are harness (Claude Code) tools, not xm CLIs.
> If they are not already available, load them first:
> `ToolSearch("select:EnterWorktree,ExitWorktree")`.
## When to Use
- "worktree로 (전체) 작업하자", "이 세션을 worktree에서 돌려", "격리해서 작업 후 부모로 머지"
- The user wants the current session's ongoing work isolated on a throwaway branch, mergeable later.
- `/xm:wt`, `/xm:wt start`, `/xm:wt land`, `/xm:wt status`.
## Do NOT Use When
- The user wants ONE task or parallel tasks isolated → `/xm:b