Isolated git worktree developer loops and AI agent workspaces.
Project description
Worktree (wt)
Isolated git worktree developer loops and autonomous AI agent workspaces.
Worktree helps humans and agents build, test, and remediate in parallel without disturbing your active local branch.
Installation
pip install getworktree
Optional provider extras:
pip install "getworktree[cursor]"
Requirements
- Python 3.13+
- Git
- For provider-specific loop runs:
- Cursor:
CURSOR_API_KEY(+getworktree[cursor]) - Gemini: Gemini CLI on
PATH+GEMINI_API_KEY - Copilot: GitHub CLI (
gh) onPATH+GH_TOKENorGITHUB_TOKEN
- Cursor:
Quick start
wt init
wt status
wt config validate
wt loop show fix-tests
wt loop run fix-tests
Current command surface
Top-level
wt initwt status
Config
wt config showwt config validate
Loop
wt loop show <name>wt loop run <name>
Agent providers for loop runs
Loop definitions support these providers:
localollamacursorgeminicopilot
Provider behavior:
localandollamareturn unified diffscursor,gemini, andcopilotrun as direct-mutation providers with shared safety gates before patches are accepted
Project layout
Worktree initializes and uses:
.worktree/config.json.worktree/loops/*.yml.worktree/sessions/.worktree/artifacts/
Development
pip install -e .[dev]
inv test
ruff format .
ruff check .
Documentation
- CLI plan: docs/cli-plan.md
- Schemas and config: docs/agents/schemas-and-config.md
- Architecture: docs/agents/architecture.md
Project status
This README reflects the currently implemented surface in main.
Additional commands listed in docs/cli-plan.md may still be in progress.
License
Distributed under the MIT License. See LICENSE for details.
Links
- Website: getworktree.io
- GitHub Organization: github.com/getworktree
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file getworktree-0.1.1.dev59.tar.gz.
File metadata
- Download URL: getworktree-0.1.1.dev59.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2159df4142ae1533818d397b02a31a5b7617bf071f9ab7dc5df30b3ba421dabc
|
|
| MD5 |
73565e0b654dc0b9bd87e66f2457bfc5
|
|
| BLAKE2b-256 |
73f92fb20b1b8faa233c11230264f1f6a801be2ce4db4130bc4403ba5e83c980
|
Provenance
The following attestation bundles were made for getworktree-0.1.1.dev59.tar.gz:
Publisher:
dev-publish.yml on getworktree/getworktree
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getworktree-0.1.1.dev59.tar.gz -
Subject digest:
2159df4142ae1533818d397b02a31a5b7617bf071f9ab7dc5df30b3ba421dabc - Sigstore transparency entry: 2338197343
- Sigstore integration time:
-
Permalink:
getworktree/getworktree@f0ac988571d89ad6457c39b3d35836606910e851 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/getworktree
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
dev-publish.yml@f0ac988571d89ad6457c39b3d35836606910e851 -
Trigger Event:
push
-
Statement type:
File details
Details for the file getworktree-0.1.1.dev59-py3-none-any.whl.
File metadata
- Download URL: getworktree-0.1.1.dev59-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df6a8fff904f16710d1d800a0b7a31115e5cd2dd397d85997ee25dfcf0b128e6
|
|
| MD5 |
5a003a05fe3d96b820676e0392ba4997
|
|
| BLAKE2b-256 |
21ae61c57f57a4a8fd7a73edaa923de95b45bbe263c519be32e8a6b0b0052a1d
|
Provenance
The following attestation bundles were made for getworktree-0.1.1.dev59-py3-none-any.whl:
Publisher:
dev-publish.yml on getworktree/getworktree
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
getworktree-0.1.1.dev59-py3-none-any.whl -
Subject digest:
df6a8fff904f16710d1d800a0b7a31115e5cd2dd397d85997ee25dfcf0b128e6 - Sigstore transparency entry: 2338197349
- Sigstore integration time:
-
Permalink:
getworktree/getworktree@f0ac988571d89ad6457c39b3d35836606910e851 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/getworktree
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
dev-publish.yml@f0ac988571d89ad6457c39b3d35836606910e851 -
Trigger Event:
push
-
Statement type: