I agree with the people above, but there are some things, like "plans," where all 3 prepositions are OK, but have different meanings.
I agreed with that plan= I thought that that plan was a good plan with correct ideas.
I agreed to that plan= I agreed to follow that plan=I said, "I will follow and comply with that plan"
Bob and I agreed on that plan= the plan was the final result of our negotiations.
"My company was trying to decide between Plan A and Plan B. I agreed with plan A: I thought it was a much better idea. However, my boss and the board of directors agreed on plan B, so now I have to agree to follow plan B, even though I think it's stupid."