We found that the spatial context of PD-1 and TIM-3 successfully predicted the overall survival of patients with colorectal cancer independent of tumor–node–metastasis stage. Here, HAVCR2 is linked to neoplasm.