Recently read a news story of how an AI agent was granted production access and it turned to delete the entire database of a project
This unfortunate occurrence pinpoints a major lesson never to give Production Access to an AI agent, a first level access is usually recommended being Inter level or PPE (Pre Production Environment), this is safe because you code and test in PPE and this is where your AI agent write access should stop, the code is only shipped to production after the code is functional as intended
Yes, AI assisting coding is great but they're risks as well.