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 measures with an empty HOME

M3gA-Mind0223c13d7c92
diff --git a/scripts/check-prompt-budget.sh b/scripts/check-prompt-budget.sh
index 1e2d762704..5ff7c0250f 100755
--- a/scripts/check-prompt-budget.sh
+++ b/scripts/check-prompt-budget.sh
@@ -84,7 +84,12 @@ if [[ ! -x "$BIN" ]]; then
fi
echo "[prompt-budget] measuring against hermetic workspace $WORKSPACE" >&2
-if ! measured="$(RUST_LOG=error "$BIN" agent prompt-size --workspace "$WORKSPACE/workspace" --hermetic --json)"; then
+# `--hermetic` isolates config and workspace but not HOME: skill discovery still
+# 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.
+mkdir -p "$WORKSPACE/home"
+if ! measured="$(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
diff --git a/scripts/prompt-budget.limits b/scripts/prompt-budget.limits
index 75392b50a4..6f2a59f07e 100644
--- a/scripts/prompt-budget.limits
+++ b/scripts/prompt-budget.limits
@@ -208,7 +208,7 @@ trigger_triage:9207:0
workflow_builder:79094:30397
summarizer:9021:0
tools_agent:9285:76791
-orchestrator:30809:30812
+orchestrator:30294:30812
code_executor:13320:12591
crypto_agent:12986:12357
task_manager_agent:7097:15834