Here's an example of how you need to keep LLMs harnessed and locked down with ac...
Troed Sångberg @troed@swecyb.com
Here's an example of how you need to keep LLMs harnessed and locked down with actual system-level constraints.
This is from Mistral Vibe, which has several "agents" where you can either allow the LLM to ask for permission to make edits, not be allowed to make any edits at all ("plan" mode) or auto-accept edits.
As you can see, the agentic harness in plan-mode is correctly disallowing the LLM from making search/replace in a file, as well as not letting it write to the file.
... what then follows is completely unprompted. The LLM "knows" all the different ways you can do stuff and will happily do so as well if the system doesn't protect against it.