Sacrificing potential income for job security, Giants infielder Joaquin Arias agreed to terms on a two-year deal Thursday, avoiding salary arbitration.