usage

usage 0.33.6

工具與目錄
在這頁

新功能 1 項

01

三十天前的用量自動留存,背景定期備份不再遺失

平時如果很少主動產出用量報表,等到月底想回頭核對專案花銷,常會發現早期的數據已經被清理一空。⟦跟行車記錄器自動把舊畫面存進備份槽一樣,以前太久沒匯出資料,舊紀錄就會被清空;現在背景程式會定時封存,不再擔心足跡消失。⟧Claude Code 預設在 30 天後刪除對話紀錄,而 usage 以前只在產出報表時才儲存長期數據。現在選單列與 Windows 系統匣應用程式每 6 小時在背景儲存最近 45 天紀錄,報表缺少的日子會自動補回。補回的天數會算進總量、趨勢、工具和專案,但不計入工作階段數。由於細節已清理,這些天數不計算 token(AI 運算與計費的文字單位)組成。當時的快取(暫存計算成果直接取用的機制)命中率也不會列入。日後換電腦時,記得將 ~/.usage/ 資料夾一併搬移。

官方原文

**Reports keep usage older than 30 days even if you rarely open them.** Claude Code deletes transcripts after 30 days by default, and usage only saved its long-term history when a report was built. The menu bar and Windows tray apps now save the last 45 days every 6 hours in the background, and reports fill days missing from transcripts from that saved history. Filled days count toward totals, trends, tools and projects, but not sessions, token composition or cache hit rate. When moving to a new computer, copy ~/.usage/ as well.

修正 2 項

02

用量報表標明計算單位,圖表與專案占比直接攤開

每當你需要從用量報表掌握開發開銷,最怕遇上一整排沒有單位的孤立數字。⟦就像收到條理分明的信用卡帳單,以前明細總塞在背面折頁,現在各類款項標註清楚,連走勢圖表都幫你整理妥當。⟧現在 token(AI 處理與計費的文字單位)組成移出了收合附錄,直接排在工具段落後面。旁邊一併顯示快取(暫存算過結果直接調用的技術)命中率,不必再展開附錄查找。每日圖表清楚標出用量最高峰的日期與每月第一天,座標刻度的間距也改用更整齊的數值;每週資料列會列出日期區間,專案熱點則補上占比欄位與「其他專案」列。派工帳本與使用習慣高峰的數字,現在都會寫明到底算的是什麼。

官方原文

**The usage report explains its numbers instead of leaving units to guess.** Token composition and cache hit rate now sit in a visible section after tools rather than the collapsed appendix. The daily chart labels the peak's date, marks month starts and uses rounder axis steps; weekly rows show their date range; project hotspots add a share column and an "Other projects" row; the dispatch ledger and persona peak state what their numbers count.

03

Antigravity 暫存分組清單,切換按鈕不再無故失靈

在 Antigravity 裡切換不同模型分組時,偶爾會遇上按鈕完全點不動的窘境。⟦好比收訊微弱時查看電視節目表,以前只要其中一台訊號延遲,選台器就整排鎖死;現在會記住半小時內的頻道清單,不會因為短暫斷訊就卡住。⟧以前只要額度(quota,可用資源上限)資料漏掉了某個模型分組,卡片就會有整整 5 分鐘沒有選項可以切換。現在 30 分鐘內出現過的分組都會被保留在快取(暫存計算或查詢結果的機制)中,避免按鈕失靈。如果額度真的只剩下單一分組,所有面板與 Windows 系統匣都會自動收起切換按鈕。你先前選好的分組依然會被系統記住,一旦兩組模型重新回歸,就會立刻恢復切換。

官方原文

**The Antigravity group toggle no longer stops working.** When one quota response skipped a model group, the card had nothing to switch to for five minutes. A group seen in the last 30 minutes is now kept. When the quota really has only one group, every panel and the Windows tray hide the toggle, and your group choice is kept for when both return.