H (:harness) is a local Elixir/OTP coding-agent daemon with durable branched sessions, a native terminal client (hi), and a Phoenix LiveView workbench (hiweb).
Website & Manual (hiness.dev) · macOS App (hiness.app) · Hex (hiness) · HexDocs · GitLab Releases · GitHub Releases
Sessions branch without copying transcripts. Terminal and browser clients share the same live conversation, and disconnecting one never stops a run.
Quickstart
Install H on macOS or Linux
Review scripts/install.sh (also served at https://hiness.dev/install.sh), then run:
curl -fsSL https://hiness.dev/install.sh | sh -s -- --service
Then connect a model provider and launch the terminal client in any project:
hi login # or configure an API key with /key set
cd /path/to/project
hi # fullscreen TUI (hi inbox for multi-session triage)
The bundled daemon also serves the owner-authenticated web workbench at http://127.0.0.1:4200/inbox (sign in with ~/.local/share/h/auth.token).
Other install options
-
macOS menu-bar app (
H.app) — Visit hiness.app or downloadH-v<version>-darwin-arm64.dmgfrom GitLab Releases / GitHub Releases, dragH.appto/Applications, and open it.H.appstarts the bundled daemon on~/.local/share/h, openshttp://127.0.0.1:4200/inbox, and adds[H]menu-bar actions to copy your owner sign-in token, linkhiontoPATH, or cooperatively drain and restart the daemon. -
Elixir / Mix archive (
mix h.setup) — If Elixir and Mix are already installed:mix archive.install https://gitlab.com/parlant-co/harness/-/releases/permalink/latest/downloads/h_setup.ez mix h.setup --service -
Embed
:harnessin an Elixir project — With Elixir 1.20 / OTP 29, add the core daemon from Hex tomix.exs:{:harness, "~> 0.5.1", hex: :hiness}hinessis the Hex package name;:harnessis the OTP application and configuration key. See the embedding guide and Elixir API reference on HexDocs.
Signed release verification, platforms, and installer paths
Prebuilt signed releases are published for macOS (darwin-arm64) and Linux (linux-arm64, linux-x86_64). Every release embeds a BUILD_MANIFEST.json tied to its exact Git commit and is signed with OpenSSH (bingboombam@parlant.xyz in packaging/keys/release-signers).
install.sh verifies SHA256SUMS.sig with ssh-keygen -Y verify, checks the archive SHA-256, installs under ~/.local/opt/harness/current, links hi and hi-import into the first writable standard PATH directory (/usr/local/bin, /opt/local/bin, /opt/homebrew/bin, ~/.local/bin, or other writable PATH directories, falling back to ~/.bin last; override with --bin-dir), and optionally registers a per-user macOS LaunchAgent or Linux systemd --user service (--service).
Everyday hi workflow
hi # fullscreen editor; Enter steers, Alt-Enter follows up
hi inbox # live multi-session inbox across workspaces (/inbox or Alt-I)
hi --tui-mode regular # terminal-owned scrollback
hi -r # workspace session picker
hi -s SESSION_ID # attach by ID (works through workspace symlinks)
hi daemon status # check daemon health and active sessions
hi import --harness pi # import pi transcripts as read-only sessions
Accounts & providers: hi login sets up a managed Codex device login without needing a Codex executable (also /login in session or Account settings in hiweb). Manage profiles with hi account list|add|use|remove, hi logout [alias], or hi key remove <provider> <alias>. See model provider setup for /key set, named API-key profiles, Codex device login, and Gemini on Vertex AI.
Cooperative restarts: On shutdown (hi daemon stop, restart, restart-service, mix h.install, or SIGTERM), the daemon drains open tools and provider streams without starting new turns (extending the 300s default drain timeout for active tool deadlines plus a 30s commit grace), then resumes active sessions on next boot. See local daemon management for --idle-only guards and /restart-ui.
Security note: Host tools execute with your OS user's filesystem and shell permissions, not in a sandbox.
Build from source
Development setup, local bundles, and test commands (Elixir 1.20 / OTP 29, Rust, Node)
Run from a checkout
Building from source (including the hiness Hex package) requires Rust/Cargo
1.91+ and a native linker for the Scandir NIF. Signed bundles already contain it.
Use RUSTFLAGS="-C target-feature=-crt-static" for a native musl build.
# Web UI (optional Monaco assets) + Phoenix + embedded daemon
(cd clients/web/assets && npm ci && npm run build)
(cd clients/web && mix deps.get && PHX_SERVER=true mix run --no-halt)
# Or daemon only (API + terminal clients, no browser UI)
mix deps.get
mix compile
bin/h-daemon
Run only one server per data directory (~/.local/share/h by default; override with --data-dir DIR or H_DATA_DIR). For Phoenix dev, open http://127.0.0.1:4000 and sign in with ${H_DATA_DIR:-$HOME/.local/share/h}/auth.token. Use h-daemon -ne (--no-extensions) to bypass configured extensions. MultiCodex is a separate path-loaded extension. See Working on the web UI for LiveView development details.
Build and install the Rust terminal client from source (attaches to either server; does not start one):
cargo install --locked --path clients/tui
hi daemon start --launcher "$PWD/bin/h-daemon" # foreground, from a built checkout
Build and install local release bundles
mix h.build # development build of all three apps
mix h.build --release # tested standalone bundle at dist/harness (alias: mix h.bundle)
dist/harness/bin/hi daemon start
mix h.local --service # first-time build + smoke-test + service install
mix h.local # subsequent updates (or mix h.install if already built)
hi resolves its sibling h-daemon by default (H_DAEMON_BIN or --launcher overrides it). On macOS, hi daemon install-service registers a per-user LaunchAgent.
Test
mix test # root daemon suite (defaults to --no-start, no live LLM calls)
(cd clients/web && mix test) # web client suite (--no-start)
cargo test --locked --manifest-path clients/tui/Cargo.toml
To include the Phoenix/Rust sync test, build hi first and run HI_BIN=/absolute/path/to/hi mix test --include native_client in clients/web/.
Documentation
-
User-facing manual & guides: published on hiness.dev and hiness.app (sourced from
websites/). -
Elixir API reference (HexDocs): generated locally with
MIX_ENV=dev mix docs(outputs into ignoreddoc/, never committed to Git) and published to hiness.hexdocs.pm. -
Repository internal architecture, specs & contributor guides: kept in
docs/. -
hiness.dev — operator manual, setup guides, and walkthroughs
-
hiness.app — macOS
H.appbundle showcase and download guide -
HexDocs (
hiness) — Elixir API reference and embedding guide -
Architecture — ownership, atomic commits, crash recovery, and client boundaries
-
Subagents and work delegation — multi-session orchestration and delegation primitives
-
Local HTTP/JSON and SSE protocol — daemon API and streaming contract
-
Model providers —
/key set, Codex device login, and Vertex AI -
Extensions — daemon packages, profiles, environments, providers, and clients
-
hi design and parity target · hi build status · Session performance
The project websites (websites/hiness.dev and websites/hiness.app) build separately with Jekyll and share synchronized release and legal records under websites/shared/.
This repository is licensed under the MIT License.