Remix.run Logo
esperent 16 hours ago

You can use the /hookify plugin to add hooks for preventing dangerous commands like this.

Gazoche 16 hours ago | parent [-]

https://github.com/anthropics/claude-code/tree/main/plugins/...

So it's basically adding "don't delete my files pretty please" to the prompt?

EDIT: I misread, the natural language description of the rule is just a shortcut to generate the actual rule which is based on regexp patterns.

Still, it only protects you against very specific commands. Won't help you if the LLM decides to fill your disk with `cat /dev/urandom > foo` for example.

simianwords 16 hours ago | parent [-]

it may not protect against an adversarial llm