session-hud

session-hud is a Claude Code mod by lurenxing628 that 把上下文、token、缓存命中、TPS、费用、增删行数、耗时写给原生 statusLine 显示.

Updated 2026-10-04

What is session-hud?

session-hud is a Claude Code mod by lurenxing628 that 把上下文、token、缓存命中、TPS、费用、增删行数、耗时写给原生 statusLine 显示. It is listed under Cost & usage and has 1 GitHub stars.

TypeClaude code mod
Authorlurenxing628
Repositorylurenxing628/claude-code-mod-statusline
Popularity1 GitHub stars
CategoryCost & usage
SecurityReview before installing (72/100)
Rank#1,951 of 5,272 Claude Code mods; #341 in Cost & usage
LicenseMIT
Last commit2026-10-04
Hooks6 events
SeesEdit calls, Write calls
Draws onnothing

Is session-hud safe to install?

session-hud scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.env.getreads env vars
$.fs.writewrites files
$.session.id
$.session.usage
$.state.get
$.state.set

How do I install session-hud?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/lurenxing628/claude-code-mod-statusline
    claude plugin validate ./claude-code-mod-statusline/mod
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/lurenxing628/claude-code-mod-statusline && claude --plugin-dir ./claude-code-mod-statusline/mod

Or ask Claude to set it up

Paste this into Claude Code and it installs session-hud for you:

Install the "session-hud" Claude Code mod from https://github.com/lurenxing628/claude-code-mod-statusline/tree/main/mod. Run claude plugin validate on it first and show me what it can access before you enable it.