Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

801 B
Raw Blame
#!/usr/bin/env bash
# Runs once in a fresh workspace (cwd = the workspace) after the template was copied. Builds the
# starter model so the pane has a part to show before the first prompt, and seeds the verdict.
set -euo pipefail
: "${HARNESS_DSH_DIR:?HARNESS_DSH_DIR is required}"
# The build below starts cadgen's warm daemon, and the agent's builds for the next hour run inside it,
# in this environment rather than theirs: give it the Node and the browser harness.json gives the agent.
export CADGEN_NODE="$HARNESS_DSH_DIR/toolchain/node.sh" PLAYWRIGHT_BROWSERS_PATH="$HARNESS_DSH_DIR/.playwright"
mkdir -p .harness STEP tmp
"$HARNESS_DSH_DIR/.venv/bin/python" src/part.py >/dev/null 2>&1 || true
"$HARNESS_DSH_DIR/.venv/bin/python" "$HARNESS_DSH_DIR/toolchain/verdict.py" >/dev/null 2>&1 || true