The Mediator kinase module regulates T cell effector function, and its genetic or chemical inhibition enhances T cell potency.