He agrees to doing/do her work because she helped him earlier.
I agree to go/going there.
I agreed to leaving/leave home earlier.
In my opinion, gerunds shall be used after "to (preposition)" in the above sentences because it seems appropriate according to the rule of putting verb+ing after preposition. However, I am not sure if gerunds will be used in the above sentences because people don't say "I agree to going there". Is the usage of gerunds correct in the above sentences?