You're absolutely right! I should not have `rm -rf /bin`d!
Terminal and Bash or any shell can do this, if the user sucks. I want Claude Code to be able to do anything and everything, that's why it's so powerful. Sure, I can also make it do bad stuff, but that's like any tool. We don't ban knives because sometimes they kill people, because they're useful.
Don't use an MCP server with permission (capability) to do more than you want, regardless of whether you think you're instructing the AI tool do the bad thing it's technically capable of.
Don't run AI tools with filesystem access outside of something like a container with only a specific whitelist of directory mounts.
Assume that the worst that could happen with the capability given will happen.
I use it in a container, so at worst it can delete my repository.
[1] Yes
[2] Yes, and allow this specific command for the rest of this session
[3] No
Claude is constantly searching through your files and approving every find command is annoying.
The problem is, find has a --exec flag that lets it run arbitrary bash commands. So now Claude can basically do anything it wants.
I have really been enjoying Claude in a container in yolo mode though. Seems like the main risk I am taking is data exfiltration since it will has unfettered access to the internet.