ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 DJPalefaceSD

gas-gauge

プロンプト上の燃料計。各ウィンドウで Claude プランがどれだけ残り、いつ補充されるかを示します。

DJPalefaceSD@DJPalefaceSD

DJPalefaceSD/rostech-mods/tree/main/plugins/gas-gauge

翻訳済み

この mod について

Claude Code プラグインで、プロンプト上に燃料計を表示し、各ウィンドウの Claude プラン残量と補充時刻を示します。

表示例:⛽ 5-hour E ███ ½ █░░ F 71% @ 3:40 PM。車のゲージと同じく左が E、右が F、中央が ½ です。半分より上は緑、5 分の 1 より上は黄色、それ未満は赤。各ゲージは帯の半分を使います。残量 25% 未満で 1 回、10% 未満でさらに 1 回通知します。

コマンド:/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%.

  • /gas prints every tank.
  • /gas hide moves the numbers to the status line. /gas show brings 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.

関連作品