Cast AI's Laurent Gil on routing 95% of coding tokens to open-weight models, sandboxed agents, and measuring engineers by how long they can walk away.
Ask a software engineer which model should write a given function and they will reach for the best one on the market. Laurent Gil, president and co-founder of Cast AI, thinks that instinct is quietly expensive. His analogy: you own a Ferrari and a Toyota, and you are going grocery shopping. Everyone wants to drive the Ferrari. There is nowhere to put the produce.
I caught up with Laurent at AWS re:Invent in Las Vegas to talk about what happens when you take that decision away from humans entirely, and what it does to cost, to sovereignty, and to what being a software engineer even means.
Routing by task difficulty: most of the work goes down the cheap, high-volume lane; only the hard tasks reach the expensive models, and everything lands in the same production clusters.
An autonomous router between the prompt and the pull request #
Cast AI started six years ago. The product now covers the whole path from a prompt an engineer types, through the coding agent, the code review, and the pull request, to the workloads running at scale on Kubernetes clusters on AWS and other clouds. Gil calls that path a software factory, and the approach autonomous automation. You don't configure it; an agent configures it for you.
The piece that makes the economics work is a router. A product decomposes into many sessions, tasks, and observations, and the router picks the most efficient model for each one. Simple tasks go to DeepSeek, medium ones to models like Kimi or GLM, and only the genuinely hard tasks reach Anthropic or OpenAI. Left to themselves, Gil says, engineers send almost everything to Anthropic, because they know it is the best for the job.
He gave numbers for a customer with roughly 400 software engineers: 95% of the tokens that team produces now go to open-source, open-weight models, 4% to Anthropic, and 1% to OpenAI. His claim is that the output quality holds and the bill drops by a factor of three.
That is the kind of claim worth stress-testing against your own workload before you believe it. Routing quality depends entirely on how well the router classifies difficulty, and the failure mode is quiet: a task misfiled as easy produces plausible code that someone has to catch downstream. Gil's answer is that the review step is where the human stays, which is also where the rest of this conversation went.
Cost is why they sign #
I asked him to stack-rank the two reasons customers buy: the money, or the control over where inference happens. He didn't hesitate.
So, I'll tell you, cost is why they sign. Sovereignty is why they keep. That's how we see it.
The cost half is mechanical. With an open-weight model you are not paying for the model's IP, only for running it, whether on a serving provider like Fireworks or on-prem, which makes it a fraction of frontier-model pricing. That's the proof-of-concept moment, the side-by-side bill.
The sovereignty half is what keeps the contract. Open weights can run on GPUs you own, which matters most to the customers who can least afford to hand their best ideas to someone else's infrastructure. Gil's example is a bank whose proprietary credit decisioning is the asset: it is exactly the thing you don't want a frontier model to learn by accident, and frontier coding models run on GPUs the bank doesn't own, in locations it doesn't know. Sovereignty, in that framing, means the model runs inside your VPC, inside your cloud account, or on hardware you own or lease.
We hear the same requirement from a different direction. WorkOS handles SSO, SCIM, and authorization, and the hard questions from regulated customers sound identical: this medical system must never talk to the public internet, so how do we run air-gapped?
Gil has been circling this problem for most of his career. His first company did face recognition, running inference on GPUs in 2009, and was acquired by Google back when Google owned Motorola. By 2010 he was running detection on the phone's own GPU, fast enough to work, and heavy enough to flatten the battery in five minutes. The reason for doing it on the device was privacy: your phone should recognize your family, and nothing else should. He also remembers telling Jensen Huang he was using GPUs for inference, and Huang asking what he meant by inference, because at the time the word everyone used was machine learning. They built on CUDA 1.0 and its OpenCL equivalent, and his GTC talk about GPUs for machine learning drew twenty people.
The agent doesn't run on your laptop #
The second thing Gil says heads of engineering respond to has nothing to do with model choice. The coding agent runs in a sandbox by default rather than on a developer's machine, so it can't escape the box and you decide what goes into it. His summary of the pitch to an engineering leader is a governed environment where access control is the starting point.
That moves the trust boundary somewhere useful. A laptop accumulates years of credentials and customer data, and an agent running there inherits all of it by default. Move execution into a sandbox and what matters is only what you explicitly granted. That is an identity and authorization question, and it belongs to whoever owns your permissions model rather than to whoever manages your endpoints.
Nobody there is reading code #
The claim that made me sit up: Gil doesn't believe Cast AI has a single software engineer who still reads code. They read the review, what the agent reports about the quality of the code, and decide whether it goes to production. The company stopped using code completion in January.
Engineers still have to understand how code works, he says, because otherwise you can't write a prompt precise enough to get what you need; the time goes into architecture and into describing the system.
The obvious objection is that this collapses two different jobs. Reading a diff is how you catch the thing the author didn't know they got wrong, and an agent's self-report on its own output is not an independent check. Gil's position is that the review is the control point and the review is where humans stay. Either way, that one step inherits all the authority that used to be spread across a codebase and a team, which makes who can approve what, in which repository, a much sharper question than it was when a human read every line.
Measuring how long you can walk away #
Cast AI's productivity metric is unusual enough to steal. They measure the interval between human interventions: from the moment you submit the prompt, how long until the agent hits a question it cannot proceed without.
And we consider a very, very good software engineer is having two hours to three hours interval which in prompt and question. And we are measuring this and we are taking this as a KPI for productivity of software developers.
Most engineers start around 20 to 30 minutes. Cast AI's best are hitting two hours. What two hours buys is a real context switch: start something else, come back when the agent needs you.
It also changes how prompt quality gets judged. The metric rewards the prompt that front-loaded enough context that the agent never had to come back and ask.
Once a month versus every second #
The same argument runs through the Kubernetes side of the business, where Cast AI's agents operate clusters for airlines, banks, and a stock market.
Humans were doing this maybe once a month. So what do they do as humans once a month? They vastly over provision. You don't know what the stock market is going to be today. You multiply by three X
An agent that reassesses every second doesn't have to predict. It needs about 1.05x.
Provisioning for a forecast versus provisioning for the current second: the empty space in the left panel is the bill.
Gil draws a clean line between the two regimes. Automation is policies: if this, then that. Autonomous is an agent that writes the policies for you, and autonomous automation is an engine that sets the policies it believes are best and re-examines them every second.
He is also firm that none of this is about removing people. The agents are doing work humans were never going to do anyway. Nobody was ever going to right-size a cluster every second.
Twenty thousand interns #
My favorite thing he said is what he tells DevOps teams: you have five people today, and soon it will feel like twenty thousand. Like twenty thousand interns you have to tell what to do, how to behave, and what the company's values are.
He practices it on himself. He doesn't read Slack anymore; an agent built on Cast AI's own technology reads it and tells him each morning at 9am what he missed and what matters. And he has a theory about the people who complain the loudest: if you are frustrated with AI, if you can see its limits, you are at the top of the pyramid and doing your job as a human.
I asked for one line of advice for someone starting a company right now. He said: go on holiday. He has watched engineers sleep two hours a night because they are obsessed with this, and he thinks the pace is the thing to be careful about.
So remember one thing, the agents are helping us. We are not, it's not the other way around.
That line lands because interns need onboarding, scoped permissions, and someone accountable for what they touch. It is the same work we do at WorkOS for human employees through SSO, directory sync, and fine-grained authorization. The open question Gil leaves behind is what that machinery has to look like when the headcount it governs is twenty thousand agents instead of five engineers.