Quantum science and technology devices exploiting collective spins in thermal gases are extremely appealing due to their simplicity and robustness. This comes at the cost of dealing with the random thermal motion of the atoms which is usually an uncontrolled source of decoherence and noise. There are however conditions, for example, when diffusing in a buffer gas, where thermal atoms can occupy a discrete set of stable spatial modes. Diffusive modes can be extended or localized, have different magnetic properties depending on boundary conditions, and can react differently to external perturbations. Here, we selectively excite, manipulate, and interrogate the longest-lived of these modes by using laser light. In particular, we identify the conditions for the generation of modes that are exceptionally resilient to detrimental effects such as light induced frequency shifts and power-broadening, which are often the dominant sources of systematic errors in atomic magnetometers and comagnetometers. Moreover, we show that the presence of spatial inhomogeneities in the pump introduces a coupling that leads to a coherent exchange of excitation between the two longest-lived modes. Our results demonstrate that systematic engineering of the multi-mode nature of diffusive gases has great potential for improving the performance of quantum sensors based on alkali-metal thermal vapors, and opens new perspectives for quantum information applications. Published by the American Physical Society 2024