cco-shield
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseContextShield Status
ContextShield状态
Show the user the current ContextShield protection status and historical waste prevention stats.
Run the following command to get pattern data:
bash
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js patternsFrom the patterns data, present:
- ContextShield Status: Active (it's always active as a PreToolUse hook)
- Protected Files: List files with 3+ waste sessions — these trigger warnings before Read
- Tokens Saved: Estimate based on waste history (files that would have been read without shield)
- Co-occurrence Groups: Files that are usually edited together
Format as a clean status report. If no pattern data exists yet, tell the user:
"ContextShield is warming up! It learns from your usage patterns and will start giving you smart suggestions after a few sessions."
End the report with:
ContextShield runs automatically on every Read. No configuration needed.向用户展示当前ContextShield的保护状态以及历史防浪费统计数据。
运行以下命令获取模式数据:
bash
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js patterns从模式数据中展示以下内容:
- ContextShield状态:已激活(它作为PreToolUse钩子始终处于激活状态)
- 受保护文件:列出存在3次及以上浪费会话的文件——这些文件在读取前会触发警告
- 已节省Tokens:基于浪费历史估算(即如果没有防护盾会被读取的文件)
- 共现组:通常会被一起编辑的文件
将内容整理为清晰的状态报告。如果尚无模式数据存在,请告知用户:
"ContextShield正在预热中!它会从你的使用模式中学习,经过几次会话后将开始提供智能建议。"
报告结尾添加:
ContextShield会在每次读取时自动运行,无需配置。