seestack 0.0.0-stage → 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/.claude-plugin/marketplace.json +22 -0
- package/LICENSE +21 -0
- package/README.md +164 -2
- package/bin/cli.js +141 -0
- package/mods/context-bar/.claude-plugin/plugin.json +11 -0
- package/mods/context-bar/hooks/hooks.json +1 -0
- package/mods/context-bar/hooks/register.tsx +598 -0
- package/mods/context-bar/tests/context-bar.test.tsx +549 -0
- package/mods/context-bar/tsconfig.json +3 -0
- package/mods/context-bar/types/index.d.ts +74 -0
- package/mods/read-aloud/.claude-plugin/plugin.json +42 -0
- package/mods/read-aloud/hooks/hooks.json +1 -0
- package/mods/read-aloud/hooks/register.tsx +920 -0
- package/mods/read-aloud/tests/read-aloud.test.ts +235 -0
- package/mods/read-aloud/tsconfig.json +3 -0
- package/mods/read-aloud/types/index.d.ts +43 -0
- package/package.json +37 -4
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "seestack-mods",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "See Stack",
|
|
5
|
+
"url": "https://github.com/see-stack"
|
|
6
|
+
},
|
|
7
|
+
"metadata": {
|
|
8
|
+
"description": "Official Claude Code mods by See Stack: interactive context bar, voice player, and developer tools."
|
|
9
|
+
},
|
|
10
|
+
"plugins": [
|
|
11
|
+
{
|
|
12
|
+
"name": "context-bar",
|
|
13
|
+
"source": "./mods/context-bar",
|
|
14
|
+
"description": "Interactive context window audit bar with expandable category drilldowns, token meters, and compaction headroom."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "read-aloud",
|
|
18
|
+
"source": "./mods/read-aloud",
|
|
19
|
+
"description": "Speaks Claude Code replies aloud in a personal voice (Ember) with a live media player deck, progress scrubber, and speech queue."
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 See Stack (https://github.com/seestack-dev)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,165 @@
|
|
|
1
|
-
#
|
|
1
|
+
# See Stack Mods for Claude Code ⚡
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://code.claude.com)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://youtube.com/@SeeStack)
|
|
6
|
+
[](https://seestack.dev/mods)
|
|
7
|
+
|
|
8
|
+
> 🔴 **Step 1: [Subscribe to @SeeStack on YouTube](https://youtube.com/@seestack?sub_confirmation=1) for new weekly Claude Code mods and AI agent tools!**
|
|
9
|
+
|
|
10
|
+
Curated developer mods for [Claude Code](https://code.claude.com) by [See Stack](https://youtube.com/@SeeStack).
|
|
11
|
+
|
|
12
|
+
Upgrade your terminal with live context window telemetry, compaction headroom alerts, and personal voice narration with media transport controls.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## ⚡ Quick Install (One Command)
|
|
17
|
+
|
|
18
|
+
Add the **See Stack Marketplace** to your Claude Code installation:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
claude plugin marketplace add see-stack/claude-code-mods
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then install any of the mods:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# 1. Interactive Context Bar with Headroom Tracking
|
|
28
|
+
claude plugin install context-bar@seestack-mods
|
|
29
|
+
|
|
30
|
+
# 2. Text-to-Speech Voice Player with Transport Scrubber & Queue
|
|
31
|
+
claude plugin install read-aloud@seestack-mods
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
To update mods anytime:
|
|
35
|
+
```bash
|
|
36
|
+
claude plugin update context-bar@seestack-mods
|
|
37
|
+
claude plugin update read-aloud@seestack-mods
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 📋 Prerequisites & What You Need to Enable
|
|
43
|
+
|
|
44
|
+
Before installing, make sure your environment meets these requirements:
|
|
45
|
+
|
|
46
|
+
### 1. Claude Code Version (`v2.1.287` or higher)
|
|
47
|
+
Native plugin and mod support was introduced in Claude Code `v2.1.287`. Check your version:
|
|
48
|
+
```bash
|
|
49
|
+
claude --version
|
|
50
|
+
```
|
|
51
|
+
If you are on an older build, upgrade to the latest version:
|
|
52
|
+
```bash
|
|
53
|
+
npm install -g @anthropic-ai/claude-code
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 2. Verify Plugins Are Enabled
|
|
57
|
+
Once installed, verify that Claude Code recognizes the mods:
|
|
58
|
+
```bash
|
|
59
|
+
claude plugin list
|
|
60
|
+
```
|
|
61
|
+
If a mod shows as disabled, enable it with:
|
|
62
|
+
```bash
|
|
63
|
+
claude plugin enable context-bar@seestack-mods
|
|
64
|
+
claude plugin enable read-aloud@seestack-mods
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 3. Voice Synthesis (`read-aloud` mod only)
|
|
68
|
+
* **macOS**: Works out of the box with macOS speech synthesis (`say` / `AVSpeechSynthesizer`).
|
|
69
|
+
* Supports personal voices (e.g. **Ember**, **Samantha**, **Daniel**). Configure your preferred voice in `System Settings > Accessibility > Spoken Content`.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 🛠 Featured Mods
|
|
74
|
+
|
|
75
|
+
### 1. `context-bar`
|
|
76
|
+
A live stacked context window audit HUD placed directly above your prompt with an interactive collapsible accordion dropdown so you never burn 40,000 tokens on stale logs or get surprised by auto-compaction.
|
|
77
|
+
|
|
78
|
+

|
|
79
|
+
|
|
80
|
+
#### Key Features:
|
|
81
|
+
* **Interactive Accordion Dropdown**: Click anywhere on the header to reveal the full itemized audit (`detail`), or hit `[ Minimize ]` to collapse back to a single compact line.
|
|
82
|
+
* **Inline Drilldowns**: Click `▶` directly on `memory files` or `skills` to expand their itemized breakdown without repeating headers.
|
|
83
|
+
* **Auto-Compaction Headroom**: Real-time tracking of safety headroom before auto-compaction triggers (e.g. `compacts at 167k [38%]`).
|
|
84
|
+
* **Visual Token Meter**: Color-coded segments for system prompt, system tools, memory files, skills, messages, and free space.
|
|
85
|
+
* **Slash Command**: Type `/context-bar` inside any Claude Code session to toggle visibility.
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
89
|
+
│ ◆ context 75k of 200k · compacts at 167k 38% ▾ │
|
|
90
|
+
│ █■■■███████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │
|
|
91
|
+
│ detail │
|
|
92
|
+
│ ▶ ■ system prompt █························· 2k 1% │
|
|
93
|
+
│ ▶ ■ system tools ██████████················ 19k 9.5% │
|
|
94
|
+
│ ▶ ■ memory files █························· 3.1k 1.5% │
|
|
95
|
+
│ ▶ ■ skills █························· 2.6k 1.3% │
|
|
96
|
+
│ ▶ ■ messages ██████████████████········ 49k 24% │
|
|
97
|
+
│ ─ free space ────────────────────────── 92k 46% │
|
|
98
|
+
│ ░ autocompact buf… ░░░░░░░░·················· 33k 17% │
|
|
99
|
+
│ │
|
|
100
|
+
│ slash commands 42 of 42 · 1.4k │
|
|
101
|
+
│ window claude-sonnet-5-5 · compacts at 167k │
|
|
102
|
+
│ │
|
|
103
|
+
│ [ Minimize ] │
|
|
104
|
+
└──────────────────────────────────────────────────────────────┘
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
### 2. `read-aloud`
|
|
110
|
+
Brings a high-quality audio deck and Text-to-Speech into Claude Code with full media transport controls.
|
|
111
|
+
|
|
112
|
+

|
|
113
|
+
|
|
114
|
+
#### Key Features:
|
|
115
|
+
* **Media Deck**: Play/Pause, sentence scrubbing, reply queuing, and speed multiplier.
|
|
116
|
+
* **Terracotta Progress Bar**: Visual scrub bar matching your context meter.
|
|
117
|
+
* **Speech Queue**: Seamlessly queues replies without cutting off sentences mid-speech.
|
|
118
|
+
* **Clean Formatting**: Automatically strips markdown headers, raw code blocks, and table noise before speaking so the voice remains natural and conversational.
|
|
119
|
+
* **Slash Command**: Type `/read-aloud` or click the `read` button above your prompt.
|
|
120
|
+
|
|
121
|
+
#### Keyboard Transport Controls:
|
|
122
|
+
| Key | Action | Description |
|
|
123
|
+
|:---:|:---|:---|
|
|
124
|
+
| `p` | **Pause / Resume** | Instantly toggles speech playback |
|
|
125
|
+
| `s` | **Stop** | Halts audio and clears speech buffer |
|
|
126
|
+
| `◀` / `▶` | **Sentence Step** | Steps one sentence backward or forward |
|
|
127
|
+
| `⏮` / `⏭` | **Reply Step** | Jumps across queued assistant replies |
|
|
128
|
+
| `r` | **Speed Multiplier** | Cycles playback speed: `1×` ➔ `1.25×` ➔ `1.5×` ➔ `2×` |
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## 🔧 Useful Commands Inside Claude Code
|
|
133
|
+
|
|
134
|
+
| Slash Command / Key | What it does |
|
|
135
|
+
|:---|:---|
|
|
136
|
+
| `/context-bar` | Toggles the Context Bar HUD above prompt |
|
|
137
|
+
| `/read-aloud` | Speaks the latest response out loud |
|
|
138
|
+
| `/plugins` | Opens the interactive Claude Code plugin manager |
|
|
139
|
+
| `/reload-plugins` | Hot-reloads all mods without restarting your terminal session |
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## 💻 Local Development & Customization
|
|
144
|
+
|
|
145
|
+
To inspect, tweak, or test these mods locally:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
git clone https://github.com/see-stack/claude-code-mods.git
|
|
149
|
+
cd claude-code-mods
|
|
150
|
+
|
|
151
|
+
# Load mods in development mode:
|
|
152
|
+
claude --plugin-dir ./mods/context-bar
|
|
153
|
+
claude --plugin-dir ./mods/read-aloud
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Reload changes instantly in your active session with `/reload-plugins`.
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## 🌐 Ecosystem & Community
|
|
161
|
+
|
|
162
|
+
* 📺 **YouTube**: [See Stack (@SeeStack)](https://youtube.com/@SeeStack) — In-depth AI agent architecture breakdowns and tutorials.
|
|
163
|
+
* 🌐 **Documentation & Vaults**: [seestack.dev](https://seestack.dev)
|
|
164
|
+
* 💬 Built for developers building real AI agent workflows.
|
|
165
|
+
* 📄 Licensed under the [MIT License](LICENSE).
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* See Stack CLI for Claude Code Mods
|
|
5
|
+
* https://seestack.dev
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const { execSync, spawnSync } = require('child_process');
|
|
9
|
+
const readline = require('readline');
|
|
10
|
+
|
|
11
|
+
// ANSI formatting
|
|
12
|
+
const c = {
|
|
13
|
+
reset: '\x1b[0m',
|
|
14
|
+
bold: '\x1b[1m',
|
|
15
|
+
dim: '\x1b[2m',
|
|
16
|
+
cyan: '\x1b[36m',
|
|
17
|
+
green: '\x1b[32m',
|
|
18
|
+
yellow: '\x1b[33m',
|
|
19
|
+
magenta: '\x1b[35m',
|
|
20
|
+
red: '\x1b[31m',
|
|
21
|
+
gray: '\x1b[90m',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const BANNER = `
|
|
25
|
+
${c.cyan}${c.bold} ███████╗███████╗███████╗███████╗████████╗ █████╗ ██████╗██╗ ██╗
|
|
26
|
+
██╔════╝██╔════╝██╔════╝██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝
|
|
27
|
+
███████╗█████╗ █████╗ ███████╗ ██║ ███████║██║ █████╔╝
|
|
28
|
+
╚════██║██╔══╝ ██╔══╝ ╚════██║ ██║ ██╔══██║██║ ██╔═██╗
|
|
29
|
+
███████║███████╗███████╗███████║ ██║ ██║ ██║╚██████╗██║ ██╗
|
|
30
|
+
╚══════╝╚══════╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝${c.reset}
|
|
31
|
+
${c.dim}Official Claude Code Mods & Telemetry • https://seestack.dev${c.reset}
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
function checkClaudeInstalled() {
|
|
35
|
+
try {
|
|
36
|
+
const res = spawnSync('which', ['claude'], { encoding: 'utf8' });
|
|
37
|
+
if (res.status === 0 && res.stdout.trim()) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
} catch (e) {}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function run(cmd, desc) {
|
|
45
|
+
if (desc) {
|
|
46
|
+
process.stdout.write(` ${c.cyan}▸${c.reset} ${desc}... `);
|
|
47
|
+
}
|
|
48
|
+
try {
|
|
49
|
+
execSync(cmd, { stdio: 'pipe' });
|
|
50
|
+
if (desc) console.log(`${c.green}✔ done${c.reset}`);
|
|
51
|
+
return true;
|
|
52
|
+
} catch (err) {
|
|
53
|
+
if (desc) console.log(`${c.red}✖ failed${c.reset}`);
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function ensureMarketplace() {
|
|
59
|
+
console.log(`\n${c.bold}1. Connecting to See Stack Marketplace:${c.reset}`);
|
|
60
|
+
run('claude plugin marketplace add see-stack/claude-code-mods', 'Adding see-stack/claude-code-mods marketplace');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function installMods(mods = ['context-bar', 'read-aloud']) {
|
|
64
|
+
ensureMarketplace();
|
|
65
|
+
console.log(`\n${c.bold}2. Installing Mods:${c.reset}`);
|
|
66
|
+
for (const mod of mods) {
|
|
67
|
+
if (mod === 'context-bar') {
|
|
68
|
+
run('claude plugin install context-bar@seestack-mods', 'Installing context-bar (Live Context Telemetry)');
|
|
69
|
+
} else if (mod === 'read-aloud') {
|
|
70
|
+
run('claude plugin install read-aloud@seestack-mods', 'Installing read-aloud (Voice Narration Player)');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
console.log(`\n${c.green}${c.bold}✨ All mods installed successfully!${c.reset}`);
|
|
74
|
+
console.log(`\n${c.dim}Start Claude Code to see your new mods in action:${c.reset}`);
|
|
75
|
+
console.log(` ${c.bold}${c.cyan}claude${c.reset}\n`);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function updateMods() {
|
|
79
|
+
ensureMarketplace();
|
|
80
|
+
console.log(`\n${c.bold}Updating See Stack Mods:${c.reset}`);
|
|
81
|
+
run('claude plugin update context-bar@seestack-mods', 'Updating context-bar');
|
|
82
|
+
run('claude plugin update read-aloud@seestack-mods', 'Updating read-aloud');
|
|
83
|
+
console.log(`\n${c.green}${c.bold}✔ Updates complete!${c.reset}\n`);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function listMods() {
|
|
87
|
+
console.log(`\n${c.bold}Installed Claude Code Plugins:${c.reset}\n`);
|
|
88
|
+
try {
|
|
89
|
+
execSync('claude plugin list', { stdio: 'inherit' });
|
|
90
|
+
} catch (e) {
|
|
91
|
+
console.log(`${c.red}Could not retrieve plugin list.${c.reset}`);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function doctor() {
|
|
96
|
+
console.log(`\n${c.bold}See Stack Environment Doctor:${c.reset}\n`);
|
|
97
|
+
console.log(` Node.js: ${process.version}`);
|
|
98
|
+
const hasClaude = checkClaudeInstalled();
|
|
99
|
+
console.log(` Claude: ${hasClaude ? c.green + 'Installed' + c.reset : c.red + 'Not found' + c.reset}`);
|
|
100
|
+
if (hasClaude) {
|
|
101
|
+
try {
|
|
102
|
+
const v = execSync('claude --version', { encoding: 'utf8' }).trim();
|
|
103
|
+
console.log(` Version: ${v}`);
|
|
104
|
+
} catch (e) {}
|
|
105
|
+
}
|
|
106
|
+
console.log('');
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
async function main() {
|
|
110
|
+
console.log(BANNER);
|
|
111
|
+
|
|
112
|
+
if (!checkClaudeInstalled()) {
|
|
113
|
+
console.log(`${c.red}${c.bold}Error: Claude Code CLI not found.${c.reset}`);
|
|
114
|
+
console.log(`\nPlease install Claude Code first:`);
|
|
115
|
+
console.log(` ${c.cyan}npm install -g @anthropic-ai/claude-code${c.reset}\n`);
|
|
116
|
+
process.exit(1);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const args = process.argv.slice(2);
|
|
120
|
+
const command = args[0] ? args[0].toLowerCase() : null;
|
|
121
|
+
|
|
122
|
+
if (command === 'update') {
|
|
123
|
+
updateMods();
|
|
124
|
+
} else if (command === 'list') {
|
|
125
|
+
listMods();
|
|
126
|
+
} else if (command === 'doctor') {
|
|
127
|
+
doctor();
|
|
128
|
+
} else if (command === 'help' || command === '--help' || command === '-h') {
|
|
129
|
+
console.log(`Usage:`);
|
|
130
|
+
console.log(` npx seestack ${c.dim}Interactive installation${c.reset}`);
|
|
131
|
+
console.log(` npx seestack install ${c.dim}Install all mods${c.reset}`);
|
|
132
|
+
console.log(` npx seestack update ${c.dim}Update all mods to latest${c.reset}`);
|
|
133
|
+
console.log(` npx seestack list ${c.dim}List installed plugins${c.reset}`);
|
|
134
|
+
console.log(` npx seestack doctor ${c.dim}Check environment status${c.reset}\n`);
|
|
135
|
+
} else {
|
|
136
|
+
// Default interactive / fast install
|
|
137
|
+
installMods(['context-bar', 'read-aloud']);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
main();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "context-bar",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Your context window as a stacked bar above the prompt, a color per category, with token counts and the compaction point. Click the ▾ to open every row's share and what sits under the rows. /context-bar shows or hides it.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Hamza Zafar",
|
|
7
|
+
"url": "https://github.com/hamzafer"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"types": "./types/index.d.ts"
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "modules": ["./register.tsx"] }
|