harness-sdk-python
The runs subsystem for Python Statewire hosts: @run_manager turns one async method into the run executor and mounts the run/* command surface (enqueue, steer, dequeue, edit, reload, stop, continue, input), each run in its own tray. Part of harness-sdk, with statewire and pinned.
Install
uv add harness-sdk-python
Extras: uv add "harness-sdk-python[postgres]", uv add "harness-sdk-python[deepagents]".
Use
from statewire import Statewire, command
from harness_sdk import HARNESS_PROTOCOL, RunManager, run_manager
class RunsHost(Statewire):
protocols = (HARNESS_PROTOCOL,)
async def lifespan(self):
self.state = {"messages": []}
yield
@run_manager()
async def run(self, ctx: RunManager.RunContext):
for message in ctx.messages:
self.state["messages"].append({"id": message["id"]})
ctx.applied()
return RunManager.Complete()
@command("run/enqueue")
async def run_enqueue(self, params, *, ctx, auth_result):
return await self.run.enqueue(
params, applied=ctx.applied, auth_result=auth_result
)
Docs
- Get started: https://github.com/assistant-ui/harness-sdk/blob/main/apps/docs/app/docs/get-started/chat-app/page.mdx
- Guide: https://github.com/assistant-ui/harness-sdk/blob/main/apps/docs/app/docs/guides/harness/host/page.mdx
- Reference: https://github.com/assistant-ui/harness-sdk/blob/main/apps/docs/app/docs/reference/harness-sdk-python/page.mdx
- Spec: https://github.com/assistant-ui/harness-sdk/blob/main/apps/docs/app/docs/spec/runs-protocol/page.mdx
Metadata
Release files for harness-sdk-python 0.36.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| harness_sdk_python-0.36.1.tar.gz | 97.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| harness_sdk_python-0.36.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 141.6 kB
Release files / harness_sdk_python-0.36.1.tar.gz
| Download URL | harness_sdk_python-0.36.1.tar.gz |
|---|---|
| Size | 97.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3aa235dc69d5157ef4b534fb398f642fc03e752239d7b170c0301801ffd2161
|
|
BLAKE2b-256 checksum How to use checksums |
8523110ddaae373a4e703ad4c0a460e0c77c24c6ea37e9b3da2daff4719a6586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / harness_sdk_python-0.36.1-py3-none-any.whl
| Download URL | harness_sdk_python-0.36.1-py3-none-any.whl |
|---|---|
| Size | 43.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47f53546f0a652836c36ad0b15b97730ce35976a4eff7e819cd89be74e3ca6de
|
|
BLAKE2b-256 checksum How to use checksums |
86b863f78d53b9cd1e7b179e83f866dde7ce1015da0458ce6c96fff2dded5b92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency log