Statuspane 浮动状态卡
输入框上方一张可点的状态卡:模型、上下文、限额、花费与分支。
> 给订单列表加上分页
⏺ 我先看看列表组件。
╭ opus 4.7 ▮▮▮▯▯ high · 上下文 ▰▰▰▱▱▱ 42% 222k/1M ⟲ compact ╮
│ 5h ▰▰▱▱ 38% ↻2h41m · 周 ▰▱▱▱ 21% · $1.84 │
│ ~/app main · ✓ deployed · 3m ago ⚙ ▾ hide │
╰ build ▰▰▰▰▱▱ 3/7(示意) ╯
❯
示意。实际效果取决于 Mod、终端和运行环境。
安装
/plugin marketplace add xuanji86/claude-statuspane
/plugin install statuspane@claude-statuspane
/reload-plugins在 Claude Code 会话里逐行执行这些命令。
claude plugin marketplace add xuanji86/claude-statuspane
claude plugin install statuspane@claude-statuspane然后在会话里执行 /reload-plugins,或开一个新会话。
请帮我安装 Claude Code Mod「Statuspane 浮动状态卡」(https://github.com/xuanji86/claude-statuspane)。安装前先阅读仓库 README 的 Security 和 Requirements 部分,告诉我它会读写哪些内容、运行什么命令、是否联网,以及对 Claude Code 版本、系统和终端的要求。确认没有问题后,运行 claude plugin marketplace add xuanji86/claude-statuspane 和 claude plugin install statuspane@claude-statuspane 完成安装,最后提醒我在会话里执行 /reload-plugins。把这段话发给 Claude Code,它会先读原作者说明再安装。
git clone https://github.com/xuanji86/claude-statuspane
cd claude-statuspane
claude --plugin-dir .克隆仓库后用 --plugin-dir 在本地会话中试用。
它会碰什么
据原作者说明,收录时核对;可用 claude plugin validate 自行检查。
读取
有读取会话数据、进度文件夹中 ≤64KB 的 JSON,以及 origin remote。
写入文件
有在插件存储中保存显示设置。
运行命令
有执行 git branch --show-current;开 CI 开关后执行 gh run list/view、gh pr view。
联网
有仅开启 CI 开关时经 gh 访问 GitHub;默认关闭。
介绍
statuspane 是 Claude Code 的 function hooks Mod,在输入框上方画一张小卡片,读取 Claude Code 自己的会话数据:当前模型与推理强度、上下文用量(可点 ⟲ compact 确认后执行 /compact)、5 小时与 7 天限额及重置倒计时、目录与 git 分支、本次会话花费。
- 按钮可隐藏、显示和打开设置,选择显示哪些行与进度条宽度,设置跨会话同步。
- 可选 GitHub CI 开关(默认关闭):用已登录的
gh显示当前分支的 Actions 运行与 push 后触发的部署。 - 提供进度 API:任何脚本写
~/.claude/statuspane/progress/<id>.json,或其他 Mod 调用$.statuspane.progress(),就能在卡片上显示进度条。
需要 Claude Code 2.1.287 或更新版本,终端至少 70 列;Desktop 自带状态不绘制。不替换已有 statusLine。资料来自 README,未经本站运行实测。
适合谁
- 想一眼看到上下文、限额和花费的人
- 想把自己脚本进度显示在 Claude Code 里的人
运行要求
- Claude Code ≥ 2.1.287
- 终端至少 70 列;Desktop 不绘制卡片。
- GitHub CI 功能需安装并登录 gh。