usage

Antigravity 1.1.9

工具與目錄
在這頁

新功能 3 項

01

列印模式也會認得斜線指令與技能

你想把檢查工作交給不開視窗的列印模式(print mode,跑完一個指令就輸出結果的模式)時,現在可以直接輸入 -p "/my-skill review this diff"。開頭的斜線指令會被辨認,技能也會被展開套用,不再整串當成普通文字丟給 AI。即使指令和參數之間按了換行或 Tab,仍會正確拆開;若你要原封不動送出斜線文字,則加上 --disable-slash-commands。這像寄件櫃終於讀得懂收件人姓名與地址各在哪一欄,不會把整張地址貼紙當成一段留言。

官方原文

Added slash-command and skill expansion to print mode, so a headless run such as -p "/my-skill review this diff" now resolves and applies the skill instead of sending it as literal text, with --disable-slash-commands to opt out.

Fixed slash commands not being recognized when separated from their arguments by a newline or tab, so a prompt starting with a command followed by a newline is now parsed as a command instead of being sent verbatim.

02

先開始對話,MCP 工具慢慢到位

剛打開互動對話,某個 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)伺服器若很慢或卡住,第一輪不會再跟著停在門口。互動工作階段會在背景載入 MCP 伺服器;不過無頭模式和單次執行仍會等待,確保它們唯一那輪工作看得到完整工具組。連線中斷後恢復時,MCP 也不再強迫你重新做完整驗證。像登機時,櫃檯先讓旅客開始辦理,行李車在後頭跟上;但只飛一趟的包機仍得等所有行李裝妥才起飛。

官方原文

Improved interactive startup so a slow or hanging MCP server no longer stalls the first agent turn, loading MCP servers in the background for the interactive session while headless and one-shot runs keep blocking so their single scripted turn still sees the full toolset.

Fixed MCP servers forcing a full re-authentication after a dropped connection.

03

核准過的指令不再重複敲門,暫存目錄可直接寫入

同一段對話裡,你已核准過的指令樣式,之後遇到相同樣式不必每次再按一次允許。這份核准會記住到對話結束;不是把所有指令都放行,而是只讓符合已核准模式的後續指令通過。另一個常見卡點也拿掉了:預設可用的系統暫存目錄,現在連建立或更新檔案都包含在權限裡,不會只因要寫檔又跳出詢問。這像進出大樓的訪客證,警衛記得今天已查過的通行類型;而原本可進卻不能放東西的置物櫃,終於配了鑰匙。

官方原文

Improved permission grants so a pattern approved at a prompt is recorded for the rest of the conversation, letting later commands that match it run without prompting again.

Improved the default system temporary-directory grant to cover writes as well as reads, so agents no longer trigger a permission prompt when creating or updating files there.

修正 3 項

04

掛鉤不再把工作卡死,也只在該出場時出場

替自動化流程裝了停止掛鉤(hook,特定事件發生時被觸發的小程式)後,萬一它每次都要求繼續,工作不會再被困到永遠。連續續跑次數到達你設定的上限後,這個掛鉤便不能再阻擋,該輪會正常結束。PostToolUse 掛鉤也修正了:它以前連使用者輸入和模型回覆這些非工具步驟都會觸發,還因此忽略原本設定的匹配條件;現在只照該照的條件動作。像舞台監督以前讓謝幕演員一再回台,戲散不了場,還把觀眾說話當成燈光提示;現在謝幕有次數上限,提示也只認對的暗號。

官方原文

Fixed stop hooks that always block hanging the agent forever; after a configurable number of consecutive continuations, the hook can no longer block and the turn ends normally.

Fixed PostToolUse hooks firing on non-tool steps such as user input and model responses, which also caused them to ignore their configured matchers.

05

貼上內容可整塊刪除,成品畫面回得正確

一次貼進很長內容後,如果輸入框把它收成一個折疊的貼上區塊,現在按刪除會整塊消失。以前畫面上會一個字一個字地刪,留下看得到的碎片,送出時卻仍把完整內容交出去,讓人難以判斷自己到底刪掉了什麼。成品檢視器也一起修好:從編輯畫面回來時,程式碼的語法上色不會消失;離開成品細節時,也會回到正確面板。像撕掉便利貼時終於整張撕下,不會桌上殘一小角、抽屜裡還藏著原件;看完展品也能回到剛才那個展廳。

官方原文

Fixed deleting into a collapsed paste placeholder removing one character at a time, which left a visible fragment in the prompt while the full pasted content was still submitted; the block is now deleted atomically.

Fixed the artifact viewer losing syntax highlighting when returning from the editor view, and returning to the wrong panel when exiting the artifact detail view.

06

串流 JSON 不再列出不存在的工具

用無頭模式的 stream-json 輸出(把執行過程用 JSON 一行行送出的格式)接到自己的程式時,開頭的 init 事件現在只會列出你這個版本實際可用的工具。以前它可能先宣告某些工具,實際執行卻找不到,接收端若照那張清單安排工作便會踩空。這次是把起跑線上的工具牌換成正確版本;不是新增工具,而是讓宣告和手上的工具箱一致。像活動場地的入口看板不再列出已拆掉的櫃位,排隊的人不會走到門前才發現那裡什麼都沒有。

官方原文

Fixed the headless stream-json init event advertising tools that are not available in your build.