tmpclaude-*-cwd temporary files not cleaned up after Bash command execution
Resolved 💬 1 comment Opened Jan 13, 2026 by SYUNTA99 Closed Jan 13, 2026
Description
When Claude Code executes Bash commands, it creates temporary files named tmpclaude-XXXX-cwd in the current working directory. These files are not cleaned up after command execution, resulting in accumulation of orphaned temp files.
Steps to Reproduce
- Open Claude Code in any directory
- Execute any Bash command (e.g.,
echo "test") - Check the working directory for
tmpclaude-*-cwdfiles
Expected Behavior
Temporary files should be automatically cleaned up after Bash command execution.
Actual Behavior
Files like tmpclaude-1605-cwd, tmpclaude-17e3-cwd, etc. remain in the working directory. Each Bash command execution creates a new file.
File contents example:
/c/Users/username/Desktop/project
Environment
- OS: Windows 11
- Shell: Git Bash (MINGW64)
- Claude Code: Latest version
Workaround
Add tmpclaude* to .gitignore and manually delete files:
del /q tmpclaude-*-cwd
or
rm -f tmpclaude-*-cwdThis issue has 1 comment on GitHub. Read the full discussion on GitHub ↗