Metadata-Version: 2.5
Name: git-harness
Version: 1.0.0
Summary: Deterministic CLI for local coding agent sessions
License-Expression: MIT
License-File: LICENSE
License-File: THIRD_PARTY_NOTICES.md
Requires-Python: >=3.11
Requires-Dist: croniter>=7.0.0
Requires-Dist: psutil>=7
Requires-Dist: unique-namer>=1
Requires-Dist: watchdog>=7.1.1
Description-Content-Type: text/markdown

# Git Harness

**One CLI for your coding-agent sessions. Keep agents connected and context portable.**

Git Harness connects local Codex, Claude Code, OpenCode, Pi and Antigravity
sessions. Address a running agent by its directory, send work from another
terminal, and carry supported conversation history when you switch harnesses.
The CLI is deterministic; it does not call a model to coordinate agents.

- **Reach the right conversation.** Check availability and message an existing TUI.
- **Automate routine follow-ups.** Watch files or schedule messages with timers.
- **Keep your work moving.** Checkpoint context and resume it in another supported harness.
- **Stay in control.** Stop owned watchers/timers without killing the harness or deleting history.

## Quickstart

Install [uv](https://docs.astral.sh/uv/) and a supported native client. From your project:

```sh
uv tool install git-harness
git-harness config --harness codex
git-harness run --harness codex
```

You can pass a downloaded release wheel to `uv tool install` instead of the
package name. Grant the client's normal project/hook trust when prompted;
configuration does not bypass it. `git harness` works as an alternative command.
Run `git-harness prime` for examples or `git-harness COMMAND --help` for options.

## One project, two agents

Keep a manager in `agents/manager/1` and a developer in `agents/developer/1`.
After configuring and starting both sessions in their launch directories,
send work from the project root:

```sh
git-harness message \
  --target agents/developer/1 \
  --from agents/manager/1 \
  "Fix the failing parser tests and report the result."
```

The message addresses the developer's registered conversation. The `from` value
gives it a reply target; delivery does not launch a replacement agent. To change
harnesses later, use explicit `sync` and `run` with the documented history and
ownership checks. See the [context guide](https://github.com/neprel/git-harness/blob/main/works/docs/history.md).

## Five harnesses, explicit boundaries

| Harness | Verified native version | Mode |
|---|---|---|
| Codex | 0.165.0 | Owned embedded TUI |
| Claude Code | 2.1.295 | Explicit Channels opt-in; verified idle tmux fallback |
| OpenCode | 2.0.23 | Configured native TUI/service |
| Pi | 0.80.6 | Configured native extension |
| Antigravity | 1.5.20 | Configured native TUI commands |

Native integration is verified on these **Linux ARM64 and macOS Intel** builds
and configured modes. The five native components and shared history cycle have
separate accepted evidence on each OS; this does not verify every terminal,
attachment mode or architecture. Python 3.11+ is required; portable CI covers
Linux/macOS on 3.11–3.13. Windows integration remains unverified. See the
[verification scope](https://github.com/neprel/git-harness/blob/main/works/docs/testing.md#hosted-macos-native-verification)
for exact pins, evidence and release gates.

Admission can be uncertain; do not retry blindly. History transfer has explicit
losses: for example, displayed Antigravity trigger replies can be absent from
persisted Native and portable history. The guides explain the exact boundaries.

## Go further

- [Setup and nested projects](https://github.com/neprel/git-harness/blob/main/works/docs/configuration.md)
- [Delivery and uncertainty](https://github.com/neprel/git-harness/blob/main/works/docs/delivery.md)
- [Watchers](https://github.com/neprel/git-harness/blob/main/works/docs/watchers.md) · [Timers](https://github.com/neprel/git-harness/blob/main/works/docs/timers.md)
- [Compatibility tests](https://github.com/neprel/git-harness/blob/main/works/docs/testing.md) · [Owner publishing guide](https://github.com/neprel/git-harness/blob/main/works/PUBLISHING.md)

MIT licensed. Portable history adaptation retains the upstream
[session-migrate notice](https://github.com/neprel/git-harness/blob/main/works/THIRD_PARTY_NOTICES.md).
