Are there classic Commentators who took a non-Aggadic view of Biblical characters?
There are certain people mentioned in Tanach who look one way according to a simple reading of the "Biblical text," and another way when viewed according to the derashos of Chazal.
For example, Shimshon Hagibor. A simple reading of the text would lead one to think that he was a great fighter, but not much a tzaddik, whereas Chazal saw him as a tzaddik.
Another example is Avraham Avinu. Chazal say that he fulfilled all the mitzvos, that he came to believe in Hashem on the basis of his own understanding, that he taught the world to believe in G-d. Many sources depict him as the pillar of chesed. Yet, all this is pretty scarce based on a simple reading of the Biblical text.
Are there some classical Commentators who viewed such characters in a way that is close to the Biblical text, or did all of them view these characters as they are depicted in the Midrashim and Aggados of Chazal? How did the Rambam view Biblical characters such as Avraham Avinu?