Add option to suppress 'Shell cwd was reset' messages
Status Fixed / completed
Maintainer reply None cached
Activity 1 comment · opened Dec 8, 2025 · closed Dec 10, 2025
Description
When running Bash commands in directories outside the project root, Claude Code prints an informational message after each command output:
Shell cwd was reset to /home/user/.claude
This becomes noisy in sessions with many cross-directory operations (e.g., working on multiple repositories from a central config repo).
Current Behavior
Every Bash command that executes outside the project directory produces this message in the output, regardless of user preference.
Requested Enhancement
Add a setting to suppress these informational messages while preserving the underlying reset behavior. Options could include:
- Environment variable:
CLAUDE_BASH_QUIET_CWD=1 - Or settings.json option:
"bashQuietCwdReset": true
Rationale
- The reset behavior itself is correct and useful
- The message is informational but not actionable by the user
- Users who understand the shell model don't need this reminder on every command
- Reduces output noise and improves readability of command results
Environment
- Claude Code version: 1.0.33
- Platform: Linux (Ubuntu)
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗