Autonomous agents will help researchers find better ways to recover critical metals from lithium-ion battery waste.