Compensation needed: Repeated violation of explicitly injected rules consumes user tokens

Resolved 💬 2 comments Opened Apr 10, 2026 by coverboy Closed May 22, 2026

Symptom

Claude Code repeatedly violates a rule that is explicitly re-injected via hook on every user prompt submission, causing unnecessary token consumption.

How to reproduce

  1. User configures a rule via ~/.claude/hooks/reinject-rules.sh (e.g., "Always respond in 존댓말")
  2. Hook injects the rule at the start of each turn via UserPromptSubmit event
  3. Claude ignores the rule and responds in non-compliant format
  4. Rule re-injected on next turn, Claude violates again
  5. Repeat indefinitely — each violation wastes tokens on re-injecting the same rule

Expected behavior

  • Rule is injected once per turn
  • Claude respects the rule and responds accordingly
  • If Claude violates, it should be a rare edge case, not chronic

Actual behavior

  • Hook injects rule reliably every turn
  • Claude ignores rule consistently across multiple turns
  • User must point out violation and request correction
  • Correction lasts only until next turn, then same violation repeats
  • User token budget spent re-injecting the same rule on every turn

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗