โ Browse
context-guard
cdeust โ
1
context-guard automatically enforces token-budget checkpoints in long Claude Code sessions by triggering a Stop hook when context crosses per-model thresholds, then spawning a memory-writer subagent to persist session state for resumption. It detects optional scoped memory tooling at runtime and gracefully adapts its persistence protocol without requiring external dependencies.
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
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).