A
system for cardiac electrical stimulation therapy includes an implantable
pulse generator, one or more leads extending from the implantable
pulse generator to the heart for applying cardiac electrical stimulation, and a controller programmed with at least one therapy program for applying the cardiac electrical stimulation, the controller configured to automatically update the therapy program in response to actual
cardiac activity by updating one or more parameters including a time period for applying cardiac electrical stimulation, a cardiac electrical
stimulation rate, an amount of energy delivered per cardiac electrical stimulation.