The reliable countermeasure is "stop using LLMs, and build reliable software instead".
https://simonwillison.net/2025/Apr/11/camel/
Is the CaMel paper's idea implemented in some available agents?