The Giants locked up an underpublicized but important piece in their bullpen, agreeing to a three-year contract with right-hander Santiago Casilla Monday.