Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Worktree Tabs for ClaudeNew to Visual Studio Code? Get it now.
Worktree Tabs for Claude

Worktree Tabs for Claude

Tomáš Pilnaj

|
1 install
| (0) | Free
Open a Claude terminal tab in the editor area for every git worktree of the repository in the current window.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Worktree Tabs for Claude

verify

One keypress opens a Claude terminal tab for every git worktree of the repository you have open, each already sitting in the right directory. If you run a worktree per issue, this is the difference between starting your day with one chord and starting it with eight cd commands.

What it does

Press ctrl+alt+w. The extension asks git for the worktrees of the repository in the current window, and opens one editor-area terminal tab per worktree, named claude:<branch>, with the configured command already running in it. Then it reveals the tab for the worktree you are actually in, without taking focus away from what you were typing.

Press it again later, after adding a worktree, and it reconciles instead of duplicating: tabs that are already open are left alone, only the missing ones appear, and you land back on your own tab.

Worktrees that cannot be opened are skipped rather than opened into nothing: bare repositories, worktrees git has marked prunable, and worktrees whose directory is already gone.

Requirements

  • VS Code 1.64 or newer.
  • git on PATH.
  • A local folder open. Virtual and remote filesystems have no path to hand to git.
  • Whatever you set as the command, installed and on PATH. By default that is the claude CLI.

Usage

How What
ctrl+alt+w (cmd+alt+w on mac) Open the worktree tabs
Command Palette → Claude: Open Worktree Tabs The same thing

The worktree set is read at the moment you press the key. Adding or removing a worktree afterwards changes nothing until the next press.

Settings

Setting Type Default Meaning
claudeWorktreeTabs.command string claude Command typed into each newly created tab.
claudeWorktreeTabs.includePrimary boolean true Also open a tab for the primary checkout, not only for linked worktrees.

Known limitations

  • Nothing is watched. Worktrees appearing or disappearing while you work go unnoticed until you press the key again.
  • Tabs are never closed or renamed. Removing a worktree leaves its tab open for you to close.
  • A tab is matched to a worktree by name alone. Renaming a Claude tab by hand makes the next press open a fresh one beside it.

License

MIT.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft