Skip to content

feat: Antigravity harness row with Google sign-in login - #288

Merged
popodidi merged 1 commit into
mainfrom
axe/task-2452--work
Dec 2, 2026
Merged

popodidi merged 1 commit into
mainfrom
axe/task-2452--work

Conversation

@popodidi

@popodidi popodidi commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Task 2452 (Antigravity A1, sign-in first; owner msgs #6569, #6704: Google sign-in only, no API key). Design: store doc harvis/research/20261202-antigravity-harness.md; A0 (task 2451) found sign-in feasible with a file token per runtime home.

What

  • antigravity harness row (agy, verified on 1.5.22): agy --output-format stream-json --dangerously-skip-permissions --print={prompt}; resume --conversation {session_id} from init's conversation_id (jsonl:conversation_id; an empty id is no session); --model / --effort; bots get --agent axe-<bot> with the system prompt written as a custom agent file in the runtime home.
  • Google sign-in is the only login: agy acp --login relays the accounts.google.com link; the code (or landing URL) comes back through the sealed form to its stdin, the same path as Claude's web sign-in. Probe: agy usage --json (exits 1 at once when signed out).
  • Runtime home: agy keeps login and state under $HOME/.gemini and $HOME/.config/antigravity, and nothing relocates them, so a runtime's login dir is its HOME. runtime::link_home links every other entry of the node user's home into it before each launch, so git, gh, axe and caches keep working in runs. Harness::cli_env sets AGY_CLI_DISABLE_AUTO_UPDATE=true (documented) and AGY_CLI_FORCE_FILE_TOKEN_STORAGE=true (undocumented, seen in 1.5.21/1.5.22 logs) on every launch. A runtime on the default login never unsets HOME.
  • LogFormat::Antigravity: per-run usage from agent_response steps (the result total is cumulative across resumes); failures from result + AGY_ERROR (401 / not signed in → auth_invalid; 429 / 5xx after agy's ~2 min retries → provider_unavailable); activity; retention of conversations/<id>.db and files beside it.
  • Telegram: Antigravity under Add runtime, Google sign-in button. Logged run commands keep --print= before @<prompt file>.
  • docs/user: runtimes, runtimes from Telegram, config, cost.

Sources: https://antigravity.google/docs/cli/reference/, /docs/cli/headless/, /docs/cli/acp/, /docs/cli/troubleshooting/, /docs/cli/commands/agents/, plus agy --help / agy help acp / agy help usage on 1.5.22.

Verify

  • Fixtures from real agy 1.5.22 against a local Gemini API mock (run, resume, tool, 401, 429, 503, unknown model, signed out) in the golden log test; unit tests for the row args, the runtime home links, sign-in relay (fake agy), agent file, session id, retention.
  • Scratch end to end (scratch axe server + node, real agy, mock API): a task's run_command saw HOME = runtime home, git config through the link, owner's ~/.gemini invisible, axe task set done worked; resume used --conversation on the same id; a bot run passed --agent axe-<bot> and its prompt reached the model.
  • Real agy acp --login headless prints the link and paste prompt; a wrong code exits 1 at once.
  • Live sign-in and smoke run on hlab follow after deploy (owner signs in).

🤖 Generated with Claude Code

- antigravity row (agy, verified on 1.5.22): agy --output-format
  stream-json --dangerously-skip-permissions --print={prompt}, resume with
  --conversation {session_id} (jsonl:conversation_id; an empty id is no
  session), --model and --effort, bots via --agent axe-<bot> with the
  system prompt as a custom agent file in the runtime home
- Google sign-in is its only login (owner msg #6704): agy acp --login
  relays the accounts.google.com link and takes the code or landing URL
  on stdin from the sealed form, like Claude's web sign-in; probe
  agy usage --json (exits 1 when signed out)
- agy keeps its login under $HOME, so a runtime's login directory is its
  HOME; runtime::link_home links every other entry of the node user's
  home into it before each launch (git, gh, axe keep working), and
  Harness::cli_env sets AGY_CLI_DISABLE_AUTO_UPDATE and
  AGY_CLI_FORCE_FILE_TOKEN_STORAGE on every launch
- LogFormat::Antigravity: per-run usage from agent_response steps,
  failures from the result and its AGY_ERROR line (401 and signed out as
  auth_invalid, 429/5xx as provider_unavailable), activity, and
  conversation retention under .gemini/antigravity-cli
- Telegram: Antigravity under Add runtime, "Google sign-in" button
- Fixtures from agy 1.5.22 against a local Gemini API mock
- docs/user: runtimes, runtimes from Telegram, config, cost

Task 2452.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@popodidi
popodidi merged commit 611f58f into main Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant