Metadata-Version: 2.4
Name: hugpy-harness
Version: 0.1.32
Summary: Headless control arm and optional shared terminal for one Hugpy Wrapper
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: hugpy-terminal<0.2,>=0.1.38
Requires-Dist: hugpy-resources<0.2,>=0.1.2.8

# hugpy-harness

Hugpy Harness is the command-line and terminal client for a single Hugpy Wrapper. Use it to inspect a worker, query its model catalog and open chat or a named session.

## Installation

Use Python 3.11 or later on a client with access to a Wrapper endpoint.

```sh
python -m pip install hugpy-harness
```

## Quick start

Read the endpoint selected for this worker, then query the service.

```sh
hugpy-harness endpoint
hugpy-harness status
hugpy-harness models
```

`endpoint` returns the role and URL. If no installed endpoint is available, pass `--base URL` after the headless command.

## Settings and sessions

`hugpy-harness schema` and `hugpy-harness settings` query a compatible Wrapper’s settings interface. `--model MODEL` scopes settings to a model. A settings write is checked against the worker’s readback. Those commands use the `/v1/settings/schema`, `/v1/settings/box` and `/v1/settings/pair` interfaces. On the staged Wrapper 0.2, run `hugpy-wrapper settings` and `hugpy-wrapper set KEY VALUE` on the worker for its database-backed configuration.

`hugpy-harness tui` opens the terminal interface. `hugpy-harness sessions` lists sessions, and `hugpy-harness serve` runs the session service. `hugpy-chat` is the Wrapper-bound chat entry point. The default Wrapper journal uses `.hugpy_wrapper/chat`.

## Python client

```python
from hugpy_harness import Harness

worker = Harness()
print(worker.status())
```

Shared terminal implementation APIs live in `hugpy_terminal`. Use `hugpy-fleet` to inspect multiple workers through Core.
