The San Francisco Giants and left-hander Tyler Anderson agreed to a one-year deal Tuesday, a day after the club declined to tender him a contract and made him a free agent.