In situ performance enhancement of solid lubricating materials are pivotal for the advancement of nuclear facilities. Here, we conducted in situ tribotests against 5.4 MeV Xe20+ ion irradiation for Ti-doped (MoST) and C/Ti co-doped (MoSCT) MoS2 films. The pristine MoST film outperformed MoSCT film but suffered severe degradation owing to irradiation-induced hardening of the amorphized MoS2 phase. Carbon co-doping effectively mitigated the hardening issue through irradiation-induced graphitization of the carbon phase, thereby enhancing the irradiation resistance of MoS2-based films. Both in situ and ex situ irradiation did not adversely affect the shearing-induced re-ordering of MoS2 basal planes, but they inhibit the graphitization and selective release of non-lubricative carbon phase, resulting in an increase in the film wear rate to 7.34 × 10−7 mm3/N·m.