The machines are doing everything they can to snuff out the human threat to their future. The human resistance movement are fighting them at their own game, sending back agents to the present to safeguard their future leader. The vicious war slashes back and forth across time with ever more advanced Terminator units thrown into the fray.
S.M. Stirling is the author of a number of well-regarded military SF novels.