Unified Harness Protocol (UHP) is an open HTTP standard that standardizes how complete agent runtimes - called harnesses - connect to applications and surrounding modules. A harness is defined as a full agent loop that plans, invokes tools, edits files, and returns results; UHP makes those harnesses portable and interchangeable by providing a single contract for discovery, configuration, task submission, streaming progress, session continuation, artifact retrieval, errors, security, and more. It’s released under Apache‑2.0, requires no hosted service, and is explicitly designed so a client written to the spec will work with any conformant server regardless of where or how harnesses run.
The specification is normative and versioned, organized into thirteen chapters (architecture, lifecycle, harnesses, plugins, environments, memories, tasks, streaming, sessions, files, errors, security, schema) and accompanied by machine‑readable OpenAPI/JSON Schema definitions and a runnable conformance suite. UHP intentionally mirrors the OpenAI Responses API surface where useful - accepting a compatible subset and emitting Server‑Sent Events for streaming - while adding harness‑specific fields for jobs, sessions, files, cancellation, and metadata. Implementation guidance covers generating types from the schema, running conformance checks, and following governance/versioning rules so servers and clients can interoperate predictably.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.