[BUG] tmpclaude-*-cwd files

Resolved 💬 2 comments Opened Jan 14, 2026 by proferit Closed Jan 14, 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?

For the past few days, Claude Code has been creating files in various directories (not just the working directory) whose names follow the pattern tmpclaude-<dynamic>-cwd and whose content consists of a single line containing the directory name in a strange notation. This is problematic, especially as these files are accumulating.

What Should Happen?

These files should no longer be created or should be deleted automatically by Claude Code.

Error Messages/Logs

Steps to Reproduce

  1. Start Claude Code (I used a Windows machine)
  2. Give Claude Code a task that involves searching directories.
  3. Monitor the directories and look out for files with the naming scheme.

--> You will find such files.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.6

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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