SpatialAgent: An Autonomous AI Agent for Spatial Biology
Advances in AI are transforming scientific discovery, yet spatial biology, a field that deciphers the molecular organization within tissues, remains constrained by labor-intensive workflows. Here, we present SpatialAgent, an autonomous AI agent for spatial biology research. SpatialAgent couples large language models with a Plan-Act-Conclude architecture, dynamic tool and skill retrieval, multimodal interpretation, and verification modules that audit generated claims. It supports the full discovery loop, from gene-panel design and multimodal annotation to trajectory inference, cell-cell communication analysis, imputation, and hypothesis generation. Across human and mouse brain, heart, tonsil, colon, and prostate datasets, SpatialAgent outperformed established computational baselines and matched or surpassed expert scientists in key tasks. In open-ended case studies, it recovered known tissue organization and generated spatially grounded hypotheses. In a prospective mouse prostate cancer Xenium study, it designed a compact 100-gene add-on panel that profiled 4.2 million cells across 21 samples, improved cell-type and malignant-state prediction, and captured spatially structured tumor and microenvironment programs. SpatialAgent establishes a framework for autonomous and collaborative discovery in spatial biology.