A cellular basis for mapping behavioural structureNeuroscience reveals how the brain encodes behavior structures to adapt flexibly in unfamiliar situations.