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(readme): pull latest, and make latest worth pulling

richard-epsilla5c0a28c078ab
diff --git a/.github/workflows/retag-latest.yml b/.github/workflows/retag-latest.yml
new file mode 100644
index 00000000..20417a27
--- /dev/null
+++ b/.github/workflows/retag-latest.yml
@@ -0,0 +1,71 @@
+# Move `latest` to an already-published version, without rebuilding it.
+#
+# WHY THIS IS NOT PART OF THE RELEASE WORKFLOW
+#
+# Rebuilding in order to move a pointer is how one version number comes to mean two different
+# images: the second build picks up a newer base layer, a dependency that floated, a different
+# timestamp, and now `0.4.2` is not the `0.4.2` anyone already pulled. `imagetools create` copies
+# the manifest, so `latest` and the version resolve to the SAME digest, byte for byte, and the
+# job proves it before it finishes.
+#
+# It is deliberately manual. `latest` is what an unpinned `docker run` gets, so moving it is a
+# decision about what strangers receive, not a step that should follow automatically from a build.
+name: retag-latest
+
+on:
+ workflow_dispatch:
+ inputs:
+ version:
+ description: 'Published version to point latest at, without the v (e.g. 0.4.2)'
+ required: true
+
+env:
+ IMAGE: harnessrouter/harnessrouter
+
+jobs:
+ retag:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check the version is a real published tag
+ run: |
+ set -euo pipefail
+ V='${{ inputs.version }}'
+ case "$V" in
+ [0-9]*.[0-9]*.[0-9]*) ;;
+ *) echo "::error::'$V' is not a semver version"; exit 1 ;;
+ esac
+ T=$(curl -sf "https://auth.docker.io/token?service=registry.docker.io&scope=repository:${IMAGE}:pull" | jq -r .token)
+ code=$(curl -s -o /dev/null -w '%{http_code}' -H "Authorization: Bearer $T" \
+ -H 'Accept: application/vnd.oci.image.index.v1+json,application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.docker.distribution.manifest.v2+json' \
+ "https://registry-1.docker.io/v2/${IMAGE}/manifests/$V")
+ [ "$code" = 200 ] || { echo "::error::${IMAGE}:$V is not published (HTTP $code)"; exit 1; }
+ echo "$V is published"
+
+ - uses: docker/setup-buildx-action@v3
+
+ - uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - name: Point latest at it
+ run: docker buildx imagetools create -t "${IMAGE}:latest" "${IMAGE}:${{ inputs.version }}"
+
+ # Read it back from the registry rather than trusting the command's exit code: the whole
+ # promise of this job is that the two tags are the same bytes.
+ - name: Prove the two tags are one image
+ run: |
+ set -euo pipefail
+ T=$(curl -sf "https://auth.docker.io/token?service=registry.docker.io&scope=repository:${IMAGE}:pull" | jq -r .token)
+ dig() {
+ curl -s -o /dev/null -D - -H "Authorization: Bearer $T" \
+ -H 'Accept: application/vnd.oci.image.index.v1+json,application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.docker.distribution.manifest.v2+json' \
+ "https://registry-1.docker.io/v2/${IMAGE}/manifests/$1" \
+ | tr -d '\r' | awk -F': ' 'tolower($1)=="docker-content-digest"{print $2}'
+ }
+ A=$(dig "${{ inputs.version }}"); B=$(dig latest)
+ echo "${{ inputs.version }} = $A"
+ echo "latest = $B"
+ [ -n "$A" ] && [ "$A" = "$B" ] || { echo "::error::latest does not match ${{ inputs.version }}"; exit 1; }
+ echo "### latest now serves ${{ inputs.version }}" >> "$GITHUB_STEP_SUMMARY"
+ echo "\`$A\`" >> "$GITHUB_STEP_SUMMARY"
diff --git a/README.md b/README.md
index 7d85343e..071e7543 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ own data. Configure a harness, give it work, watch it run, with no account, no c
## Install
Six steps, and at the end of them you have a running instance, a signed-in console, and an agent
-that has answered you. Everything here was run against the published `0.4.2` image on a brand-new
+that has answered you. Everything here was run against the published 0.4.2 release on a brand-new
volume, and every block of output is what it actually printed.
You need Docker, about 4 GB of disk (2.7 GB of image and around a gigabyte in the data volume once
@@ -48,15 +48,14 @@ the box except to call the provider it belongs to.
### 1. Pull the image
```bash
-docker pull harnessrouter/harnessrouter:0.4.2
+docker pull harnessrouter/harnessrouter
```
716 MB over the wire, in 25 layers.
-**Pin the version, and pin this one.** `latest` currently resolves to **0.4.1**: one release
-behind, with three starter kits instead of four and no video export. Every command on this page
-names `0.4.2` explicitly, and so should yours: an unpinned `docker run` today gets you a different
-product from the one in these screenshots.
+`latest` is the current release, and pulling it again is how you upgrade. Pin a version only
+when you need two machines to run the same bytes, for instance `harnessrouter/harnessrouter:0.4.2`
+in a compose file you share with a team. `docker image inspect` will tell you which one you have.
**The published image is `linux/amd64` only.** On an Apple Silicon Mac, `docker pull` gets an
emulated image: a platform warning, and a first start that is already slow made slower.
@@ -124,7 +123,7 @@ docker run -d --name harnessrouter \
-e HR_AUTH_PASSWORD='something only you know' \
-e HR_SECRET_GLOBAL_HARNESS_CONN_ANTHROPIC='{"name":"anthropic","provider":"anthropic","api_key":"sk-ant-…"}' \
-e HR_SECRET_GLOBAL_HARNESS_POLICY_CLAUDE='{"chain":["anthropic"]}' \
- harnessrouter/harnessrouter:0.4.2
+ harnessrouter/harnessrouter
```
Three parts of that line are load-bearing. `-p 127.0.0.1:` keeps the console on loopback, which is
@@ -136,9 +135,9 @@ is the difference between an instance only you can drive and one whose password
file.
Compose works too (`cp .env.example .env`, put your key in it, `docker compose up -d`), but read
-`docker-compose.yml` before you do. It still pins `latest`, it publishes `3000:3000` on every
-interface rather than on loopback, and `.env.example` ships with the default password filled in.
-Change all three lines and it behaves like the command above.
+`docker-compose.yml` before you do. It publishes `3000:3000` on every interface rather than on
+loopback, and `.env.example` ships with the default password filled in. Change those two lines and
+it behaves like the command above.
### 4. Watch the first start
@@ -320,7 +319,7 @@ DNS, so on it only the container's IP works, and that IP changes:
docker network create hr-net
docker network connect hr-net my-postgres
docker run -d --name harnessrouter --network hr-net \
- -p 127.0.0.1:3000:3000 -v harnessrouter:/data … harnessrouter/harnessrouter:0.4.2
+ -p 127.0.0.1:3000:3000 -v harnessrouter:/data … harnessrouter/harnessrouter
```
Then `my-postgres:5432` works as a host in the connection string. A database on the host machine