Skip to content

Antigravity Harness Guide ​

Audience: Users — Operators configuring or troubleshooting the Antigravity harness.

hpilot runs the official Antigravity CLI as an Agent Client Protocol (ACP) server. Each stage starts agy acp in its workspace. hpilot sends prompts, receives updates, and cancels turns over the child’s standard input and output.

Install and authenticate ​

Install the CLI on macOS or Linux, ensure ~/.local/bin is on PATH, and run it once to sign in:

bash
curl -fsSL https://antigravity.google/cli/install.sh | bash
agy

Select antigravity and run hpilot doctor. The check opens an ACP connection in a temporary directory and negotiates protocol version 1 and session reattachment. It creates no conversation and sends no model prompt. Upgrade the CLI if the check fails because the installed executable lacks those capabilities.

Stage settings ​

  • hpilot uses your existing Antigravity login and native conversation store. If the agent reports that sign-in is required, run agy interactively and then retry.
  • hpilot selects an explicit model from the session’s ACP configuration, then applies explicit reasoning effort using the choices advertised for that model. An omitted setting keeps the session default. An unsupported explicit setting fails the stage with a configuration error.
  • By default, hpilot allows one hour for session setup. Once the session is ready, each turn can run indefinitely, even during long stretches without output. To set a deadline, set HPILOT_ANTIGRAVITY_PRINT_TIMEOUT to a positive whole number of seconds. The limit applies separately to setup and to each turn. Values above 86,400 seconds are capped at 24 hours.
  • The child runs with --dangerously-skip-permissions for unattended work. The override applies to this process. hpilot still checks protected Git-visible files, stage contracts, and verifier decisions.

Conversations and output ​

hpilot saves the session ID before sending the first prompt. When a completed turn needs a correction, hpilot sends the follow-up on that same connection. A new attempt reopens the saved session using session/resume or session/load and sends its continuation prompt. Each completed turn counts toward the stage’s attempt budget. If the saved session is missing, hpilot can start fresh once with the full stage instructions and retry feedback. Other failures, including authentication and timeouts, are reported separately.

In live output, hpilot joins streamed fragments into readable reply and thought messages. Each message appears when another message starts, a tool call or result appears, or the turn ends. If the turn is interrupted, hpilot prints the text received so far. Stage logs under .hpilot/logs/stages/ keep the individual updates. When loading an earlier session, only the new turn’s replies go to the verifier. hpilot records token counts from the completed prompt result when the agent supplies them. The session’s context-window meter measures a different quantity.

A completed end_turn response goes to the stage evaluator. An interrupted connection, ACP error, or incomplete stop reason fails the turn. hpilot cancel requests ACP cancellation and gives the agent time to stop before terminating its process group and descendants. hpilot reports a requested cancellation with exit code 130.

To inspect a captured conversation from the native CLI, use agy --conversation <session-id> with the ID from .hpilot/latest-session.json. For the latest native evidence, see the verification report.