A customizable synthetic active matter system using holographic optical traps can replicate complex biological swarm behaviors like flocking and schooling. Findings unlock key principles governing emergent order in groups, enabling creation of ultra-responsive collective micro- and nanorobotic systems.