Former Giants starting pitcher Johnny Cueto reportedly agreed to a contract with the Miami Marlins in free agency.