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.

979 B
Raw Blame
#!/usr/bin/env bash
# Run only in the disposable installed VM as its ordinary user. No accounts or
# API calls: this checks that real vendor executables install and start here.
set -euo pipefail
REPORT_DIR="$HOME/.local/state/harness-os/agent-check"
mkdir -p "$REPORT_DIR"
trap 'printf "%s\n" "$?" > "$REPORT_DIR/status"' EXIT
test "$(npm prefix -g)" = "$HOME/.local"
for row in 'claude @anthropic-ai/claude-code' 'codex @openai/codex'; do
    read -r executable package <<< "$row"
    npm install --global --no-audit --no-fund "$package"
    "$executable" --version | tee "$REPORT_DIR/$executable.txt"
done
/usr/bin/opencode --version | tee "$REPORT_DIR/opencode.txt"
npm install --global --ignore-scripts --no-audit --no-fund @earendil-works/pi-coding-agent
pi --version | tee "$REPORT_DIR/pi.txt"
npm ls --global --depth=0 --json > "$REPORT_DIR/packages.json"
printf '%s\n' 'Vendor installation and startup passed. Authenticated agent turns are a separate, unverified check.'