Metadata-Version: 2.4
Name: ocwt
Version: 0.2.0
Summary: OpenCode worktree helper
Author: Marco
License: MIT License
        
        Copyright (c) 2026 Marco Müllner
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: typer<1.0.0,>=0.12.5
Description-Content-Type: text/markdown

# ocwt

`ocwt` creates and reuses Git worktrees for implementation work, with optional OpenCode planning before you start coding.

## Install

Requirements:

- Python 3.12+
- [uv](https://docs.astral.sh/uv/)

Install as a tool:

```bash
uv tool install ocwt
```

Run without installing:

```bash
uvx ocwt --help
```

## Quickstart (60 seconds)

```bash
# Open from an intent
ocwt open "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

```bash
# Plan first, then continue in the same session
ocwt open "improve delivery retries" --plan

# Override auto-plan for one run
ocwt open "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

```bash
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/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:

```bash
uv sync --group dev
```

Run checks:

```bash
uv run ruff format .
uv run ruff check .
uv run ty check
uv run pytest
```

Build docs locally:

```bash
uv run mkdocs serve
uv run mkdocs build --strict
```
