There are benefits to your cybersecurity and your team when using automated tests. That does not invalidate human-led pen testing.
An AI agent reads its own source code, forms a hypothesis for improvement (such as changing a learning rate or an architecture depth), modifies the code, runs the experiment, and evaluates the results ...