usage

Antigravity 1.5.3

工具與目錄
在這頁

新功能 4 項

01

子代理列出運作模型,詳細畫面可查思考力度

當你在對話中啟用多個子代理分工時,能一眼看清每位助理背後運作的模型。現在輸入框上方的子代理清單與 /agents 列表中,代理名稱旁會直接標註所使用的模型,遇到寬度較窄的終端機則會自動隱藏。⟦就像瀏覽球隊的出賽名單,以前名牌上只印球員名字,看不出誰是主力;現在名字旁直接列出階級,點開詳情還能掌握每位選手的投入程度。⟧進入子代理詳細檢視畫面,還能查看完整模型名稱與思考力度設定。如果你透過 status line(顯示在終端機最底下的狀態列)讀取 JSON 資料,每筆 subagents 項目也補上了 model 欄位。/agents 列表不再每行重複顯示 [view details],改在下方顯示單行 Tip: Press enter on a subagent to view details. 提示。

官方原文

Added each subagent's model next to its name in the subagent rows above the prompt and in /agents (hidden on narrow terminals), with the full model and effort in a subagent's detail view, and a model field on each subagents entry in the status line JSON; /agents now shows a single Tip: Press enter on a subagent to view details. line instead of repeating [view details] on every row.

02

外掛掛鉤支援專屬目錄,驗證工具接納分類欄位

開發或客製化外掛時,掛鉤程式現在能精準存取自身檔案並取得運作資訊。來自外掛的掛鉤(hook,特定事件發生時被觸發的小程式)指令,現在新增了 PLUGIN_ROOT 與 PLUGIN_DATA 兩個環境變數,分別指向外掛所在的目錄與會保留資料的目錄,方便掛鉤使用隨附檔案並在多次執行間保留狀態。執行 agy plugin validate 時,不會再針對掛鉤未設定這兩個變數發出警告。

執行 agy plugin validate 檢查時,plugin.json 設定檔內的 category 分類欄位已被正式接納,不再誤報為未知欄位,僅在內容不是非空字串時提出警告。在工作階段使用自訂模型時,過去掛鉤常收到預留位置或空名稱,現在會確實取得當前運作的模型名稱。

官方原文

Added the PLUGIN_ROOT and PLUGIN_DATA environment variables to hook commands that come from a plugin, pointing to the plugin's folder and its persistent data folder, so plugin hooks can use files bundled with the plugin and keep state between runs; agy plugin validate no longer warns that these variables are not set for hooks.

Improved agy plugin validate so the category field in plugin.json is accepted instead of reported as an unknown field, with a warning only when it is not a non-empty string.

Fixed hooks receiving a placeholder or empty model name when the session uses a custom model, so hooks now get the name of the model actually in use.

03

外掛管理支援符號連結,登入畫面與提示排版整齊

在終端機安裝、停用或登入各類外掛時,介面排版與特殊路徑的支援都補齊了。如果外掛以符號連結(symlink,指向另一個位置的捷徑檔)方式安裝,或名稱含有空格與符號,過去執行 agy plugin uninstall、agy plugin enable、agy plugin disable 或從 /plugin 移除時常會失敗,現在均已修復,且 agy plugin list 能重新列出符號連結外掛。

在 /plugin 登入畫面中,登入連結會正常縮排並以空行隔開,折行不再替結尾空白加底線,名稱也會改採 plugin.json 的顯示名稱。當外掛需要登入時,請求不會再從對話消失,終端機會提示 ⚠ The <plugin> plugin needs you to sign in. Open /plugin to sign in.。

官方原文

Improved the plugin sign-in screen in /plugin, which now indents the sign-in link like the surrounding text and sets it apart with a blank line, no longer underlines trailing blank space in wrapped links, and uses the plugin's display name from plugin.json, such as Canva instead of canva.

Fixed agy plugin uninstall, agy plugin enable, agy plugin disable, and uninstalling from /plugin failing for plugins installed as symbolic links, such as plugins installed from Antigravity, or for plugins whose names contain spaces or symbols such as c++-tools, and agy plugin list shows symlinked plugins again.

Fixed the agent's requests to sign in to a plugin being dropped from the conversation, so when a plugin needs a sign-in the CLI now shows a line such as ⚠ The <plugin> plugin needs you to sign in. Open /plugin to sign in.

04

對話標題保留英文縮寫,送出排隊訊息不再閃爍消失

日常使用對話視窗交辦任務時,文字顯示與歷史紀錄保存變得更為可靠。現在自動產生的對話標題,會依你在提問中輸入的原樣保留英文簡寫與首字母縮寫,不再自行猜測並展開全名。

當你使用立即送出(Send Immediately)排隊訊息模式時,若在上一輪剛好結束的瞬間送出訊息,過去常在對話中短暫消失又重新出現,這個問題已經修好。

如果你透過 agy acp 連線工作階段,過去當用戶端切斷連線時,常在代理後端關閉前過早退出,容易打斷對話紀錄的儲存;這個問題已經修好,對話資料不會再因此在儲存途中被打斷。

官方原文

Improved auto-generated conversation titles, which now keep abbreviations and acronyms from your request as written instead of guessing what they stand for.

Fixed a message sent during a turn with the Send Immediately queued-messages mode briefly disappearing from the conversation and reappearing when it arrived just as the turn ended.

Fixed agy acp sessions exiting before the agent backend finished shutting down when the client closed the connection, which could interrupt saving conversation data.

修正 3 項

05

企業模型閘道修復路徑錯誤,模型逾時自動重試

連線至雲端模型或企業內部閘道時,網路延遲與路徑設定常影響對話能否順利展開。⟦宛如撥打跨國總機電話,以前只要線路忙線超過一分鐘就被直接切斷,分機號碼多帶斜線還會轉到空號;現在遇上線路延遲會自動重撥,轉接號碼多打尾碼也會自動校正接通。⟧當模型超過 60 秒才開始回傳標頭時,代理不會再以 http2: timeout awaiting response headers 中斷失敗,而是會主動重試。若企業模型閘道(gateway)網址結尾帶有 /v1beta,系統會自動忽略該後綴,避免請求全數回傳 404 錯誤。透過 Vertex AI 呼叫模型時,若模型不存在或專案無權限,錯誤訊息改以 The requested model was not found, or your project does not have access to it. 取代原始 API 報錯。

官方原文

Changed the error shown when Vertex AI reports that the selected model does not exist or that your Google Cloud project cannot use it, which now reads The requested model was not found, or your project does not have access to it. instead of the raw API error.

Fixed agent turns failing with http2: timeout awaiting response headers when the model took more than 60 seconds to start responding, which are now retried.

Fixed every model request failing with a 404 error when an enterprise model gateway URL ended in /v1beta, even though the model list loaded; a trailing /v1beta in the gateway URL is now ignored.

06

檔案工具支援舊版編碼頁,遠端讀取上限放寬至 20 MiB

當代理在不同系統間讀取程式碼或路徑時,非標準編碼與長路徑常引發解析異常。在 Windows 環境下,檔案工具讀取 UTF-16 與傳統編碼頁文字時不再誤判為二進位檔,編輯時也會保留 UTF-16 編碼或既有的 UTF-8 位元組順序記號(BOM)。寫入含非 ASCII 字元的 PowerShell 腳本時也會加上 UTF-8 BOM,讓 Windows PowerShell 5.1 能正確讀取。

使用 --remote-agent 遠端工作階段時,超過讀取限制的檔案不再被悄悄截斷,最高可完整讀取 20 MiB,超過上限則明確報錯。此外,工具呼叫摘要縮短非 ASCII 路徑時已修正亂碼,路徑與家目錄前綴重疊時也不再於 /context 清單顯示損壞的 ~ 符號。

官方原文

Fixed the agent's file tools mishandling text that is not UTF-8, mostly on Windows: reading a UTF-16 or legacy code-page file now returns its text instead of treating it as binary, edits keep a file's UTF-8 byte order mark or UTF-16 encoding, and PowerShell scripts (.ps1, .psm1, .psd1) with non-ASCII text are written with a UTF-8 byte order mark so Windows PowerShell 5.1 reads them correctly.

Fixed files larger than the remote read limit being silently cut off in --remote-agent sessions, which now load in full up to 20 MiB and report an error above that instead of showing partial content.

Fixed garbled characters in tool-call summaries when the CLI shortens file paths that contain non-ASCII characters.

Fixed paths that share a prefix with your home directory, such as /home/alice when your home is /home/al, showing with a mangled ~ prefix in the /context file list and the keybindings reset hint.

07

隔離終端機沙盒環境狀態,強化連線識別碼安全性

當你在終端機沙盒中執行不受信任的指令時,本機環境的隔離防護變得更為嚴密。⟦如同在密閉防護艙內試驗原料,以前艙內殘留的氣體可能滲漏到外部常態作業區,控制台識別碼也缺乏防護;現在內部操作徹底阻斷外洩,終端編號也強化防禦以防止越區穿透。⟧過去在終端機沙盒(sandbox,隔離執行指令的受限環境)內執行的指令,曾可能改動環境狀態,導致沙盒外部執行的常駐終端機指令載入受污染的設定。這個安全問題已經修好,沙盒內的狀態變更不會再影響外部終端機。常駐終端機的連線識別碼也針對路徑遍歷(path traversal)加強了防護。

官方原文

Fixed a security issue where a command run in the terminal sandbox could change environment state later loaded by persistent terminal commands run outside the sandbox, and hardened persistent terminal IDs against path traversal.