In summary, the combination of CLDN18.2-negative status with high levels of CD4 + T cells or CD8 + T cells predicts better prognosis in GC. Here, CD8A is linked to gastric cancer.