You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Real-time context window monitoring for Claude Code. Five zones tell you exactly what to do next — keep coding, finish up, export your session, or restart.
12
12
13
-
[**Get Started →**](#installation-and-configuration)
13
+
[**Get Started →**](#installation)
14
14
</div>
15
15
16
16
---
@@ -19,19 +19,21 @@ Real-time context window monitoring for Claude Code. Five zones tell you exactly
19
19
20
20
```mermaid
21
21
graph LR
22
-
A["Claude Code session"] --> B["Status line script"]
Every element has its own color key. Override per-property or set hex values:
86
88
@@ -97,7 +99,7 @@ show_delta=true
97
99
token_detail=true
98
100
```
99
101
100
-
Full palette: 18 named colors + any `#rrggbb` hex. Per-property colors override base color slots; base slots override built-in defaults. Copy the annotated example to get started:
102
+
Full palette: 18 named colors + any `#rrggbb` hex. Copy the annotated example to get started:
Heartbeats fire every 4 minutes (under the 5-min TTL). Runs as a detached background process on Unix, subprocess fallback on Windows. State tracked in `~/.claude/statusline/cache-warm.<session_id>.json`.
180
+
| Section | What you learn |
181
+
|---|---|
182
+
| Grand Totals | Total spend, token breakdown (input/output/cache), session count |
183
+
| Per-project breakdown | Which projects consume the most tokens and cost the most |
184
+
| Top sessions | Heaviest sessions per project — identify costly workflows |
185
+
| Cache efficiency | Cache read vs. cache creation ratio — high read ratio means good reuse |
186
+
| Token composition | How much of your spend is output (expensive) vs. cache reads (cheap) |
187
+
188
+
Cache reads cost ~10x less than input tokens. The report makes cache efficiency visible so you can optimize session structure.
-[Configuration Options](docs/configuration.md) - All settings explained
268
303
-[Available Scripts](docs/scripts.md) - Script variants and features
@@ -290,7 +325,7 @@ This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.
290
325
291
326
Context Stats hooks into Claude Code's status line feature to track token usage across sessions. The Python statusline script writes state data to local CSV files, which the `context-stats` CLI reads to render live graphs. Data is stored locally in `~/.claude/statusline/` and never sent anywhere.
292
327
293
-
The statusline is implemented in Python. Claude Code invokes the statusline script via stdin JSON pipe — the script reads JSON from stdin and writes formatted text to stdout.
328
+
Claude Code invokes the statusline script via stdin JSON pipe — the script reads JSON from stdin and writes formatted text to stdout. The `report` subcommand reads Claude Code's own project logs from `~/.claude/projects/` to aggregate cross-session analytics.
294
329
295
330
</details>
296
331
@@ -304,7 +339,7 @@ pip uninstall cc-statusline
304
339
```
305
340
306
341
```bash
307
-
pip install cc-context-stats
342
+
pip install context-stats
308
343
```
309
344
310
345
The `claude-statusline` command still works. The main change is `token-graph` is now `context-stats`.
0 commit comments