Live session control
Each normal Hunk TUI registers with one loopback daemon. hunk session ... finds a registered window and sends it review actions.
Find the session
Section titled “Find the session”hunk session listhunk session get --repo .hunk session context --repo .Use --repo <path> for normal worktrees. Use an explicit session ID when multiple windows share a repository.
Inspect without overloading context
Section titled “Inspect without overloading context”hunk session review --repo . --jsonThis returns files and hunks. Add flags only when required:
hunk session review --repo . --include-notes --jsonhunk session review --repo . --include-patch --jsonNavigate the visible window
Section titled “Navigate the visible window”hunk session navigate --repo . --file src/App.tsx --hunk 2hunk session navigate --repo . --file src/App.tsx --new-line 372hunk session navigate --repo . --next-commentHunk numbers are 1-based. Absolute navigation needs a file and exactly one hunk, old-line, or new-line target.
Reload the review
Section titled “Reload the review”Always place -- before the nested Hunk command:
hunk session reload --repo . -- diffhunk session reload --repo . -- show HEAD~1 -- README.mdAdvanced reloads can target the live window by --session-path and load from a separate --source directory. Prefer --repo until those roles genuinely need to differ.
Diagnose local access
Section titled “Diagnose local access”If a visible Hunk window does not appear in session list, an agent sandbox may block loopback access. Hunk's daemon is intentionally local-only; retry with the agent's network/sandbox permission rather than exposing it remotely. hunk daemon serve is available for manual startup or daemon debugging.