The Red Sox have agreed to trade veteran pitcher Jake Peavy to the Giants for a pair of pitching prospects, sources confirmed to ESPN. 

Boston received prospects Edwin Escobar and Heath Embree in the trade, which has been approved by commissioner Bud Selig, a source told ESPN's Buster Olney.