[BUG] claude generates empty setting files without asking
Resolved 💬 2 comments Opened Jan 26, 2026 by garasubo Closed Jan 26, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When I ask Claude code to execute something, it automatically generates several setting empty files like .bashrc. This behavior happens even if I disable auto edit.
Here is file names claude code generates:
- .bash_profile
- .bashrc
- .gitconfig
- .mcp.json
- .profile
- .ripgreprc
- .zprofile
- .zshrc
What Should Happen?
It should not generate empty files without asking
Error Messages/Logs
Steps to Reproduce
- launch claude code
- ask something (e.g.
/initor general prompt like "please write a code to do something") - after the execution, empty setting files appear
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.19 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗