Windows/WSL only. Windows Terminal pane and tab management via wt.exe

version
1.1.1

Install

/plugin install windows-terminal@lucasp-claude-plugins

Run it inside Claude Code after adding the marketplace with /plugin marketplace add lucaspimentel/claude-plugins.

Contents

Discovered from source

Skills 2

Platform

This skill requires Windows Terminal (wt.exe), available on native Windows and WSL. If wt.exe is not found in PATH, tell the user this skill requires Windows or WSL and stop — do not attempt to run any commands.

Generate and immediately execute a wt.exe command to open the requested panes or tabs.

Rules

  1. Always use -w 0 to target the current window (without it, wt.exe opens a new window).
  2. Always use -d . on every subcommand so new panes/tabs open in the current directory.
  3. Execute immediately — do not preview or ask for confirmation.
  4. Chain multiple subcommands with \; (backslash-semicolon) in bash.

wt.exe subcommand reference

SubcommandAliasPurpose
new-tabntOpen a new tab
split-panespSplit the current pane

Key flags

FlagDescription
-HSplit horizontally (new pane below)
-VSplit vertically (new pane to the right)
-s <ratio>Size of the new pane as a fraction (e.g. 0.5)
-p "<profile>"Profile name (e.g. "Windows PowerShell", "Ubuntu")
-d <dir>Starting directory (always use -d .)
--title "<title>"Set the pane/tab title

Example patterns

Two panes side by side (vertical split):

wt.exe -w 0 split-pane -V -d .

Two panes stacked (horizontal split):

wt.exe -w 0 split-pane -H -d .

Three-pane layout (left + top-right + bottom-right):

wt.exe -w 0 split-pane -V -s 0.5 -d . \; split-pane -H -s 0.5 -d .

New tab with a specific profile:

wt.exe -w 0 new-tab -p "Ubuntu" -d .

Split pane with WSL:

wt.exe -w 0 split-pane -V -p "Ubuntu" -d .

New tab + split pane:

wt.exe -w 0 new-tab -d . \; split-pane -V -d .

Reference

Execution

Run the generated command directly with the Bash tool using wt.exe ....

Platform

This skill requires Windows Terminal (wt.exe), available on native Windows and WSL. If wt.exe is not found in PATH, tell the user this skill requires Windows or WSL and stop — do not attempt to run any commands.

Generate and immediately execute a wt.exe command to manage tabs.

Rules

  1. Always use -w 0 to target the current window (without it, wt.exe opens a new window).
  2. Always use -d . on every subcommand so new tabs open in the current directory.
  3. Execute immediately — do not preview or ask for confirmation.
  4. Chain multiple subcommands with \; (backslash-semicolon) in bash.

wt.exe subcommand reference

SubcommandAliasPurpose
new-tabntOpen a new tab
focus-tabftSwitch to a tab by zero-based index
move-panempMove the active pane to another tab

Key flags

FlagDescription
-p "<profile>"Profile name (e.g. "Windows PowerShell", "Ubuntu")
-d <dir>Starting directory (always use -d .)
-t <index>Target tab index (zero-based) for focus-tab and move-pane
--title "<title>"Set the tab title
--tabColor #RRGGBBSet the tab color
--suppressApplicationTitleLock a custom title so the shell doesn't overwrite it

Example patterns

Open a new tab:

wt.exe -w 0 new-tab -d .

Open 3 tabs with different profiles:

wt.exe -w 0 nt -p "Windows PowerShell" -d . \; nt -p "Ubuntu" -d . \; nt -p "Git Bash" -d .

Open tabs with custom colors:

wt.exe -w 0 nt -d . --title "API" --tabColor #009999 \; nt -d . --title "Web" --tabColor #994400

Focus a specific tab (e.g. tab 2):

wt.exe -w 0 focus-tab -t 2

Move active pane to tab 1:

wt.exe -w 0 move-pane -t 1

Named tabs with locked titles:

wt.exe -w 0 nt -d . --title "Server" --suppressApplicationTitle \; nt -d . --title "Client" --suppressApplicationTitle

Reference

Execution

Run the generated command directly with the Bash tool using wt.exe ....

Sponsors

Details

Marketplace
lucaspimentel/claude-plugins
Source
plugins/windows-terminal
Category
Community

More from lucaspimentel/claude-plugins

All 5