← sources

How safe is claude code?

source: reddit (reddit:ClaudeCode)published 2026-10-20 19:47ingested 2026-10-21 02:40

retained text

I'm a hobby programmer and just want to mess around with these new tools.  I'm worried about giving local access though.  How safe are the safe guards?  If I just give it a project directory like 'HelloWorld', what is stopping it from doing weird stuff to rest of my machine (on purpose or mistake)?  What if it does a `rm -rf /` instead of `rm -rf ./` ? 

I thought about running it in a VM, but want to try some game development and don't have a beefy enough VM to do that in yet.

document fetched 2026-10-21 00:39 · canonical https://reddit.com/r/ClaudeCode/comments/1xb26xx/how_safe_is_claude_code