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.

643 B
Raw Blame
#!/bin/sh
# Sourced by the two OS launchers. Fast updates are per-user and never replace
# pacman's packaged fallback. Privileged commands always use packaged code.
harness_runtime=/usr/lib/harness
if [ "$(id -u)" != 0 ] && [ ! -f /etc/harness-live ]; then
    harness_candidate="$HOME/.local/state/harness-os/updates/current"
    if [ -x "$harness_candidate/harness-tui" ] && [ -f "$harness_candidate/cli.mjs" ] && [ -f "$harness_candidate/notify.mjs" ] &&
        cmp -s "$harness_candidate/base.json" /usr/share/harness-os/runtime.json; then
        harness_runtime=$harness_candidate
    fi
fi
export HARNESS_TUI_BIN="$harness_runtime/hn"