[FEATURE] CLAUDE_CODE_SHELL applied to the shell used by hooks

Resolved 💬 2 comments Opened May 29, 2026 by lukehinds Closed Jul 1, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Claude already allows CLAUDE_CODE_SHELL to point towards a shell of the users choice, meaning they have flexibility to leverage their own prefered shell. This however is not possible with hooks, as all hooks wrap the command within /bin/sh -c "<hook>"

Proposed Solution

Allow CLAUDE_CODE_SHELL to set the hook shell, or if prefered introduce a CLAUDE_CODE_HOOK_SHELL

Alternative Solutions

_No response_

Priority

Critical - Blocking my work

Feature Category

Configuration and settings

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

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