using leonardo to upload sketches to atmega168/328

But even without the automatic reset, if I try it manually, it only shows me a bunch of sdk-failed errors.

My guess is that you have serial buffer overruns. Follow the link above and have look at the fixes proposed in "ArduinoISP on the Leonardo"