usage 0.22.0
新功能 2 項
年度回顧把一整年的 AI 用量做成榜單,還送你一隻代表神獸
想回味過去這一年你到底多用力在用 AI,現在報表會幫你做成一份年度回顧。HTML 報表新增兩個段落,把你一整年的本地用量濃縮成一眼看完的摘要。第一個是仿 GitHub 風格的 52 週貢獻熱度圖(contribution heatmap,那種一格一格、顏色越深代表那天越活躍的年度方格圖),每天依你燒掉多少 token(AI 計量的單位,回答越長花越多)來著色,旁邊還標出你目前跟歷來最長的連續活躍紀錄(streak,連續好幾天沒中斷使用),以及你最忙的那一天。第二個是一張「Wrapped」總結卡,把這一年算總帳:總共燒了多少 token、花了多少錢、活躍了幾天、最長連續紀錄,外加你最常用的模型跟最常跑的專案;最後還會依你這一年到底比較常用哪個 AI,封你一個守護精靈——跑 Claude 多的是鳳凰(phoenix),跑 Codex 多的是龍(dragon)。全部只用你電腦裡的本地檔案算出來,不碰網路。就像 Spotify 年度回顧那樣,把你一整年的習慣做成一張精彩榜單,只不過這回統計的是你跟 AI 一起熬夜幹活的足跡,最後還會依你偏愛哪個 AI 給你一隻代表神獸。
官方原文
**Year in review in the HTML report**: two new sections that turn a year of local usage into one glance. A GitHub-style 52-week contribution heatmap shades each day by how many tokens you burned, with your current and longest active streaks and your busiest day called out beside it. A "Wrapped" card sums up the year — total tokens, cost, active days, longest streak, and your most-used model and project — and crowns you with the spirit you leaned on most: a phoenix if you ran more Claude, a dragon if you ran more Codex. All computed from local files, no network.
紀錄檔再巨大,報表開啟依然飛快
就算你的紀錄檔已經累積得超巨大,報表開起來還是飛快。上述年度回顧背後那一整年的資料,現在會快取(cache,先把算好的結果暫存在磁碟裡、下次要用直接拿、不必重算)到磁碟上,你重複打開報表時幾乎是即時呈現,只有當資料過期了才會重新計算一次。所以即使你本地的 log 檔案龐大無比,報表依然能快速打開。就像一家餐廳把常客每天點的菜先整理成一本速查表,熟客一進門照表上菜立刻端出來,只有當你今天新點了別的菜,才需要重新謄寫一次。
官方原文
**Reports stay fast on huge histories**: the year of data behind those sections is cached to disk and served instantly on repeat opens, only recomputed once it goes stale — so the report opens quickly even when your logs are enormous.