Right-hander Junior Guerra has reached agreement with the Diamondbacks on a one-year contract, a source confirmed to ESPN.