<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4" -->

---
title: Run Any Agent Harness Under One Interface | daily.dev
description: HarnessRouter is an open-source, self-hosted server implementing the Unified Harness Protocol (UHP), a standardized HTTP contract for running AI agent...
canonical: https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Run Any Agent Harness Under One Interface | daily.dev
og:description: HarnessRouter is an open-source, self-hosted server implementing the Unified Harness Protocol (UHP), a standardized HTTP contract for running AI agent...
og:url: https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4
og:image: https://api.daily.dev/og/posts/01asd0JN4.png
og:image:alt: Run Any Agent Harness Under One Interface
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Any Agent Harness Under One Interface

**[Daily Dose of Data Science \| Avi Chawla \| Substack](https://daily.dev/sources/dailydoseofds)** · 11 min read · 3 upvotes · 1 comments

## Summary

HarnessRouter is an open-source, self-hosted server implementing the Unified Harness Protocol (UHP), a standardized HTTP contract for running AI agent harnesses like Codex, Claude Code, Hermes, DeepSeek Harness, Gemini CLI, and others behind a single API. Unlike model routing, which swaps inference endpoints while the agent loop stays fixed, harness routing lets a product select the runtime that owns the full task lifecycle—planning, tool calls, file management, and completion—without rebuilding integration code per harness. The piece walks through deploying HarnessRouter via Docker, configuring custom harnesses with shared skills and instructions, and calling harnesses through a Responses-API-compatible endpoint by simply changing metadata.harness_id. It also covers UHP's session model, SSE event streaming, file artifacts, and security considerations like OS-level session isolation and credential handling.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.dailydoseofds.com/p/run-any-agent-harness-under-one-interface>

## Questions this post answers

### What is the difference between model routing and harness routing for AI agents?

Model routing happens inside the inference layer, choosing which model endpoint handles a request based on price, latency, or availability, while the same agent loop and application code remain in place. Harness routing instead selects the entire agent runtime—such as Codex, Claude Code, or Hermes—that owns the full task: planning, tool calls, file management, permissions, and completion decisions.

_daily.dev surfaces engineering deep dives like this for teams weighing agent runtime choices._

### How do I run the same coding task through both Codex and Claude Code using one API?

Use HarnessRouter, a self-hosted server implementing the Unified Harness Protocol, which exposes a Responses-API-compatible endpoint at /v1/responses. Sending a request with metadata.harness_id set to 'codex' or a custom Claude Code configuration routes the same task to either runtime while keeping the same event format, so switching harnesses only requires changing that one field.

_developers comparing agent harnesses can track implementation guides like this on daily.dev._

### What does the Unified Harness Protocol (UHP) standardize for AI agent runtimes?

UHP defines the HTTP contract between an application and an agent harness server, covering task creation, progress via Server-Sent Events, sessions, file uploads and artifacts, cancellation, and error structure, without dictating how the harness itself plans or executes work. Its current version is 2026-09-12, and it publishes a written spec, OpenAPI 3.1 schema, JSON Schema definitions, and conformance tests.

_daily.dev helps engineers building on emerging agent protocols like UHP stay current on the spec._

## Community discussion

Top comments from developers on daily.dev.

**@kartiknvj** · 0 upvotes

> Standardizing the harness interface is the unsexy work that makes evals actually comparable. I tried running the same eval across three CLIs last year and the differences in how they logged tool calls made the results useless without heavy normalization. What output format are you standardizing on: OpenTelemetry spans, structured JSON, or something custom?

## Similar posts on daily.dev

- [What Is an Agent Harness? The Architecture Behind Claude Code, DeepSeek Harness, and Hermes Agent](https://daily.dev/posts/what-is-an-agent-harness-the-architecture-behind-claude-code-deepseek-harness-and-hermes-agent-yewiwnntj) · freeCodeCamp · 12 upvotes · 1 comments
- [HAR: Open Source harness for multi-agent coding workflows](https://daily.dev/posts/har-open-source-harness-for-multi-agent-coding-workflows-cnz7hfq15) · Product Hunt · 14 upvotes · 1 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#architecture](https://daily.dev/tags/architecture), [#claude-code](https://daily.dev/tags/claude-code), [#openai-codex](https://daily.dev/tags/openai-codex)

[View this post on daily.dev](https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Run Any Agent Harness Under One Interface","url":"https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4"},"datePublished":"2026-09-18T18:20:50.416Z","dateModified":"2026-09-18T18:21:16.638Z","description":"HarnessRouter is an open-source, self-hosted server implementing the Unified Harness Protocol (UHP), a standardized HTTP contract for running AI agent...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f7418aab66e47730f97f63e57e21d63c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f7418aab66e47730f97f63e57e21d63c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Daily Dose of Data Science | Avi Chawla | Substack","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Daily Dose of Data Science | Avi Chawla | Substack","logo":"https://media.daily.dev/image/upload/s--4IHQgTOw--/f_auto/v1710503712/logos/dailydoseofds","url":"https://daily.dev/sources/dailydoseofds"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"ai-agents,architecture,claude-code,openai-codex","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Daily Dose of Data Science | Avi Chawla | Substack","item":"https://daily.dev/sources/dailydoseofds"},{"@type":"ListItem","position":3,"name":"Run Any Agent Harness Under One Interface"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4","comment":[{"@type":"Comment","text":"Standardizing the harness interface is the unsexy work that makes evals actually comparable. I tried running the same eval across three CLIs last year and the differences in how they logged tool calls made the results useless without heavy normalization. What output format are you standardizing on: OpenTelemetry spans, structured JSON, or something custom?","datePublished":"2026-09-18T20:53:00.826Z","url":"https://daily.dev/posts/01asd0JN4#c-OEKxy4eAW","author":{"@type":"Person","name":"kartik-nvjk","url":"https://daily.dev/kartiknvj","image":"https://media.daily.dev/image/upload/s--3gGgsVCw--/f_auto/v1781456774/avatars/avatar_TvTVeiMdkRCqWUDullFmy?_a=BAMAMiWQ0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/run-any-agent-harness-under-one-interface-01asd0jn4#faq","mainEntity":[{"@type":"Question","name":"What is the difference between model routing and harness routing for AI agents?","acceptedAnswer":{"@type":"Answer","text":"Model routing happens inside the inference layer, choosing which model endpoint handles a request based on price, latency, or availability, while the same agent loop and application code remain in place. Harness routing instead selects the entire agent runtime—such as Codex, Claude Code, or Hermes—that owns the full task: planning, tool calls, file management, permissions, and completion decisions. daily.dev surfaces engineering deep dives like this for teams weighing agent runtime choices."}},{"@type":"Question","name":"How do I run the same coding task through both Codex and Claude Code using one API?","acceptedAnswer":{"@type":"Answer","text":"Use HarnessRouter, a self-hosted server implementing the Unified Harness Protocol, which exposes a Responses-API-compatible endpoint at /v1/responses. Sending a request with metadata.harness_id set to 'codex' or a custom Claude Code configuration routes the same task to either runtime while keeping the same event format, so switching harnesses only requires changing that one field. developers comparing agent harnesses can track implementation guides like this on daily.dev."}},{"@type":"Question","name":"What does the Unified Harness Protocol (UHP) standardize for AI agent runtimes?","acceptedAnswer":{"@type":"Answer","text":"UHP defines the HTTP contract between an application and an agent harness server, covering task creation, progress via Server-Sent Events, sessions, file uploads and artifacts, cancellation, and error structure, without dictating how the harness itself plans or executes work. Its current version is 2026-09-12, and it publishes a written spec, OpenAPI 3.1 schema, JSON Schema definitions, and conformance tests. daily.dev helps engineers building on emerging agent protocols like UHP stay current on the spec."}}]}
```

