Lightweight host-pool resource CLI β SSOT-aware add/remove/list/status/fix
operator for cross-host inventory declared in a single .resource DSL file.
hx install need-singularity/hive-resource
The package is fully self-contained at ~/.hx/packages/hive-resource/ β
no monorepo checkout required.
hive-resource list # show host pool (reachable + load + mem)
hive-resource status [host] # detailed health (ssh + remote shim + claude)
hive-resource add <host> # probe + bootstrap disclosure (raw 91 C3)
hive-resource remove <host> # disclosure (manual .resource edit required)
hive-resource fix <host> # remote shim auto-repair playbook
hive-resource oauth-status <host> # per-slot OAuth health probe
hive-resource oauth-reset <host> # slot-pool reset disclosure
hive-resource --selftest # canonical-form self-check (no host I/O)
After install, edit ~/.hx/packages/hive-resource/.resource to declare your
own host inventory. The shipped file is a placeholder template β replace the
example blocks with actual SSH aliases, remote homes, capabilities, and
scoring weights. Keep the resource state deferred until the entry is ready
to participate in pool routing, then flip to live.
The shim self-locates the package root via $0 (POSIX-portable symlink walk),
so it works for any user installing via hx install need-singularity/hive-resource
regardless of $HOME path layout.
Resolution priority:
$HIVE_RESOURCE_ROOTenv var (explicit override)- self-located via
$0β resolves to~/.hx/packages/hive-resourceon hx install
hexainterpreter (~/.hx/bin/hexa) β install viahx install hexa.
MIT.