headroom

headroom is a Claude Code mod by MWEJ that your Claude plan limits, a forecast of when you'll run out, and your context window, live in a band above the prompt. Compacts in one click, automatically, or when Claude picks the moment,.

Updated 2026-10-07

What is headroom?

headroom is a Claude Code mod by MWEJ that your Claude plan limits, a forecast of when you'll run out, and your context window, live in a band above the prompt. Compacts in one click, automatically, or when Claude picks the moment,. It is listed under Cost & usage and has 2 GitHub stars.

TypeClaude code mod
AuthorMWEJ
RepositoryMWEJ/claude-code-headroom
Popularity2 GitHub stars
CategoryCost & usage
SecurityHigh risk (44/100)
Rank#3,040 of 9,397 Claude Code mods; #476 in Cost & usage
LicenseMIT
Last commit2026-10-07
Stars this week+1
Hooks15 events
Sees/"^mcp__headroom__compaction$"/ calls, classic hooks, compaction, every tool call
Draws onAbovePrompt

Is headroom safe to install?

headroom scores 44/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; writes files or config; reads environment variables. It passed 2 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
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.command.rundrives Claude
$.config.list
$.env.getreads env vars
$.env.setsets env vars
$.fs.readreads files
$.fs.statreads files
$.http.fetchnetwork requests
$.model.forkdrives Claude
$.process.runruns processes
$.session.append
$.session.authorizereads the transcript
$.session.compactdrives Claude
$.session.id
$.session.usage
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.tool.registerdrives Claude
$.ui.logdraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install headroom?

  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/MWEJ/claude-code-headroom
    claude plugin validate ./claude-code-headroom/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add MWEJ/claude-code-headroom && claude plugin install headroom@claude-code-headroom

Or ask Claude to set it up

Paste this into Claude Code and it installs headroom for you:

Install the "headroom" Claude Code mod from https://github.com/MWEJ/claude-code-headroom. Run claude plugin validate on it first and show me what it can access before you enable it.