usage

usage 0.34.17

工具與目錄
在這頁

新功能 3 項

01

官方服務出狀況時主動提醒 Claude

請 Claude 派工給 Codex 整理資料時,最怕遇到服務中斷卻不自知,害它一直重試或忙著排查任務書。現在只要開啟「額度感知模式」(讓 usage 把外部狀態報給 Claude 的功能),當 Claude Code/Claude API 或 Codex API 發生降級或中斷時,Claude 就會收到一行提示。若出狀況的是 Codex,提示還會交代派工失敗別一直重試、別去改任務書,改派別隻或告訴你。同一個對話裡這件事只說一次,狀態變了再說,恢復正常時再說一次;app 會把狀態寫在 ~/.usage/service_status_snapshot.json,超過 15 分鐘沒更新就不採用。⟦彷彿社區遭遇停水時,以前住戶沒收到通知只能反覆去轉水龍頭,現在水廠只在停水、水壓變動和恢復供水時各發一次通報,大家就不會白費力氣。⟧

官方原文

**Quota-aware mode now tells Claude when Claude Code or Codex has an official service incident.** When Claude Code / Claude API or Codex API is degraded or down, Claude gets one line saying so. For Codex it also says not to keep retrying a failed dispatch or debugging the task brief, and to switch agents or tell you instead. Claude hears it once per conversation, again if the status changes, and once more when the service recovers. The app writes these statuses to ~/.usage/service_status_snapshot.json; statuses older than 15 minutes are ignored.

02

對話開場附上額度總覽與本地重置時間

剛開一個新對話準備寫企劃時,你常得先確認手上各工具還有多少額度、幾點才會重新計算。⟦就像走進診所先看牆上的看板,以前只寫「再等兩小時」得自己心算,現在螢幕開門就列出各診進度,並直接標出幾點幾分輪到你。⟧只要開啟「額度感知模式」,每個對話開始時都會遞給 Claude 一份簡短總覽,把各工具已知的用量與重置時間報告一次,並略過過期資料。如果當時還沒有可用資料,就會等到有可用資料時再提供總覽,而且這份總覽與原有的額度提醒共用同一個開關。以往提醒只寫還剩多久,例如 resets in 2h 10m,現在會補上本地時間 (at 02:40 local time),並多附一行 Current local time。如果不在當天重置,還會加上星期幾,Claude 就能直接回答你幾點重置,不必只說還要等多久。

官方原文

**Quota-aware mode gives Claude a short quota overview at the start of each conversation.** It shows each tool’s known usage and reset time once, skips stale data, and waits for usable data if none is available yet. The same switch controls the overview and existing notices.

**Quota-aware mode now tells Claude the reset clock time and the current time.** Each reminder used to give only the time left, such as resets in 2h 10m. It now adds the local clock time, such as (at 02:40 local time), and a Current local time line, so Claude can tell you when a quota resets instead of only how long it takes. A reset on another day also shows the weekday.

03

額度重置或用 /login 換帳號後,清除先前的提醒

午休過後重新開啟昨晚的討論串,或剛切換了另一組登入身分想繼續趕工,Claude 卻可能還記著先前的用量警告。⟦好比信用卡到了結帳日或換張新卡結帳,以前舊的「快刷爆」紙條還留在桌上誤導人,現在帳務一旦重算或換卡,就會撕掉舊紙條不再沿用舊數字。⟧現在只要先前提醒過的額度重置(包含提前開始新一輪額度),下次送出訊息時「額度感知模式」就會通知 Claude 一次舊提醒已失效,讀得到目前用量時也會一併附上。只有同一對話曾提醒過的額度才會觸發通知,而其他對話的紀錄會保留到重置後七天,恢復對話時照樣收得到。當你用 /login 切換 Claude Code 帳號後,同樣會告訴 Claude 一次先前提醒已不適用;在下一次回覆更新狀態檔前,不會沿用舊帳號的讀數,其他工具與對話則保留各自紀錄。

官方原文

**Quota-aware mode tells Claude once when a quota it warned about resets.** The next prompt clears the earlier notice, including when a new quota window starts early, and includes current usage when known. Only quotas warned about in that conversation trigger a reset notice. Records for other conversations stay for up to seven days after reset so resumed conversations can hear it too.

**Quota-aware mode tells Claude once when you switch Claude Code accounts with /login.** Earlier Claude Code quota notices no longer apply, and old account readings stay suppressed until the status file updates after your next reply. Other tools and conversations keep their own records.

修正 1 項

04

修正 Antigravity 背景跳出登入頁與週額度消失

正在專心寫東西時,瀏覽器卻突然自己打開要求驗證帳號,回頭看面板上的本週剩餘數字也憑空蒸發。現在當 Antigravity CLI(指令列工具 agy)處於未登入狀態,usage 背景執行發現沒登入後,就會停止在背景啟動 agy 並改為同一時間最多只跑一支,不再一直跳出 Google 登入頁。等你重新登入恢復後,下一次刷新就會立刻讀取額度,不用再乾等 30 分鐘。遇到單次讀取失敗時,Antigravity 的週額度也不會直接消失,卡片會沿用上次的週額度並標示為舊資料,直到重置時間為止;狀態列與額度感知提醒同樣會把它當作舊資料處理。⟦宛如抄錶員上門記錄度數,以前沒應門就一直按門鈴,抄不到還把欄位擦成空白;現在屋主不在就先暫停敲門,偶爾漏抄也暫留蓋有舊印章的數字。⟧

官方原文

**usage no longer opens Google sign-in pages in the background when the Antigravity CLI is signed out.** When a background agy run reports it is not signed in, usage stops starting agy in the background until the sign-in works again, and runs at most one background agy at a time. After you sign in again, the next refresh reads the quota right away instead of waiting 30 minutes.

**The Antigravity weekly quota no longer disappears after one failed read.** The card keeps the last weekly reading, marked as old data, until its reset time. The status line and quota-aware notices also treat the kept weekly reading as old data.