Repository navigation
Conversation
shyinlim
marked this pull request as ready for review
October 3, 2026 10:06
PerishCode
approved these changes
Oct 3, 2026
PerishCode
left a comment
Contributor
There was a problem hiding this comment.
@shyinlim I reviewed the Antigravity adapter across the web and CLI paths, including detection, argv construction, NDJSON parsing, streamed-response de-duplication, usage metadata, HTML recovery from write_to_file, documentation, and the added fixtures. The implementation aligns with the documented agy headless event contract and the changed ranges are internally consistent. Nice work carrying the adapter through both product surfaces and covering the important parser boundaries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add support for Google's Antigravity CLI (
agy) as a supported coding agent adapter across the web application and CLI.Changes
antigravitydefinition (bin: "agy",vendor: "Google",protocol: "argv").ANTIGRAVITY_BINenvironment override support.buildArgv()with--output-format stream-json --dangerously-skip-permissions --disable-slash-commands --effort medium -p.-ptrailing so the prompt is appended as the positional argument.--modelwhen specified.stream-jsonevent envelopes (init,step_update,result).session(conversation_id),cwd,thinking_delta, and execution duration/status.cache_read_tokens) to Claude-compatible usage metrics.write_to_filetool call parameters (TargetFile,CodeContent).result.responseis only emitted as a fallback if no streamed text deltas were observed.Verification
pnpm -F @html-anything/next testpassed.pnpm -F @html-anything/cli testpassed.pnpm -F @html-anything/next typecheckpassed.pnpm -F @html-anything/next devE2E test passed.session = 61a496f0-67d3-434e-9aee-8557c52fb928
概述
在 Web 应用与 CLI 中新增对 Google Antigravity CLI (
agy) 的适配支持,作为可用的代码生成 Agent。变更内容
Agent 检测 (
detect.ts,agents-detect.ts)antigravity定义(bin: "agy",vendor: "Google",protocol: "argv")。ANTIGRAVITY_BIN环境变量覆盖支持。调用与命令行参数 (
argv.ts,agents-invoke.ts)buildArgv()中配置参数:--output-format stream-json --dangerously-skip-permissions --disable-slash-commands --effort medium - p。-p保持在末尾,以便将 prompt 作为位置参数追加在其后。--model。Stream-JSON 解析与 Tool Rescue
stream-json事件信封(init,step_update,result)。session(conversation_id)、cwd、thinking_delta以及执行耗时与状态。cache_read_tokens)映射为兼容 Claude 格式的 usage 字段。write_to_file工具调用参数(TargetFile,CodeContent)中挽救并提取生成的 HTML。result.response作为兜底内容输出。