claudemods

All Claude Code modsaxtonliu/context-guard

context-guard

A Claude Code mod in axtonliu/context-guard

Warns before the context fills up; one click writes a work log, compacts, then resumes from the log. 上下文快满时提醒,一键写日志、压缩、从日志接着干。

context-guard reaches L2 (writes or runs) and passed claude plugin validate with warnings.

Install hint

/plugin install context-guard --marketplace axtonliu/context-guard

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsdrives Claude, reads files, reads mod state, persists state, draws

Validation

Passed with warnings

Listed under Context and usage meters for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Observed events
compaction
Hooks
session.start, command.run {command=context-guard}, turn.start, turn.complete, session.compact, ui.render {component=AbovePrompt}
API calls
$.clock.every, $.clock.now, $.command.register, $.command.run, $.fs.read, $.fs.stat, $.prompt.submit, $.session.compact, $.session.usage, $.state.get, $.state.set, $.store.get, $.store.set, $.ui.resolve, $.ui.toast
Validation
Passed with warnings
Scanned revision
389b199d2aeb
Marketplace passed
axtonliu-mods

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

Badge for your README

Reach badge for context-guard Validation badge for context-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/axtonliu--context-guard--context-guard-reach.svg)](https://mods.aidojo.si/mods/axtonliu--context-guard--context-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/axtonliu--context-guard--context-guard-validates.svg)](https://mods.aidojo.si/mods/axtonliu--context-guard--context-guard/)