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
#!/bin/bash | |
set -euo pipefail | |
trap 'echo "at line $LINENO, exit code $? from $BASH_COMMAND" >&2; exit 1' ERR | |
# This is a Claude Code hook to stop it saying "you are right". | |
# | |
# Installation: | |
# 1. Save this script and chmod +x it to make it executable. | |
# 2. Within Claude Code, /hooks / UserPromptSubmit > Add a new hook (this file) | |
# |
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
# Make sure to modify "-Xms", "Xmx", "CICompilerCount", and "ParallelGCThreads" according to your PC hardware configuration... | |
# ------------------------------------------- | |
# Memory Settings (High-Memory Workstation) | |
# ------------------------------------------- | |
# Set the initial heap size (this reduces resizing overhead) | |
-Xms2048m | |
# Set the maximum heap size (adjust depending on your system; 2048m or 4096m is good for modern machines) |