ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
Reddit 貼文 · 發布者 uppinote

我的 Claude Code 狀態列現在以 mod 運作,終於能在桌面版看到額度了

Reddit 展示貼文:claude-dashboard v1.35 是一個由狀態列外掛改成 mod 的作品,在桌面版加入儀表板面板和提示輸入框上方的橫帶,附安裝指令與 GitHub 儲存庫。

已翻譯

關於這個 mod

claude-dashboard 的作者說明,他把原本的狀態列外掛改成 mod,這樣儀表板(情境用量 %、工作階段花費、5 小時/7 天額度與重置倒數)在桌面版也看得到。

  • /claude-dashboard-pane 在對話記錄旁開啟儀表板面板。
  • /claude-dashboard-band 把它畫在提示輸入框上方。
  • 兩者都能像終端機狀態列一樣自訂。

這個 mod 會組出和狀態列相同的 stdin JSON,再交給原本的算圖程式處理。v1.35.1 修正了 WSL 的 PATH 裡找不到 node 的問題:它會先向登入 shell 查詢一次,查不到再退回 nvm、fnm、volta、Homebrew 的路徑。

限制:只支援本機工作階段,雲端工作階段不支援面板與橫帶;mod API 目前也不提供每次請求的快取 token。

安裝:/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]

更多類似作品