[BUG] claude cli insists on writing /tmp/claude-1000

Open 💬 0 comments Opened Jul 8, 2026 by shakeyourbunny

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?

Claude CLI code is hard coded in the harness of writing to /tmp/claude-1000, even it is prompted NOT TO USE THAT.

That is a major bug of the harness, overriding any security precautions to be taken, as this can be exploited and rerouted to something else.

Also the Claude AI should not be forced to write there with the bash tool.

What Should Happen?

Remove the hard coded, introduced write to /tmp/claude-1000 from the harness.

That is harmfull.

Error Messages/Logs

Bash(cat ~/Projects/augrudottir/augrudottir-dosbox-automation/resources/webserver/ope
napi.json | python3 -c "import json,sys; json.load(sys.stdin); print('valid')")
⎿  Error: EACCES: permission denied, mkdir '/tmp/claude-1000/-home-pulaski-Projects-a
ugrudottir/98c51c23-f5d6-4d82-8585-930084d17da2/tasks'

Steps to Reproduce

Bash(cat ~/Projects/augrudottir/augrudottir-dosbox-automation/resources/webserver/ope
napi.json | python3 -c "import json,sys; json.load(sys.stdin); print('valid')")
⎿  Error: EACCES: permission denied, mkdir '/tmp/claude-1000/-home-pulaski-Projects-a
ugrudottir/98c51c23-f5d6-4d82-8585-930084d17da2/tasks'

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.204

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗