Skip to content

Instantly share code, notes, and snippets.

@phase3dev
phase3dev / claude-glm-launcher-all
Last active July 8, 2026 11:49
Launcher to run GLM 5.2 in Claude Code harness (full launcher with all features: thinking summaries, context icon, markdown copy)
#!/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
@phase3dev
phase3dev / claude-glm
Last active July 1, 2026 01:50
Launcher to run GLM 5.2 in Claude Code harness
#!/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
@phase3dev
phase3dev / install_imagemagic_with_heic.sh
Last active April 22, 2026 06:50 — forked from hurricup/install_imagemagic_with_heic.sh
How to install ImageMagick with HEIC and WEBP support on Ubuntu 20.04
# 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 \