cco · git:20260324.88753f8 · 2026-03-24 · sha256 9a5aa4e50e0510c9

cco git:20260324.88753f8A

Immutable. This exact content never changes and is served at /api/v1/blob/9a5aa4e50e0510c9.

---
name: cco
description: Show context usage heatmap for current session
license: MIT
allowed-tools: [Bash, Read]
---

# Context 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 heatmap
```

If 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:
1. Files marked with a warning icon that were read but never used — suggest avoiding them next time
2. Files marked with an edit icon that were actually edited — these are high-value context
3. The total estimated token usage and waste percentage

If waste is over 30%, suggest specific ways to reduce it based on the files shown.