Skip to main content

autowt: a better git worktree experience

autowt is a git worktree manager designed for developers who juggle multiple tasks. It automates the creation, management, and cleanup of git worktrees, giving each branch its own dedicated directory and terminal session. This eliminates context-switching friction, letting you focus on your code.

While powerful for any developer, autowt is a game-changer for those working with command-line AI agents like Claude Code, Gemini CLI, or Codex. It provides the perfect environment for running multiple agents in parallel without interference.

Core features

Automated Worktree Management

autowt handles the entire lifecycle of your worktrees. It automatically creates them in a consistent directory structure, runs your setup scripts, and provides powerful cleanup tools to keep your workspace tidy.

Seamless Terminal Integration

Switching branches is as simple as typing autowt <branch-name>. autowt intelligently manages your terminal sessions, automatically switching to the correct tab or window, or creating a new one if needed. Supports all major terminals including iTerm2, Terminal.app, VSCode, and Cursor.

AI Agent Ready

Isolate your AI agents in their own worktrees. Run multiple agents on different tasks simultaneously without them tripping over each other's work. autowt provides the perfect sandbox for parallel development and experimentation.

Effortless Cleanup

Keep your repository clean with autowt cleanup. It identifies and removes branches that are merged or have no remote counterpart, ensuring your workspace remains clutter-free.

Getting started

You'll need Python 3.10+ and a version of git released in the last decade (2.5+).

First, install autowt:

pip install autowt

Then, from within a git repository, create a new worktree for a new or existing branch:

autowt my-new-feature

Watch as autowt creates a new worktree and opens it in a new terminal tab or window, ready for you to start coding.

A typical workflow

  1. Start a new feature: Run autowt new-feature. A new terminal tab opens in an isolated directory for that branch.
  2. Get an urgent request: Don't stash! Just run autowt hotfix/urgent-bug. A different terminal tab opens for the hotfix.
  3. Finish the hotfix: Commit, push, and close the hotfix tab.
  4. Return to your feature: Run autowt new-feature again, and autowt will switch you right back to the existing terminal tab for that feature.
  5. Clean up: Once the hotfix branch is merged, run autowt cleanup to remove the old worktree and local branch.

Dive deeper

For detailed guides on commands, configuration, and advanced workflows, check out the full documentation.

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Metadata

Release files for autowt 0.4.6

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.4.6
File Size Uploaded
autowt-0.4.6.tar.gz 187.1 kB Details

Built distribution (wheel)

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

Total release size: 276.7 kB

Release files / autowt-0.4.6.tar.gz

Download URL autowt-0.4.6.tar.gz
Size 187.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c69f7415784582f4f7a991100e5b952141e9aec1194f39d1cb46960c927cc61b
BLAKE2b-256 checksum
How to use checksums
c15b0469b5345b219835571b8badeb593ef02222d58c6df0bbe6ec516691ac09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 13, 2025.

Transparency log

Release files / autowt-0.4.6-py3-none-any.whl

Download URL autowt-0.4.6-py3-none-any.whl
Size 89.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a449c1b85a1444316a8d2cacf36eb212e9294d5113fad390893779c2bffc376
BLAKE2b-256 checksum
How to use checksums
636af5fd18bde2ee9f90bb06581d156f381c8536fa4b497581d1ddfa2c1d23e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 13, 2025.

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