docs/hook-bug-workarounds.md
Community-tested workarounds for current Claude Code bugs that can affect ECC hook-heavy setups.
This page is intentionally narrow: it collects the highest-signal operational fixes from the longer troubleshooting surface without repeating speculative or unsupported configuration advice. These are upstream Claude Code behaviors, not ECC bugs.
Use this page when you are specifically debugging:
Hook Error labels on otherwise successful hook runs529 Overloaded responses under heavy hook/tool pressureFor the fuller ECC troubleshooting surface, use TROUBLESHOOTING.md.
Hook Error labelsWhat helps:
input=$(cat)).0 allow, 2 block, other non-zero values are treated as errors.input=$(cat)
echo "[BLOCKED] Reason here" >&2
exit 2
What helps:
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE if lowering it causes earlier compaction in your build./compact at natural task boundaries.strategic-compact guidance instead of forcing a lower threshold.What helps:
PostCompact reminder hook that tells you to re-check connector auth.What helps:
529 OverloadedWhat helps:
ENABLE_TOOL_SEARCH=auto:5 if your setup supports it.MAX_THINKING_TOKENS for routine work.CLAUDE_CODE_SUBAGENT_MODEL=haiku if your setup exposes that knob.