Distinct profiles of proliferating CD8+/TCF1+ T cells and CD163+/PD-L1+ macrophages predict risk of relapse differently among treatment-naïve breast cancer subtypes. Here, TCF7 is linked to breast carcinoma.