The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(scripts): always build binary and create workspace directory
Steven Enamakel30688ce52e75
diff --git a/package.json b/package.jsonindex 5b5df478a9..0ade442a85 100644--- a/package.json+++ b/package.json@@ -40,7 +40,6 @@"merge-pr": "bash scripts/shortcuts/review/merge.sh","mock:api": "node scripts/mock-api-server.mjs","pr:checklist": "node scripts/check-pr-checklist.mjs",- "prompt:eval": "bash scripts/prompt-eval.sh","prompt:report": "bash scripts/prompt-report.sh","pr:sync-main": "node scripts/merge-main-into-open-prs.mjs","release:notes": "node scripts/release/generate-release-notes.mjs",diff --git a/scripts/check-prompt-budget.sh b/scripts/check-prompt-budget.shindex f4a07222c2..c9523c9820 100755--- a/scripts/check-prompt-budget.sh+++ b/scripts/check-prompt-budget.sh@@ -76,12 +76,11 @@ WORKSPACE="$(mktemp -d "${TMPDIR:-/tmp}/openhuman-prompt-budget.XXXXXX")"cleanup() { rm -rf "$WORKSPACE" "${TOOL_LOOKUP:-}" "${TOOL_OVERSIZE:-}"; }trap cleanup EXIT-BIN="target/debug/openhuman-core"-if [[ ! -x "$BIN" ]]; then- echo "[prompt-budget] building openhuman-core …" >&2- cargo build --manifest-path Cargo.toml --bin openhuman-core \- --features "$(bash scripts/ci/product-features.sh)" >&2-fi+TARGET_DIR="${CARGO_TARGET_DIR:-target}"+BIN="$TARGET_DIR/debug/openhuman-core"+echo "[prompt-budget] building openhuman-core …" >&2+cargo build --manifest-path Cargo.toml --bin openhuman-core \+ --features "$(bash scripts/ci/product-features.sh)" >&2echo "[prompt-budget] measuring against hermetic workspace $WORKSPACE" >&2# `--hermetic` isolates config and workspace but not HOME: skill discovery still@@ -90,7 +89,7 @@ echo "[prompt-budget] measuring against hermetic workspace $WORKSPACE" >&2# `--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"+mkdir -p "$WORKSPACE/home" "$WORKSPACE/workspace"if ! measured="$(env -u OPENHUMAN_HOME HOME="$WORKSPACE/home" RUST_LOG=error "$BIN" agent prompt-size --workspace "$WORKSPACE/workspace" --hermetic --json)"; thenecho "::error::prompt-size failed to measure" >&2exit 1diff --git a/scripts/prompt-report.sh b/scripts/prompt-report.shindex fb069461ad..cb3332b3c5 100755--- a/scripts/prompt-report.sh+++ b/scripts/prompt-report.sh@@ -55,7 +55,7 @@ else# the user's ~/.openhuman (or $OPENHUMAN_HOME).TMP="$(mktemp -d "${TMPDIR:-/tmp}/openhuman-prompt-report.XXXXXX")"trap 'rm -rf "$TMP"' EXIT- mkdir -p "$TMP/home"+ mkdir -p "$TMP/home" "$TMP/workspace"echo "[prompt-report] measuring against hermetic workspace $TMP" >&2measured="$(env -u OPENHUMAN_HOME HOME="$TMP/home" RUST_LOG=error "$BIN" agent prompt-size --workspace "$TMP/workspace" --hermetic --json)"fi