ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
Reddit の投稿 · 投稿者 uppinote

Claude Code のステータスラインを mod にして、デスクトップアプリでも利用上限が見られるようになった

Reddit の紹介投稿。ステータスラインのプラグインを mod にした claude-dashboard v1.35 は、デスクトップアプリにダッシュボードのペインとプロンプト入力欄の上のバンドを追加します。インストールコマンドと GitHub リポジトリ付き。

翻訳済み

この mod について

claude-dashboard の作者が、ステータスラインのプラグインを mod にした経緯を紹介しています。これでダッシュボード(コンテキスト使用率 %、セッションのコスト、5 時間/7 日の上限とリセットまでのカウントダウン)がデスクトップアプリでも見られます。

  • /claude-dashboard-pane は、会話履歴の隣にダッシュボードをペインで開きます。
  • /claude-dashboard-band は、プロンプト入力欄の上にダッシュボードを表示します。
  • どちらも、ターミナルのステータスラインと同じようにカスタマイズできます。

この mod は、ステータスラインが受け取るものと同じ stdin JSON を組み立て、既存のレンダラーに渡して実行します。v1.35.1 では、WSL で PATH に node が見つからない問題を修正しました。ログインシェルに一度問い合わせ、それでも見つからなければ nvm・fnm・volta・Homebrew のパスにフォールバックします。

制限: ローカルセッションのみ対応です。クラウドセッションはペインとバンドに対応していません。また、リクエストごとのキャッシュトークンは mod API では公開されていません。

インストール: /plugin marketplace add uppinote20/claude-dashboard、/plugin install claude-dashboard、/claude-dashboard:setup。

インストール

インストール方法は元のソースをご確認ください。

原文 / README

https://preview.redd.it/op31ig1rmxth1.png?width=2210&format=png&auto=webp&s=013fe2037cbcfe679517bf226305e6d83f75609f I've been building claude-dashboard, a status line plugin for Claude Code, since January. It shows context %, session cost, and the 5h / 7d limits with a countdown to reset. The one place I couldn't see it was the desktop app. When mods came out I got sidetracked and made a pixel pet first, but v1.35 finally does what I originally wanted. /claude-dashboard-pane opens the dashboard in a pane next to the transcript, and /claude-dashboard-band draws it right above the prompt input. Both can be customized the same way as the terminal status line, so you can pick a preset or your own widget lines for each. Under the hood the mod builds the same stdin JSON a status line gets and runs the existing renderer, so every widget, theme and language works without a second implementation. Then I shipped it and the pane was blank on my WSL setup. The terminal status line was fine, but every pane render failed with ENOENT: Executable not found in $PATH: "node". The desktop app starts the CLI without sourcing ~/.bashrc, and $.process.run execs directly with no shell, so a node installed through nvm just isn't there. v1.35.1 only reacts to that failure: it asks your login shell once, falls back to the usual nvm / fnm / volta / Homebrew paths, and remembers the answer for the session. About 4 seconds on my machine, once per session. If you're writing your own mod that shells out to node, you'll probably run into the same thing. It works in local sessions only. Cloud sessions in the desktop app don't seem to support panes or bands, and the mod API doesn't expose per-request cache tokens, so the last-request cache hit widget is hidden there. https://github.com/uppinote20/claude-dashboard /plugin marketplace add uppinote20/claude-dashboard /plugin install claude-dashboard /claude-dashboard:setup Setup asks whether you want the pane, the band, or both. submitted by /u/uppinote [link] [comments]

関連作品