What is context-usage?
context-usage is a Claude Code mod by melodic-software that per-session context-window observability. A mod writes each session's context-window figures to a snapshot file and shows the person a toast and a transcript line when the context zone. It is listed under Cost & usage and has 33 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | melodic-software |
| Repository | melodic-software/claude-code-plugins |
| Popularity | 33 GitHub stars |
| Category | Cost & usage |
| Security | Review before installing (60/100) |
| Rank | #410 of 9,397 Claude Code mods; #62 in Cost & usage |
| License | MIT |
| Last commit | 2026-12-01 |
| Stars this week | +1 |
| Hooks | 10 events |
| Sees | compaction, every prompt, every tool call |
| Draws on | AbovePrompt |
Is context-usage safe to install?
context-usage scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.process.run | runs processes |
$.prompt.read | |
$.prompt.suggest | writes the prompt box |
$.session.id | |
$.session.root | |
$.session.surfaces | |
$.session.turns | |
$.session.usage | |
$.session.version | |
$.tool.list | |
$.tool.register | drives Claude |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install context-usage?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/melodic-software/claude-code-plugins claude plugin validate ./claude-code-plugins/plugins/context-usage
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add melodic-software/claude-code-plugins && claude plugin install context-usage@melodic-software
Or ask Claude to set it up
Paste this into Claude Code and it installs context-usage for you:
Install the "context-usage" Claude Code mod from https://github.com/melodic-software/claude-code-plugins/tree/main/plugins/context-usage. Run claude plugin validate on it first and show me what it can access before you enable it.
More from melodic-software/claude-code-plugins
This repository has at least 9 Claude Code mods on MCPMods.
- context-budget: Measures a Claude Code session's fixed startup context payload per item at a pinned binary version, including per-tool a (Review before installing)
- desktop-notification: Alert you when Claude Code needs input: an audible terminal bell, an OSC 9 terminal notification, and an OS-native toast (Low risk)
- display-redaction: A mod that masks email addresses and secret-shaped text in what Claude Code draws, for recordings and screen shares. It (Low risk)
- plugin-profiles: Switch which installed plugins are on with named profiles: one YAML file per profile, shipped, per user and per reposito (Review before installing)
- rate-limits: Rate-limit windows for loop lanes and Claude: a hooks module writes the subscription rate-limit windows to a fixed machi (Review before installing)
- session-flow: Session lifecycle: workflow (next stage), handoff (save-point, resume prompt), continue-in-background, keep-going (resum (High risk)
- session-telemetry: Collects telemetry about each Claude Code session (hook runs, session events and skill use) from this plugin's hooks and (Review before installing)
- themes: Backdrop themes for the Claude Code desktop app. The first, bedroom, is a teenager's bedroom in the country, about 2004, (Review before installing)