usage

Antigravity 1.5.0

工具與目錄
在這頁

新功能 7 項

01

支援 ACP 協定,讓編輯器直接調用 agy 擔任代理

在慣用的程式碼編輯器中撰寫專案時,若想讓 AI 代理深度融入編輯流程,現在指令列新增了 agy acp。⟦好比請一位專屬秘書直接坐進辦公室,以前需要在不同視窗來回複製截圖與檔案,現在編輯器能透過標準輸入輸出直接交代任務。⟧它以 Agent Client Protocol(ACP,讓編輯器連接代理的協定)運作,支援在提問中附帶圖片與檔案內文。你甚至能在回答中途再次送出提示來即時修正方向。每個工作階段都支援獨立的模型與思考深度,並提供 default、accept-edits 與 plan 三種模式。透過 session/resume 能直接恢復工作階段而無須重播歷史紀錄。若編輯器運行在沒有瀏覽器的遠端主機,只要執行 agy acp --login 即可在終端機完成 Google 登入。

官方原文

Added acp to agy --help: agy acp runs the CLI as an Agent Client Protocol (ACP) server over stdio, so editors can use it as their agent, with images and embedded file context in prompts, steering a running turn by sending another prompt, default, accept-edits, and plan session modes, session/resume restoring a session without replaying its history, each session keeping its own model and thinking level, and Google sign-in from a terminal with agy acp --login for editors connected over SSH or without a browser.

02

新增 --remote-agent 參數,將對話交由遠端代理執行

當本機電腦效能吃緊或需要專用運算環境時,你可以把任務分派到雲端主機。⟦如同把手頭工作委派給遠端辦公室的同事,以前所有檔案與流程都綁在自己的桌機上,現在工作改由遠端環境執行。⟧啟動時加上 --remote-agent 即可將工作階段的對話移至遠端代理執行,搭配 --project 能指定遠端專案名稱或識別碼,未指定時則進入預設專案。在這類工作階段中,鍵入 @ 補齊會搜尋遠端檔案,終端機無法顯示的產出物會提供 Open in browser 連結。介面頂端會改為顯示 remote workspace,斜線選單不再提供本機技能,在 /config 的 Remote 分頁也會顯示該對話專屬的權限預設。

官方原文

Added --remote-agent to agy --help, which runs the session's conversations on remote agents instead of this machine, where --project names a remote project by ID or name and otherwise conversations open in your default remote project; in these sessions @-mention completion now searches the remote agent's files, artifacts that can't be shown in the terminal get an Open in browser link, the header shows remote workspace instead of your local directory, the / menu no longer offers skills from this machine, and the Remote tab in /config shows the conversation's own permission preset when it has one.

03

/projects 支援本機專案,自由建立並快速切換工作區

在日常開發中頻繁切換不同專案目錄時,反覆尋找路徑往往令人手忙腳亂。⟦跟工作桌上的專案資料夾一樣,以前每次切換任務都要手動重新挑選相關文件,現在只要抽換整份收納夾,所有目錄便整組就位並開啟全新筆記。⟧現在本機工作階段的 /projects 指令支援完整的本機專案管理。你能列出專案清單並查看目前項目標記,也能依名稱與一組資料夾建立專案。資料夾路徑支援絕對路徑、波浪號 ~ 或工作區相對路徑。專案隨時可重新命名或修改資料夾;切換專案時,終端機會將其資料夾加入工作區並開啟新對話。

官方原文

Added local projects to /projects, so in a local session you can list your projects with the current one marked, create one from a name and a set of folders given as absolute, ~, or workspace-relative paths, rename a project or change its folders, and switch to a project, which adds its folders to the workspace and starts a new conversation.

04

外掛與 MCP 設定體驗升級:引導登入、家目錄路徑與清楚的缺少指令提示

在終端機透過外掛連接各類服務時,授權與環境設定現在更直覺。從 /plugin 安裝合作夥伴外掛時,若包含 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)伺服器,會跳出 Connect <外掛名稱> 畫面引導登入,按 Esc 可略過。已安裝分頁也會標示 ⚠ needs sign-in。Discover 清單與安裝後也會顯示第三方開發者工具提醒。

外掛的 sidecar.json 範本新增內建 ${HOME} 變數,方便在 workspaceUris 與 accessGrants 指定家目錄路徑,同名參數優先採用。

啟動 stdio MCP 伺服器若找不到指令,錯誤訊息會明確提示如 uvx 未安裝或不在 PATH 中,提醒安裝或指定完整路徑,不再只丟出找不到執行檔代碼。

官方原文

Added sign-in for a partner plugin's MCP servers when you install it from /plugin, with a Connect <plugin> screen for each server that opens its sign-in page (Esc skips), a ⚠ needs sign-in marker and a Sign-in: row for the plugin in the Installed tab, and the third-party developer tools notice for partner plugins at the end of the Discover list, in a plugin's details, and after agy plugin install or /plugin install.

Added a built-in ${HOME} variable to plugin sidecar.json templates, so a sidecar can name paths under the user's home directory in workspaceUris and accessGrants, such as file://${HOME}/worktrees; a sidecar argument named HOME still takes precedence.

Improved the error for a stdio MCP server whose command isn't installed, which now says, for example, "uvx" is not installed or not on PATH, install it or set "command" to its full path instead of a raw executable file not found in $PATH error.

05

無頭模式完整等待背景工作,逾時明確退出並回報錯誤

編寫自動化腳本以無頭模式(沒有視覺介面的執行模式)透過 -p 執行任務時,背景工作不再被暗中掐斷。⟦就像貨運站處理包裹,以前即使後台還有貨物在裝箱,時間一到就當作全部送達並提早收工;現在會確實等待所有背景工作做完才結束,若因倒數截止而中途喊停,也會留下錯誤紀錄並標明未完成的任務。⟧在未指定 --print-timeout 的情況下,執行時不再有隱藏的 30 分鐘限制並自動視為成功,而是會持續等待背景工作全部做完。若設定了 --print-timeout 且中途切斷,程式會改以退出碼 3 結束。它會印出標明終止任務名稱的 AGY_ERROR 行,並在標準錯誤輸出寫入 [agy] print timeout after ... 紀錄。

官方原文

Changed headless -p runs without --print-timeout to wait for background tasks to finish, where they previously stopped them after a hidden 30-minute limit and exited with success; when --print-timeout cuts a turn short, the run now exits with code 3, prints an AGY_ERROR line naming the tasks it terminated, and writes a [agy] print timeout after ... line to stderr.

06

/btw 支援調用工具,查檔搜尋即時顯示並自動略過權限詢問

在長篇對話中想插話向 AI 打聽某個檔案細節時,直接輸入 /btw 就能發問而不打斷主線。⟦彷彿在開會中向身旁的速記員咬耳朵,以前他只能憑腦中印象悄聲回答,想翻閱文件就會卡住;現在他能快速查閱檔案再給出答覆,但只要動作需要額外簽核就會主動放棄。⟧現在 /btw 插話提問具備調用工具的能力,能直接讀取檔案或搜尋資訊。執行的每個動作都會即時呈現在卡片中,回答完成後會顯示 Called N tools 的調用次數摘要。凡是需要向你請求權限的工具操作一律會被自動拒絕。這項修正解決了先前模型想調用工具時,因無法處理而跳出空白回應錯誤的問題。

官方原文

Changed /btw side questions to be able to call tools, such as reading files or searching, showing each call live in the /btw card and a Called N tools summary once the answer is done, while any tool call that would ask for permission is denied automatically; this fixes side questions failing with an empty-response error when the model wanted to use a tool.

07

Auto 模式放寬安全指令審查,減少不必要的授權確認

啟用 Auto 模式讓代理自主執行多步驟任務時,原本頻繁跳出的確認詢問常打斷工作節奏。⟦有如經驗豐富的辦公室警衛,以前即使是倒垃圾或收發已登記的常規包裹,每隔一會兒都要敲門請你簽字;現在面對常態且安全的動作,他給自己設了時限,也少來敲你的門。⟧針對即將離開終端機沙盒的指令,Auto 模式的審查現在會逾時,對安全指令也更少跳出詢問。這些被認可的安全動作包含:未要求審查的上傳作業、終止代理自行啟動的任務、從套件庫安裝或移除套件,以及刪除後續可透過版本控制復原的檔案。這讓你能在確保安全的前提下,更順暢地讓代理獨立完成任務。

官方原文

Improved Auto mode's review of commands that would leave the terminal sandbox so it times out and asks less often on safe commands, such as uploads that don't request a review, stopping a job the agent started, installing or removing packages from a registry, and removing files that can be restored from version control.

修正 2 項

08

終端機介面調整:選單選項更名為全螢幕,修復 diff 摺疊線與復原鍵錯誤

在終端機檢視檔案差異或切換輸入模式時,幾處顯示與按鍵操作細節獲得了修正。在 /config 的 Rendering Mode 中,原本名為 no flickering (altscreen) 的選項已更名為 full screen (altscreen),已儲存設定維持不變。

修復 /diff 在新檔案或從第 1 行修改時,會在最上方繪製多餘且無摺疊內容的 ↕ ··· 空白摺疊線。另外修復在輸入框按復原鍵會喚回已送出訊息,以及在 ! Shell 或 : 搜尋模式按復原會叫回文字並在按 Enter 後誤跑指令或搜尋的問題。⟦就像在通訊軟體打草稿,按復原鍵只會抹掉剛打的字,絕不會把你五分鐘前早就發出去的舊訊息又撈回來重傳。⟧

官方原文

Changed the no flickering (altscreen) option under Rendering Mode in /config to full screen (altscreen); the saved setting is unchanged.

Fixed /diff drawing an empty ↕ ··· fold divider at the top of new files and of edits starting at line 1, where nothing was folded away, and fixed undo in the prompt bringing back a message you had already sent, and undo in ! shell or : search mode bringing back prompt text that Enter would then run as a command or search.

09

修復模型連線與外掛更新問題:安全過濾死循環、錯誤重試與更新路徑

使用外部金鑰連接模型或讓外掛自動升級時,先前幾處例外處理的缺陷已獲得修正。使用 GEMINI_API_KEY 連線時,若觸發 API 安全過濾機制,過去會陷入無限重送提示的死循環,現在會顯示內容過濾訊息並結束該輪對話;該連線下的 pro 與 flash 子代理先前誤用落後兩代的老模型,現已修正為 Gemini 4 Argon 與 Gemini 3.8 Flash。

特定模型遇到速率限制(429)與伺服器 5xx 錯誤時不再直接失敗,現在會依據伺服器的 Retry-After 標頭自動重試。

若外掛安裝於不同名稱的資料夾(例如重新命名後),過去每次啟動都會寫入新目錄並重試更新,現在已修正為在現有資料夾就地更新。⟦跟整修老房子一樣,施工隊會認準原址就地翻新,不再因為招牌換了就每次都跑到空地另外蓋一間新屋。⟧

官方原文

Fixed conversations using a GEMINI_API_KEY re-sending a prompt forever when the API's safety filter blocks it, which now ends the turn with a content-filter message, and the pro and flash subagents on that connection running models two generations older instead of Gemini 4 Argon and Gemini 3.8 Flash.

Fixed certain models failing a turn on rate-limit (429) and server (5xx) errors instead of retrying them, now honoring the server's Retry-After header, and fixed plugin auto-upgrades of a plugin installed under a different folder name, such as after a rename, writing to a new folder and retrying on every startup instead of updating the existing folder in place.