macOS Packaging · co.parlant.harness
Inside the H.app macOS bundle
How H.app packages a native AppKit menu-bar supervisor, an embedded Erlang/OTP 29 release, and native Rust CLI tools into a single relocatable macOS application bundle.
- Install and verify H.app on macOS
- Set up workspace access
- Upgrade H.app
- What H.app runs on launch
- Safe CLI installation onto PATH
- Environment variables respected by H.app
- Code signing and checksum verification
Install and verify H.app on macOS
Download H-v0.5.3-darwin-arm64.dmg (or H-v0.5.3-darwin-arm64.app.zip), SHA256SUMS, SHA256SUMS.sig, and release-signers from GitLab Releases or GitHub Releases:
curl -fLO https://gitlab.com/parlant-co/harness/-/releases/permalink/latest/downloads/H-v0.5.3-darwin-arm64.dmg
curl -fLO https://gitlab.com/parlant-co/harness/-/releases/permalink/latest/downloads/SHA256SUMS
curl -fLO https://gitlab.com/parlant-co/harness/-/releases/permalink/latest/downloads/SHA256SUMS.sig
curl -fLO https://raw.githubusercontent.com/parlant/harness/main/packaging/keys/release-signers
ssh-keygen -Y verify -f release-signers \
-I [email protected] -n file \
-s SHA256SUMS.sig < SHA256SUMS
shasum -a 256 -c SHA256SUMS --ignore-missing
Mount the disk image, copy H.app into /Applications, clear the browser quarantine attribute if present, and launch the menu-bar supervisor:
hdiutil attach H-v0.5.3-darwin-arm64.dmg -nobrowse -mountpoint /Volumes/H
ditto /Volumes/H/H.app /Applications/H.app
hdiutil detach /Volumes/H
xattr -dr com.apple.quarantine /Applications/H.app
open /Applications/H.app
After launch, click H -> Copy Owner Sign-In Token (⌘C) to authenticate http://127.0.0.1:4200/inbox, and click H -> Install 'hi' Command Line Tool… to symlink hi and hi-import onto your PATH.
Set up workspace access
Keep H.app in /Applications before granting folder access. Open H -> Permissions & Setup for the native setup guide, links to macOS privacy settings, and Reveal hi-exec in Finder. H starts its bundled daemon through this helper.
Open the project folder you intend to use and respond to any macOS folder prompt. Review those decisions under System Settings -> Privacy & Security -> Files & Folders. Projects in ~/Projects avoid many prompts associated with Desktop, Documents, and Downloads.
Full Disk Access is optional and gives H and its tools broad access to sensitive user data. Grant it only when your work requires that access. The setup guide can reveal the exact helper path for the settings file picker. After changing permissions, choose H -> Drain & Restart Daemon.
If the menu reports an external daemon, permissions granted to H.app may not apply to that process. Follow the setup guide to check and drain the existing service before reopening H. H leaves an existing service under its current owner.
Ordinary coding and folder access require neither Accessibility nor Screen Recording permission. The setup guide links to those settings for future computer-control work; H does not currently request or use them.
Read the native setup guide implementation for the permission and daemon-ownership checks.
Upgrade H.app
To upgrade H.app to a newer release:
- Choose Stop Daemon & Quit H (
⌘Q) from the menu bar so active turns drain cleanly. - Replace
/Applications/H.appfrom the new.dmgor.app.zip. - Reopen
/Applications/H.app. Existinghiandhi-importsymlinks into/Applications/H.app/Contents/Resources/harness/bin/resolve to the upgraded binaries automatically, and~/.local/share/hretains all sessions and credentials.
If you prefer the Mix archive bootstrap on an Elixir 1.20 / OTP 29 workstation, install h_setup.ez from the release with mix archive.install, then run mix h.setup --service; H.app and mix h.setup share ~/.local/share/h cooperatively.
What H.app runs on launch
When you open /Applications/H.app, macOS launches the compiled Swift executable at H.app/Contents/MacOS/HApp as an accessory status-bar application (NSApplication.ActivationPolicy.accessory).
- Data directory preparation:
HAppresolvesH_DATA_DIR(defaulting to~/.local/share/h) and creates it with owner-only0700permissions if absent. - External daemon detection:
HAppreads~/.local/share/h/daemon.jsonand checks whether the recorded PID is alive. When a LaunchAgent or terminal daemon is already serving that store,H.appattaches to it (Status: Running (external daemon)) rather than spawning a conflicting VM. - Managed daemon startup: When no daemon is active,
H.applaunchesContents/Resources/harness/bin/h-daemon --data-dir ~/.local/share/h, routes output to~/.local/share/h/h-daemon.log(0600), waits for readiness, and openshttp://127.0.0.1:4200/inboxin your default browser.
Inspect the full launcher implementation in packaging/macos/HApp.swift and the bundle metadata in packaging/macos/Info.plist.in.
Safe CLI installation onto PATH
Selecting Install 'hi' Command Line Tool… from the H status menu links both hi and hi-import from H.app/Contents/Resources/harness/bin/ into your shell environment without touching system-protected paths.
H.app inspects your PATH and selects the first writable directory in this priority order:
- Explicit
H_BIN_DIRoverride when set in the environment. - Standard local prefixes already on
PATH:/usr/local/bin,/opt/local/bin,/opt/homebrew/bin. ~/.local/binwhen present onPATHand writable (or creatable).- Any other writable user directory on
PATH, excluding/System/*,/Library/*,Cellar, version-managershims,.cargo/bin, andnode_modules/.bin. - Fallback to
~/.bin.
If a target filename already exists and is a regular file rather than a symbolic link, H.app aborts and alerts you instead of overwriting it.
Environment variables respected by H.app
Configure custom ports or isolated stores before launching H.app:
H_DATA_DIR: override the default~/.local/share/hsession and credential directory.H_WEB_PORT: change the loopback port opened by Open H Web UI (default4200).H_BIN_DIR: force a specific target directory when installing thehiandhi-importsymbolic links.
H.app automatically prepends /opt/homebrew/bin and /usr/local/bin to the daemon's PATH if absent so workspace tools (git, rg, language toolchains) remain available when launched from Finder or Spotlight.
Code signing and checksum verification
Every H-v<version>-darwin-arm64.dmg and H-v<version>-darwin-arm64.app.zip artifact is built by scripts/build-macos-app.sh, which signs embedded .dylib and .so NIF libraries first, signs the ERTS and Rust executables next, and seals H.app last.
Verify the downloaded disk image against the repository's OpenSSH release signer key (packaging/keys/release-signers) and macOS codesign:
ssh-keygen -Y verify -f release-signers \
-I [email protected] -n file \
-s SHA256SUMS.sig < SHA256SUMS
shasum -a 256 -c SHA256SUMS --ignore-missing
codesign --verify --deep --strict --verbose=2 /Applications/H.app
To uninstall H.app, choose Stop Daemon & Quit H (⌘Q) in the menu bar, move /Applications/H.app to the Trash, and remove the hi and hi-import symlinks from your PATH bin directory. Your session history and credentials remain in ~/.local/share/h until you delete that directory explicitly.
For full daemon administration, provider setup, and workspace session commands, continue to the operator manual on hiness.dev.