Claude Harness#
Drives one interactive Claude Code process through a PTY and exposes typed host events over JSON lines. The package owns terminal control, question and permission handling, transcript parsing, forking, rewinding, and watchdog recovery. It does not know about VS Code, backend clients, or UI state.
scripts/session-host.ts is the process boundary used by the agent backend's Claude provider.