San Diego manager Mike Shildt and the Padres have agreed to a two-year contract extension through the 2027 season.