The Wildcats climbed above the Vikings on scoring difference after a hard-earned win at the Stobart Stadium. Wakefield have now won the last five meetings between the clubs, and Agar was delighted with his players' efforts.
"Paul Aiton was a constant threat from dummy half and pound for pound is a tremendous player," the coach said.
"If being left out of the Exiles squad gives us an extra focus, that's good for us. Danny Kirmond did a terrific job on Gareth Hock, who is a devastating and destructive forward.
"Rhys Hanbury and Kevin Brown give them an enormous threat down the right side but we handled them well. Oliver Wilkes' try was special and he has kept that speed hidden for a while.
"A couple of decisions went for us but we have been on the wrong end of a few this season and they level out. We will take this one. Widnes have an impressive home record, but we did a lot of things right."
The result lifted Wakefield, who had led 16-12 at half-time, up to 10th in the standings and boosted their play-off hopes.
Both teams scored five tries, the hosts' last touchdown through Phil Joseph coming after the final hooter to give the scoreline a tighter look.
Widnes boss Denis Betts said: "Some crucial calls went against us and it was a dubious penalty against Ben Cross which made it 28-20.
"But they handled our pressure really well and we weren't smart enough. We have to learn to be tougher. The scoreline did not flatter us and I can't fault our effort."
- Sports & Recreation
- Paul Aiton
- Danny Kirmond
- Gareth Hock