Runtime and Daemon (User Guide)
Audience: Users — Pipeline operators running the daemon and client commands.
Daemon Mode
hpilot serve starts a long-running WebSocket daemon that accepts pipeline runs over a WebSocket connection. The daemon is primarily controlled via the WebSocket Protocol.
Log Cleanup
When the daemon starts, it clears all contents under .hpilot/logs/ (including per-stage JSONL transcripts) and recreates the required directories. The same cleanup runs before each standalone hpilot run and before each daemon task execution. This ensures logs reflect only the current run or daemon lifetime — stale logs from previous runs are not preserved. Non-log state (locks, backups, contracts, artifacts) is not affected.
Retry Continuation
Codex stages may opt into native persisted goals with goal: true in the active stage override. Native automatic turns remain one logical hpilot operation, do not advance stage visits or consume separate retry slots, and are independently checked by the stage contract and verifier only after native completion and quiescence. If provider capacity or an exhausted response-stream disconnect leaves the goal blocked, hpilot retries that same goal within the current attempt, preserving its native accounting and leaving the stage retry counter unchanged. Goal mode is version-qualified, Codex-only and fail-closed; see the Codex harness guide.
When a stage attempt fails in a recoverable way and retry budget remains, hpilot can resume the previous agent session instead of starting a new one. This is called retry continuation. It preserves the agent's conversational context so the retry focuses on correcting the failure rather than restarting from the original prompt.
- Claude, Codex, OpenCode, and Antigravity support retry continuation. Claude and Codex reopen their captured SDK sessions, OpenCode reuses its native session in a live or restarted owned server, and Antigravity reopens its saved ACP session. All receive a focused continuation prompt.
- During a supported stage attempt, a contract or verifier block is evaluated between agent turns and can request a focused repair turn in the same session. Each completed turn consumes one
max_retriesslot. If the budget is exhausted after a block, the stage fails without another repair turn. - When a native Codex goal completes and its contract or verifier requests a correction, the next allowed attempt sends the correction as a message to the same Codex thread before reactivating the goal. This also applies to sessions shared with the Codex app. The goal keeps its usage and token limits, and each completed correction uses one
max_retriesslot. - Adapters that do not support retry continuation fall back to the existing fresh retry behavior (new session, original prompt). Logs indicate when fallback occurs.
- A launch that fails before completing a turn consumes one
max_retriesslot. A fresh or resumed launch can contain multiple completed turns; each turn consumes a slot. Codex model-capacity retries are handled below the stage retry layer and are the exception described next. - A temporary Codex “model is at capacity” failure or a
responseStreamDisconnectedfailure after Codex exhausts its own reconnects is retried in three-attempt batches. Structured error details such as the underlying WebSocketBroken piperemain visible instead of being replaced by a generic terminal response. Each retry repeats the unchanged original prompt for an ordinary turn or reactivates the same persisted native goal after its failed physical turn finishes; hpilot does not generate a continuation prompt. After an exhausted batch, hpilot waits 30 seconds before the first new batch and 60 seconds before later batches. These retries continue indefinitely without consumingmax_retries, and the inter-batch waits remain cancellable. Because the retry stays inside one adapter attempt, it does not emit a pipeline[STAGE_RETRY]event or rerun stage hooks. - Deterministic harness configuration rejection is the exception: hpilot records one failed attempt, reports the harness diagnosis, and aborts the stage without an
after_stagehook, session persistence, or retry. Ordinary runtime, transport, provider, hook, contract, and artifact failures remain recoverable and use the normal retry budget. - In the CLI task stream, the
[STAGE_RETRY]header shows the stage name and retry count. The retry message appears below it with a two-space indent and a blank line above and below. When the stage runs out of retries, the server log shows the final reason in the same format belowRetries exhausted after:. - The
retry_modefield in structured logs and daemon events distinguishesfresh(first attempt or unsupported adapter),continued(resumed session), andfallback(continuation attempted but unavailable). - This feature is distinct from
--start-from(which starts a new pipeline at a chosen stage) and WebSocket clientresume(which replays daemon events for a running task).
OpenCode idle timeout: When an OpenCode session times out due to inactivity (no SSE events for the configured window), the adapter aborts the session and fails the current attempt with an idle_timeout_failed event. This is a recoverable failure that triggers retry continuation if retry budget remains. The adapter sends no recovery prompt and performs no force-stop loop. The pipeline's normal retry-continuation policy decides what happens next. See OpenCode Harness Guide for details.
Antigravity session reattachment. A confirmed missing ACP session on a retry can trigger one fresh attempt. Authentication, model, permission, and timeout errors follow their own failure paths.
Pipeline lifecycle hooks
Effective lifecycle hooks combine active global defaults with phase-level pipeline overrides. They run consistently in standalone, daemon, resumed, and sliced executions. Each applicable attempt follows this order:
- reload the active global file and capture effective hooks
- render the stage input
- emit stage start and perform configured cleanup
- run
before_stage - run the stage and resolve its final result
- run
after_stage - back up artifacts, complete, inject context, and route
The hooks share the active stage's process-group cancellation and running handle. Cancelling a daemon task or interrupting a standalone run terminates the hook shell and tracked descendants. hpilot never starts an after hook after an interrupted before hook or stage; interrupting the after hook terminates the pipeline.
Combined stdout and stderr append to .hpilot/logs/stages/<stage-name>.jsonl. The main structured log records HookRunning, HookCompleted, and HookFailed with phase, attempt, literal configured command, and available exit or error details. Existing WebSocket stage events report only the merged attempt result.
Lifecycle hooks are trusted, unsandboxed commands that inherit the task environment and can observe routed context. They can run more than once because of retries or routed visits. Use idempotent scripts and stage-name conditions for selective behavior.
Resumed Stage Continuation
When a stage breaks after an agent session id is captured, hpilot persists the session metadata under .hpilot/latest-session.json. A fresh invocation can explicitly request to continue from that session using --resume when combined with --start-from.
# Start fresh at Implement (no session reuse)
hpilot run "task" --start-from "Implement"
hpilot submit "task" --start-from "Implement" # daemon
# Resume from last captured session at Implement
hpilot run "task" --start-from "Implement" --resume
hpilot submit "task" --start-from "Implement" --resume # daemon- hpilot records the latest session id together with the stage name, adapter name, workspace root, model, effort, goal mode, and stage visit after any stage attempt that returns a session id, including a confirmed interruption.
--start-fromalone selects the starting stage and starts fresh — it does NOT automatically reuse session metadata.--resumerequires--start-from. Using it without a start stage exits with a clear error before pipeline execution.- When
--resumeis set, hpilot loads the persisted metadata, restores the saved stage visit before resolving iteration thresholds, and checks whether the stored stage name, adapter name, workspace root, model, effort, and goal mode all match the current invocation. Codex goal mode regenerates.hpilot/goal.mdfrom the current rendered instructions before reopening the thread. - When all checks pass and the adapter supports continuation, the start stage begins as a continued attempt using the stored session id. A stderr line like
[Implement] Confirmed continued from session <id-prefix>…confirms the resume. - OpenCode starts a new authenticated owned server when needed and loads the persisted session from its native XDG store. A stopped server is not itself a reason for fresh fallback; only an unavailable native session triggers that adapter fallback. Authentication/transport failures remain failures, not silent fresh work.
- Codex reopens its saved thread for explicit resume and automatic retries. A blocked, paused, or completed native goal with remaining allowance can resume in place with its objective, history, and usage accounting. Usage-limited and budget-limited goals remain terminal. Keep the same
CODEX_HOMEas the original run. Codex harness guide - When the adapter does not support continuation, or the metadata is absent, stale, or mismatched, hpilot logs the reason and starts a fresh attempt. Example fallback messages:
[<stage>] Last session available but adapter '<name>' does not support continuation; starting fresh[<stage>] Last session not reusable (<reason>); starting freshwhere<reason>is one ofno_session_metadata,workspace_mismatch,stage_mismatch,adapter_mismatch,empty_session_id,invalid_stage_visit,model_mismatch,runtime_mismatch,goal_mismatch,persisted_continuation_unavailable, orconversation_unavailable.
- During explicit resume, the original metadata target is preserved through fallback, retries, and interruption during the initial resumed stage visit; later stages and routed revisits, including the same stage name, record their own latest sessions normally. The new (fresh) session id is not written to
.hpilot/latest-session.json, so a later--resumeattempt still points at the original persisted session. If the metadata file is missing entirely when--resumeis requested, the fresh-fallback path does not create a newlatest-session.json; the file is written only when a normal (non-resume) run starts a new session. - This feature is distinct from in-run retry continuation (which resumes within the same pipeline run's retry loop) and from WebSocket client
resume(which replays daemon events for a running task).
Instance Lock
The daemon holds an exclusive flock on the stable .hpilot/daemon.lock inode for its lifetime. The retained file records PID, canonical workspace, start time, and version for diagnostics; PID metadata is descriptive rather than the ownership authority. Unix endpoints also retain a sibling endpoint lock and ownership record. Recovery never replaces lock inodes and reclaims only a recorded, identity-matching inactive socket while both locks are held.
Reconnect and Resume
Every task event has a stable per-task sequence. After submit receives run_accepted, a transport loss triggers three short exponential-backoff connection attempts that send only resume for the original task ID and the last completed sequence; hpilot never sends a second run. The daemon replays only unseen buffered events and then atomically makes the replacement socket live. If the cursor predates retained history, the task expired, or all attempts fail, the client exits non-zero and reports that task status is unknown rather than claiming task failure. Use status or attach with the printed task ID to investigate.
Background Daemonization
hpilot serve --background fully detaches from the terminal and redirects stdin/stdout/stderr. The launching command returns success only after a WebSocket health exchange against the resolved endpoint. The daemon runs until it receives SIGINT or SIGTERM, or until the process is otherwise terminated.
WebSocket Keepalive
The daemon sends WebSocket pings every 30 seconds and expects a pong within 10 seconds. The client can also send ping messages at any time and receive pong responses.
Abandoned Task Cleanup
A background task runs a cleanup loop every reconnect_ttl_seconds / 2 seconds. Tasks with no activity for longer than the TTL are removed from the registry and logged as abandoned. Running tasks whose subprocess is still alive are never removed — the cleanup only targets tasks that are already completed or cancelled. Running tasks whose subprocess has exited are detected and marked as cancelled, then cleaned up on the next cycle.
Per-Stage Config Reload
hpilot reloads ~/.hpilot/config.yaml (or the workspace-local .hpilot/config.yaml) before every stage attempt, in both the standalone CLI (hpilot run) and daemon path (hpilot submit). The workspace-local config is resolved from the process CWD for hpilot run and from the submitted cwd for daemon tasks. Global hook changes take effect at the next attempt, retry, stage, or routed visit. The resolved before and after commands remain fixed for the duration of that attempt.
Agent stages also apply reloaded harness, model_effort, stage_overrides, and usage_reporting. Command stages consume the common hook snapshot but do not construct, preflight, resolve, or record an agent adapter. The hpilot.yaml stage graph is fixed for the active task, and the resolved server endpoint remains fixed for the daemon's lifetime.
An optional stage_overrides.<stage>.iterations mapping can progressively change harness, model, effort, or goal mode at successful stage-visit thresholds. Applicable thresholds accumulate, retries stay on the current iteration, and a live edit may still change a retry's runtime at the next attempt boundary. Fresh and targeted --start-from startup resolve iteration 1, while --resume restores the persisted stage visit before matching its runtime. See the configuration reference for the progressive review-loop example and strict key rules.
- Invalid config fails fast at the next stage-attempt boundary. A reload that produces an invalid config (for example, an unknown harness name in
stage_overrides) is a stage setup failure. The stage fails before any cleanup, hook, command, or agent turn launches; hpilot does not fall back to startup-time values. The stderr line[<stage>] Runtime config reload failed: <message>names the invalid key or value. - Runtime changes reset retry continuation state. When a reload or iteration threshold changes a stage's resolved harness, model, effort, or goal mode, the prior session state is cleared and the next attempt starts fresh with the new settings.
- Same effective runtime is a no-op. Reloading an identical effective config or entering a threshold that produces the same harness/model/effort/goal runtime does not change adapter selection or retry continuation state.
- All candidates are checked early. Standalone and daemon preflight plus
hpilot doctorvalidate every distinct cumulative threshold runtime, even when a threshold exceeds the stage's configured iteration limit. - Audit fields in logs and events. After validation, the stage-start stderr line, JSON
Runningentry, and daemonstage_startevent identify the effectiveharness,model,model_effort, andconfig_source, while the stderr line additionally showsgoal: enabled|disabled. Scheduled attempts also exposeruntime_iteration_threshold; the source isworkspace-localorhome, so operators can confirm which file and threshold were active. Native model and effort defaults remain absent in structured data and render asdefaultin stderr, and usage stays attributed to the launched effective runtime.
Client Interaction
The daemon is controlled by client subcommands over the WebSocket connection:
hpilot usage— queries local direct-run and daemon-task history. It does not require a running daemon. See Local Usage Metrics.hpilot status— checks whether the daemon is reachable; when reachable, prints running task IDs and stages. This command is strictly read-only — it never creates or modifies any task.hpilot submit— sends onerunmessage; displays pipeline progress and completion events without the live agent-output trace, resumes an accepted task after bounded transport loss, and returns the pipeline exit code onrun_complete. Accepts a positional prompt argument or reads the task description from stdin. When no prompt is provided and all selected stages have self-containedprompt_templatevalues, the task runs without an objective prompt (config-driven promptless execution). Also supports--path <dir>for batch submission of.mdfiles (see Batch Submit below).hpilot attach— sends aresumemessage; replays buffered events, then subscribes to live events until the task reaches a terminal state.hpilot cancel— sends acancelmessage; the daemon aborts the running pipeline.hpilot logs— sends aresumemessage; drains all buffered events and outputs each as a JSON line to stdout.hpilot end— sends aset_stop_stagemessage; accepts exactly one of--after <stage>(stop after this stage executes),--before <stage>(stop before this stage starts), or--clear(remove both boundary types). The command may resolve the single running task in the current directory or target an explicit task ID. Clearing a task with no boundary is a successful no-op, and a later--afteror--beforecan set a new boundary normally.
The target must still be active: unknown or completed task IDs are rejected, and an omitted task ID requires exactly one active task in the current directory. For example, hpilot end my-task-id --clear targets a task explicitly from any directory.
Boundary updates take effect when the runner next checks a stage boundary. A clear issued while the bounded stage is already finishing can arrive too late to prevent the halt; this best-effort timing behavior is visible because the task reports its normal halt rather than pretending the clear took effect.
On success, hpilot end --clear prints Cleared end boundary, the task stream renders [STOP_STAGE] end boundary cleared, and hpilot status omits both boundary fields for that task.
All daemon client commands accept --socket, --host, and --port. With no flags they target the current canonical workspace's configured endpoint, defaulting to .hpilot/run/daemon.sock; they do not scan ancestors or fall back to TCP. An absolute socket can target another workspace, while a relative socket is workspace-relative. The connection timeout is 5 seconds; failures name the actual endpoint and suggest starting hpilot serve.
The full protocol is documented in WebSocket Protocol. Batch submission moves a plan only after an uninterrupted or recovered successful run_complete; an unknown accepted-task outcome stops the batch and leaves the current and later plans pending because a task may still be running.
Live stderr output
hpilot prefixes human-readable stderr messages with local date, time, and UTC offset, followed by the severity and message (for example, 2026-09-29 14:32:10 +0800 | INFO | Daemon listening on ...). Structured JSONL timestamps remain in ISO 8601 UTC for machine processing.
While a stage runs, hpilot run, hpilot serve, and hpilot attach print the agent’s activity to your terminal, and hpilot records per-stage logs under .hpilot/logs/. hpilot submit displays pipeline progress without the agent-output trace. Each agent-output line is prefixed with the stage name and adapter name in brackets, for example [Spec][claude] reply: ... or [Verify][codex] tool call: Bash. Adapter names use the canonical lowercase form (claude, codex, opencode, cursor, antigravity, mock) — when filtering or grepping logs, always use the lowercase adapter name.
Codex descendant activity adds a [subagent:<label>] suffix; see Codex subagent logs for labeling, timing, hierarchy, and JSONL details.
The output uses three canonical event kinds:
reply:— Visible assistant text. Multiline replies render asreply:on its own line, a blank line, then the indented body, with a blank line before the next log entry. Each content line preserves its original leading whitespace from the agent output, so code blocks, nested lists, and other indented structures keep their shape. Single-line replies use the inline formatreply: text.thinking:— Internal model reasoning (ClaudeThinkingBlock, OpenCode reasoning, Cursor subagent thinking when reported). Multiline thinking uses the same blank-line-and-indent format as replies, with original leading whitespace preserved per content line. Single-line thinking uses the inline formatthinking: text. For Claude, only true thinking blocks are labeledthinking:— visible assistant text is alwaysreply:, neverthinking:. Claude stages request summarized thinking from the SDK by default; absence of thinking on a simple prompt is normal.tool call:— Tool invocations with their parameters.
Tool calls render as tool call: <ToolName> followed by one indented parameter line per field using the field: label format (not field=). Each field appears on its own indented line. Multiline values are shown with the field name on its own line and content indented below. No rendered parameter is truncated or capped at a fixed number of fields. tool call: lines show the same style of path, command, and search summaries for protocol-based agents, serve-based agents, and in-process SDK agents when the agent reports usable arguments. Cursor SDK messages are translated defensively and known tools are mapped to the shared argument format while retaining Cursor's tool title. If an SDK event omits arguments, the line may show only the tool label. For OpenCode specifically, completed reply and reasoning blocks render once, bare or incomplete tool-call start events are deferred until parameterized arguments arrive (showing one meaningful line per call rather than duplicate starts), and routine lifecycle metadata stays in structured logs rather than printing duplicate progress lines.
Argument fidelity is preserved in both stderr and per-stage logs: recorded tool inputs keep the names supplied by the agent, and hpilot does not add synthetic canonical fields. Known tools may still render a curated summary using canonical labels, while unknown tools echo their original argument names. For example, an OpenCode shell call with
commandandcwdis not recorded with an extradir_pathfield.TodoWrite entries list every item with its full subject text — no truncation on item count or subject length.
Task (subagent dispatch) prints the full
descriptionandpromptwithsubjectas a rendered field. When an adapter maps a subagent tool through the Task formatter, the first-line label may still show the agent's name while the arguments include the complete prompt. For Cursor, a completed task call can also expose the subagent's nested assistant text, thinking, and tool calls before the outer task result. Empty, malformed, missing, or failed task results degrade safely; no content is fabricated, and the stage continues normally.Edit entries always show every parameter on its own indented line.
replacing:andwith:labels appear on their own line, with values on the following line(s) indented two spaces. Multiline content continues with two-space indentation per content line. There is no length truncation onreplacingandwithvalues.
Batch Submit
Use hpilot submit --path prompts/ for finite sequential daemon submission of ready top-level Markdown plans. See Batch Submission for atomic publication, queue/rescan rules, boundaries, failure recovery, and first-plan-only --start-from / --resume behavior.
Skill Disable/Restore
When disabled_skills is configured in hpilot.yaml, the pipeline temporarily moves the named project-local skills to a backup directory before the agent starts and restores them after the pipeline finishes.
Lifecycle:
- At pipeline start, the skill restore step runs first to recover from any previous unclean shutdown (e.g., SIGKILL). It moves any orphaned skill directories back to their original project-local directories.
- The skill disable step then moves each listed skill from the project-local directory to
.hpilot/backups/skills/<adapter>/. - After the pipeline finishes (success, failure, or interrupt), all disabled skills are restored to their original locations.
- Empty backup directories are cleaned up automatically.
If skills are not restored after a crash (e.g., SIGKILL), automatic recovery runs at the start of the next pipeline. For manual recovery, use hpilot restore-skills.
Adapter directory mapping:
| Adapter | Project-local skills directory | Backup directory |
|---|---|---|
claude | .claude/skills/ | .hpilot/backups/skills/claude/ |
codex | .agents/skills/ | .hpilot/backups/skills/codex/ |
opencode | None | None |
cursor | None | None |
antigravity | None | None |
Global skills directories (~/.claude/skills/, etc.) are never modified.
Validation: Entries in disabled_skills must not contain / or \ and must not be . or ... Invalid entries cause hpilot to exit with an error at startup. Entries must match exact skill directory names, not skill set names.
See Configuration Reference for the disabled_skills field syntax and the default scaffold contents.
Signals And Cleanup
hpilotexits with status code130onSIGINTorSIGTERM; process and skill cleanup runs before exit and is capped at 5 seconds. If cleanup exceeds the timeout, a hard exit occurs.- In-process adapters (Claude and Cursor) use cooperative SDK cancellation.
- OpenCode interrupts the native session, skips post-failure waits, and terminates only the owned server plus verified descendants (including detached MCP children) with bounded escalation.
- Antigravity sends
session/cancelfor the active turn, followed by bounded cleanup of the owned process tree. - Codex interrupts its SDK turn and closes the standalone CLI transport if needed.
- No adapter currently uses settings-file patching. Cursor calls the SDK directly and uses no external Cursor settings file. OpenCode uses serve-mode HTTP with ordered native and session permission rules plus programmatic MCP write admission via a process-local configuration overlay.
- Evaluation events are written to disposable
.hpilot/logs/evaluation-events.jsonl; verifier credentials remain in~/.hpilot/config.yaml. Persistent daemon and MCP diagnostics append to.hpilot/logs/services/daemon.jsonland.hpilot/logs/services/mcp.jsonland survive new task cleanup. - Cursor write protection: Cursor uses Git-backed detect-only enforcement for
read_only_paths. Protected changes are detected after an SDK turn, left in place for manual or agent correction, and cause the stage attempt to fail. There is no proactive Cursor enforcement mode. - Git scope: Non-OpenCode adapters protect only Git-visible files. Ignored paths are outside protection, and an ignored or uncovered pattern produces a warning naming that pattern.
Descendant Process Cleanup
When the agent subprocess spawns long-running child processes (such as npm run dev or vite preview), hpilot terminates them automatically on both normal completion and interruption:
- Stage-level cleanup: After each stage's agent exits, hpilot sends SIGTERM to the agent's entire process group, waits up to 2 seconds, then sends SIGKILL to any survivors. It then falls back to individually tracked child PIDs. This covers deeply nested descendants that share the agent's process group.
- Command stages:
SIGINT,SIGTERM, andhpilot cancelterminate the command shell process group and its descendants. An interrupted command reports pipeline status130rather than consuming another retry. - Pipeline-level safety net (
hpilot runonly): After the full pipeline completes, hpilot walks the process tree to discover and terminate remaining descendants that escaped stage-level cleanup, such as a child that calledsetpgidto leave the agent's group. Daemon-submitted tasks rely on per-stage cleanup because the daemon may hold multiple accepted tasks while executing them serially.
Cleanup is best-effort: if a process exits between discovery and termination, no error is raised. All cleanup actions are logged to both stderr and the JSON log file under .hpilot/logs/.
Known limitation: A descendant process that both leaves the agent's process group (via setpgid or setsid) and is reparented to init (because its parent exited) may not be discovered by the pipeline-level sweep. This is rare and is an acceptable edge case under best-effort cleanup.
Native Harness Session History
hpilot's .hpilot/logs/ directory is a per-run diagnostic stream, not a session archive. hpilot clears it before every standalone run, daemon startup, and daemon task. Harness-owned conversations instead remain in each harness's normal native store, and hpilot does not copy transcript content between those stores.
.hpilot/latest-session.json contains only the latest captured harness session metadata, including the session identifier, stage, stage visit, adapter, workspace, and optional task, run, timestamp, model, effort, and goal-mode fields. hpilot uses it as the pointer for --start-from --resume when the selected adapter supports persisted continuation; it is not a transcript or a complete history index.
Native discovery uses the harness's own CLI, not hpilot. SDK-backed adapters can run without that CLI, but listing or direct access requires the corresponding CLI and its own authentication; run it with the same harness environment and workspace as the stage, such as CODEX_HOME or CLAUDE_CONFIG_DIR.
| Harness | Native discovery | Direct access | Boundary |
|---|---|---|---|
| Claude | Run claude --resume from the stage workspace and use Ctrl+A for all projects | claude --resume <session-id> | Claude Code 2.1.220 accepted SDK transcripts by exact ID, but a live SDK session did not render in either isolated-config picker view; use direct access when the picker omits it |
| Codex | codex resume --all --include-non-interactive | codex resume <session-id> | Use the explicit non-interactive listing for reliable discovery. The verified Codex 0.144.1 CLI also showed the SDK row in the plain picker, but picker filtering can vary by CLI version; the native row may present a title rather than the raw identifier, so confirm deterministic access by direct ID |
| OpenCode | opencode session list --standalone --format json | opencode session export --standalone <session-id> to inspect privately; hpilot run "task" --start-from <stage> --resume to continue | V2 native SQLite remains in the same XDG data store; keep the same identity and roots. See the verification report. |
| Cursor | cursor-agent ls | cursor-agent --resume <session-id> | An authenticated smoke confirmed native direct resume, while the CLI listing omitted the SDK-created agent; hpilot's own --resume still starts fresh |
| Antigravity | ACP session/list can list conversations for a workspace | agy --conversation <session-id> | The verification report records which surfaces were exercised |
| Mock | None | None | Mock sessions are not native harness sessions |
Claude's picker is project-scoped by default and may additionally reflect native worktree or branch presentation rules. Always run it from the exact stage workspace first, then use Ctrl+A. Direct resume by the identifier is the deterministic fallback and does not require hpilot to write history.jsonl.
When checking a session without continuing it, use the picker's displayed quit control and exit a directly resumed conversation before sending a prompt. In the verified Codex picker, Ctrl+C quits while Esc starts a new conversation. If you use opencode session export --standalone to confirm addressability, redirect its output to a private file so transcript content is not displayed or recorded in public evidence.
Daemon endpoint selection and Unix lifecycle
hpilot serve, submit, status, attach, cancel, logs, and end share one endpoint resolver. --socket PATH selects Unix; either --host or --port selects TCP, with the omitted TCP value coming from active configuration or the TCP default. Socket and TCP flags are mutually exclusive. Without flags, server.transport selects unix by default or explicit tcp; a saved host or port does not silently change transport. The endpoint is resolved once against the canonical invocation directory before submitted task paths, batch plans, or pipeline configuration can change working context.
The default socket directory is created for the invoking user with mode 0700, and the socket is restricted to 0600 before WebSocket acceptance. Custom socket parents must already exist, be owned by the invoking UID, and be private. Unix pathname limits apply to encoded absolute bytes; use a shorter private --socket parent or explicit TCP if the diagnostic reports an overlong path. Where the platform reports no usable Unix implementation, resolution fails with explicit TCP guidance; use --host/--port or server.transport: tcp instead. A missing, refused, unsafe, foreign, symlinked, unrecorded, or actively used endpoint is an error and never causes TCP fallback.
A client launched from a sibling or subdirectory targets that directory rather than discovering a parent daemon. Canonical symlink aliases of the same workspace resolve to the same default socket.