This Viewpoint discusses closed-loop invasive neuromodulation treatment for neurological or psychiatric disorders resistant to conventional therapy.