OpenCode worktree helper
Project description
ocwt
ocwt creates and reuses Git worktrees for implementation work, with optional OpenCode planning before you start coding.
Install
Requirements:
- Python 3.12+
- uv
Install as a tool:
uv tool install ocwt
Run without installing:
uvx ocwt --help
Quickstart (60 seconds)
# Open from an intent
ocwt build "add retry queue metrics"
# Open directly from a ticket/spec file
ocwt open pm/epic_011/ticket_003_delivery_status_mirroring_and_pruning.md
# Close with interactive branch picker (arrow keys)
ocwt close
Most-used commands
# Plan first, then continue in the same session
ocwt build "improve delivery retries" --plan
# Override auto-plan for one run
ocwt build "hotfix webhook timeout" --no-plan
# Close a specific branch worktree
ocwt close feat/my-branch
# Config
ocwt config show
ocwt config auto-plan true
ocwt config auto-pull true
Shell completion
ocwt completion bash > /tmp/ocwt-completion.bash
ocwt completion zsh > /tmp/ocwt-completion.zsh
See full docs for setup examples and command details.
Documentation
- Docs home:
docs/index.md - Installation:
docs/installation.md - Quickstart:
docs/quickstart.md - Commands:
docs/commands/open.md,docs/commands/build.md,docs/commands/close.md,docs/commands/config.md,docs/commands/completion.md - Concepts:
docs/concepts/planning-mode.md,docs/concepts/branch-naming.md,docs/concepts/worktrees.md - Troubleshooting:
docs/troubleshooting.md - FAQ:
docs/faq.md
Development
Install dev dependencies:
uv sync --group dev
Run checks:
uv run ruff format .
uv run ruff check .
uv run ty check
uv run pytest
Build docs locally:
uv run mkdocs serve
uv run mkdocs build --strict
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 ocwt-0.3.0.tar.gz.
File metadata
- Download URL: ocwt-0.3.0.tar.gz
- Upload date:
- Size: 69.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb8afaf3171072b2c74cc9acae26a6e1b1d5f50f44e9ec314685f17cf66c5468
|
|
| MD5 |
a2f2395782608a872e8c2c868f6a6102
|
|
| BLAKE2b-256 |
5ce20f206406c53252e692a1e01c3209151b0d5e18f841f1c26ec1b58842b8ed
|
Provenance
The following attestation bundles were made for ocwt-0.3.0.tar.gz:
Publisher:
release.yml on MarcoMuellner/ocwt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocwt-0.3.0.tar.gz -
Subject digest:
cb8afaf3171072b2c74cc9acae26a6e1b1d5f50f44e9ec314685f17cf66c5468 - Sigstore transparency entry: 1039246674
- Sigstore integration time:
-
Permalink:
MarcoMuellner/ocwt@4923bd03ec71d486f9b82deb9f5b442114371dfc -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/MarcoMuellner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4923bd03ec71d486f9b82deb9f5b442114371dfc -
Trigger Event:
release
-
Statement type:
File details
Details for the file ocwt-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ocwt-0.3.0-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3be3cd8dcf8e2d92b00fdbdb5a5e29402cf245f49c86fe8b96c01355d5a7cbfe
|
|
| MD5 |
09b4445ea857e9c3dadc5a23db1ce4e5
|
|
| BLAKE2b-256 |
958be495f9175b4d02b05eed9e9691c945ff00e425a070164852e9555335c1b4
|
Provenance
The following attestation bundles were made for ocwt-0.3.0-py3-none-any.whl:
Publisher:
release.yml on MarcoMuellner/ocwt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ocwt-0.3.0-py3-none-any.whl -
Subject digest:
3be3cd8dcf8e2d92b00fdbdb5a5e29402cf245f49c86fe8b96c01355d5a7cbfe - Sigstore transparency entry: 1039246733
- Sigstore integration time:
-
Permalink:
MarcoMuellner/ocwt@4923bd03ec71d486f9b82deb9f5b442114371dfc -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/MarcoMuellner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4923bd03ec71d486f9b82deb9f5b442114371dfc -
Trigger Event:
release
-
Statement type: