Right-hander Lucas Giolito and the Boston Red Sox are in agreement on a two-year, $38.5 million contract, sources told ESPN, locking up the innings-eating veteran as the starting pitching market begins to move.

The deal includes an opt-out after the first season and includes innings-based performance bonuses that can bring the total value to $40.5 million.