top | item 47057410

(no title)

tiltowait | 13 days ago

Claude's willingness to poke outside of its present directory can definitely be a little worrying. Just the other day, it started trying to access my jails after I specifically told it not to.

discuss

order

e1g|13 days ago

On a Mac, I use built-in sandboxing to jail Claude (and every other agent) to $CWD so it doesn’t read/write anything it shouldn’t, doesn’t leak env, etc. This is done by dynamically generating access policies and I open sourced this at https://agent-safehouse.dev

nowahe|13 days ago

By any chance, do you know what Claude Code's sandbox feature uses under the hood and how that relates to your solution ? From what I remember it also uses the native MacOS sandbox framework, but I haven't looked too deep into it and don't trust it fully

danw1979|13 days ago

This is great !

Did you have any thoughts about how to restrict network access on macos too ?

teaearlgraycold|13 days ago

For the moment it’s best practice to run it and all of your dev stuff in a VM.