claude-scope 0.8.49 → 1.0.0
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.
- package/README.md +129 -186
- package/dist/claude-scope.cjs +619 -529
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,193 +1,155 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="
|
|
3
|
+
<img src="assets/logo.png" alt="claude-scope logo" width="180" height="180"/>
|
|
4
4
|
|
|
5
5
|
# claude-scope
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Real-time statusline for Claude Code CLI
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/claude-scope)
|
|
10
|
+
[](https://www.npmjs.com/package/claude-scope)
|
|
10
11
|
[](LICENSE.md)
|
|
11
12
|
[](https://github.com/YuriNachos/claude-scope)
|
|
12
|
-
[](https://github.com/YuriNachos/claude-scope)
|
|
13
13
|
[](https://codecov.io/gh/YuriNachos/claude-scope)
|
|
14
|
+
[](https://github.com/YuriNachos/claude-scope)
|
|
14
15
|
|
|
15
|
-
**
|
|
16
|
+
**Track context, cost, git, docker, and more — right in your terminal**
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
[Quick Start](#-quick-start) · [Features](#-features) · [Themes](#-themes) · [Configuration](#-configuration) · [Docs](#-documentation)
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<p align="center">
|
|
22
|
-
<i>Real-time session analytics in your terminal — zero runtime dependencies, 14 widgets, 17 themes</i>
|
|
23
|
-
</p>
|
|
20
|
+
</div>
|
|
24
21
|
|
|
25
22
|
---
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- **14 customizable widgets** — model, context, cost, git, docker, and more
|
|
33
|
-
- **17 built-in themes** — from Dracula to Nord to Cyberpunk
|
|
34
|
-
- **12 display styles** — balanced, playful, compact, verbose, technical...
|
|
35
|
-
- **AI-friendly configuration** — just ask Claude to customize it!
|
|
24
|
+
<div align="center">
|
|
25
|
+
<img src="assets/demo.png" alt="claude-scope demo" width="800"/>
|
|
26
|
+
<br/>
|
|
27
|
+
<sub>claude-scope in action — model, context, cost, git, docker, system metrics and more</sub>
|
|
28
|
+
</div>
|
|
36
29
|
|
|
37
30
|
---
|
|
38
31
|
|
|
39
|
-
##
|
|
32
|
+
## 🚀 Quick Start
|
|
40
33
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
**Dracula Theme** (default)
|
|
44
|
-
```
|
|
45
|
-
Claude Opus 4.5 | 67% [████████] | +127/-42 | $1.24 | 2h 15m
|
|
46
|
-
main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
|
|
47
|
-
⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
|
|
34
|
+
```bash
|
|
35
|
+
npx -y claude-scope@latest install
|
|
48
36
|
```
|
|
49
37
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
|
|
54
|
-
⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
|
|
55
|
-
```
|
|
38
|
+
This single command:
|
|
39
|
+
1. ✅ Adds statusLine to `~/.claude/settings.json`
|
|
40
|
+
2. ✅ Opens interactive configurator to choose layout, theme, and style
|
|
56
41
|
|
|
57
|
-
**
|
|
58
|
-
```
|
|
59
|
-
Claude Opus 4.5 | 67% [████████] | +127/-42 | $1.24 | 2h 15m
|
|
60
|
-
main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
|
|
61
|
-
⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
|
|
62
|
-
```
|
|
42
|
+
**Restart Claude Code — done!**
|
|
63
43
|
|
|
64
44
|
---
|
|
65
45
|
|
|
66
|
-
##
|
|
46
|
+
## 💡 Why claude-scope?
|
|
67
47
|
|
|
68
|
-
|
|
48
|
+
**claude-scope** transforms your Claude Code CLI into a powerful command center. See everything you need at a glance:
|
|
69
49
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"command": "npx -y claude-scope@latest",
|
|
79
|
-
"padding": 0
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
# 3. Restart Claude Code — you're done! 🎉
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
After the first run, a default config is automatically created at `~/.claude-scope/config.json` with:
|
|
87
|
-
- **Layout**: `rich` (3 lines)
|
|
88
|
-
- **Style**: `balanced`
|
|
89
|
-
- **Theme**: `dracula`
|
|
50
|
+
| What you get | Why it matters |
|
|
51
|
+
|--------------|----------------|
|
|
52
|
+
| 📊 **Context usage** | Know when you're running low before it's too late |
|
|
53
|
+
| 💰 **Session cost** | Track spending in real-time |
|
|
54
|
+
| 🔀 **Git status** | Branch, changes, tags — no switching windows |
|
|
55
|
+
| 🐳 **Docker containers** | Monitor your stack without leaving the terminal |
|
|
56
|
+
| 🔧 **Active tools** | See what Claude is doing right now |
|
|
57
|
+
| 💻 **System metrics** | CPU, RAM, disk, network — all in one place |
|
|
90
58
|
|
|
91
59
|
---
|
|
92
60
|
|
|
93
|
-
##
|
|
61
|
+
## ✨ Highlights
|
|
94
62
|
|
|
95
|
-
|
|
63
|
+
- 🪶 **Zero runtime dependencies** — pure TypeScript, native Node.js only
|
|
64
|
+
- 🧩 **15 customizable widgets** — model, context, cost, git, docker, sysmon, and more
|
|
65
|
+
- 🎨 **17 built-in themes** — from Dracula to Nord to Cyberpunk
|
|
66
|
+
- 🎭 **12 display styles** — balanced, playful, compact, verbose, technical...
|
|
67
|
+
- 🤖 **AI-friendly configuration** — just ask Claude to customize it!
|
|
68
|
+
- ⚡ **Instant setup** — one command, works immediately
|
|
96
69
|
|
|
97
|
-
|
|
98
|
-
➕ "Add the docker widget to the third line"
|
|
99
|
-
🎨 "Switch theme to nord"
|
|
100
|
-
😄 "Make it more playful"
|
|
101
|
-
🎯 "Show only model and context"
|
|
102
|
-
```
|
|
70
|
+
---
|
|
103
71
|
|
|
104
|
-
|
|
72
|
+
## 🧩 Features
|
|
73
|
+
|
|
74
|
+
### Available Widgets
|
|
75
|
+
|
|
76
|
+
| Widget | Description | Example |
|
|
77
|
+
|--------|-------------|---------|
|
|
78
|
+
| **model** | Current Claude model | `Opus 4.5` |
|
|
79
|
+
| **context** | Context usage with progress bar | `42% [████████░░░░░░░░░]` |
|
|
80
|
+
| **cost** | Session cost | `$33.05` |
|
|
81
|
+
| **duration** | Session time | `2h 10m 20s` |
|
|
82
|
+
| **lines** | Lines added/removed | `+382/-112` |
|
|
83
|
+
| **git** | Branch and tracking | `main...origin/main` |
|
|
84
|
+
| **git-tag** | Latest tag | `v0.8.49` |
|
|
85
|
+
| **cache-metrics** | Cache statistics | `81k cache` |
|
|
86
|
+
| **config-count** | Config files count | `CLAUDE.md:1 │ MCPs:5` |
|
|
87
|
+
| **active-tools** | Running/completed tools | `Bash (1 running, 10 done)` |
|
|
88
|
+
| **dev-server** | Dev server status | `⚡ Nuxt (running)` |
|
|
89
|
+
| **docker** | Docker containers | `Docker: 1 🟢` |
|
|
90
|
+
| **sysmon** | System metrics | `CPU 45% │ RAM 19GB │ Disk 2%` |
|
|
91
|
+
| **poker** | Easter egg | `🃏 A♠ K♠` |
|
|
92
|
+
| **cwd** | Current directory | `~/projects/app` |
|
|
93
|
+
|
|
94
|
+
### 📐 Layout Presets
|
|
95
|
+
|
|
96
|
+
| Preset | Lines | Best for |
|
|
97
|
+
|--------|-------|----------|
|
|
98
|
+
| **Rich** | 4 | Full information, large terminals |
|
|
99
|
+
| **Balanced** | 2 | Most users, good balance |
|
|
100
|
+
| **Compact** | 1 | Minimal footprint |
|
|
105
101
|
|
|
106
|
-
|
|
107
|
-
>
|
|
108
|
-
> **Claude:** Sure! Adding poker widget and changing styles to playful...
|
|
109
|
-
>
|
|
110
|
-
> ✅ Done! Your statusline now shows poker hands with emojis.
|
|
102
|
+
---
|
|
111
103
|
|
|
112
|
-
|
|
104
|
+
## 🎨 Themes
|
|
113
105
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
---
|
|
106
|
+
<div align="center">
|
|
107
|
+
<img src="assets/themes.png" alt="claude-scope themes" width="700"/>
|
|
108
|
+
<br/>
|
|
109
|
+
<sub>Same data, different themes — find your style</sub>
|
|
110
|
+
</div>
|
|
120
111
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
| Widget | Description | Balanced | Playful |
|
|
124
|
-
|--------|-------------|----------|---------|
|
|
125
|
-
| **model** | Current Claude model | `Claude Opus 4.5` | `🤖 Opus 4.5` |
|
|
126
|
-
| **context** | Context usage with progress bar | `45% [████████░░░░░░░░░]` | `📊 45% [████████░░░░░░░░░]` |
|
|
127
|
-
| **cost** | Session cost in USD | `$0.42` | `💰 $0.42` |
|
|
128
|
-
| **duration** | Session duration | `1h 15m 30s` | `⌛ 1h 15m` |
|
|
129
|
-
| **lines** | Lines added/removed | `+42/-18` | `➕42 ➖18` |
|
|
130
|
-
| **git** | Git branch and changes | `main [+42 -18]` | `🔀 main ⬆42 ⬇18` |
|
|
131
|
-
| **git-tag** | Latest git tag | `v0.8.16` | `🏷️ v0.8.16` |
|
|
132
|
-
| **config-count** | Config file counts | `📄 1 CLAUDE.md │ 📜 2 rules │ 🔌 3 MCPs` | — |
|
|
133
|
-
| **cache-metrics** | Cache statistics | `💾 35.0k cache` | `💾 35.0k cache` |
|
|
134
|
-
| **active-tools** | Active tools tracking | `Edits: 5 │ Bash: 3 │ Read: 2` | `✏️ Edit 📖 Read 🐚 Bash` |
|
|
135
|
-
| **dev-server** | Dev server status | `⚡ Nuxt (running)` | `🏃 Nuxt` |
|
|
136
|
-
| **docker** | Docker containers | `Docker: 3/5 🟢` | `🐳 Docker: 3/5 🟢` |
|
|
137
|
-
| **poker** | Poker hands (easter egg) | `Hand: A♠ K♠ │ One Pair!` | `🃏 A♠️ K♠️ │ One Pair!` |
|
|
138
|
-
|
|
139
|
-
### Layout Presets
|
|
140
|
-
|
|
141
|
-
| Preset | Lines | Widgets |
|
|
142
|
-
|--------|-------|---------|
|
|
143
|
-
| **Rich** (default) | 3 | Line 0: model, context, lines, cost, duration<br>Line 1: git, git-tag, cache-metrics, config-count<br>Line 2: dev-server, docker, active-tools |
|
|
144
|
-
| **Balanced** | 2 | Line 0: model, context, lines, cost, duration<br>Line 1: git, git-tag, cache-metrics, config-count |
|
|
145
|
-
| **Compact** | 1 | Line 0: model, context, cost, git, duration |
|
|
112
|
+
### 17 Built-in Themes
|
|
146
113
|
|
|
147
|
-
|
|
114
|
+
| Category | Themes |
|
|
115
|
+
|----------|--------|
|
|
116
|
+
| 🔥 **Popular** | `dracula`, `tokyo-night`, `nord`, `monokai` |
|
|
117
|
+
| 💻 **IDE** | `vscode-dark-plus`, `one-dark-pro`, `github-dark-dimmed` |
|
|
118
|
+
| 🌸 **Pastel** | `catppuccin-mocha`, `rose-pine` |
|
|
119
|
+
| ⚡ **Vibrant** | `cyberpunk-neon` |
|
|
120
|
+
| 👔 **Professional** | `professional-blue`, `solarized-dark` |
|
|
121
|
+
| 🌫️ **Minimal** | `gray`, `muted-gray`, `slate-blue`, `dusty-sage` |
|
|
122
|
+
| 🎯 **Semantic** | `semantic-classic` |
|
|
148
123
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
| Theme | Style | Colors |
|
|
154
|
-
|-------|-------|--------|
|
|
155
|
-
| `dracula` | Popular | Purple, pink, green |
|
|
156
|
-
| `tokyo-night` | Modern | Blue, yellow, green |
|
|
157
|
-
| `nord` | Cool | Arctic blues |
|
|
158
|
-
| `monokai` | Vibrant | **DEFAULT** — bright accents |
|
|
159
|
-
| `catppuccin-mocha` | Pastel | Soft dreamy colors |
|
|
160
|
-
| `github-dark-dimmed` | Standard | GitHub's official dark |
|
|
161
|
-
| `vscode-dark-plus` | Standard | VSCode's default |
|
|
162
|
-
| `one-dark-pro` | IDE | Atom's iconic theme |
|
|
163
|
-
| `solarized-dark` | Classic | Precise CIELAB lightness |
|
|
164
|
-
| `rose-pine` | Pastel | Rose/violet themed |
|
|
165
|
-
| `cyberpunk-neon` | Vibrant | Cyberpunk 2077 neon |
|
|
166
|
-
| `professional-blue` | Professional | Business-oriented blue |
|
|
167
|
-
| `gray` | Minimal | Neutral gray, minimal |
|
|
168
|
-
| `muted-gray` | Muted | Very subtle grays |
|
|
169
|
-
| `slate-blue` | Muted | Calm blue-grays |
|
|
170
|
-
| `dusty-sage` | Muted | Earthy greens |
|
|
171
|
-
| `semantic-classic` | Intuitive | Industry-standard colors |
|
|
124
|
+
Switch themes instantly:
|
|
125
|
+
```bash
|
|
126
|
+
npx -y claude-scope@latest quick-config
|
|
127
|
+
```
|
|
172
128
|
|
|
173
129
|
---
|
|
174
130
|
|
|
175
|
-
## Configuration
|
|
131
|
+
## ⚙️ Configuration
|
|
176
132
|
|
|
177
|
-
###
|
|
133
|
+
### 🤖 AI-Powered Customization
|
|
178
134
|
|
|
179
|
-
|
|
135
|
+
**claude-scope is built to work with AI!** Just ask Claude:
|
|
180
136
|
|
|
181
|
-
```
|
|
182
|
-
|
|
137
|
+
```
|
|
138
|
+
"Add the docker widget to line 3"
|
|
139
|
+
"Switch theme to nord"
|
|
140
|
+
"Make it more playful"
|
|
141
|
+
"Show only model and context"
|
|
142
|
+
"Add system monitoring"
|
|
183
143
|
```
|
|
184
144
|
|
|
185
|
-
|
|
186
|
-
- **Layout**: Rich (3 lines), Balanced (2 lines), Compact (1 line)
|
|
187
|
-
- **Theme**: 17 themes with live preview
|
|
188
|
-
- **Style**: balanced, playful, compact, verbose, technical...
|
|
145
|
+
Claude automatically edits `~/.claude-scope/config.json` — changes take effect instantly.
|
|
189
146
|
|
|
190
|
-
|
|
147
|
+
**How it works:**
|
|
148
|
+
- Config contains `$aiDocs` field linking to [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md)
|
|
149
|
+
- AI understands all 15 widgets, 12 styles, and 17 themes
|
|
150
|
+
- Natural language → instant configuration
|
|
151
|
+
|
|
152
|
+
### 📝 Manual Configuration
|
|
191
153
|
|
|
192
154
|
Edit `~/.claude-scope/config.json` directly:
|
|
193
155
|
|
|
@@ -197,71 +159,48 @@ Edit `~/.claude-scope/config.json` directly:
|
|
|
197
159
|
"$aiDocs": "https://github.com/YuriNachos/claude-scope/blob/main/AI-CONFIG-GUIDE.md",
|
|
198
160
|
"lines": {
|
|
199
161
|
"0": [
|
|
200
|
-
{ "id": "model", "style": "balanced", "colors": {
|
|
201
|
-
{ "id": "context", "style": "balanced", "colors": {
|
|
162
|
+
{ "id": "model", "style": "balanced", "colors": { ... } },
|
|
163
|
+
{ "id": "context", "style": "balanced", "colors": { ... } }
|
|
164
|
+
],
|
|
165
|
+
"1": [
|
|
166
|
+
{ "id": "git", "style": "balanced", "colors": { ... } }
|
|
202
167
|
]
|
|
203
168
|
}
|
|
204
169
|
}
|
|
205
170
|
```
|
|
206
171
|
|
|
207
|
-
See [AI-CONFIG-GUIDE](AI-CONFIG-GUIDE.md) for complete
|
|
172
|
+
See [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md) for complete reference.
|
|
208
173
|
|
|
209
174
|
---
|
|
210
175
|
|
|
211
|
-
##
|
|
212
|
-
|
|
213
|
-
<details>
|
|
214
|
-
<summary><b>Zero Runtime Dependencies</b></summary>
|
|
215
|
-
|
|
216
|
-
claude-scope is written in pure TypeScript and uses only native Node.js modules. No external runtime dependencies — maximum performance and security.
|
|
217
|
-
</details>
|
|
218
|
-
|
|
219
|
-
<details>
|
|
220
|
-
<summary><b>Layout & Line System</b></summary>
|
|
221
|
-
|
|
222
|
-
- **Line 0**: Primary info (model, context, cost, duration, lines, git, dev-server, docker)
|
|
223
|
-
- **Line 1**: Extended (git-tag, config-count)
|
|
224
|
-
- **Line 2**: Activity (cache-metrics, active-tools)
|
|
225
|
-
- **Line 4**: Poker widget (easter egg)
|
|
226
|
-
- **Line 5**: Empty line widget
|
|
227
|
-
</details>
|
|
176
|
+
## 📚 Documentation
|
|
228
177
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
-
|
|
235
|
-
|
|
236
|
-
- `isEnabled()` — Check if active
|
|
237
|
-
|
|
238
|
-
Widgets gracefully degrade on errors — if something fails, it returns `null`.
|
|
239
|
-
</details>
|
|
178
|
+
| Topic | Description |
|
|
179
|
+
|-------|-------------|
|
|
180
|
+
| [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md) | Complete configuration reference for AI |
|
|
181
|
+
| [ARCHITECTURE.md](docs/ARCHITECTURE.md) | System architecture, data flow |
|
|
182
|
+
| [WIDGETS.md](docs/WIDGETS.md) | All widgets, styles, examples |
|
|
183
|
+
| [THEME-SYSTEM.md](docs/THEME-SYSTEM.md) | Theme system, customization |
|
|
184
|
+
| [CHANGELOG.md](docs/CHANGELOG.md) | Version history, roadmap |
|
|
240
185
|
|
|
241
186
|
---
|
|
242
187
|
|
|
243
|
-
##
|
|
188
|
+
## 📋 Requirements
|
|
244
189
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
| Architecture, data flow, providers | [ARCHITECTURE.md](docs/ARCHITECTURE.md) |
|
|
248
|
-
| All widgets, styles, examples | [WIDGETS.md](docs/WIDGETS.md) |
|
|
249
|
-
| Theme system, customization | [THEME-SYSTEM.md](docs/THEME-SYSTEM.md) |
|
|
250
|
-
| Formatters, ANSI colors | [FORMATTERS.md](docs/FORMATTERS.md) |
|
|
251
|
-
| Version history, roadmap | [CHANGELOG.md](docs/CHANGELOG.md) |
|
|
190
|
+
- **Node.js** 18+
|
|
191
|
+
- **Claude Code** CLI
|
|
252
192
|
|
|
253
193
|
---
|
|
254
194
|
|
|
255
|
-
##
|
|
195
|
+
## 🤝 Contributing
|
|
256
196
|
|
|
257
|
-
|
|
258
|
-
- **Claude Code** CLI
|
|
197
|
+
Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
259
198
|
|
|
260
199
|
---
|
|
261
200
|
|
|
262
|
-
## License
|
|
201
|
+
## 📄 License
|
|
263
202
|
|
|
264
|
-
[MIT](LICENSE.md) —
|
|
203
|
+
[MIT](LICENSE.md) — use freely in your projects.
|
|
265
204
|
|
|
266
205
|
---
|
|
267
206
|
|
|
@@ -269,6 +208,10 @@ Widgets gracefully degrade on errors — if something fails, it returns `null`.
|
|
|
269
208
|
|
|
270
209
|
**Made with ❤️ by [YuriNachos](https://github.com/YuriNachos)**
|
|
271
210
|
|
|
272
|
-
[GitHub](https://github.com/YuriNachos/claude-scope) · [Issues](https://github.com/YuriNachos/claude-scope/issues) · [
|
|
211
|
+
[GitHub](https://github.com/YuriNachos/claude-scope) · [Issues](https://github.com/YuriNachos/claude-scope/issues) · [npm](https://www.npmjs.com/package/claude-scope)
|
|
212
|
+
|
|
213
|
+
<br/>
|
|
214
|
+
|
|
215
|
+
If you find claude-scope useful, consider giving it a ⭐
|
|
273
216
|
|
|
274
217
|
</div>
|