Mechanistic insights into how collective effects mediate the T cell response