[BUG] tmpclaude-*-cwd files being created in the working directory

Resolved 💬 3 comments Opened Jan 14, 2026 by NovusTechnologyNet Closed Feb 27, 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?

tmpclaude-*-cwd files appear during active Claude Code sessions (created when I run bash commands). They keep coming back after deletion

What Should Happen?

These files shouldnt be created

Error Messages/Logs

● Done. Added tmpclaude-*-cwd and nul to .gitignore. They'll still appear during active Claude Code sessions (created when I run bash commands), but git will ignore them now. You can delete any remaining ones after the session ends - they won't come back once you close Claude Code.

✻ Cogitated for 31s

> you never made these tmp files in the past

● You're right, that's not normal behavior. Something is off with this session or Claude Code's configuration. Those files shouldn't be getting created at all during normal operation.

  I'd suggest reporting this as a bug at https://github.com/anthropics/claude-code/issues - the tmpclaude-*-cwd files being created in the working directory is definitely not expected behavior.

  For now you can remove them and the gitignore entries I added:

Steps to Reproduce

run claude

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Code version 2.1.7

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗