Skip to content

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

fix(scripts): prompt budget also drops OPENHUMAN_HOME

M3gA-Mind0c29c8748be5
diff --git a/scripts/check-prompt-budget.sh b/scripts/check-prompt-budget.sh
index 5ff7c0250f..f4a07222c2 100755
--- a/scripts/check-prompt-budget.sh
+++ b/scripts/check-prompt-budget.sh
@@ -88,8 +88,10 @@ echo "[prompt-budget] measuring against hermetic workspace $WORKSPACE" >&2
# scans ~/.openhuman/skills and ~/.agents/skills, so one installed skill added
# 515 B of `## Installed Skills` to the orchestrator on a dev machine and a
# `--write` there baked it into the limits. An empty HOME matches CI.
+# OPENHUMAN_HOME is dropped too: the agent-definition loader prefers it
+# over ~/.openhuman.
mkdir -p "$WORKSPACE/home"
-if ! measured="$(HOME="$WORKSPACE/home" RUST_LOG=error "$BIN" agent prompt-size --workspace "$WORKSPACE/workspace" --hermetic --json)"; then
+if ! measured="$(env -u OPENHUMAN_HOME HOME="$WORKSPACE/home" RUST_LOG=error "$BIN" agent prompt-size --workspace "$WORKSPACE/workspace" --hermetic --json)"; then
echo "::error::prompt-size failed to measure" >&2
exit 1
fi