Add option to suppress 'Shell cwd was reset' messages

Resolved 💬 1 comment Opened Dec 8, 2025 by kitaekatt 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)

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗