usage

Antigravity 1.4.8

工具與目錄
在這頁

新功能 1 項

01

/diff 支援按鍵跨輪次跳轉,大專案變更即時開啟並在背景載入

當你在大型專案或多輪對話中打開 /diff 查看變更時,介面不再需要等全部檔案掃描完才顯示。⟦就像餐廳出餐,招牌熱菜先上桌讓客人享用,慢燉的湯品則在後廚繼續準備,不必整桌乾等。⟧現在已追蹤變更與 Commit Tree 會立即出現,未追蹤檔案改在背景載入;Per Turn 則先顯示最新輪次並快取(把算過的結果暫存起來直接用),舊輪次於背景載入。在 Per Turn 中可按 [ 與 ] 循環跳至相鄰輪次首個檔案,狹窄終端機的按鍵提示也會折成兩列。超過 1 MB 與二進位檔案改以附註標記而不載入記憶體,未追蹤檔案中以 ++ 加空格開頭的行,也不再被錯誤顯示,載入中途刪除檔案也不再讓清單失敗。

官方原文

Added [ and ] to the Per Turn tab in /diff to jump to the first file of the previous or next turn, wrapping around at either end, in both the file list and the file view; the All Changes and Per Turn key-hint footers now wrap onto a second row on narrow terminals instead of being cut off.

Improved how quickly /diff opens in large repositories and long conversations: All Changes and Commit Tree appear as soon as tracked changes are ready, showing checking for untracked files… while untracked files load in the background, and Per Turn shows the newest turns first and loads older ones in the background with a checking N older turn(s)… indicator, caching finished turns so reopening /diff only recomputes the latest one.

Improved /diff in checkouts with large untracked files: binary files and untracked files over 1 MB are listed with a note such as binary file or 7.3 MB, over the 1 MB limit instead of being read into memory, untracked files containing lines that start with ++ followed by a space are no longer shown incorrectly, and a file deleted while /diff is loading no longer makes the whole file list fail.

效能 1 項

02

Auto 模式沙盒指令審查放寬至 10 秒,減少安全指令手動確認

如果你平時習慣開啟 Auto 模式讓代理自動執行指令,遇到需要跳出終端機沙盒的操作時常會被打斷。⟦跟高速公路的電子收費車道一樣,感應系統有多一點時間辨識車牌,十秒內確認正常就直接抬桿,不再動輒把駕駛轉去人工收費亭。⟧例如當你請代理下載專案依賴或檢查遠端環境時,審查機制現在有更充裕的時間做出判定。只要單一緩慢檢查達到 10 秒就會及時停止,避免無謂等待。這有效降低了審查逾時的機率,遇到安全無虞的指令時,介面不再動不動就跳出手動確認詢問你。

官方原文

Improved Auto mode's review of commands that would leave the terminal sandbox: it now has more time to decide and stops any single slow check after 10 seconds, so it times out less often and asks you to approve safe commands less often.

修正 4 項

03

外掛安裝輸出與格式驗證改進,並修復邊車常駐程序記憶體洩漏

管理或開發擴充外掛時,更詳細的終端機回饋能讓你迅速掌握安裝與驗證狀態。執行 agy plugin install 會明確列出安裝的技能、代理、規則、指令與掛鉤(特定事件發生時被觸發的小程式)。清單也會列出安裝的 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)伺服器,不再把未包含的元件型別列為略過,並印出安裝資料夾與覆寫提示。agy plugin validate 會檢查 plugin.json 的 author、homepage 與 repository,若網址非 https:// 或格式不合便提出警告,物件格式的作者名也能在清單正常顯示。以前在長時間工作階段執行邊車(sidecar)外掛會殘留背景任務導致記憶體外洩,這個問題也已修好。

官方原文

Improved agy plugin install output to name each installed skill, agent, rule, command, MCP server, and hook, to stop listing component types the plugin doesn't contain as skipped, and to print the folder the plugin was installed to, adding (replaced existing installation) when it overwrote an earlier copy.

Improved agy plugin validate to check the author, homepage, and repository fields in plugin.json, warning when author is neither a name string nor a {"name", "url"} object or when a URL isn't a valid https:// link, and plugin listings now show the author's name when author is written as an object instead of leaving it blank.

Fixed a memory leak in long sessions with plugins that run sidecars, where every sidecar run left a background task running for the rest of the session.

04

對話與子代理生命週期修復,恢復對話降低 10% 處理器負擔

當你接續先前的對話紀錄、或從現有討論中分岔出額外任務時,往往涉及多個背景處理程序。⟦如同施工工班的調度日誌,接續進度時不重複念出已完工的項目,分派支援小組時切斷總工程的死線牽制,撤場時則徹底拆除臨時搭建的工寮。⟧現在恢復對話時不再重複渲染已經完成的工具呼叫,可省下約 10% 的處理器運算資源。從帶有 /goal 目標的對話分岔出新討論、/btw 旁支提問或衍生子代理時,繼承的目標會在分岔點自動取消,避免新工作階段停不下來。同時,自訂代理的名稱若含有冒號,過去導致子代理無法啟動的錯誤已獲修正。而當你刪除對話時,執行中的子代理、已存歷史紀錄與共享或分支工作區都會一併停止並清除。

官方原文

Improved resuming a conversation to use about 10% less CPU by not rendering already finished tool calls a second time.

Fixed conversations forked from one with an active /goal, including /btw side questions and forked subagents, inheriting that goal and being unable to stop; the inherited goal is now canceled at the fork point.

Fixed subagents failing to run when their custom agent's name contains a colon.

Fixed deleting a conversation leaving its running subagents, their saved history, and their shared or branched workspaces behind; they are now stopped and cleaned up with it.

05

工具呼叫失敗明確回傳錯誤狀態,代理能接續自行復原

當代理呼叫外部工具時,執行結果是它決定下一步動作的依據。以前呼叫不存在的工具、或是呼叫被取消與中斷時,這些失敗會被當成一般正常結果傳回給代理,導致它無法察覺異常。現在這類失敗都會被明確視為錯誤回傳,代理能在下一步辨識問題並接續自我復原。

官方原文

Fixed failed tool calls, including calls to a tool that doesn't exist and canceled or interrupted calls, being passed back to the agent as ordinary results; the agent now sees them as errors and can recover on its next step.

06

Windows 貼上圖片支援常見格式,剪貼簿被佔用時自動重試

在 Windows 系統中,從其他應用程式複製圖片貼進終端機時常會遇到阻礙。以前如果圖片是從瀏覽器、剪取工具(Snipping Tool)或其他將 PNG 或 V5 點陣圖資料放入剪貼簿的程式複製,貼上動作無法順利讀取。現在這些格式已能正常支援,且當剪貼簿被其他程式短暫佔用時,貼上功能會自動重試。

官方原文

Fixed pasting images on Windows when they were copied from a browser, Snipping Tool, or another app that puts PNG or V5 bitmap data on the clipboard, and pasting now retries when another app briefly holds the clipboard.