context-forecast
by Paulo Silva · ★ 0 · updated 9 days ago
Forecast of the context window with a clear-or-compact score, usage limits, cross-session calibration and guided compaction.
Install
/plugin marketplace add mercynet/my-claude-mods/plugin install context-forecast@local-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.measuretool.callprompt.submitsession.compactsession.endclassic.SessionStartcommand.runui.render- API calls
$.clock.every$.clock.now$.command.register$.model.classify$.session.compact$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.close$.ui.invalidate$.ui.open$.ui.resolve$.ui.toast- Draws
AbovePromptPane- Can see
every tool callevery promptcompactionclassic hooks- Reach
- level 2 of 3 drives Claudereads mod statepersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/mercynet/my-claude-mods
- Path in repo
context-forecast- Source commit
43be4e2the exact code the scan read- Author
- Paulo Silva @mercynet
- License
- No license declared — ask the author before reusing code.
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from mercynet/my-claude-mods
env-doctor
mercynet/my-claude-mods
Read-only preflight of a dev environment at session start: stopped compose services, missing node_modules for MCP servers, empty cache files and required paths. Never fixes anything, it only prints the command.
graph-sync
mercynet/my-claude-mods
Keeps a code knowledge graph fresh: after code edits, runs an AST-only update command in the background when the turn ends (default: graphify update .).
lean-context
mercynet/my-claude-mods
Measures and, once approved, strips configured sections of the project instruction file from the Claude Code context while no spec is active for the branch.
session-banner
mercynet/my-claude-mods
Shows a plain-text logo with a gradient and one shimmer sweep above the prompt when a session starts, until the first prompt. /banner shows it again.
spec-band
mercynet/my-claude-mods
A band above the prompt showing the active spec of the current branch: task progress, STATE.md age and phase, and a warning when STATE.md has not been updated for many edits.