There are different types of regulation.
Regulation by T-cell membrane molecules
Activation of T cells by APCs. Balance between positive (CD28) and negative (CTLA-4) second signals.
What matters in the activation of a lymphocyte is what happens at the immunological synapse. If a T cell recognises the antigen alone, in the absence of costimulation, it is not activated. It needs an antigen-presenting cell that displays the antigen on MHC class I or II molecules, together with costimulatory signals located on the cell membrane.
The molecule that stimulates T cells is CD28, which interacts with CD80/86 (B7.1/B7.2) on the APC membrane. This interaction promotes activation and the starting up of the mechanisms of cell proliferation.

A few hours after being activated, the lymphocyte begins to remove CD28 from its membrane and starts to express CTLA4, an inhibitory molecule that has the same ligands as CD28 but with much higher affinity. That is, CTLA4 begins to be synthesised at the moment the lymphocyte is activated and competes with CD28, whose expression begins to fall. The lymphocyte is thus activated and then switched off. If the pathogen persists, new lymphocytes are activated, but the activated ones have a short life (CTLA4 appears 24 hours after the cell is activated).

Differentiation of CD4+ T cells
Polarising cytokines and master transcription factors (they induce the expression of different effector cytokines). Cross-regulation.

Action of cytokines on cell differentiation
In the absence of infection, TGFβ and IL10 are present in the environment. TGFβ acts on T cells and IL10 acts on APCs, reducing the expression of MHC class II. They therefore have a net inhibitory effect on all cells.
Each cell produces a cytokine with an inhibitory effect on the others: they inhibit the proliferation and the synthesis of other cytokines that have the opposite effect to the one that cell has. For example, if a Th1 cell is activated, it will release cytokines (IL12) that inhibit Th2 cells.
These are not all-or-nothing responses: one of them will prevail, and that one will determine which response takes priority.
