halfhand

Recording

hh run wraps a command in a PTY and records what happens.

hh run -- claude              # record a Claude Code session (auto-detected)
hh run -- python3 my_agent.py # record any command
hh run --adapter codex-cli -- codex   # force an adapter instead of auto-detect

Everything after -- is the command to record.

What gets captured

Flags

Health check

hh doctor is a read-only probe of the recording stack (PTY, watcher, store). Run it before a session you suspect is broken, or from CI:

hh doctor
hh doctor --json | jq

See Doctor. If a recording is interrupted (e.g. you kill hh), the session is marked interrupted on the next open and is still inspectable.