Left-hander Cole Hamels and the Philadelphia Phillies have agreed on a $15 million, one-year contract, avoiding arbitration.