The Red Sox agreed to a two-year, $14 million deal with Enrique Hernandez, sources confirmed to ESPN.