GitLab CEO Bill Staples told his 2,580 employees on Monday that the company is cutting up to three layers of management and replacing much of what those managers did with AI agents. The restructuring also reorganizes R&D into roughly 60 smaller teams with end-to-end ownership. Employees find out by June 1 who still has a job. Shares fell 7% after hours.

Staples is calling the overhaul "Act 2." In a memo to employees and investors, he wrote that "software will be built by machines, directed by people" and that the developer platform market has moved from tens of dollars per user per month to hundreds, heading toward thousands. GitLab is also pulling out of up to 30% of the countries where it has small teams, with the final scope and financial impact coming on its June 2 earnings call.

What makes this worth watching is who GitLab actually is. This is the platform roughly 30 million developers use to manage and ship code. When the company that builds those tools looks at its own org chart and decides AI agents can handle the coordination work better than the managers doing it now, it says something about where every company using those tools is heading.

The restructuring follows a logic that's been quietly building across the industry. AI coding tools have made developers dramatically faster at writing code, but all that code still needs to be reviewed, merged, approved, and shipped. The bottleneck in software development has flipped from "we need more code" to "we can't govern the code we have fast enough." The people who sit in that middle layer, the reviewers and coordinators and approvers, are exactly who Staples is replacing with agents.

One of GitLab's new operating principles makes it explicit: "If an agent can do it, we automate it, and find things where our judgement or skill is essential."

Staples acknowledged in the memo that running the process openly "creates real uncertainty for our team over the next few weeks" but argued the outcome would be better for it. The company also opened a voluntary separation window for anyone who'd rather not wait around. GitLab said it plans to reinvest the majority of savings into growth and technology rather than handing them back to investors.

There's a fair question about whether moves like this are genuine restructuring or cost-cutting with an AI press release stapled on top. Sam Altman said in February that some companies are "AI washing" their layoffs, blaming the technology for cuts that would have happened regardless. The pattern has been hard to miss, with Coinbase, Atlassian, and Freshworks all flattening management in recent months. Staples' memo reads more like someone who believes the work has genuinely changed shape. IDC forecasts that by 2030, 70% of organizations will embed AI agents into DevOps pipelines, and a recent Harvard Business Review study found that 31% of company leaders are already putting AI agents on their org charts as "employees."

In the Valley

What sticks about this story is that GitLab's own product broke GitLab's own org chart. The company built AI tools that let developers generate code faster than its managers could review it, and Staples decided the answer was fewer managers, not slower tools. If that math holds inside the company that makes the platform, it holds for the companies running on it. The question for everyone reading this isn't really whether AI agents will eventually sit where your middle managers do. It's whether you'd rather figure that out on your own schedule or find out from a memo on a Monday morning.