You can just remove the qubes-gui-agent from the template instead of installing OS from ISO and installing agents there:
qubes-gui-agent