Reflecting their efforts to strengthen their starting rotation, the Giants announced that they agreed to terms Monday with right-hander Tim Hudson on a two-year contract.