@alyibrahim/claude-statusline 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +60 -26
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  [![CI](https://github.com/AlyIbrahim1/claude-statusline/actions/workflows/ci.yml/badge.svg)](https://github.com/AlyIbrahim1/claude-statusline/actions/workflows/ci.yml)
4
4
  [![npm](https://img.shields.io/npm/v/@alyibrahim/claude-statusline)](https://www.npmjs.com/package/@alyibrahim/claude-statusline)
5
+ [![npm downloads](https://img.shields.io/npm/dm/@alyibrahim/claude-statusline)](https://www.npmjs.com/package/@alyibrahim/claude-statusline)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
7
 
6
- A fast statusline for [Claude Code](https://claude.ai/code). Shows model, git branch, context usage, subscription rate limits, and session cost — updating after every response.
8
+ **A rich, fast statusline for [Claude Code](https://claude.ai/code)** shows model, git branch, context usage, rate limits, and session cost after every response.
7
9
 
8
- Runs as a compiled Rust binary on Linux x64/arm64, macOS x64/arm64, and Windows x64 — no Node.js startup overhead on every prompt. Falls back to Node.js automatically on unsupported platforms.
10
+ Runs as a **compiled Rust binary** (~5ms startup vs ~100ms for Node.js). Zero shell dependencies. One install command.
9
11
 
10
- ![statusline screenshot](.github/image.png)
12
+ ![statusline screenshot](https://raw.githubusercontent.com/AlyIbrahim1/claude-statusline/main/.github/image.png)
13
+
14
+ ---
11
15
 
12
16
  ## Install
13
17
 
@@ -15,36 +19,64 @@ Runs as a compiled Rust binary on Linux x64/arm64, macOS x64/arm64, and Windows
15
19
  npm install -g @alyibrahim/claude-statusline
16
20
  ```
17
21
 
18
- That's it. The statusline is configured automatically. Restart Claude Code to see it.
22
+ Done. The statusline configures itself automatically. Restart Claude Code to see it.
19
23
 
20
- **Manual setup** (if auto-setup failed):
21
- ```bash
22
- claude-statusline setup
23
- ```
24
+ > If auto-setup didn't run: `claude-statusline setup`
24
25
 
25
- ## Requirements
26
+ ---
27
+
28
+ ## What you get
29
+
30
+ **Line 1** — Model name · Effort level · Active subagents · Current task · Directory `[branch]` · Context bar
31
+
32
+ **Line 2** — Weekly token usage · 5h usage · Reset countdown *(Pro/Max)* — or — Session cost *(API key)*
33
+
34
+ | Feature | Details |
35
+ |---|---|
36
+ | Context bar | Normalized to usable % — accounts for the auto-compact buffer |
37
+ | Rate limits | Shows 5h and weekly usage with color-coded thresholds |
38
+ | Session cost | Displayed only for API key users, hidden for subscribers |
39
+ | Active agents | Counts running subagents from your `~/.claude/todos/` directory |
40
+ | Effort level | Reads `CLAUDE_CODE_EFFORT_LEVEL` env var or `settings.json` |
41
+ | Git branch | Detected automatically, silently absent if not a git repo |
26
42
 
27
- - **Node.js >=16** — needed for install/uninstall lifecycle scripts
28
- - **git** — optional, used for branch display; gracefully absent if not installed
43
+ ---
29
44
 
30
- No `jq`, `bc`, `ccusage`, or other external tools needed.
45
+ ## Platform support
31
46
 
32
- ## What it shows
47
+ The Rust binary is pre-built and installed automatically for your platform via npm `optionalDependencies`:
33
48
 
34
- **Line 1:** Model · Effort level · Active agents · Current task · Directory `[git branch]` · Context bar
49
+ | Platform | Package |
50
+ |---|---|
51
+ | Linux x64 | [`@alyibrahim/claude-statusline-linux-x64`](https://www.npmjs.com/package/@alyibrahim/claude-statusline-linux-x64) |
52
+ | Linux arm64 | [`@alyibrahim/claude-statusline-linux-arm64`](https://www.npmjs.com/package/@alyibrahim/claude-statusline-linux-arm64) |
53
+ | macOS x64 (Intel) | [`@alyibrahim/claude-statusline-darwin-x64`](https://www.npmjs.com/package/@alyibrahim/claude-statusline-darwin-x64) |
54
+ | macOS arm64 (Apple Silicon) | [`@alyibrahim/claude-statusline-darwin-arm64`](https://www.npmjs.com/package/@alyibrahim/claude-statusline-darwin-arm64) |
55
+ | Windows x64 | [`@alyibrahim/claude-statusline-win32-x64`](https://www.npmjs.com/package/@alyibrahim/claude-statusline-win32-x64) |
35
56
 
36
- **Line 2:** Weekly usage · 5h usage · Reset countdown *(subscription)* or Session cost *(API key)*
57
+ npm picks the right one automatically. If your platform isn't listed, the JS fallback is used instead — no action needed.
58
+
59
+ ---
37
60
 
38
61
  ## Why this one
39
62
 
40
- | | This package | Others |
63
+ | | claude-statusline | Others |
41
64
  |---|---|---|
42
- | Fast startup | compiled Rust binary | Node.js cold-start every prompt |
43
- | No dependencies | no `jq`, `bc`, etc. | Require external tools |
44
- | No API calls | reads stdin directly | Poll OAuth endpoint, hit rate limits |
45
- | Subscription vs API aware | | Show cost for everyone |
46
- | Context bar normalized | usable % | Raw remaining % |
47
- | Active agent counter | | — |
65
+ | Startup time | ~5ms (Rust binary) | ~100ms (Node.js cold-start every prompt) |
66
+ | Shell dependencies | None | Require `jq`, `bc`, or `ccusage` |
67
+ | API calls | None reads Claude's stdin directly | Poll OAuth endpoint, risk rate limits |
68
+ | Subscription-aware | Shows usage/resets for Pro/Max, cost for API | Treat everyone as API user |
69
+ | Context bar | Usable % after auto-compact buffer | Raw remaining % |
70
+ | Subagent counter | Counts active agents from todos dir | — |
71
+
72
+ ---
73
+
74
+ ## Requirements
75
+
76
+ - **Node.js ≥16** — for install/uninstall scripts only (not needed at runtime on supported platforms)
77
+ - **git** — optional, enables branch display
78
+
79
+ ---
48
80
 
49
81
  ## Uninstall
50
82
 
@@ -53,13 +85,15 @@ claude-statusline uninstall
53
85
  npm uninstall -g @alyibrahim/claude-statusline
54
86
  ```
55
87
 
56
- > Run `claude-statusline uninstall` first regardless of package manager this removes the statusline from `~/.claude/settings.json` before the package files are deleted.
88
+ > Always run `claude-statusline uninstall` first — it removes the `statusLine` entry from `~/.claude/settings.json` before the files are deleted.
89
+
90
+ ---
57
91
 
58
92
  ## Notes
59
93
 
60
- - **Switched Node versions?** Re-run `claude-statusline setup` — only needed if the Rust binary wasn't installed (unsupported platform fallback).
61
- - Writes only the `statusLine` key in `~/.claude/settings.json` — all other settings are preserved.
62
- - Respects `$CLAUDE_CONFIG_DIR` if set.
94
+ - Settings are written only to the `statusLine` key all other `~/.claude/settings.json` keys are untouched
95
+ - Respects `$CLAUDE_CONFIG_DIR` if set
96
+ - Switched Node versions on an unsupported platform? Re-run `claude-statusline setup`
63
97
 
64
98
  ## License
65
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alyibrahim/claude-statusline",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A zero-dependency Claude Code statusline — reads rate limits from stdin, no API calls",
5
5
  "engines": {
6
6
  "node": ">=16"