No documentation exists for CLAUDE_CODE_SHELL_PREFIX
Status Fixed / completed
Maintainer reply ✓ Yes — catherinewu
Activity 3 comments · opened Jul 25, 2025 · closed Dec 2, 2025
💡 Likely answer: A maintainer (catherinewu, contributor)
responded on this thread — see the highlighted reply below.
I see it mentioned in the release notes, but CLAUDE_CODE_SHELL_PREFIX is not in the documentation anywhere. I think this should be documented.
3 Comments
Allows you to wrap invoked bash commands in a script. For example, you want to log every command Claude invokes:
Consider this
log_and_run.shscript:```#!/bin/bash
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*" >> log.txt
eval "$*"
thanks for reporting! i just added CLAUDE_CODE_SHELL_PREFIX to the docs. should be live in the next few days!
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.