patch-claudelisted
Install: claude install-skill ojura/claude-patches
# Reapply anthropic.claude-code extension patches
**Patchset version**: `1.8`
Twelve patches live out-of-tree and need to be reapplied every time a bundled
`anthropic.claude-code-*` extension updates. The minified code
changes variable names between releases, so do NOT blindly search-and-replace
literal strings from prior versions. Locate the pattern structurally, then
edit.
## Step 0: boot, self-update, locate install, try the prebuilt
This single bash block does three things in one round-trip:
1. **Self-update** the skill if it's a symlinked clone of
`ojura/claude-patches` (fast-forward only; aborts on dirty / non-FF
state with a helpful message).
2. **Locate all target installs** via `CLAUDE_CODE_EXECPATH` (the IDE-
hosted Claude Code CLI sets this directly to the running install)
plus a fallback glob across `~/.<ide>/extensions/` for every IDE
that pulls from Open VSX or the VS Code marketplace (VS Code,
Antigravity, Cursor, VSCodium, etc.). Antigravity's authoritative
extensions dir is `~/.antigravity-ide/`; the older `~/.antigravity/`
is deprecated (the `~/.*/extensions/` glob still catches a stale
install there if one lingers, and dedup-by-realpath handles overlap).
Collects all installs, deduplicates by realpath, and patches each one.
3. **Fetch the prebuilt for each version** and run it. Prebuilts are
self-validating (detect the patchset signature, idempotent,
byte-stable verified at synthesis time), so this step either
app