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
Add Claude Code status line setup to USER_GUIDE.md
Documents how to display live token savings and Opus cost avoided
in the Claude Code status bar, including the one-liner ask and a
manual Node.js snippet for custom statusline hooks.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: USER_GUIDE.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,32 @@ Add to `.vscode/settings.json`:
60
60
}
61
61
```
62
62
63
+
### Claude Code Status Line
64
+
65
+
If you use Claude Code, you can display a live token savings counter in the status bar:
66
+
67
+
```
68
+
Claude Sonnet 4.6 | my-project | ░░░░░░░░░░ 0% | 1,280,837 tkns saved · $6.40 saved on Opus
69
+
```
70
+
71
+
Ask Claude Code to set it up:
72
+
73
+
> "Add jcodemunch token savings to my status line"
74
+
75
+
Claude Code will add a segment that reads `~/.code-index/_savings.json` and calculates cost avoided at the Claude Opus rate ($5.00 / 1M tokens). The counter updates automatically after every jcodemunch tool call — no restart required.
76
+
77
+
To add it manually, read `~/.code-index/_savings.json` and extract `total_tokens_saved`:
0 commit comments