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.1.tar.gz (69.8 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.1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file ocwt-0.3.1.tar.gz.

File metadata

  • Download URL: ocwt-0.3.1.tar.gz
  • Upload date:
  • Size: 69.8 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.1.tar.gz
Algorithm Hash digest
SHA256 31dff8f725204c83d9b54d8d140ad2f37a10a63bbe2b80480d1e272a4f66ecbb
MD5 5c25187962fc0c1653c47c02bc4d821b
BLAKE2b-256 3540db67d279906276e71b11b9d8f404ad3678a893078c881344cbe25715f951

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocwt-0.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: ocwt-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf66773d9a4304e781076511e69d50f160f5406a330f3c4e0402f906b4ebea81
MD5 e4c7f76e2a9b6b45ce8743a3146f0a4f
BLAKE2b-256 baf4ea2e8e6c5b6c17aededc0f518690abb8d8b4676f95901668da61adfe7a0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocwt-0.3.1-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