Stats
Links
Categories
Claude Code 实时状态栏 - 上下文健康度、工具活动、代理跟踪、待办进度
npx claudepluginhub binbin1213/claude-hudClaude Code 实时状态栏 - 上下文健康度、工具活动、代理跟踪、待办进度
Claude Code 插件,显示实时多行状态栏。展示上下文健康度、工具活动、代理状态和待办事项进度。
在 Claude Code 中运行:
/plugin marketplace add binbin1213/claude-hud
/plugin install claude-hud
安装完成后运行 setup 命令配置状态栏:
/claude-hud:setup
安装完成,立即生效。默认显示:
[Opus 4.6] │ claude-hud-main git:(main 改:5 加:2) │ twinkly-humming-lampson
上下文 ████░░░░░░ 41% │ 2 CLAUDE.md | 4 MCPs
✓ 命令 ×8 | ✓ 读取 ×6 | ✓ 编辑 ×5 | ✓ 搜索 ×1
功能特点:
如果一键安装不可用,编辑 ~/.claude/settings.json,添加:
"statusLine": {
"type": "command",
"command": "bash -c 'plugin_dir=$(ls -d \"$HOME\"/.claude/plugins/cache/claude-hud/claude-hud/*/ 2>/dev/null | head -1); exec node \"$plugin_dir/dist/index.js\"'"
}
配置文件位置:~/.claude/plugins/claude-hud/config.json
{
"lineLayout": "expanded",
"showSeparators": false,
"pathLevels": 1,
"elementOrder": ["project", "context", "usage", "environment", "tools", "agents", "todos"],
"gitStatus": {
"enabled": true,
"showDirty": true,
"showAheadBehind": false,
"showFileStats": false
},
"display": {
"showModel": true,
"showProject": true,
"showContextBar": true,
"contextValue": "percent",
"showConfigCounts": false,
"showDuration": false,
"showSpeed": false,
"showTokenBreakdown": true,
"showUsage": true,
"usageBarEnabled": true,
"showTools": false,
"showAgents": false,
"showTodos": false,
"showSessionName": false,
"autocompactBuffer": "enabled",
"usageThreshold": 0,
"sevenDayThreshold": 80,
"environmentThreshold": 0
},
"usage": {
"cacheTtlSeconds": 60,
"failureCacheTtlSeconds": 15
},
"colors": {
"context": "green",
"usage": "brightBlue",
"warning": "yellow",
"usageWarning": "brightMagenta",
"critical": "red"
}
}
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
lineLayout | "compact" | "expanded" | "expanded" | 布局模式。compact 单行紧凑,expanded 多行展开 |
showSeparators | boolean | false | 是否显示分隔线 |
pathLevels | 1 | 2 | 3 | 1 | 项目路径显示层级 |
elementOrder | string[] | 见上方 | 元素显示顺序 |
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
gitStatus.enabled | boolean | true | 是否显示 Git 状态 |
gitStatus.showDirty | boolean | true | 显示是否有未提交更改(*标记) |
gitStatus.showAheadBehind | boolean | false | 显示领先/落后远程的提交数 |
gitStatus.showFileStats | boolean | false | 显示文件变更统计 |
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
display.showModel | boolean | true | 显示模型名称 |
display.showProject | boolean | true | 显示项目路径 |
display.showContextBar | boolean | true | 显示上下文进度条 |
display.contextValue | "percent" | "tokens" | "remaining" | "percent" | 上下文值显示方式 |
display.showConfigCounts | boolean | false | 显示配置文件数量 |
display.showDuration | boolean | false | 显示会话时长 |
display.showSpeed | boolean | false | 显示输出速度 |
display.showTokenBreakdown | boolean | true | 高上下文时显示 Token 明细 |
display.showUsage | boolean | true | 显示用量信息 |
display.usageBarEnabled | boolean | true | 显示用量进度条 |
display.showTools | boolean | false | 显示工具活动 |
display.showAgents | boolean | false | 显示代理活动 |
display.showTodos | boolean | false | 显示待办事项 |
display.showSessionName | boolean | false | 显示会话名称 |
display.autocompactBuffer | "enabled" | "disabled" | "enabled" | 自动压缩缓冲计算 |
display.usageThreshold | number (0-100) | 0 | 用量显示阈值 |
display.sevenDayThreshold | number (0-100) | 80 | 7天用量显示阈值 |
display.environmentThreshold | number (0-100) | 0 | 环境配置显示阈值 |
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
usage.cacheTtlSeconds | number | 60 | 成功请求缓存时间(秒) |
usage.failureCacheTtlSeconds | number | 15 | 失败请求缓存时间(秒) |
可用颜色:red、green、yellow、magenta、cyan、brightBlue、brightMagenta
| 配置项 | 默认值 | 说明 |
|---|---|---|
colors.context | "green" | 上下文进度条颜色 |
colors.usage | "brightBlue" | 用量进度条颜色 |
colors.warning | "yellow" | 警告状态颜色 |
colors.usageWarning | "brightMagenta" | 用量警告颜色 |
colors.critical | "red" | 临界状态颜色 |
{
"display": {
"showTools": true,
"showAgents": true,
"showTodos": true,
"showDuration": true,
"showSessionName": true
}
}
{
"lineLayout": "compact",
"showSeparators": true
}
{
"display": {
"showModel": true,
"showContextBar": true,
"showUsage": false,
"showTools": false,
"showAgents": false,
"showTodos": false
},
"gitStatus": {
"enabled": false
}
}
Development marketplace for Superpowers core skills library
Harness-native ECC skills, hooks, rules, MCP conventions, and operator workflows
Open Design — local-first design app exposed to coding agents over MCP. Install once with your agent's plugin command and projects/files/skills are reachable through stdio.