BeClaude

tmux-git-worktree

New
1knpmDevelopmentMIT

Claude Code Skill: Tmux + Git Worktree context switcher

First seen 5/26/2026

Summary

This skill integrates tmux sessions with Git worktrees, allowing developers to quickly switch between multiple worktrees while preserving their tmux session layout.

  • It streamlines context switching for developers managing multiple feature branches or parallel tasks, reducing manual setup time and cognitive overhead.

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file

Add the configuration to .claude/skills/tmux-git-worktree.md

3
Invoke in Claude Code
/tmux-git-worktree

Use Cases

Switch to a different Git worktree and automatically restore the associated tmux session with all windows and panes.
Create a new Git worktree from a feature branch and launch a dedicated tmux session for it.
List all active Git worktrees and their corresponding tmux sessions to quickly identify where you left off.
Delete a Git worktree and clean up its tmux session in one command.
Rename a tmux session to match the current worktree branch after switching branches.
Attach to an existing tmux session linked to a specific worktree without manually searching for session names.

Usage Examples

1

/tmux-git-worktree switch feature/new-ui

2

Create a new worktree from branch bugfix/login-error and open a tmux session for it

3

List all worktrees and their tmux sessions

View source on GitHub
tmuxgit-worktreeclaude-codeclaude-skillworkflow

Security Audits

LicensePassSourceWarnRepositoryPass

Frequently Asked Questions

What is tmux-git-worktree?

This skill integrates tmux sessions with Git worktrees, allowing developers to quickly switch between multiple worktrees while preserving their tmux session layout. It streamlines context switching for developers managing multiple feature branches or parallel tasks, reducing manual setup time and cognitive overhead.

How to install tmux-git-worktree?

To install tmux-git-worktree: create the skills directory (mkdir -p .claude/skills), then add the config to .claude/skills/tmux-git-worktree.md. Finally, /tmux-git-worktree in Claude Code.

What is tmux-git-worktree best for?

tmux-git-worktree is a skill categorized under Development. It is designed for: tmux, git-worktree, claude-code, claude-skill, workflow.

What can I use tmux-git-worktree for?

tmux-git-worktree is useful for: Switch to a different Git worktree and automatically restore the associated tmux session with all windows and panes.; Create a new Git worktree from a feature branch and launch a dedicated tmux session for it.; List all active Git worktrees and their corresponding tmux sessions to quickly identify where you left off.; Delete a Git worktree and clean up its tmux session in one command.; Rename a tmux session to match the current worktree branch after switching branches.; Attach to an existing tmux session linked to a specific worktree without manually searching for session names..