Abstract
The pursuit of autonomous chemical transformations with single-bond precision represents a central challenge in molecular nanoscience. While scanning tunneling microscopy (STM) enables site-specific reactions by directly engaging individual atoms and bonds, conventional approaches rely on expert intervention and lack reproducibility and scalability. Here we introduce a deep learning-based strategy that autonomously executes multi-step, bond-selective transformations. Our system integrates computer vision for molecular recognition, neural networks for bond-state classification, and deep reinforcement learning for closed-loop optimization of activation parameters. As a proof of concept, we demonstrate the selective dissociation of C-Br bonds in a tetra-brominated porphyrin on Au(111). Importantly, the approach extends beyond single-bond events, enabling programmed multi-step sequences including four distinct pathways with high fidelity. By advancing from isolated, human-directed manipulations to fully autonomous, data-driven reaction control, this platform establishes a paradigm for intelligent single-molecule chemistry. It provides a generalizable framework for on-surface synthesis, where adaptive agents orchestrate molecular transformations with a level of precision and scalability unattainable by manual approaches.