context-guard

Not yet reviewed

Per-session context-window observability. A mod writes each session's context-window figures to a snapshot file and tells Claude its context zone (smart…

Pinned commit
No commit pinned yet
Review notes

Listed from the community catalogue awesome-claude-code-mods (https://github.com/karanb192/awesome-claude-code-mods) on 2026-10-06. Not reviewed by modsforClaude.com yet: the hooked events and what it uses come from that catalogue's automated scan of the source.

What a scan found
  • Reads your prompts
  • Sees tool calls
  • Reads or writes files
  • Runs programs on your machine
  • Calls the model (uses tokens)
  • Shows something on screen

Reported by an automated scan of the source, not checked by a person yet.

Hooked events

Per-session context-window observability. A mod writes each session's context-window figures to a snapshot file and tells Claude its context zone (smart, acceptable or dumb, from bands in zones.json) at each crossing, approach and compaction; the person gets a toast and a transcript line. /context-guard prints status and toggles an optional band row. It answers a status tool. Optional blocking mode gates new mutating work in a blocked zone, except handoffs. A PostCompact hook leaves a marker.

← All mods