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

statusline-band

statuslineV4.sh をプロンプト上のバンドへ移植し、Desktop Code タブにディレクトリ、git、モデル、effort、所要時間、バージョン、session id、レート制限、コンテキスト、コスト、出力スタイル、RAM を 2 行の色付きステータスとして表示する Claude Code mod。

zakattack9@zakattack9

zakattack9/agentic-coding/tree/main/claude-code/plugins/statusline-band

翻訳済み

この mod について

statusline-band は claude-code/statuslines/statuslineV4.sh をプロンプト上のバンドへ移植します。statusLine スクリプトを実行しない Claude Desktop Code タブでも、同じ値を 2 行の色付き表示で見られます。1 行目はディレクトリ、git ブランチ、モデル、effort、所要時間、バージョン、短縮した session id、2 行目は 5h/7d のレート制限、コンテキスト率、コスト、出力スタイル、RAM 使用量です。色はスクリプトの xterm-256 パレットを hex に変換したものです。空でない NO_COLOR を指定すると無効になります。session id はボタンとして働き、ターミナルでは完全な id をコピーし、クリップボードへの書き込みにまだ対応していない Desktop アプリでは toast を表示します。/plugin marketplace add zakattack9/agentic-coding と /plugin install statusline-band@zaksak でインストールします。オプション(show_in_terminal、dir_levels、refresh_seconds)は /plugin configure または /config で設定します。mods 対応の Claude Code ビルドが必要で、v2.1.286 でテスト済みです。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add zakattack9/agentic-coding
claude plugin install statusline-band
原文 / README

statusline-band

A mod that ports claude-code/statuslines/statuslineV4.sh into the band above the prompt, so the Claude Desktop Code tab (which doesn't run statusLine scripts) gets the same figures in two rows:

statusline-band  ⟡  main  ⟡  Opus 5.5  ⟡  high               2m  ⟡  v2.1.286  ⟡  f00a9b5b…afddad
5h 13% · 7d 26%  ⟡  ctx 8%  ⟡  $0.77  ⟡  Caveman                        RAM 2.03GB (6 · 2.9%)

Each row puts its main figures on the left and pushes the rest to the right edge. Each figure is drawn in its own color, labels included. The 5h/7d labels and the RAM process count are a shade darker, and the ⟡ separators are dimmed. Colors are the script's xterm-256 palette converted to hex. A non-empty NO_COLOR turns them off.

The session id is a button. In the terminal, pressing it copies the full id. The Desktop app doesn't let mods write to the clipboard yet, so there it shows the full id in a toast instead.

Install

/plugin marketplace add zakattack9/agentic-coding
/plugin install statusline-band@zaksak

Requires a Claude Code build with mods. Tested on v2.1.286 in the Desktop Code tab.

Options

Set via /plugin configure statusline-band@zaksak or /config:

| Option | Default | What it does | | --- | --- | --- | | show_in_terminal | false | Also draw the band in terminal sessions. Off so the CLI's real status line isn't doubled. | | dir_levels | 3 | Trailing path components shown; 0 shows the full path. | | refresh_seconds | 5 | How often git, RAM and duration refresh between turns. |

Differences from the script

  • Draws above the prompt: mods can't draw in the status line slot below it.
  • Two rows instead of three. Duration, version and session id sit on the right of row 1, output style ends row 2, and the session id is shortened to first8…last6. Duration and output style keep each other's old colors.
  • Effort comes from the main loop's last request (turn.step), and is blank for a model without effort. Before the first request, or after /effort or /model changes between turns, it comes from the /config row until the next request.
  • Output style comes from the engine's own /config row, matched by key name. It shows default when not found.
  • Context shows — until the first response of a fresh or just-compacted session, where the script showed 0%.
  • Rate limits read 0% once a window's reset time has passed, since the engine's reading is from the last response. A gateway's spend_limit shows as spend. With no reading at all, the segment is left out instead of saying No ongoing session.
  • Cost is left out when the host keeps no cost ledger, instead of showing $0.00.
  • Duration counts from this run's start, read from the engine process's uptime. The engine's own session start counts from a resumed session's first launch. /clear still resets it.
  • RAM sums every process named claude for this user, as the script does: all Desktop Code tabs and terminal sessions, not just this one. This session's engine is always included, and the Desktop app's disclaimer wrapper is skipped.

Develop

claude plugin validate claude-code/plugins/statusline-band
claude plugin test claude-code/plugins/statusline-band
claude --plugin-dir claude-code/plugins/statusline-band

同名の他の作品

関連作品