π unclaimed β this page was auto-generated from GitHub. Are you the creator?
Claim this page β
claude-wt
π΄ Simple utility for managing parallel Claude Code instances
git clone https://github.com/jlowin/claude-wt
π΄ Claude-Worktree
Run multiple Claude Code instances in parallel without stepping on each other. This CLI creates isolated git worktrees for each Claude session, so you can work on different features simultaneously while keeping your main branch clean.
Inspired by a script from aaazzam.
π Quick Start
Jump right in without installing anything:
uvx claude-wt new "implement user authentication"
That's it. You're now working in a clean branch where Claude can't mess up your pristine codebase.
Installation Options
If you prefer global installation:
uv tool install claude-wt
Or from source:
git clone https://github.com/anthropics/claude-wt.git
cd claude-wt
uv install -e .
π― Commands
β¨ Start Fresh: new
Spin up a new isolated Claude session:
uvx claude-wt new "implement user authentication"
Behind the scenes: creates a timestamp branch, sets up a worktree in .claude-wt/worktrees/, and launches Claude with your query.
Want a memorable branch name? Use --name:
uvx claude-wt new "fix the parser" --name parser-fix
Need to branch from a specific source? Use --branch:
uvx claude-wt new "hotfix for prod" --branch main --name hotfix-123
π Pick Up Where You Left Off: resume
Claude sessions are like good TV showsβyou want to continue watching:
uvx claude-wt resume 20241201-143022
The session ID is shown when you create it.
π See What's Running: list
See all your active worktrees:
uvx claude-wt list
Shows each session with its health status.
π§Ή Clean Up: clean
Remove a specific session when you're done:
uvx claude-wt clean 20241201-143022
Or clean everything:
uvx claude-wt clean --all # The Marie Kondo approach
π§ How It Works
Think of it like having multiple parallel universes for your code:
- Branch Creation β Each session gets its own branch (
claude-wt-{timestamp}or your custom name) - Worktree Setup β Creates a separate directory in
.claude-wt/worktrees/so files don't conflict - Claude Launch β Starts Claude in the isolated environment with full repo access
- Session Management β Resume, list, and clean up sessions effortlessly
π Why You'll Love This
- Fear-Free Experimentation β Claude can't break your main branch even if it tries
- Mental Clarity β No more "did I commit that test code?" anxiety
- Context Switching β Jump between different Claude conversations effortlessly
- Easy Cleanup β One command to remove all experimental branches
- Clean History β Your main branch stays pristine for serious work
π What You Need
- Python 3.12+
- Git with worktree support (any recent version)
- Claude CLI (installed and authenticated)
π οΈ Development
Uses uv for dependency management:
uv sync
uv run claude-wt --help
Or test changes without installing:
uvx --from . claude-wt --help
Built with the assumption that your Claude sessions shouldn't be a game of git-roulette with your main branch.
// compatibility
| Platforms | cli |
|---|---|
| Operating systems | β |
| AI compatibility | claude |
| License | β |
| Pricing | open-source |
| Language | Python |
// faq
What is claude-wt?
π΄ Simple utility for managing parallel Claude Code instances . It is open-source on GitHub.
Is claude-wt free to use?
claude-wt is open-source, so it is free to use.
What category does claude-wt belong to?
claude-wt is listed under data in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/claude-wt)
// retro hit counter
[](https://claudeers.com/claude-wt)
// reviews
// guestbook
// related in Automation & Workflows
The agent that grows with you
The API to search, scrape, and interact with the web at scale. π₯
π Make websites accessible for AI agents. Automate tasks online with ease.
An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and messageβ¦