Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed bench/harnesses/bundles/Dockerfile.openhuman

Steven Enamakel32098895ce3a
diff --git a/bench/harnesses/bundles/Dockerfile.openhuman b/bench/harnesses/bundles/Dockerfile.openhuman
index 721d4dac8f..cf47514a04 100644
--- a/bench/harnesses/bundles/Dockerfile.openhuman
+++ b/bench/harnesses/bundles/Dockerfile.openhuman
@@ -15,6 +15,14 @@ ENV PATH=/root/.cargo/bin:$PATH
WORKDIR /build
COPY . .
ARG CARGO_PROFILE=release
+# Bench-only: the product's orchestrator stops a turn after 15 tool iterations, which cuts the
+# agent off while it is still reading the repo on long-horizon tasks. The other harnesses are run
+# with no turn cap, so lift this one for the benchmark (product default stays 15). Set to 15 to
+# reproduce the shipped behaviour. The sed must change the file or the build fails.
+ARG OH_MAX_ITERATIONS=200
+RUN f=crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml \
+ && sed -i "s/^max_iterations = 15\$/max_iterations = ${OH_MAX_ITERATIONS}/" "$f" \
+ && grep -q "^max_iterations = ${OH_MAX_ITERATIONS}\$" "$f"
RUN --mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/build/target \
cargo build --profile "${CARGO_PROFILE}" -p openhuman-cli --bin openhuman-core \