miniblog.

← Back to all posts
14
One subtle behaviour of Claude that wasn't obvious to me: whilst each conversation is transient, permissions persist across conversations. So if you've given permission to run e.g. 'cargo test' or even 'cargo run', you need to be sure that all future invocations are safe too. You can see the current permissions with /permissions.

4 Comments

@wilfredh but it’s just cargo test in that same repo — not any invocation to cargo test anywhere
@mattbrowndev Sure, but sometimes my tests have side effects, especially e2e tests. I'm particularly cautious when I'm working on my interpreter: running its tests is pretty much arbitrary code which the LLM has just modified!
@wilfredh I would be impressed if you could turn that into something exploitable though
@mattbrowndev Fair point, although possibly my risk tolerance is low. In my defence, I was writing filesystem functions for my standard library, and a bad test or a bad implementation could definitely cause problems!