Maintaining their strategy of trying to retain the core of their pitching staff, the Giants announced Monday night that right-hander Santiago Casilla had agreed to a three-year contract, pending a physical examination.