Skip to content

Commit f2ffe9f

Browse files
Update theme
1 parent 46c9b39 commit f2ffe9f

File tree

5 files changed

+25
-22
lines changed

5 files changed

+25
-22
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 🎯 Claude Code Usage Monitor v3.0.0
1+
# 🎯 Claude Code Usage Monitor
22
[![PyPI Version](https://img.shields.io/pypi/v/claude-monitor.svg)](https://pypi.org/project/claude-monitor/)
33
[![Python Version](https://img.shields.io/badge/python-3.9+-blue.svg)](https://python.org)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -64,6 +64,15 @@ A beautiful real-time terminal monitoring tool for Claude AI token usage with ad
6464
- **🎯 Error reporting** - Optional Sentry integration for production monitoring
6565
- **⚡ Performance optimized** - Advanced caching and efficient data processing
6666

67+
### 📋 Default Custom Plan
68+
69+
The **Custom plan** is now the default option, specifically designed for 5-hour Claude Code sessions. It monitors three critical metrics:
70+
- **Token usage** - Tracks your token consumption
71+
- **Messages usage** - Monitors message count
72+
- **Cost usage** - The most important metric for long sessions
73+
74+
The Custom plan automatically adapts to your usage patterns by analyzing all your sessions from the last 192 hours (8 days) and calculating personalized limits based on your actual usage. This ensures accurate predictions and warnings tailored to your specific workflow.
75+
6776

6877
## 🚀 Installation
6978
### ⚡ Modern Installation with uv (Recommended)

doc/scnew.png

-2.53 KB
Loading

src/claude_monitor/cli/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ def _get_initial_token_limit(
268268
try:
269269
# Use quick start mode for faster initial load
270270
usage_data: Optional[Dict[str, Any]] = analyze_usage(
271-
hours_back=24,
272-
quick_start=True,
271+
hours_back=96*2,
272+
quick_start=False,
273273
use_cache=False,
274274
data_path=str(data_path),
275275
)

src/claude_monitor/terminal/themes.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,20 @@ def get_light_background_theme() -> Theme:
8282
"value": "color(235)", # Very dark gray (#262626) - 16:1 contrast
8383
"dim": "color(243)", # Medium gray (#767676) - 5:1 contrast
8484
"separator": "color(240)", # Light gray (#585858) - 6:1 contrast
85-
"progress_bar": "color(22)", # Dark green (#005f00) - matches success
85+
"progress_bar": "black", # Pure black for light theme
8686
"highlight": "color(124)", # Dark red (#af0000) - matches error
8787
# Cost styles
88-
"cost.low": "color(22)", # Dark green
89-
"cost.medium": "color(166)", # Dark orange
90-
"cost.high": "color(124)", # Dark red
88+
"cost.low": "black", # Pure black for light theme
89+
"cost.medium": "black", # Pure black for light theme
90+
"cost.high": "black", # Pure black for light theme
9191
# Table styles
9292
"table.border": "color(238)", # Medium-dark gray for better visibility
9393
"table.header": "bold color(17)", # Bold deep blue
9494
"table.row": "color(235)", # Very dark gray
9595
"table.row.alt": "color(238)", # Slightly lighter gray
9696
# Progress styles
97-
"progress.bar.fill": "color(240)", # Semi-black (darker gray) for light theme
97+
"progress.bar.fill": "black", # Pure black for light theme
98+
"progress.bar": "black", # Pure black for light theme (fallback)
9899
"progress.bar.empty": "color(250)", # Very light gray for light theme
99100
"progress.percentage": "bold color(235)", # Bold very dark gray
100101
# Chart styles
@@ -138,19 +139,20 @@ def get_dark_background_theme() -> Theme:
138139
"value": "color(253)", # Very light gray (#dadada) - 17:1 contrast
139140
"dim": "color(245)", # Medium light gray (#8a8a8a) - 7:1 contrast
140141
"separator": "color(248)", # Light gray (#a8a8a8) - 9:1 contrast
141-
"progress_bar": "color(118)", # Light green (#87ff00) - matches success
142+
"progress_bar": "white", # Pure white for dark theme
142143
"highlight": "color(203)", # Light red (#ff5f5f) - matches error
143144
# Cost styles
144-
"cost.low": "color(118)", # Light green
145-
"cost.medium": "color(214)", # Orange
146-
"cost.high": "color(203)", # Light red
145+
"cost.low": "white", # Pure white for dark theme
146+
"cost.medium": "white", # Pure white for dark theme
147+
"cost.high": "white", # Pure white for dark theme
147148
# Table styles
148149
"table.border": "color(248)", # Light gray
149150
"table.header": "bold color(117)", # Bold light blue
150151
"table.row": "color(253)", # Very light gray
151152
"table.row.alt": "color(251)", # Slightly darker gray
152153
# Progress styles
153-
"progress.bar.fill": "color(250)", # Semi-white (light gray) for dark theme
154+
"progress.bar.fill": "white", # Pure white for dark theme
155+
"progress.bar": "white", # Pure white for dark theme (fallback)
154156
"progress.bar.empty": "color(238)", # Darker gray for dark theme
155157
"progress.percentage": "bold color(253)", # Bold very light gray
156158
# Chart styles

src/claude_monitor/ui/progress_bars.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,4 @@ def render(self, per_model_stats: dict[str, Any]) -> str:
330330
else:
331331
summary = f"Other {other_percentage:.1f}%"
332332

333-
if len(model_names) > 0:
334-
model_list = ", ".join(model_names[:3])
335-
if len(model_names) > 3:
336-
model_list += f" +{len(model_names) - 3} more"
337-
debug_info = f" ({model_list})"
338-
else:
339-
debug_info = ""
340-
341-
return f"🤖 [{bar_display}] {summary}{debug_info}"
333+
return f"🤖 [{bar_display}] {summary}"

0 commit comments

Comments
 (0)