As AI agents get smarter, they’re also getting wilier.