The D-backs have reached an agreement with Bob Melvin on a contract extension through the 2010 season, a source with knowledge of the negotiations told MLB.com. An announcement is expected within the next few days.