Skip to content

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

feat(bench): lift turn cap for openhuman benchmark

Steven Enamakel3d99bc9d0d29
diff --git a/bench/harnesses/bundles/Dockerfile.openhuman b/bench/harnesses/bundles/Dockerfile.openhuman
index 721d4dac8f..988e3bc8ca 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 orchestrator's shipped turn cap (50 tool iterations) can still cut an agent off
+# mid-task on long-horizon benchmarks, and the other harnesses are run with no turn cap, so lift
+# this one to 200 for the benchmark. Set OH_MAX_ITERATIONS to the shipped value to reproduce the
+# product. The rewrite 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 = [0-9]*\$/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 \