By DiogoHSM
Three-line Claude Code status bar: model + estimated cost + macOS memory + context-window progress, optional 5h/7d rate-limit usage, and git branch/diff line.
A three-line Claude Code status bar with cost estimate, macOS memory, context-window progress, optional 5h/7d rate-limit usage, and git info.
Model: Sonnet 4.6 | Cost: $0.42 | Mem: 24.9G/32.0G | Context: [████░░░░░░] 78k/200k (39%)
Session: 22.4% | Reset: 3hr 12m | Weekly: 41.0% | Weekly Reset: 4d 8hr
⎇ feature/billing (tilt-api) | (+312,-87) | 🏠 main
Line 2 only renders when Claude Code provides rate-limit data. Line 3 only renders inside a git repo.
vm_stat bits are macOS-specific)jq — install with brew install jqawk and git — ship with macOS/plugin marketplace add diogohsm/dhsm-statusline
/plugin install dhsm-statusline@dhsm-statusline
/reload-plugins
/dhsm-statusline:install-statusline
/reload-plugins makes the plugin's slash commands available in the current session — without it, /dhsm-statusline:install-statusline won't be registered yet.
The install command asks Claude to edit your ~/.claude/settings.json and add the statusLine block. You'll see the diff and approve it like any other Edit.
Then restart Claude Code so it picks up the new status line.
/dhsm-statusline:uninstall-statusline
/plugin uninstall dhsm-statusline@dhsm-statusline
The first command removes the statusLine block from your settings.json. The second removes the plugin itself.
All knobs are environment variables. Set them in your shell profile (~/.zshrc, ~/.bashrc) — they survive plugin updates.
| Variable | Default | What it does |
|---|---|---|
STATUSLINE_INPUT_PRICE | 3 | USD per 1M input tokens |
STATUSLINE_OUTPUT_PRICE | 15 | USD per 1M output tokens |
STATUSLINE_CACHE_READ_PRICE | 0.30 | USD per 1M cache-read tokens |
STATUSLINE_CACHE_WRITE_PRICE | 3.75 | USD per 1M cache-write tokens |
STATUSLINE_CTX_YELLOW_TOKENS | 120000 | Context-bar turns yellow above this |
STATUSLINE_SHOW_MEMORY | 1 | 0 to hide the macOS memory segment |
STATUSLINE_SHOW_GIT | 1 | 0 to hide the git line |
Defaults reflect Claude Sonnet 4.5/4.6 pricing. Change them if you're on Opus or Haiku.
If you'd rather wire it up yourself, add this to your settings.json — but note that Claude Code does not expand ${CLAUDE_PLUGIN_ROOT} inside statusLine.command, so you must write the resolved absolute path:
"statusLine": {
"type": "command",
"command": "/Users/<you>/.claude/plugins/.../dhsm-statusline/bin/dhsm-statusline"
}
Find the resolved path with ls ~/.claude/plugins/cache/*/dhsm-statusline*/bin/dhsm-statusline (or wherever your Claude Code installs plugins — check ~/.claude/plugins/ or $CLAUDE_CONFIG_DIR/plugins/). The slash command does this lookup for you, which is why it's the recommended path.
Because the path is baked in, if you uninstall and reinstall the plugin, re-run /dhsm-statusline:install-statusline to refresh the absolute path.
MIT — see LICENSE.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Work-focused Claude Code config: session rituals, destructive-action guardrails, doc injection, lazy-loaded project context, Linear-backed backlog.
npx claudepluginhub diogohsm/dhsm-statusline --plugin dhsm-statuslineUnified status line for Claude Code with multi-CLI (Claude, Codex, Gemini, z.ai) usage monitoring, context, rate limits, and cost tracking
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.
Real-time statusline HUD for Claude Code - context health, tool activity, agent tracking, and todo progress