wt is a minimal shell-function tool that creates ready-to-use Git worktrees with a single command, automatically running a repo-specific setup script in the background.

Stars

3

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It eliminates the manual chore of setting up worktrees by combining creation, environment copying, and dependency installation into one sourced shell function—no binary, daemon, or config file needed.

Who it is for

  • Developers who frequently switch between multiple Git branches
  • Users of AI coding agents that need isolated, ready-to-run environments
  • Teams that work on multiple features in parallel
  • Git enthusiasts seeking a lightweight worktree manager

Use cases

  • Creating a new worktree for a feature branch and immediately starting work
  • Setting up worktrees for agent-driven development (e.g., Claude Code)
  • Quickly jumping between existing worktrees or PR checkouts
  • Removing a worktree and its branch safely after completing a task

Strengths

  • ~100 lines of shell code with no external dependencies (only git)
  • Background setup script with logging and desktop notifications
  • Works natively in the current shell via sourcing—no subshell or eval trick
  • Includes a Claude Code skill to auto-generate the setup script for any repo

Considerations

  • Only supports macOS and Linux desktop notifications
  • Requires shell sourcing and manual setup of environment variables
  • Setup script must be written per repository (though a skill can help)
  • No built-in fuzzy finder or tmux integration like some alternatives

README quick start

Usage

Description

Git worktrees that set themselves up. One shell function.

Related repositories

Similar projects matched by category, topics, and programming language.

0xwilliamortiz
Featured
0xwilliamortiz GitHub avatar

openclaude-improved

OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

AI & Machine LearningLarge Language Models
577
mereyabdenbekuly-ctrl
Featured
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI & Machine LearningAI Agents
859
jamesob
Featured
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI & Machine LearningLarge Language Models
1,660