usage

usage 0.30.22

工具與目錄
在這頁

新功能 4 項

01

Claude Code 新增外掛,對話中直接查額度

你跟 Claude Code 對話到一半想確認還能問幾題,不必再特地跳出視窗開終端機查帳。⟦像在辦公桌邊裝了計量表,瞄一眼就知道剩餘額度,以前得特地跑去機房看總表,現在坐在位子上就能掌握。⟧只要先後安裝市集與外掛,就能依序在 Claude Code 對話介面輸入以下指令查詢: ``` /plugin marketplace add aqua5230/usage /plugin install usage@usage /usage:quota ``` 執行後會列出 Claude Code 與 Codex 的 5 小時及每週額度(quota,模型使用上限)用了多少與何時重置。外掛只呼叫 usage-cli status --json,未安裝時會透過 uvx 執行。指令使用 usage-cli 是為避免與其他工具同名衝突,而且只有你主動輸入才會執行,Claude 絕不會在背景自行觸發。

官方原文

**Claude Code plugin: /usage:quota.** Run /plugin marketplace add aqua5230/usage, then /plugin install usage@usage, and /usage:quota shows how much of the Claude Code and Codex 5-hour and weekly quota is used and when each window resets. The plugin only calls usage-cli status --json (through uvx when usage-cli isn't installed). It calls usage-cli rather than usage because other tools also install a usage command, and it runs only when you type it — Claude never triggers it on its own.

02

狀態查詢回傳倒數秒數,免去手動換算時間

打算寫腳本抓取帳號狀態時,串接程式再也不必為了計算剩餘時間而大費周章。⟦好比公車站牌直接標示進站倒數三分鐘,以前只印發車時刻讓乘客自己看手錶心算,現在抬頭就能直接看懂還要等多久。⟧現在執行 usage status --json 時,輸出格式直接替你算好倒數時間。每個統計視窗新增了 resets_in_seconds 欄位回傳額度重置倒數,每個代理人(agent,負責執行特定任務的 AI 程式)也多了 age_seconds 記錄已運作秒數。兩項數值都以報表產生的 generated_at 時間點為準計算完成,接收資料的下游工具不用再自己拿兩個時間戳記相減。

官方原文

**usage status --json reports countdowns.** Each window gains resets_in_seconds and each agent gains age_seconds, both measured at generated_at, so consumers no longer subtract timestamps themselves.

03

精簡模式移除過度施壓指令,交接語氣更自然

使用精簡模式讓 AI 長話短說時,換班交接的開場訊息不再生硬冰冷。⟦像指導實習生寫工作日誌,以前規定字字精簡且嚴禁任何問候,導致交班留言生硬冰冷,現在拿掉死板禁令,既維持精準也能在交接時保有溫暖問候。⟧系統在精簡模式(terse mode,指示 AI 保持回答簡短的設定)中移除了兩行提示詞。首先是刪去「不准淡忘」的嚴格施壓要求,因為每則訊息發送時的提醒機制本來就能穩定簡潔語氣。其次是拿掉「不要為了親切多寫」的禁令,避免它與每位使用者必讀的進度交接摘要互相衝突。

官方原文

**Terse mode drops two lines.** "Never let it fade" pressure is gone — the per-message reminder already keeps the style steady — and so is "no warmth padding", which clashed with the resume handoff's warm recap, the one place every user reads.

04

HTML 報表卡片等高對齊,手機排版補上邊界留白

打開瀏覽器或手機查看用量報表時,畫面中的統計數據不再排列得歪歪斜斜。⟦恰似將畫廊展覽牆上的說明牌統一裁成相同尺寸,以前字數多的卡牌排版混亂且緊貼外框,現在將補充細節縮小分行並留出邊距,整面展示牆看起來整齊一致。⟧在 HTML 報表裡,四張關鍵指標卡的高度現在保持完全一致。記錄 token(AI 處理與計費的文字單位)消耗的卡片大字只放約略值,精確數值與漲跌幅度則改以小字分行顯示,解決了過去卡片文字換行不一的問題。手機版各區塊也在兩側補上 16px 的留白,內容不再緊貼著卡片邊界。

官方原文

**The HTML report's KPI cards stay one height.** The big number on the tokens card shows one rounded value; the exact figure and change move to small lines, so the four cards no longer wrap unevenly. On phones, sections get 16px side padding instead of touching the card edge.