Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

autowt: a better git worktree experience

Full documentation

This README is generated from the index page of the docs. There are many more pages of docs at the link.

What are worktrees?

Worktrees are a built-in feature of git, which are essentially free clones of a local git repo. History is shared and synced across all worktrees for a given repo. Creating a new worktree is cheap, and you can list all your worktrees with a single command. This makes them a great fit for doing work “in parallel,” or not worrying about having uncommitted changes before working on another branch.

How autowt simplifies common workflows

While worktrees are powerful, the built-in tooling is minimalistic. Consider what it takes to set up a fresh worktree in a typical workflow:

  1. Make a decision about where to put the worktree
  2. git worktree add <worktree_path> -b <branch>
  3. Open a new terminal tab
  4. cd <worktree path>
  5. uv sync or npm install or whatever your dependency setup is
  6. cp <repo_dir>/.env . to copy secrets

Congrats, you're done! Type type type, open a PR, and merge it. Now you need to clean up:

  1. git worktree rm .
  2. Close the tab

On the other hand, with autowt, it looks like this:

autowt <branch>

And deleting branches that have been merged or are associated with closed PRs looks like this:

autowt cleanup

A lot nicer, right?

Now suppose your team uses an issue tracker like Linear which can suggest branch names based on issue IDs. You could configure autowt to have a custom command to automatically open worktrees for tickets instead of passing a branch name:

autowt linear ABC-1234 # opens yourname/abc-1234-title-of-the-ticket or whatever

What autowt can do for you

  • Worktree ergonomics: It's not hard to learn the commands to manage worktrees, but autowt shortens the most common ones. autowt can open new terminal tabs via automate-terminal (iTerm2, tmux, Ghostty, and more), or with shell integration it can cd directly in your current shell.
  • Deep, customizable automation: You can define scripts in .autowt.toml to run at various points, like after creating a worktree but before switching to it, or before a worktree is cleaned up. Check out Lifecycle Hooks for more information.
  • Smart cleanup: You can configure autowt to automatically clean up worktrees whose branches have been merged, or even branches which are associated with closed pull requests on GitHub.
  • Friendly TUIs: autowt uses interactive terminal-based UIs where it makes sense. For example, autowt config gives you an easy way to edit global settings. autowt switch lets you review your worktrees and pick which one to navigate to.

Getting started

You'll need Python 3.10+ and a version of git released less than ten years ago (2.5+).

First, install autowt:

pip install autowt

Optionally, set up shell integration so worktree switches cd in your current shell:

# bash/zsh (add to ~/.bashrc or ~/.zshrc)
eval "$(autowt shell-init bash)"

Then, make a new worktree for a new or existing branch in your current repo:

autowt my-new-feature

With shell integration, this creates the worktree and cd's you into it. Without it, autowt opens a new terminal tab or window instead.

Continue to full documentation

Contributing

PRs, GitHub issues, discussion topics, bring 'em on!

License

This project is licensed under the MIT License.

Metadata

Release files for autowt 0.6.0.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autowt 0.6.0.dev1
File Size Uploaded
autowt-0.6.0.dev1.tar.gz 198.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autowt 0.6.0.dev1
File Interpreter ABI Platform
autowt-0.6.0.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 271.4 kB

Release files / autowt-0.6.0.dev1.tar.gz

Download URL autowt-0.6.0.dev1.tar.gz
Size 198.0 kB
Tags Source
SHA-256 checksum
How to use checksums
91fd83417722d72829527abb9d254ee4eb6bacbc9da1279c7416862e29602bf3
BLAKE2b-256 checksum
How to use checksums
e26c80f0df2006faa0c92fde3abbb64bb7607a215d95ea21c22e2a5f6f2c5655
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2026.

Transparency log

Release files / autowt-0.6.0.dev1-py3-none-any.whl

Download URL autowt-0.6.0.dev1-py3-none-any.whl
Size 73.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbf2262ec8d8d52c3dc31219c5e97080e3db93688b76e342155f965b8da92540
BLAKE2b-256 checksum
How to use checksums
e6bb2b68c321f864af153cded91ff88c1e175af2b299b1878ab653521285fcd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page