claude-depester 1.3.6 → 1.5.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 +22 -18
- package/bin/claude-depester +275 -203
- package/lib/bun-binary.js +159 -59
- package/lib/hooks.js +2 -2
- package/lib/patcher.js +184 -49
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@ Patches Claude Code CLI and VS Code extension to replace whimsical loading words
|
|
|
8
8
|
|
|
9
9
|
Instead of seeing "Flibbertigibbeting", "Discombobulating", "Clauding", etc., you'll see a clean "Thinking".
|
|
10
10
|
|
|
11
|
-
> **Last updated:** 2026-
|
|
11
|
+
> **Last updated:** 2026-03-22 | **Tested with:** Claude Code 2.1.4 - 2.1.81 | **Platforms:** Linux, macOS, Windows
|
|
12
12
|
>
|
|
13
|
-
> v1.
|
|
13
|
+
> v1.5.0: New `--no-animation` flag disables the animated spinner icon in both CLI and VS Code. New `--no-tips` flag hides spinner tips. Fix for `--restore` crashing on locked files. Thanks [@noobydp](https://github.com/noobydp)!
|
|
14
14
|
|
|
15
15
|
**CLI - Spinner:**
|
|
16
16
|
|
|
@@ -64,7 +64,7 @@ Add a shell wrapper that patches before each invocation:
|
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
66
|
# Add to your .bashrc or .zshrc
|
|
67
|
-
cl() { npx claude-depester --
|
|
67
|
+
cl() { npx claude-depester --silent --log ; claude "$@" ; }
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
Then use `cl` instead of `claude`. This ensures patching happens *before* Claude loads.
|
|
@@ -73,6 +73,8 @@ Then use `cl` instead of `claude`. This ensures patching happens *before* Claude
|
|
|
73
73
|
|
|
74
74
|
- **Patches spinner words** ("Flibbertigibbeting..." -> "Thinking...")
|
|
75
75
|
- **Patches completion verbs** ("Baked for 42s" -> "Thought for 42s")
|
|
76
|
+
- **Disables spinner animation** (`--no-animation`) - replaces cycling icon with a static dot
|
|
77
|
+
- **Disables spinner tips** (`--no-tips`) - hides "Tip: ..." messages shown during thinking
|
|
76
78
|
- Works with native binaries (Bun-compiled) and npm installations
|
|
77
79
|
- **Patches VS Code/VSCodium extension webview** (the UI that shows spinner text)
|
|
78
80
|
- **Supports remote development** (VS Code Remote SSH, Cursor SSH)
|
|
@@ -86,12 +88,14 @@ Then use `cl` instead of `claude`. This ensures patching happens *before* Claude
|
|
|
86
88
|
|
|
87
89
|
| Command | Description |
|
|
88
90
|
|---------|-------------|
|
|
89
|
-
| `npx claude-depester` | Patch Claude Code |
|
|
90
|
-
| `npx claude-depester --
|
|
91
|
-
| `npx claude-depester --list` | List all found installations |
|
|
91
|
+
| `npx claude-depester` | Patch all Claude Code installations |
|
|
92
|
+
| `npx claude-depester --list` | List all found installations and status |
|
|
92
93
|
| `npx claude-depester --dry-run` | Preview changes (no modifications) |
|
|
93
94
|
| `npx claude-depester --check` | Check patch status |
|
|
94
|
-
| `npx claude-depester --restore` | Restore
|
|
95
|
+
| `npx claude-depester --restore` | Restore all from backup |
|
|
96
|
+
| `npx claude-depester --no-animation` | Disable animated spinner icon |
|
|
97
|
+
| `npx claude-depester --no-tips` | Disable spinner tips |
|
|
98
|
+
| `npx claude-depester --path <file>` | Target a specific file |
|
|
95
99
|
| `npx claude-depester --verbose` | Show detailed info |
|
|
96
100
|
| `npx claude-depester --debug` | Show detailed debug info (for troubleshooting) |
|
|
97
101
|
| `npx claude-depester --log` | Write results to `~/.claude/depester.log` |
|
|
@@ -131,9 +135,7 @@ Then use `cl` instead of `claude`. This ensures patching happens *before* Claude
|
|
|
131
135
|
| VS Code extension | `%USERPROFILE%\.vscode\extensions\anthropic.claude-code-*\` | Fully supported |
|
|
132
136
|
| VS Code webview | `...\extensions\...\webview\index.js` | Fully supported |
|
|
133
137
|
|
|
134
|
-
The tool auto-detects your
|
|
135
|
-
|
|
136
|
-
> **Important for VS Code users:** The extension has TWO places with spinner words - the native binary AND the webview. Use `--all` to patch both!
|
|
138
|
+
The tool auto-detects all your installations. Use `--list` to see them. All commands (patch, check, restore) operate on all installations by default. Use `--path <file>` to target a specific file.
|
|
137
139
|
|
|
138
140
|
> **Remote Development (SSH):** When using VS Code Remote or Cursor over SSH, run the tool **on the remote server** to patch `~/.vscode-server` or `~/.cursor-server`.
|
|
139
141
|
|
|
@@ -165,7 +167,7 @@ The `--install-hook` command adds a SessionStart hook to `~/.claude/settings.jso
|
|
|
165
167
|
"hooks": [
|
|
166
168
|
{
|
|
167
169
|
"type": "command",
|
|
168
|
-
"command": "npx claude-depester --
|
|
170
|
+
"command": "npx claude-depester --silent --log"
|
|
169
171
|
}
|
|
170
172
|
]
|
|
171
173
|
}
|
|
@@ -213,7 +215,7 @@ The VS Code extension has **TWO separate components** with spinner words:
|
|
|
213
215
|
You must patch BOTH for the fix to work. Use:
|
|
214
216
|
```bash
|
|
215
217
|
npx claude-depester --list # Should show both binary AND webview
|
|
216
|
-
npx claude-depester
|
|
218
|
+
npx claude-depester # Patches all components
|
|
217
219
|
```
|
|
218
220
|
|
|
219
221
|
Then **fully restart VS Code** (not just reload window).
|
|
@@ -229,7 +231,7 @@ If the patch fails:
|
|
|
229
231
|
### Want to undo everything
|
|
230
232
|
|
|
231
233
|
```bash
|
|
232
|
-
npx claude-depester --restore
|
|
234
|
+
npx claude-depester --restore # Restore all installations
|
|
233
235
|
npx claude-depester --remove-hook # Remove hook (if installed)
|
|
234
236
|
# Remove the shell wrapper from your .bashrc/.zshrc if added
|
|
235
237
|
```
|
|
@@ -242,11 +244,13 @@ npx claude-depester --remove-hook # Remove hook (if installed)
|
|
|
242
244
|
|
|
243
245
|
2. **Extraction**: For native binaries (Bun-compiled), uses [node-lief](https://www.npmjs.com/package/node-lief) to properly extract the embedded JavaScript - the same approach used by [tweakcc](https://github.com/Piebald-AI/tweakcc)
|
|
244
246
|
|
|
245
|
-
3. **Patching**: Replaces
|
|
247
|
+
3. **Patching**: Replaces arrays and settings:
|
|
246
248
|
- Spinner words: `["Accomplishing",...,"Zigzagging"]` -> `["Thinking"]`
|
|
247
249
|
- Completion verbs: `["Baked",...,"Worked"]` -> `["Thought"]`
|
|
250
|
+
- Spinner icon animation (`--no-animation`): `["·","✢","*","✶","✻","✽"]` -> `["·"]`
|
|
251
|
+
- Spinner tips (`--no-tips`): sets `spinnerTipsEnabled: false` in Claude settings
|
|
248
252
|
|
|
249
|
-
4. **Repacking**: Rebuilds the binary with the modified JavaScript
|
|
253
|
+
4. **Repacking**: Rebuilds the binary with the modified JavaScript. Supports both old (pre-2.1.37) and new Bun data formats (different trailer signatures and module struct sizes)
|
|
250
254
|
|
|
251
255
|
### File locations
|
|
252
256
|
|
|
@@ -263,14 +267,14 @@ npx claude-depester --remove-hook # Remove hook (if installed)
|
|
|
263
267
|
|
|
264
268
|
| Platform | Binary Patching | Webview Patching | Status |
|
|
265
269
|
|----------|-----------------|------------------|--------|
|
|
266
|
-
| Linux x64 | ELF | Yes | Tested |
|
|
270
|
+
| Linux x64 | ELF | Yes | Tested (2.1.27) |
|
|
267
271
|
| Linux ARM64 | ELF | Yes | Should work |
|
|
268
272
|
| macOS Intel | MachO | Yes | Should work |
|
|
269
|
-
| macOS Apple Silicon | MachO | Yes |
|
|
273
|
+
| macOS Apple Silicon | MachO | Yes | Tested (2.1.38) |
|
|
270
274
|
| Windows x64 | PE | Yes | Should work |
|
|
271
275
|
| Windows ARM64 | PE | Yes | Should work |
|
|
272
276
|
|
|
273
|
-
The tool uses [node-lief](https://www.npmjs.com/package/node-lief)
|
|
277
|
+
Binary repacking uses raw file writes (byte-level section replacement) for MachO and PE formats, avoiding LIEF write() which could produce bloated output. ELF uses LIEF write(). The tool uses [node-lief](https://www.npmjs.com/package/node-lief) for binary parsing on all platforms.
|
|
274
278
|
|
|
275
279
|
## Contributing
|
|
276
280
|
|