Described is an improved brain-machine interface including a neural interface and a controllable device in communication with the neural interface. The neural interface includes a neural device with one or more sensors for collecting signals of interest and one or more processors for conditioning the signals of interest, extracting salient neural features from and decoding the conditioned signals of interest, and generating a control command for the controllable device. The controllable device performs one or more operations according to the control command, and the neural device administers neuromodulation stimulation to reinforce operation of the controllable device.