← Browse
context-guard
cdeust ★ 1
Context-guard automatically enforces token budget checkpoints for long Claude Code and Codex sessions using Stop and SubagentStop hooks that trigger context-aware state snapshots when per-model thresholds are crossed. It tracks cumulative context consumption including subagent usage and guides users through a checkpoint-clear-recall cycle to prevent context poisoning, quota burnout, and cost overruns.
Install
> /plugin marketplace add cdeust/session-optimizer/tree/HEAD/plugins/context-guard
> /plugin install context-guard
Source: https://github.com/cdeust/session-optimizer/tree/HEAD/plugins/context-guard
What it's made of
1 agent · 2 hooks
- Commands
- 0
- Agents
- 1
- Skills
- 0
- MCP servers
- 0
- Hooks
- 2 · Stop, SubagentStop
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
python3- Talks to
- nothing external detected
Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.
Is this your plugin?
Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (cdeust).