Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code-2.1.107.sh — Rebalance Claude Code prompts for v2.1.107
# Adapted from roman01la's original script for the new JSON-based prompt structure
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PATCHER_DIR="$SCRIPT_DIR/.patch-temp-$$"
PATCH_JS="$PATCHER_DIR/patch.js"