elkinaguas/claude-mods/tree/main/pixelbar
pixelbar
一个为 Claude Code 显示模型、上下文、速率限制、成本、git 状态和会话统计的动画像素风状态栏,并提供 /pixelbar、/session-files 和 /focus-timer 等交互式命令。
关于这个 mod
pixelbar 是一个绘制在提示符上方的动画像素风状态栏。四行分别显示模型和 effort、context 窗口大小、目录和 git 分支(包含未提交与未推送计数);context、5 小时和每周用量条;状态、测试或构建结果、会话成本、时间与 context 使用量 sparkline;以及当前回合的实时统计和上一回合摘要。螃蟹会随着 Claude 工作挥动钳子、庆祝测试通过、担心失败,在 context 快满时变红冒汗,闲置 10 分钟后入睡。另有 context 超过 80% 时的闪烁警告与 /compact? 提示、未提交变更提醒,以及可打开文件面板的 [ N files ] 按钮。命令包括 /pixelbar、/session-files 和 /focus-timer [minutes]。要求使用近期版本的 Claude Code、git、Pro 或 Max 订阅,以及支持区块字符的终端字体。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add elkinaguas/claude-mods claude plugin install pixelbar
原文 / README
pixelbar
An animated pixel-art status band for Claude Code, drawn above the prompt.
![]()
Demo data, generated from pixelbar's own drawing code (tools/pixelbar-demo/make-gif.sh).
What it shows
| Row | What's there |
| --- | --- |
| 1 | Model and effort, context window size, folder, git branch with uncommitted (●) and unpushed (↑) counts |
| 2 | Context, 5-hour and weekly usage bars with time to reset; a warning if you'd hit the 5h limit before it resets at your current pace |
| 3 | Status (working / ready / mood), last test or build result, session cost, session time, context-usage sparkline |
| 4 | Live stats for the current turn, then the last turn's summary: time, tools, files and lines changed, cost |
The crab works along with Claude: it waves its claws while working, celebrates passing tests, worries about failures, turns red and sweats as the context fills, and falls asleep after 10 idle minutes.
More signals:
- Context warning: above 80% context the percentage blinks and
/compact?appears. - Uncommitted-work nudge:
⚑when 10+ files are uncommitted, or changes have sat uncommitted for 30 minutes. - Files button:
[ N files ]appears once a file is edited, and opens the files pane.
Commands
| Command | What it does |
| --- | --- |
| /pixelbar | Show or hide the band |
| /session-files | Open a pane listing the files edited this session, with their diffs (also the [ N files ] button, hotkey f) |
| /focus-timer [minutes] | Start a focus timer (default 25 minutes) shown under the crab; /focus-timer off stops it |
Requirements
- A recent Claude Code (built on 2.1.289)
git, for the git section and the uncommitted-work nudge- A Pro or Max subscription, for the 5-hour and weekly bars
- A terminal font with good block characters
Install
See the repository README.
Develop
claude plugin validate pixelbar
claude plugin test pixelbar
tools/pixelbar-demo/make-gif.sh # rebuild demo.gif after visual changes
