Brain-computer interfaces (BCIs) and optical imaging have both undergone impressive technological growth in recent years. A study in which mice learn to modulate neural activity merges these technologies to investigate the neural basis of BCI learning with unprecedented spatial detail.