context-meter

context-meter is a Claude Code mod by tjanuki that shows the context window's fill after every turn and, past a threshold, says it is time to write a hand-off document and start a new session.

Updated 2026-10-10

What is context-meter?

context-meter is a Claude Code mod by tjanuki that shows the context window's fill after every turn and, past a threshold, says it is time to write a hand-off document and start a new session. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
Authortjanuki
Repositorytjanuki/claude-mod-context-meter
Popularityno public popularity data yet
CategoryContext & memory
SecurityLow risk (88/100)
Rank#8,839 of 9,397 Claude Code mods; #793 in Context & memory
Last commit2026-10-10
Hooks4 events
Seesonly the events it hooks
Draws onAbovePrompt

Is context-meter safe to install?

context-meter scores 88/100 on the MCPMods security check: Low risk. No checks raised a concern. 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 no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.prompt.submitdrives Claude
$.state.get
$.state.set
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install context-meter?

  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/tjanuki/claude-mod-context-meter
    claude plugin validate ./claude-mod-context-meter/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/tjanuki/claude-mod-context-meter && claude --plugin-dir ./claude-mod-context-meter/.

Or ask Claude to set it up

Paste this into Claude Code and it installs context-meter for you:

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