usage

Antigravity 1.4.3

工具與目錄
在這頁

新功能 2 項

01

/diff 與產物檢視器新增搜尋功能,支援跨檔案逐筆跳轉

比對大批修改內容時,要在冗長的變更清單中精準定位某個函式或變數往往相當費時。在 /diff 的檔案清單與檔案檢視中,按下 / 即可啟動搜尋。輸入關鍵字時會即時反白相符字串,提示列還會列出整份差異比對與各檔案分別包含多少筆相符項目。按下 Enter 會跳到第一筆結果,接著按 n 或 N 就能跨檔案逐筆來回巡覽,頁首也會顯示如 match A/B 的進度指示。⟦尋訪長篇族譜名冊時,以前只能逐頁掃描而容易看漏同行的重複名字;現在輸入字根便立刻標記全冊,提示列載明各章節出現次數,還能依序巡禮每個相符人名。⟧在產物檢視器(artifact viewer,用來預覽生成文件的面板)中按 n 與 N,現在也會逐筆跳過同一行內的多個項目,不再整行跳躍。

官方原文

Added / search to the /diff file list and file view: matches are highlighted as you type, the search prompt shows how many matches the diff and each file contain, Enter jumps to the first match, and n/N step through matches one at a time across every file, with match A/B in the file view header. n/N in the artifact viewer now also step through matches one at a time, including several on the same line, instead of jumping from line to line.

02

/tasks 計時器改以天時分秒顯示,清楚掌握剩餘時間

當你在背景啟動了長時間排程,隨時掌握任務的等待時間是安排後續工作的關鍵。在終端機查看進行中的排程計時器時,時間標示方式直接影響你掌握進度的速度。在 /tasks 任務清單與作用中任務清單中,計時器標籤現在改以天、小時、分鐘與秒數來顯示時間長度,例如呈現為 1d 2h timer 或 5m timer。以前這裡只會顯示原始秒數,像是 93784s timer,讓人難以一眼看出到底還要等多久。⟦盯著大樓停車場的繳費機螢幕,以前停留時間只顯示幾萬秒讓人摸不著頭緒;現在直接換算成幾天幾小時幾分幾秒,一眼就能看清車輛停放了多久。⟧當你設定了排程任務時,只要在對話中輸入 /tasks,就能立刻從清單看到以天或分鐘標示的計時器,不必再自行拿計算機換算秒數。

官方原文

Improved timer labels in /tasks and the active task list to show durations in days, hours, minutes, and seconds, such as 1d 2h timer or 5m timer, instead of raw seconds such as 93784s timer.

修正 9 項

03

外掛驗證新增結構檢查,修正 Windows 覆寫防護與顏色輸出

外掛設定疏漏或檔案被佔用以往容易導致異常。agy plugin validate 新增結構檢查:無法解析 hooks.json、sidecar.json 或元件清單時報錯;遇未知掛鉤、無效正規表達式(用符號比對字串)、未讀取的 hooks/hooks.json、遺漏路徑、不載入的 commands/ 與 workflows/ 或頂層 "hooks" 鍵名則警告。

在 Windows 更新或重裝外掛時,若被其他工作階段佔用,以前會留下半刪除毀損目錄;新版就位前舊版維持完整,替換失敗也會還原。

agy plugin install 與 agy plugin import 修正了導向輸出夾帶色碼的問題,現在只在終端機著色,並遵循 NO_COLOR、CLICOLOR 與 CLICOLOR_FORCE。

官方原文

Improved agy plugin validate to also check a plugin's hooks, sidecars, and component lists: it reports an error when hooks.json, a sidecar.json, or a skills.json, rules.json, agents.json, or sidecars.json file can't be parsed, and warns about unknown hook events, hook matchers that aren't valid regular expressions and so never match, a hooks/hooks.json file (which isn't read), list entries with no path or with a path missing from the plugin, commands/ folders and workflows/ Markdown files (which plugins don't load), and a Claude Code-style top-level "hooks" key, which loads as a single hook named hooks.

Fixed updating or reinstalling a marketplace plugin on Windows leaving it half-deleted when another agy session, the Antigravity desktop app, or the Remote Control background service had it open; the installed plugin now stays intact until the new copy is in place, and the previous version is restored if the replacement fails.

Fixed agy plugin install and agy plugin import writing color codes into piped or redirected output, ignoring NO_COLOR, and showing raw codes in older Windows consoles; like agy plugin validate, they now use color only in a terminal and follow NO_COLOR, CLICOLOR, and CLICOLOR_FORCE.

04

修復以金鑰連線時未顯示 Gemini 4 Argon 的問題

習慣使用個人 API 金鑰切換模型時,可用清單若漏列特定選項會影響工作調度。當你透過環境變數 GEMINI_API_KEY(Gemini 服務的存取金鑰)連線時,先前在切換模型的 /model 指令選單以及 --model 啟動參數中,都沒有列出 Gemini 4 Argon 模型。現在這個問題已經修好,以金鑰連線時也能正常在選單與參數中指定該模型。

官方原文

Fixed Gemini 4 Argon not shown in /model and --model when you connect with a GEMINI_API_KEY.

05

不支援沙盒的作業系統不再列出終端機沙盒選項

在不支援終端機沙盒(隔離執行指令的受限環境)的電腦上打開 CLI,本來就用不了的選項不該出現在選單裡。這類系統包括阻擋非特權使用者命名空間的 Linux 系統,以及 Windows 11 24H2 之前的舊版 Windows,以前命令列介面仍會提供需要沙盒支援的選項。這個問題已經修好,不支援沙盒的系統上不會再看到需要沙盒的選項。

官方原文

Fixed the CLI offering options that need the terminal sandbox on systems where it can't run, such as Linux systems that block unprivileged user namespaces and Windows before Windows 11 24H2.

06

自動模式子代理指令改由獨立代理審核,安全操作免手動核准

讓代理在背景自動排解複雜任務時,頻繁跳出確認提示會打斷原本流暢的工作流程。在自動模式下,子代理(subagent,負責分流特定任務的輔助代理)與自訂代理以往只要執行脫離終端機沙盒的指令,每次都會停下來要求你手動核准。現在比照主代理的處理機制,它們的指令會先由另一個獨立代理負責審核。安全指令會直接執行,只有具備潛在風險的操作才會跳出提示向你確認。

官方原文

Fixed subagents and custom agents in Auto mode asking you to approve every command that would leave the terminal sandbox; like the main agent's, their commands are now first reviewed by a separate agent, so safe commands run without asking and risky ones still prompt you.

07

對話壓縮保留子代理編號,精簡摘要不再丟失背景任務

長時間對話進行壓縮整理時,歷史任務資訊若被截斷,會讓代理遺忘先前派出的幫手。以前對話摘要會塞入每個子代理完整的初始提示詞,往往因為長度超限而在記錄對話編號(conversation ID)前就被截斷,導致代理失去對近期子代理的追蹤。現在壓縮摘要只保留各子代理的類型、角色與執行結果,確保識別資訊完整留存,並為語境視窗(context window,模型一次能讀取的記憶上限)留出更多空間。

官方原文

Fixed the agent losing track of its most recently started subagents after a conversation was compacted, because the summary included each subagent's full initial prompt and was cut off before their conversation IDs; the summary now keeps only each subagent's type, role, and result, which also leaves more room in the context window.

08

PostToolUse 掛鉤失敗改為記錄日誌,不再將工具誤判為失敗

設定工具執行的後續連動時,附加檢查腳本若發生異常,不應影響主要操作的成敗判定。在工具呼叫後觸發的 PostToolUse 掛鉤(特定事件發生時被觸發的小程式)若執行失敗,例如指令不存在、執行逾時、退出回傳錯誤或輸出無效的 JSON,以前會將原本成功的工具呼叫直接標記為失敗。現在這類失敗只會記錄在日誌中,工具會完整保留原本的執行成果。

官方原文

Fixed a PostToolUse hook that fails to run, for example because its command is missing, exits with an error, times out, or prints invalid JSON, marking the tool call it follows as failed even though the tool succeeded; the failure is now logged and the tool keeps its result.

09

修復空白檔案建立失敗,以及專案寫入誤報產物路徑的問題

讓代理建立新模組或初始化目錄時,建立標記檔案與修改專案內容是常見的操作。以前代理在建立如 __init__.py 或 .gitkeep 等空白檔案時會執行失敗,而且當模型送出空白的產物資訊時,寫入或編輯一般專案檔案也會跳出 ... is not a valid artifact path 的報錯。現在這個問題已經修好,建立零內容檔案與正常編輯專案檔案都能順利完成。

官方原文

Fixed the agent failing to create empty files such as __init__.py or .gitkeep, and failing to write or edit regular project files with ... is not a valid artifact path when the model sent blank artifact details.

10

iPhone 與 iPad 遠端控制支援狀態記憶,不再重複提示條款與通知

在行動裝置上透過遠端功能查看進度時,每次開啟都必須手動關閉重複的提示視窗相當不便。在 iPhone 與 iPad 上使用 Remote Control(遠端控制功能)時,以前每次重新開啟,都會重複要求同意 Security Notice & Data Use 安全與資料使用條款,並再次彈出 Enable Notifications 啟用通知提示。現在應用程式會記住你的回覆,連同主題、排版設定以及已關閉的提示一併儲存。

官方原文

Fixed Remote Control on iPhone and iPad asking you to accept the Security Notice & Data Use terms and showing the Enable Notifications prompt again every time you reopened it; it now remembers your answers, along with your theme, layout, and dismissed tips.

11

修復終端機游標錯位與換行,完善表情符號與多語字元排版

在終端機處理多國文字與圖示時,字寬計算誤差常導致游標跑位或排版錯亂。

調整視窗(停在 ↑ N more lines 或框外)、提示過高、按上下鍵移至中日韓或表情符號,以及進入 Vim 視覺模式時游標不再錯位,過長的補全提示也會自動縮短。

在支援圖素叢集寬度的終端機中,從外部編輯器(Ctrl+G)或 Ctrl+Z 返回後及在 tmux 3.6+ 下,含 👩💻、👍🏽、⚠️ 的行不再漂移。在日中韓語系(如 LANG=ja_JP.UTF-8)下含 →、…、─、• 時的漂移與提早折行也一併修復。

按方向鍵、Backspace 或 Delete 不再只刪改半個表情符號、旗幟或變音字母,行末寬字元也會正確折行。在 /diff 與 /artifact 預覽中,結合符號或零寬字元導致提早折行、空白列或過早以 … 截斷也已修好。

官方原文

Fixed the prompt cursor appearing in the wrong place after resizing the terminal (sometimes on the ↑ N more lines indicator or below the input box), when a slash command's completion hint didn't fit on the last line of the prompt (the hint is now shortened or left out), when the prompt was taller than the terminal, after pressing Up or Down onto a line with CJK characters or emoji, and after entering Vim visual mode, which also rewrapped the text.

Fixed the cursor drifting on lines with emoji such as 👩‍💻, 👍🏽, or ⚠️ inside tmux 3.6 and later, and after returning from your external editor (Ctrl+G) or a Ctrl+Z suspend in terminals that support grapheme-cluster widths.

Fixed the cursor drifting and lines wrapping too early under Japanese, Chinese, or Korean locales such as LANG=ja_JP.UTF-8 when text contains characters like →, …, ─, or •, which parts of the CLI counted as two columns wide while the rest drew them as one.

Fixed Left, Right, Backspace, and Delete in the prompt and other text boxes moving over or deleting only part of an emoji such as 👩‍💻 or 👍🏽, a flag, or a letter with a combining accent, and fixed text boxes cutting off a wide character, such as a CJK character or emoji, at the end of a wrapped line instead of moving it to the next line.

Fixed lines containing combining marks or other zero-width characters wrapping too early or leaving blank rows in /diff and the inline diff preview, and being cut off with … too soon in /artifact previews.