GitLab is undergoing a significant restructuring, including layoffs, to adapt to the 'agentic era' of software engineering.