usage

Antigravity 1.5.2

工具與目錄
在這頁

新功能 5 項

01

遠端代理支援雲端擴充技能,放寬專案大檔上傳限制

如果你習慣透過 --remote-agent 在遠端主機執行代理任務,常需要搭配外掛技能或上傳規格書等參考資料。現在透過 /plugin 連線的雲端擴充套件技能,已經正式支援遠端代理工作階段。這些技能會直接顯示在斜線選單中,在訊息開頭輸入就能直接呼叫。輸入 /skills 會依套件分組列在遠端代理技能清單,輸入 /skills reload 即可重新整理。⟦跟出海科考的探險船連線一樣,以前通訊受限,既無法調用總部的專家工具箱,傳送高解析海圖還會被中斷;現在遠端船隻能隨時掛載雲端技能,大型觀測檔也能順暢送達。⟧從 /projects 新增 PDF、二進位檔案或大於約 8 MB 的檔案到遠端專案時,過去容易上傳失敗,現在都能順利完成上傳。

官方原文

Added skills from the cloud plugins you connected with /plugin to --remote-agent sessions, so they now appear in the / menu and can be typed at the start of a message, /skills lists them grouped by plugin under Remote agent skills, and /skills reload lists them again.

Fixed adding PDFs, other binary files, or files larger than about 8 MB to a remote project from /projects in --remote-agent sessions, which failed and now upload successfully.

02

macOS 的 Option 快捷鍵開箱即用,免額外修改終端機設定

在 Mac 上使用命令列時,想按下 alt+m 等組合鍵往往會遇到按鍵無反應或打出特殊符號的困擾。macOS 版本的 Option 組合鍵預設行為迎來更新。以前在終端機裡按 Option 鍵快捷鍵時,若沒有事先把 Option 鍵設定為 Alt 鍵,按下後可能毫無反應,或者直接打出 µ 等特殊字元;現在這些快捷鍵開箱就能直接生效,不再需要手動修改終端機偏好設定。⟦像使用新買的遊戲鍵盤一樣,以前得先自行修改按鍵映射才能讓特殊功能鍵生效,現在接上主機就能直接辨識預設捷徑。⟧如果你仍偏好原有的輸入行為,把環境變數 AGY_CLI_MAC_OPTION_AS_ALT=0 這個設定設為 0,就會回到舊行為,終端機便維持舊有的按鍵對應規則。

官方原文

Changed the default for macOS Option-key shortcuts such as alt+m, which now work out of the box without setting Option to act as Alt in your terminal, where previously pressing them did nothing or typed a character such as µ; set AGY_CLI_MAC_OPTION_AS_ALT=0 to go back to the old behavior.

03

跳過權限模式增設安全防線,保護高風險指令並排除子代理停頓

當你啟用 --dangerously-skip-permissions 參數跑自動化任務時,高風險操作與工作區邊界有了更清楚的防線。⟦類似拿著快速通行證進出廠區,以前只要出示證件就能進入所有庫房;現在特定管制區與管理規定仍需查驗,但一般走道上的隨行助理不再被警衛無端攔下盤查。⟧該模式不再自動放行內建清單中的受保護指令,這些指令會恢復一般審核,其餘指令仍照常免詢問執行。若企業管理員要求工作區外的指令或檔案存取必須經過審查,--dangerously-skip-permissions 與設為自動放行的外掛代理都不會跳過;無頭模式(headless,沒有終端機視覺介面的執行模式)則會直接拒絕此類請求。子代理在此模式下存取工作區外檔案時,先前會卡頓約 60 秒、卡在檔案權限上,現在讀寫均可直接通行,搭配 -p 也不再停頓,自訂的明確拒絕規則仍維持有效。

官方原文

Changed --dangerously-skip-permissions so commands on the built-in list of protected commands are no longer approved automatically and go through the usual checks, while every other command still runs without asking.

Changed --dangerously-skip-permissions and plugin agents set to auto-allow so they no longer approve terminal commands or file access outside the workspace when your Gemini Enterprise administrator requires those to be reviewed, and headless runs now deny such requests instead.

Fixed subagents stalling for about 60 seconds on file permissions under --dangerously-skip-permissions, so reads and writes outside the workspace now go through without a prompt, and headless -p runs with the flag no longer wait on any remaining interaction, while your explicit deny rules still apply.

04

存取工作區外的檔案改為單一授權,不再一次開放全部目錄

碰到代理需要讀取工作區外部的特定設定檔時,提示視窗不再要求你交出整個外部目錄的控制權。代理請求存取工作區外的檔案時,確認提示會明確顯示 Allow access to this file?。你可以針對當前指定的單一路徑,選擇在本次對話中永遠允許或拒絕,或將設定直接寫進 settings.json;系統不會再因為單一檔案的請求,就一口氣開放工作區外所有檔案的存取權限。⟦好比向大樓管理員借鑰匙,以前只要借用單一辦公室,就得把整棟大樓的門禁全面解鎖;現在管理員只會精準發放你指名那間會議室的感應卡,離開後其餘房間依然安全上鎖。⟧這讓你在引用公用設定或全域工具時,既能放心放行特定文件,又不必擔心整個硬碟門戶大開。

官方原文

Changed the prompt shown when the agent asks for access to a file outside the workspace, which now reads Allow access to this file? and offers to always allow or deny that one path for the conversation or in settings.json, instead of turning on access to everything outside the workspace.

05

擴充套件防範惡意路徑穿越,阻擋符號連結並放寬欄位驗證

從外部下載社群擴充套件或開啟陌生的專案儲存庫時,外掛的檔案操作與載入範圍受到更嚴密的防護。⟦如同租借公共置物櫃,以前可能藉由暗道打通鄰近隔間;現在置物櫃加裝防護鋼板,嚴禁穿透到其他櫃位,標籤格式不符也只會貼上警告而非直接退件。⟧agy plugin 的各項指令會拒絕不安全的套件名稱並回報 invalid plugin name,且禁止寫入套件資料夾外或透過符號連結(symlink,指向另一個位置的捷徑檔)寫入,防止惡意套件覆寫 mcp_config.json 等設定檔。工作區內的 .agents/plugins.json 與 .agents/skills.json 限制僅能從工作區或儲存庫內部載入,以絕對路徑、../ 或捷徑指向外部的項目一律略過。而 agy plugin validate 遇到未知欄位時改為發出警告並略過,其餘擴充設定照常檢查。

官方原文

Improved agy plugin validate so an unknown field under extensions["com.google.antigravity"] in plugin.json is reported as a warning that the field is ignored instead of an error, and the plugin's other extension settings are still checked.

Improved protection against malicious plugins: agy plugin import, install, uninstall, enable, and disable now reject plugin names that are not safe file names with invalid plugin name, and refuse to write outside the plugins folder or through symbolic links, so an imported plugin can no longer overwrite other configuration files such as mcp_config.json.

Improved protection against untrusted repositories: plugins and skills listed in a workspace's .agents/plugins.json or .agents/skills.json now load only from inside the workspace or its repository root, and entries that point elsewhere through absolute paths, ../, or symbolic links are skipped.

修正 3 項

06

修復指令選單與多任務循環錯誤,並強化遠端連線重試機制

日常切換各類執行模式與操控通道時,幾處影響操作流暢度的小毛病現在都已獲得改善。

使用 agy -p 執行單次輸出時,不再於背景發送模型請求來生成終端機根本不會顯示的對話標題,省下多餘的模型等待與消耗。

建立遠端控制連線時,若在建立初期遇上短暫的網路波動或伺服器抖動,會主動重新嘗試連線,不再直接中斷離開。

代理執行出錯當下若剛好有排隊中的訊息,先前會陷入連續瘋狂重試的迴圈,現在這些排隊訊息會暫停並等待你的下一道指令。

在 agy acp 工作階段中,斜線選單修正為列出當前工作階段代理的指令與技能,自訂代理的專屬工具也能正常顯示,不再誤列預設代理的選項。

以前在這些情境下容易遇到連線驟斷或無效重試,現在各類執行模式都能穩定收尾。

官方原文

Improved agy -p runs so they no longer make a background model request to generate a conversation title that print mode never shows.

Improved Remote Control connections, which now retry a brief network or server error while setting up a new connection instead of dropping it.

Fixed the agent re-running a failed turn in a rapid loop when messages were queued at the moment it hit an error, so queued messages now wait for your next message.

Fixed the / menu listing the commands and skills of a default agent instead of those of the agent the session actually runs, so in agy acp sessions it now shows that session's agent, including a custom agent's commands.

07

MCP 協定修復 OAuth 重新連線錯誤,並完整傳遞工具自訂參數

透過 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)連接伺服器並使用 OAuth 登入時,授權流程與工具溝通現在更加可靠。⟦宛如在線上商城完成多步驟結帳,以前只要分頁在中途重新整理,先前建立的付款金鑰就會失效;現在重整後仍能沿用原本的交易憑證,填寫的寄送備註也能完整送達系統。⟧過去登入採用 OAuth 的 MCP 伺服器時,若因 /mcp 重新載入或開啟新對話而重新連線,常會跳出 Invalid PKCE code_verifier 錯誤;現在原本打開的登入連結依然有效。若 MCP 工具宣告了 explanation、toolSummary、toolAction 或 waitForPreviousTools 參數,先前呼叫常漏傳這些引數,現在模型發送的數值都能確實送達工具。

官方原文

Fixed signing in to an MCP server that uses OAuth failing with Invalid PKCE code_verifier when the server reconnected during sign-in, such as when /mcp reloaded servers or a new turn started, so the sign-in link you already opened keeps working.

Fixed MCP tools that declare their own explanation, toolSummary, toolAction, or waitForPreviousTools parameter receiving calls without that argument, so the value the model sends now reaches the tool.

08

修復中日語音輸入字元間距,全形英文字詞空格不再遺失

使用中文或日文進行語音輸入時,即時聽寫草稿的字元間隔現在顯示得更加自然。以前在最終辨識結果送達前,中文與日文的即時草稿會在每個字元之間硬塞一個空格,而全形英文字詞彼此之間的正常空格反而會無故消失。這個問題已經修復,現在草稿能維持連續排版,全形英文字詞間的空格也能正確保留。

官方原文

Fixed voice dictation in Chinese and Japanese showing a space between every character in the live draft before the final transcript arrived, and fullwidth Latin words losing the spaces between them.