Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

docs: streamline README and use official star data (#156)

github-actions[bot]9bd9d8114818
diff --git a/.github/workflows/readme-stars.yml b/.github/workflows/readme-stars.yml
new file mode 100644
index 00000000..1df7274e
--- /dev/null
+++ b/.github/workflows/readme-stars.yml
@@ -0,0 +1,36 @@
+name: Refresh README stars
+on:
+ schedule:
+ - cron: '23 */6 * * *'
+ workflow_dispatch:
+permissions:
+ contents: write
+concurrency:
+ group: readme-stars
+ cancel-in-progress: false
+jobs:
+ refresh:
+ if: github.repository == 'HarnessRouter/harnessrouter' && github.ref == 'refs/heads/main'
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - run: python3 scripts/test-star-badge.py
+ - name: Fetch official count
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: python3 scripts/update-star-badge.py
+ - name: Publish only the badge to its resource branch
+ run: |
+ set -euo pipefail
+ candidate=$(mktemp)
+ cp docs/images/github-stars.svg "$candidate"
+ git restore docs/images/github-stars.svg
+ git fetch origin readme-badges
+ git switch --detach origin/readme-badges
+ cp "$candidate" docs/images/github-stars.svg
+ if git diff --quiet -- docs/images/github-stars.svg; then exit 0; fi
+ git config user.name 'github-actions[bot]'
+ git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
+ git add docs/images/github-stars.svg
+ git commit -m 'docs: refresh official star count'
+ git push origin HEAD:readme-badges
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 7c70d233..09b1b285 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -17,6 +17,14 @@ on:
branches: [main]
jobs:
+ readme-badge:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@v4
+ - run: python3 scripts/test-star-badge.py
+
gateway:
runs-on: ubuntu-latest
steps:
diff --git a/README.md b/README.md
index cdbd924c..acea159b 100644
--- a/README.md
+++ b/README.md
@@ -19,18 +19,12 @@
</p>
<p align="center">
- <a href="#top" title="Back to the top to star this repository"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2FHarnessRouter%2Fharnessrouter&amp;query=%24.stargazers_count&amp;label=Stars&amp;logo=github&amp;logoColor=white&amp;color=e3b341&amp;style=flat&amp;cacheSeconds=300&amp;labelColor=444c56" alt="GitHub Stars, exact count" title="Back to the top, then click GitHub’s Star button. Dynamic count; updates may be cached."></a>
+ <a href="#top" title="Back to the top to star this repository"><img src="https://raw.githubusercontent.com/HarnessRouter/harnessrouter/readme-badges/docs/images/github-stars.svg" alt="GitHub Stars, exact count" title="Back to the top, then click GitHub’s Star button. Official GitHub data, periodically refreshed; the last successful count is retained if refresh fails."></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-285AFF?logo=apache&amp;logoColor=white&amp;style=flat&amp;labelColor=444c56" alt="License: Apache 2.0"></a>
<a href="https://hub.docker.com/r/harnessrouter/harnessrouter"><img src="https://img.shields.io/docker/pulls/harnessrouter/harnessrouter?style=flat&amp;logo=docker&amp;logoColor=white&amp;label=Docker+pulls&amp;labelColor=444c56&amp;color=285aff" alt="Docker pulls"></a>
<a href="protocol/conformance"><img src="https://img.shields.io/badge/UHP-Full-16824B?style=flat&amp;labelColor=444c56" alt="UHP conformance: Full"></a>
</p>
-<p align="center">
- <a href="https://discord.gg/nPcbwqVPb2"><img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&amp;logoColor=white&amp;style=flat&amp;labelColor=444c56" alt="Discord: Join"></a>
- <a href="https://linkedin.com/company/harnessrouter/"><img src="https://img.shields.io/badge/LinkedIn-Follow-0A66C2?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI%2BPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIwLjQ1IDIwLjQ1aC0zLjU2di01LjU3YzAtMS4zMy0uMDMtMy4wNC0xLjg1LTMuMDQtMS44NSAwLTIuMTQgMS40NS0yLjE0IDIuOTR2NS42N0g5LjM0VjloMy40MnYxLjU2aC4wNWMuNDgtLjkgMS42NC0xLjg1IDMuMzctMS44NSAzLjYgMCA0LjI3IDIuMzcgNC4yNyA1LjQ2djYuMjhaTTUuMzIgNy40M2EyLjA3IDIuMDcgMCAxIDEgMC00LjE0IDIuMDcgMi4wNyAwIDAgMSAwIDQuMTRaTTcuMSAyMC40NUgzLjU0VjlINy4xdjExLjQ1WiIvPjwvc3ZnPg%3D%3D&amp;style=flat&amp;labelColor=444c56" alt="LinkedIn: Follow"></a>
- <a href="https://x.com/HARNESSROUTER"><img src="https://img.shields.io/badge/X-Follow-000000?logo=x&amp;logoColor=white&amp;style=flat&amp;labelColor=444c56" alt="X: Follow"></a>
-</p>
-
<p align="center">
<a href="#quickstart">Quickstart</a> · <a href="#use-the-api-directly">API</a> · <a href="#starter-kits">Starter kits</a> · <a href="#local-to-cloud">Cloud</a>
</p>
@@ -39,8 +33,6 @@
<a id="one-integration"></a>
-<br>
-
## N × M harness integrations → 1 unified interface.
<img src="docs/images/2026-09-10-harnessrouter-integration-comparison-v4.gif" width="100%" alt="Animated illustration: compare four generic harnesses and 4 × 9 = 36 repeated responsibilities with one HarnessRouter product integration. Add a fifth harness in With while product integration stays one, then return to Without to see 5 × 9 = 45. With names Codex, Claude Code, Hermes, Pi, and DeepSeek Harness.">
@@ -186,9 +178,7 @@ You can change the default model later in Settings, but the base harness cannot
[![Start a custom harness from the New harness button](docs/images/2026-09-10-harnessrouter-custom-harness-feedback-configuration-v5-poster.png)](docs/images/2026-09-10-harnessrouter-custom-harness-feedback-configuration-v5.mp4?raw=true)
-[▶ Watch the walkthrough · MP4 · 48 seconds](docs/images/2026-09-10-harnessrouter-custom-harness-feedback-configuration-v5.mp4?raw=true)
-
-<sub>Customer-feedback analysis with DeepSeek Harness. The final still is a sidebar reference screenshot.</sub>
+<sub>Configure DeepSeek Harness for customer-feedback analysis.</sub>
</details>
@@ -204,12 +194,12 @@ You can change the default model later in Settings, but the base harness cannot
## Integrate your harness into your product backend with one API
-Treat each harness as a pluggable agent backend for your product. Integrate a built-in or custom harness through your self-hosted HarnessRouter instance’s OpenAI Responses-compatible API. `metadata.harness_id` selects the harness that runs each agent task, so you can switch harnesses without redesigning your product backend. No Cloud account or upload is required.
+Run product tasks with built-in or custom harnesses as pluggable agent backends. Call your self-hosted instance’s OpenAI Responses-compatible API and select the harness with `metadata.harness_id`. No Cloud deployment is required.
Once your harness runs successfully in the Console:
-1. Open `/keys` on the same CE instance ([default local address](http://localhost:3000/keys)) and choose **Create API key**. This key is created in and used by your self-hosted CE instance; it is not a Cloud key. CE currently hides this page from the sidebar, so open the URL directly.
-2. Store the secret shown once as `HARNESSROUTER_API_KEY` in your product backend. Never expose it in browser code.
+1. Open `/keys` on the same CE instance ([default local address](http://localhost:3000/keys)) and choose **Create API key**. Open this URL directly if API keys is not visible in the sidebar.
+2. Store the secret shown once as `HARNESSROUTER_API_KEY` in your product backend. Never expose it in browser code. This CE-issued key is separate from your Console password and provider key.
3. Call the API with the Harness ID shown in the Console and a model served by your connected provider.
```bash
@@ -226,7 +216,7 @@ curl --fail-with-body -sS "$HARNESSROUTER_BASE_URL/v1/responses" \
}'
```
-The task and its transcript appear in the same workspace in the Console. Set `"stream": true` to receive server-sent events. This HarnessRouter API key, created in your CE instance, authenticates your product backend to that instance; it is not your Console password or model-provider key.
+The task and its transcript appear in the same workspace in the Console. Set `"stream": true` to receive server-sent events.
The default URL works when your backend and CE run on the same computer. From another machine or container, use a reachable URL for the CE instance. [Read the complete self-hosted API and networking guide →](docs/self-hosting-guide.md#using-the-api)
@@ -244,17 +234,13 @@ The default URL works when your backend and CE run on the same computer. From an
</tbody>
</table>
-Treat agent harnesses as an **AI infrastructure layer**, like databases or model APIs. HarnessRouter gives your product one unified interface to this **harness layer**.
-
-See the [API guide](docs/self-hosting-guide.md#using-the-api) for catalogs, sessions, cancellation, and traces. For the full API contract, see the [Unified Harness Protocol (UHP) specification](https://unifiedharnessprotocol.org/spec).
-
<a id="starter-kits"></a>
<br>
## See where agent harnesses fit in your product
-Plug agent harnesses into your own interface to power features and tasks far beyond coding. To help you explore what’s possible, we created starter kits for presentations, spreadsheets, dashboards, and videos. More kits will be added over time.
+Build beyond coding: explore harness-powered presentations, spreadsheets, dashboards, and videos.
<table>
<tr>
@@ -360,7 +346,7 @@ See [configuration](docs/self-hosting-guide.md#configuration), [upgrades and bac
## The Unified Harness Protocol
-[Unified Harness Protocol (UHP)](https://unifiedharnessprotocol.org) is the public, versioned contract implemented by Community Edition and HarnessRouter Cloud. Its task surface is deliberately compatible with the **OpenAI Responses API**, so existing Responses SDKs, streaming parsers, and UI components can work with a UHP server. UHP adds the harness-specific capabilities a model API does not provide: harness selection, persistent sessions, files, cancellation, and harness-managed tools and skills.
+[Unified Harness Protocol (UHP)](https://unifiedharnessprotocol.org) is the public, versioned contract implemented by Community Edition and HarnessRouter Cloud. Its task surface is deliberately compatible with the **OpenAI Responses API**, so existing Responses SDKs, streaming parsers, and UI components can work with a UHP server. UHP defines harness execution semantics for harness selection, persistent sessions, files, cancellation, and harness-managed tools and skills.
This repository contains the Apache 2.0 reference implementation, machine-readable schemas, and the conformance suite.
@@ -384,7 +370,7 @@ This repository contains the Apache 2.0 reference implementation, machine-readab
| **Build** | [Cloud & integration docs](https://harnessrouter.ai/docs) · [API guide](#use-the-api-directly) · [Starter kits](https://github.com/HarnessRouter/starter-kit) |
| **Deploy** | [Setup & operations](docs/self-hosting-guide.md) · [Local → Cloud](#local-to-cloud) · [HarnessRouter Cloud](https://harnessrouter.ai) |
| **Protocol** | [Unified Harness Protocol (UHP)](https://unifiedharnessprotocol.org) |
-| **Community** | [Discord](https://discord.gg/nPcbwqVPb2) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) |
+| **Community** | [Discord](https://discord.gg/nPcbwqVPb2) · [LinkedIn](https://linkedin.com/company/harnessrouter/) · [X](https://x.com/HARNESSROUTER) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) |
<br>
diff --git a/docs/images/benchmark-summary-mobile.svg b/docs/images/benchmark-summary-mobile.svg
index 021c22fe..6956a5b6 100644
--- a/docs/images/benchmark-summary-mobile.svg
+++ b/docs/images/benchmark-summary-mobile.svg
@@ -33,6 +33,7 @@
<g font-size="14" fill="#62626c">
<text x="20" y="163">Lowest vs. highest cost</text>
<text x="20" y="293">Fastest vs. slowest run</text>
+ <text x="20" y="316" font-size="12">Separate comparisons; results vary by task.</text>
</g>
</g>
</svg>
diff --git a/docs/images/benchmark-summary.svg b/docs/images/benchmark-summary.svg
index 94ba776f..09aebed8 100644
--- a/docs/images/benchmark-summary.svg
+++ b/docs/images/benchmark-summary.svg
@@ -1,7 +1,7 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="960" height="190" viewBox="0 0 960 190" role="img" aria-labelledby="title desc">
+<svg xmlns="http://www.w3.org/2000/svg" width="960" height="210" viewBox="0 0 960 210" role="img" aria-labelledby="title desc">
<title id="title">Compare cost and latency across eight configurations</title>
<desc id="desc">One recorded task. Eight Harness × Model configurations. Save 99.8%, lowest vs. highest cost: 0.47–223 credits. 3.2× faster, fastest vs. slowest run: 1m 25s–4m 36s end to end. These are separate comparisons of the observed extremes. Cost and latency vary by task.</desc>
- <rect x="0.5" y="0.5" width="959" height="189" rx="8" fill="#f6f8ff" stroke="#d7e0ff"/>
+ <rect x="0.5" y="0.5" width="959" height="209" rx="8" fill="#f6f8ff" stroke="#d7e0ff"/>
<g font-family="Arial,Helvetica,sans-serif">
<text x="28" y="29" font-size="17" font-weight="600" fill="#62626c">One recorded task · 8 Harness × Model configurations</text>
<g fill="none" stroke="#6385ff" stroke-width="1.3">
@@ -33,6 +33,7 @@
<g font-size="15" fill="#62626c">
<text x="28" y="174">Lowest vs. highest cost</text>
<text x="508" y="174">Fastest vs. slowest run</text>
+ <text x="28" y="198" font-size="13">Separate comparisons; results vary by task.</text>
</g>
</g>
</svg>
diff --git a/docs/images/github-stars.svg b/docs/images/github-stars.svg
new file mode 100644
index 00000000..16950489
--- /dev/null
+++ b/docs/images/github-stars.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="121" height="20" viewBox="0 0 121 20" role="img" aria-label="Stars: 1213">
+ <title>Stars: 1213</title>
+ <desc>Official GitHub repository star count. Periodically refreshed; retains the last successful value when a refresh fails.</desc>
+ <rect width="121" height="20" rx="3" fill="#444c56"/>
+ <path fill="#e3b341" d="M73 0h45a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H73Z"/>
+ <path fill="#e3b341" d="m12 3 2.16 4.38L19 8.08l-3.5 3.41.83 4.82L12 14.04l-4.33 2.27.83-4.82L5 8.08l4.84-.7Z"/>
+ <g font-family="Verdana,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">
+ <text x="46" y="14" fill="white">Stars</text>
+ <text x="97" y="14" fill="#24292f">1213</text>
+ </g>
+</svg>
diff --git a/scripts/test-star-badge.py b/scripts/test-star-badge.py
new file mode 100644
index 00000000..3a1824e2
--- /dev/null
+++ b/scripts/test-star-badge.py
@@ -0,0 +1,48 @@
+import importlib.util
+import io
+from pathlib import Path
+import tempfile
+import unittest
+from unittest.mock import patch
+from urllib.error import URLError
+import xml.etree.ElementTree as ET
+
+spec = importlib.util.spec_from_file_location("badge", Path(__file__).with_name("update-star-badge.py"))
+badge = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(badge)
+
+
+class BadgeTests(unittest.TestCase):
+ def test_valid_svg_and_exact_counts(self):
+ for count in [0, 1213, 123456, 999999999]:
+ root = ET.fromstring(badge.render(count))
+ self.assertEqual(root.attrib["aria-label"], f"Stars: {count}")
+ self.assertGreaterEqual(int(root.attrib["width"]), 117)
+
+ def test_invalid_data_rejected(self):
+ for value in [None, True, -1, "1213", 1.5, 1000000000]:
+ with self.assertRaises(ValueError):
+ badge.render(value)
+
+ def test_update_and_no_change(self):
+ with tempfile.TemporaryDirectory() as directory:
+ output = Path(directory) / "badge.svg"
+ for expected in [True, False]:
+ with patch.object(badge, "urlopen", return_value=io.BytesIO(b'{"stargazers_count":1213}')):
+ self.assertEqual(badge.update(output), expected)
+ self.assertIn("Stars: 1213", output.read_text())
+
+ def test_failure_preserves_previous(self):
+ with tempfile.TemporaryDirectory() as directory:
+ output = Path(directory) / "badge.svg"
+ output.write_text("last-good")
+ for result in [URLError("unavailable"), io.BytesIO(b'{"message":"rate limited"}'), io.BytesIO(b'{"stargazers_count":null}')]:
+ kwargs = {"side_effect": result} if isinstance(result, Exception) else {"return_value": result}
+ with patch.object(badge, "urlopen", **kwargs):
+ with self.assertRaises((URLError, KeyError, ValueError)):
+ badge.update(output)
+ self.assertEqual(output.read_text(), "last-good")
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/scripts/update-star-badge.py b/scripts/update-star-badge.py
new file mode 100644
index 00000000..1d2f769c
--- /dev/null
+++ b/scripts/update-star-badge.py
@@ -0,0 +1,62 @@
+#!/usr/bin/env python3
+"""Render the README star badge from GitHub's official repository API.
+
+Network/validation failures leave the previous file untouched. The workflow publishes
+only this SVG to readme-badges, keeping refresh commits out of the main branch.
+"""
+
+import json
+import os
+from pathlib import Path
+import tempfile
+from urllib.request import Request, urlopen
+
+
+API_URL = "https://api.github.com/repos/HarnessRouter/harnessrouter"
+OUTPUT = Path("docs/images/github-stars.svg")
+
+
+def render(count):
+ if type(count) is not int or not 0 <= count <= 999_999_999:
+ raise ValueError("Expected a nonnegative integer star count")
+ right = max(44, len(str(count)) * 8 + 16)
+ width = 73 + right
+ return f'''<svg xmlns="http://www.w3.org/2000/svg" width="{width}" height="20" viewBox="0 0 {width} 20" role="img" aria-label="Stars: {count}">
+ <title>Stars: {count}</title>
+ <desc>Official GitHub repository star count. Periodically refreshed; retains the last successful value when a refresh fails.</desc>
+ <rect width="{width}" height="20" rx="3" fill="#444c56"/>
+ <path fill="#e3b341" d="M73 0h{right-3}a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H73Z"/>
+ <path fill="#e3b341" d="m12 3 2.16 4.38L19 8.08l-3.5 3.41.83 4.82L12 14.04l-4.33 2.27.83-4.82L5 8.08l4.84-.7Z"/>
+ <g font-family="Verdana,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">
+ <text x="46" y="14" fill="white">Stars</text>
+ <text x="{73+right/2:g}" y="14" fill="#24292f">{count}</text>
+ </g>
+</svg>
+'''
+
+
+def update(output=OUTPUT):
+ headers = {"Accept": "application/vnd.github+json", "User-Agent": "HarnessRouter-stars"}
+ token = os.environ.get("GH_TOKEN")
+ if token:
+ headers["Authorization"] = f"Bearer {token}"
+ with urlopen(Request(API_URL, headers=headers), timeout=20) as response:
+ svg = render(json.load(response)["stargazers_count"])
+ output = Path(output)
+ if output.exists() and output.read_text() == svg:
+ return False
+ output.parent.mkdir(parents=True, exist_ok=True)
+ temporary = None
+ try:
+ with tempfile.NamedTemporaryFile(mode="w", dir=output.parent, delete=False) as stream:
+ temporary = Path(stream.name)
+ stream.write(svg)
+ temporary.replace(output)
+ finally:
+ if temporary is not None:
+ temporary.unlink(missing_ok=True)
+ return True
+
+
+if __name__ == "__main__":
+ print("Badge updated" if update() else "Star count unchanged")