DJPalefaceSD/rostech-mods/tree/main/plugins/gas-gauge
關於這個 mod
一個 Claude Code 外掛,在提示字元上方顯示油量表,指出每個視窗還剩多少 Claude 方案額度,以及何時補充。
顯示列範例:⛽ 5-hour E ███ ½ █░░ F 71% @ 3:40 PM——像汽車油量表一樣讀取,左側是 E,右側是 F,中間是 ½。超過半箱為綠色,超過五分之一為黃色,低於該值為紅色。每個油箱占顯示列一半。油箱剩餘低於 25% 時顯示一次通知,低於 10% 時再顯示一次。
命令:/gas 輸出每個油箱;/gas hide 將數字移到狀態列;/gas show 恢復顯示列。
/config 中的 Tanks to show 設定可選擇顯示哪些視窗:both(預設)、單獨 5-hour,或單獨 week。排除的油箱會在顯示列、/gas、警告與狀態列中全部消失。
數字來自 Claude Code 從每次回應讀取的內容,因此 Claude 至少回答一次後油表才會填充;沒有方案視窗的 API key 會保持空白。顯示列繪製在終端機與 Claude 桌面應用程式的 Code 分頁中(尚未支援手機應用程式)。已在 Claude Code 2.1.288 測試。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add DJPalefaceSD/rostech-mods claude plugin install gas-gauge
原文 / README
Gas Gauge
A fuel gauge above the prompt: how much of your Claude plan is left in each window, and when it refills.
⛽ 5-hour E ███ ½ █░░ F 71% @ 3:40 PM
Read it like a car: E on the left, F on the right, the ½ mark in the middle. Green above half a tank, yellow above a fifth, red below that.
Each gauge takes half the band. A toast fires once when a tank drops past 25% left, and again past 10%.
/gasprints every tank./gas hidemoves the numbers to the status line./gas showbrings the band back.
The Tanks to show setting, in /config, picks which windows the gauge shows:
both (the default), 5-hour alone, or week alone. A tank it leaves out is
gone everywhere, from the band, /gas, the warnings and the status line.
The numbers are the ones Claude Code itself reads off each response, so the gauge fills after Claude has answered once. On an API key with no plan windows, it stays empty.
The band draws in the terminal and in the Code tab of the Claude desktop app. The phone app does not draw it yet.
Tested with Claude Code 2.1.288.


