Skip to content

Instantly share code, notes, and snippets.

View conorbranagan's full-sized avatar

Conor Branagan conorbranagan

View GitHub Profile
@ljw1004
ljw1004 / you_are_not_right.sh
Last active September 9, 2025 10:45
A UserPromptSubmit hook for Claude Code to stop it saying "You're right"
#!/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)
#