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
-**No memory leaks** - RAII-like patterns ensure all resources are cleaned up
28
+
29
+
### Minimal Footprint 📦
30
+
-**Single binary** - No runtime dependencies, just copy and run
31
+
-**< 100KB executable** - Smaller than most shell scripts
32
+
-**Fixed memory usage** - No unbounded allocations or memory bloat
33
+
-**C11 standard** - Portable across all Linux distributions
34
+
35
+
### Smart Features 🧠
36
+
-**Context awareness** - Tracks both session and context window token usage
37
+
-**Visual progress bars** - Dual-color bars for input/output token/lines/API ratios
38
+
-**Cache efficiency metrics** - Monitor internal and API cache hit rates and performance
39
+
-**Compact visualization** - Progress bars appear only when real data is available
40
+
41
+
## Rationale
42
+
43
+
mini-ccstatus started while working on a project that runs multiple Claude Code instances in parallel for implementing unit, integration, and E2E tests across a complex, heavily algorithmic Go/TypeScript/Python codebase with ML/statistical components. These sessions stay alive for long stretches, so we want to monitor the internals with all the detail Anthropic currently exposes.
44
+
45
+
Other statusline implementations hammer the CPU, RAM, and batteries on our laptops, so - half as a joke - I wrote mini-ccstatus in C after benchmarking the alternatives; see [`benchmark/`](benchmark/) for the data.
46
+
47
+
## Installation
13
48
14
49
*Prerequisites*:
15
50
@@ -29,12 +64,17 @@ cd mini-ccstatus
29
64
make
30
65
```
31
66
32
-
###Demo
67
+
## Demo
33
68
34
69
```bash
35
70
make demo-all
36
71
```
37
72
73
+
## Dependencies
74
+
75
+
-[**cJSON**](https://github.com/DaveGamble/cJSON) - Lightweight JSON parser (MIT License, vendored in `lib/cjson/`)
76
+
-**Standard C Library** - No other external dependencies
77
+
38
78
## Command Line Options
39
79
40
80
```bash
@@ -70,19 +110,37 @@ Examples:
70
110
71
111
## Display Modes
72
112
113
+
### Statusline and labels
114
+
73
115
mini-ccstatus supports several display modes:
74
116
75
117
-**Default**: Compact view
76
118
-**Simple** (`--simple` / `-s`): Model, version, and directory only
77
119
-**Verbose** (`--verbose` / `-v`): Compact with field labels
78
120
-**All Features** (`--all` / `-a`): All metrics including token breakdown
0 commit comments