Dusty Baker, who retired from the Houston Astros after last season, will return to San Francisco as special adviser to baseball operations, the Giants announced Thursday.