{"version":"2.1.326","anchor":"hook-exit-127-hint-pointing-to-hooks","canonical_anchor":"hook-exit-127-hint-pointing-to-hooks","heading":"A hint explains hooks that fail with exit code 127","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/hook-exit-127-hint-pointing-to-hooks","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### A hint explains hooks that fail with exit code 127\n\nWhen a hook exits with code 127, Claude Code says a program it needs was probably not found and points you to \/hooks\n\n**What**\n\nHooks are commands you set up to run at set moments, such as before Claude uses a tool. When a program finishes, it returns a number called an exit code. When a hook returns 127, Claude Code now shows:\n\n\"Exit 127 usually means a program this hook needs wasn't found, so its check may not have run. Check the hook's command in \/hooks.\"\n\n**Why**\n\nA hook that cannot find its program can fail without anyone noticing, so a check you rely on may not run. The message tells you what probably went wrong and where to fix it.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}