Practical guides
Step-by-step guides for switching clients mid-run, reviewing diffs, delegating to subagents, importing pi archives, and extending H.
Each guide below walks through a complete task against your local H daemon. Confirm your server is running with hi daemon status, or complete Set up H first.
Daily workflows
- Resume a turn in another client: start a prompt in
hi, follow the active stream inhiweb, and reattach from the terminal. - Review a change in the browser: pin a comment to a specific commit and line range, or edit a working file with a revision check.
- Delegate to a subagent: spawn a focused child session for read-only review or parallel edits in a separate Git worktree.
- Import pi transcripts: bring existing
pisession logs into H as browsable read-only archives.
Configuration recipes
- Set up a provider: save write-only API keys, sign in with Codex device login, or register an OpenAI-compatible endpoint.
- Configure the terminal footer: append custom status lines and reload keybindings in
hi. - Install and upgrade the daemon: register a per-user background service and drain active turns during upgrades.
- Build a local extension: compile an API 1 startup package and verify it against a disposable data directory.
Development recipes
- Build a client: connect to
/api/v1, stream conversation events over SSE, and verify idempotent command retries. - Author a harness profile: define custom agent instructions and tool sets for new sessions.
- Hooking into core: choose between SSE streams,
H.ExecutionEnv, and startup contracts. - Extend the hi CLI: add a standalone
hi-<name>subcommand on yourPATH.