Optimizing plasticity rules for learning in embodied agents leads to interpretable and adaptable behaviors.