In tumor-specific CD8+ T cells, KLF4 enhances effector function by regulating the expression of AP-1 family factors, such as c-Jun, thereby counteracting terminal exhaustion. Here, KLF4 is linked to neoplasm.