This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # claudemax - Claude Code launcher that combines three unofficial fixes: | |
| # | |
| # 1. Restores extended-thinking summaries on Opus 4.7 / 4.8, where the | |
| # "Thinking" section otherwise renders empty in the VS Code extension and | |
| # headless -p/SDK. Done by injecting `--thinking-display summarized` into the | |
| # launch args - the one lever that is NOT interactivity-gated. Edits nothing. | |
| # 2026-07-07: cannot override the server-side experiment that blanks Opus 4.8 | |
| # summaries (x-cc-atis header); see the README's 2026-07-07 update. The | |
| # launcher can apply that update's mitigation - opt in with CC_ATIS_OPTOUT=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # --- Your GLM API key, kept OUT of this script ----------------------------- | |
| # Put the key in a private file once (readable only by you), and this launcher | |
| # loads it at runtime. That way the key never lives in this script, so you can | |
| # copy, share, or post the launcher without leaking it. | |
| # mkdir -p ~/.config/glm | |
| # printf '%s\n' 'YOUR_ZAI_API_KEY' > ~/.config/glm/api_key | |
| # chmod 600 ~/.config/glm/api_key # 0600 = only you can read it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # inspired by https://gist.github.com/rjnienaber/af47fccb8410926ba7ea35f96c3b87fd | |
| # remove bundled ImageMagick | |
| sudo apt remove imagemagick -y | |
| # install base dependencies | |
| sudo apt-get install -y \ | |
| libde265-dev \ | |
| libdjvulibre-dev \ | |
| libfftw3-dev \ |