The Giants have agreed to a three-year deal with Jeremy Affeldt, according to a person familiar with the negotiations.

It had previously been reported that the value of the deal might be around $18 million, but nothing has been confirmed.

Affeldt, 33, went 1-2 with a 2.70 ERA in 67 appearances covering 63 1-3 innings this season for the World Series champions.