cco
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseContext Heatmap
上下文热力图
Show the user a visual heatmap of their context usage in the current session.
Run the following command to get the current session's tracking data (uses the most recent session automatically):
bash
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js heatmapIf no data is available yet (empty session), tell the user:
"No data in this session yet. Just keep working — the optimizer tracks your reads, edits, and searches automatically!"
Present the heatmap output to the user and highlight:
- Files marked with a warning icon that were read but never used — suggest avoiding them next time
- Files marked with an edit icon that were actually edited — these are high-value context
- The total estimated token usage and waste percentage
If waste is over 30%, suggest specific ways to reduce it based on the files shown.
为用户显示其当前会话中上下文使用情况的可视化热力图。
运行以下命令获取当前会话的追踪数据(会自动使用最新的会话):
bash
node ${CLAUDE_PLUGIN_ROOT}/src/tracker.js heatmap如果目前没有可用数据(空会话),请告知用户:
"本次会话暂无数据。继续使用即可——优化器会自动追踪您的读取、编辑和搜索操作!"
向用户展示热力图输出,并重点突出:
- 带有警告图标的文件:这些文件已被读取但从未使用——建议下次避免纳入上下文
- 带有编辑图标的文件:这些文件实际被编辑过——属于高价值上下文
- 预估的总Token使用量和浪费百分比
如果浪费率超过30%,根据显示的文件为用户提供具体的减少浪费的建议。