Repository navigation
v0.1.0
hauntty v0.1.0
Stateful, observable shell sessions for LLM agents.
A single static Go binary that gives LLM agents a real shell on remote hosts: persistent PTY, structured output, deterministic process monitoring via /proc, all over one SSH tunnel. Self-deploying — hauntty connect user@host and it's running.
Highlights
- Metadata-first execution — every command returns
seq,rc,stdout_lines,stderr_lines,cwdbefore the payload. The agent decides what to read. - Persistent PTY sessions — CWD, environment, and shell state survive across commands. No more re-establishing context on every invocation.
- Parallel sessions — up to 16 independent sessions per host, each with its own shell state and audit log.
- Deterministic process monitoring —
/proc-based classification (running, waiting_input, io_wait, idle, done). No regex heuristics. - Self-deploying —
hauntty connect user@hostSCPs the binary, starts the daemon, forwards the socket. Zero dependencies on the remote. - Corpus log — centralized JSONL audit trail across all sessions, filterable by time, host, session, or failure status.
- Context window efficiency — up to 99% reduction in tokens consumed vs raw SSH, measured on real diagnostic workloads.
Build
git clone https://github.com/sch0tten/hauntty.git
cd hauntty
make build # local with version stamping
make build-all # + cross-compile linux/amd64 + linux/arm64Apache License 2.0