One bash launcher (claudemax) and one Windows launcher (claudemax.win.js)
carry every fix in this repo. Each fix is on by default and independently
switchable at runtime with an environment variable, so the same artifact serves
"I want everything" and "I want only X" without editing code and without
recompiling. The Windows launcher compiles to a single claudemax.exe with
pkg.
Both launchers are drop-in process wrappers: they find the real claude, peel
the process-wrapper convention args, inject the thinking-display flag when a real
agent run is detected, reconcile the webview bundle, then exec the real CLI.
VS Code, official "Claude Code" extension:
- Set
claudeCode.claudeProcessWrapperto the full path oflauncher/claudemax(orclaudemax.exeon Windows), then reload the window. - In a multi-root
.code-workspace, this setting is window-scoped: put it in the workspace file'ssettingsblock (or in User settings), not in a folder.vscode/settings.json.
VS Code, third-party "Claude Code Chat" extension:
- Set
claudeCodeChat.executable.pathto the launcher.
Terminal:
- Run
claudemaxin place ofclaude.
| Env var | Default | Effect |
|---|---|---|
CC_WORKAROUNDS |
1 |
Master switch. 0 disables every fix (argument injection and bundle patches) and reverts the webview to a clean bundle on launch. |
CC_RECONCILE |
1 |
0 = do not read or write the webview bundle this launch (emergency bypass). Argument injection still runs. |
CC_THINKING_DISPLAY |
summarized |
summarized shows extended-thinking summaries; omitted hides them (no injection). |
CC_PATCH_CONTEXT_ICON |
1 |
0 leaves the context-usage icon unpatched (and reverts ours on the next launch). |
CC_PATCH_MD_COPY |
1 |
0 leaves the webview without the markdown copy/export controls (and reverts ours on the next launch). |
Setting toggles without touching the script:
- Use the extension's existing
claudeCode.environmentVariablessetting to set anyCC_*toggle from the settings UI on any OS, including against the compiledclaudemax.exe. - Source-script users can instead edit the
FEATURE DEFAULTSblock near the top ofclaudemax/claudemax.win.js.
CLAUDE_REAL_BIN- full path to the realclaude, if autodetection fails.CC_NODE_BIN(Windows) - path tonode.exe, used when resolving a.cmd/.batshim without going through a shell.
npm i -g pkg
pkg launcher/claudemax.win.js --targets node18-win-x64 --output claudemax.exe
The exe is distributed through GitHub Releases, not committed to the repo.