• Two distinct states of CD8+ T cells were defined by clustering and associated with patient tumor regression or progression; • TCF7 was visualized within CD8+ T cells in fixed tumor samples and predicted positive clinical outcome. The gene discussed is TCF7; the disease is neoplasm.