These results indicated that TBX21, PRF1, and GNLY might be key molecules that regulate the function of CD8+ TSCM cells in the context of depression. Here, GNLY is linked to depressive symptom measurement.