The C. elegans CDK8 Mediator module regulates axon guidance decisions in the ventral nerve cord and during dorsal axon navigation.