Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocwt-0.3.0.tar.gz (69.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocwt-0.3.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

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

Hashes for ocwt-0.3.0.tar.gz
Algorithm Hash digest
SHA256 cb8afaf3171072b2c74cc9acae26a6e1b1d5f50f44e9ec314685f17cf66c5468
MD5 a2f2395782608a872e8c2c868f6a6102
BLAKE2b-256 5ce20f206406c53252e692a1e01c3209151b0d5e18f841f1c26ec1b58842b8ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocwt-0.3.0.tar.gz:

Publisher: release.yml on MarcoMuellner/ocwt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ocwt-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3be3cd8dcf8e2d92b00fdbdb5a5e29402cf245f49c86fe8b96c01355d5a7cbfe
MD5 09b4445ea857e9c3dadc5a23db1ce4e5
BLAKE2b-256 958be495f9175b4d02b05eed9e9691c945ff00e425a070164852e9555335c1b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocwt-0.3.0-py3-none-any.whl:

Publisher: release.yml on MarcoMuellner/ocwt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page