When I last bought a house, I had an agent to show me houses. Then when it came offer time, I actually had my lawyer do the final review and he essentially did the bulk of the negotiation, the agent was simply a mouth piece with access to the databases and someone the other agents would talk to. It was during the 2008 time and I placed a bid on a short sell, my lawyer gave me distinctly different advice than the agent did (a personal friend, no less) the seller made some demands that he wanted in the contract and the agent simply wasn't capable of giving sound advice about it. Probably saved me about $50,000.
The big problem is agents are incentivized to have sales in the market. If you sell your house for $100,000 vs $110,000 is could make a difference of months and they're paid nearly the same even though it's a pretty large difference to the seller. To many of the people "helping" you sell, it's better for you to take less money now than 10% more in 3 months. Nevermind the roles they helped play in the big 2008 crisis... And this is a profession that has a claimed "code of ethics"