Cloudflare’s Small Models Cut CI Triage Time and Cost
Cloudflare’s early bet on small AI models appeared to falter as models grew from billions to trillions of parameters, prompting the company to focus on serving larger ones. Michelle Chen, group product manager for Workers AI, argues that fast decision and extraction models have made the original case for proximity relevant again—and led Cloudflare to train its own. In a CI-triage demonstration, she showed how those models could narrow tools and distill logs before a large model responds, reducing latency, cost and token use.

The edge bet looked wrong until small models returned
Cloudflare’s original bet on small AI models looked wrong before it became useful. When the company launched Workers AI in 2023, it expected models to shrink and network latency to matter more. Instead, the open-weight models Michelle Chen cited grew from 7 billion parameters to 2.8 trillion. Cloudflare adapted by serving large models. Later, a different class of fast decision models made proximity relevant again—and prompted the company to train models of its own.
Michelle Chen describes that shift as the reason Cloudflare became a “neolab.” The company had built a distributed network, developer compute and storage, and a way to serve large models. What it lacked was a kind of model suited to its infrastructure.
Cloudflare began as a content delivery network: it sits between a user and an origin server, caching and protecting content so requests can be handled nearer to the person making them. That work required data centers around the world rather than compute concentrated in a few large regions. Chen’s account of the company’s development follows from that starting point: once those computers were distributed close to users, Cloudflare asked what else developers might want to run on them.
The company later made those computers available to developers. Workers, launched in 2017, let code run on demand and stop afterward; Chen contrasted this with renting a whole virtual machine, whether or not it is in use. Durable Objects added stateful compute, and Cloudflare introduced containers in 2025 for workloads that need something more like a virtual machine. Storage products including KV, R2 and D1 extended the platform toward full-stack applications.
When Cloudflare added GPUs to its network through Workers AI in 2023, the initial idea was to serve small models close to users. Chen said the company expected models to improve while getting smaller, increasing the importance of latency between a user and the compute. The model trend went the other way. She pointed to open-weight models growing from 7 billion parameters to 2.8 trillion, connecting that growth to efforts to make models more generalizable by training on more data and increasing their scale. As models grew, Cloudflare’s original case for edge inference seemed less relevant.
The company adapted by serving larger models. In March 2026, it began hosting Kimi, followed by GLM and DeepSeek, through a serverless API. Chen said the move took time to decide: serving giant models did not fit the original infrastructure story, but it did fit the developer platform. Agents could run on Cloudflare compute, use its storage and call models hosted there.
That made an “agent cloud” a plausible direction, but Chen said something still felt missing. The infrastructure pattern did not fully fit the way Workers AI had been designed. She described the company’s position with a Chinese proverb: “Everything is ready. All that’s missing is the east wind.” The useful response, she said, was to be ready to react when the missing piece appeared.
Clef decides; Cleric turns unstructured input into values
In Chen’s account, the shift came in September 2026, when Typeface launched Jev and introduced the idea of System One models. She contrasted these with autoregressive large language models, which generate tokens one at a time. A System One model, in her description, takes one forward pass over its inputs and produces an output for a decision.
That difference suits tasks such as deciding whether a request is urgent or choosing which team should handle it. Chen argued that sending every such task to a large language model can mean more time and cost than the task warrants. Her proposed division of labor is that small, fast models decide, classify and extract, while large models handle writing, reasoning and planning. The models are meant to complement one another, not to replace large models across the board.
This was where Cloudflare’s earlier bet on proximity became relevant again. With small, fast models, Chen said, network latency matters: the model needs to respond quickly, and the connection to it needs to be faster still. Jev itself was closed source, however, so Cloudflare could not host it on its own infrastructure.
Cloudflare began experimenting with its own version three days after Jev launched. Chen said the team spent about a week deciding whether to enter unfamiliar territory, then trained a model over a 48-hour weekend and shipped it the following week. The result was Clef. As Chen put it, Cloudflare “was not wrong here, we actually were just early.”
Clef is intended to let an agent make decisions in code without waiting for a large model to reason through each one or interrupting a person for routine intervention. In the API example Chen showed, a developer supplies a state—such as a checkout failing for every customer—and asks typed questions, including whether the situation is urgent and which team should handle it. The model returns answers for those specified choices. The presentation identified Clef as open-weight and licensed under Apache 2.0.
A comparison shown in the presentation put Clef at 0.29 seconds against 6.06 seconds for GLM-5.3 on the same decision, describing Clef as 20 times faster and 83% cheaper per million input tokens, with no output charge. Chen framed the benefit as taking routine decision work off large models so they can be used for tasks that need them.
Not every agent task has a fixed list of answers. An agent might need an invoice total, a date or an identifier from an email or message. Cloudflare’s response was Cleric, which Chen described as an extraction model. She said the company launched four models in three weeks, including Cleric three weeks after Clef.
Cleric is designed to take inputs such as email, messages or images and extract, compute, estimate or forecast typed values. In the example shown, a developer specified an invoice number, a due date and a total; Cleric returned values matching the requested types, or null, with a confidence score. The distinction is practical: Clef selects among defined possibilities, while Cleric reads less structured material and returns a value in the requested form. Together, they let an agent make a decision and supply the information that decision depends on without asking a large model to generate a long answer at every step.
Chen said these models filled the gap in Cloudflare’s agent-cloud story. The company could run agents on its compute, connect them to storage and hosted large models, and use its own smaller models for decision and extraction tasks. Becoming a neolab, she argued, also meant being able to create what the company needed rather than relying entirely on models made available by others.
Tool pruning and log extraction change what the large model sees
Chen demonstrated the approach with an agent asked to triage a failed CI build: “CI is red on PR #4182. Why did it fail, and should I rerun it or fix the code?” The setup included 40 tools—GitHub, CI, issues, deploys and logs—and a pull request with two red jobs, one caused by a real bug and one by a flaky test.
In the all-LLM flow, a large model drives the tool calls, receives each result and decides what to do next. Chen’s diagram showed five round trips to GLM-5.3, 40 tool schemas sent on every turn and about 8,000 tokens of raw logs in context. The model must repeatedly receive the available tools and the results returned by earlier calls before choosing the next step.
The System One version changes the sequence before the large model is asked to answer. Clef-Flash first narrows the available tools from 40 to 10, so the later model call does not need to consider every tool. Cleric extracts the needed arguments, such as the PR number, from the request. Code then makes the selected API calls. When those calls return logs, Cleric reads them and extracts the relevant details—the error, its message and affected lines—instead of passing hundreds of lines of raw logs into the large model. The large model receives this structured context for its final response.
The point is not simply to make the first operations faster. The sequence reduces what the large model has to process and how often it is called: Clef helps narrow the choices, Cleric supplies typed inputs and distills tool results, and code handles the API calls. The large model remains in the workflow, but its work is concentrated at the end.
The live demonstration showed the System One path finishing first. In that run, the all-LLM version took 24.9 seconds and cost $0.0189, with five LLM calls; the System One-first version took 8.1 seconds and cost $0.0064, with one call. Chen said both reached the answer and described the answer quality as unaffected in this example.
She also presented a separate comparison run, conducted outside the conference Wi-Fi conditions. Its figures were different from the live run:
| Run | All-LLM | System One first, LLM last |
|---|---|---|
| Live demonstration | 24.9 seconds; $0.0189; 5 LLM calls | 8.1 seconds; $0.0064; 1 LLM call |
| Separate comparison shown on slide | 17.2 seconds; $0.0215; 5 LLM calls; 31k LLM tokens | 9.2 seconds; $0.0060; 1 LLM call; 1.9k LLM tokens |
For the separate comparison, the slide summarized the System One path as 1.9 times faster, 72% cheaper and 94% fewer LLM tokens. Those figures belong to that comparison, not the live run. Chen presented the example as a way to use System One and System Two models in tandem, not as a claim that smaller models should replace large ones. Her argument was that trimming tool choices and compressing raw logs can free time and compute for other work, while allowing more concurrent tasks.
The useful unit of work is not always a generated answer
Chen listed other uses people were building with Clef and Cleric. Clef can help block unsafe tool calls, flag changes in agent behavior, score suspicious signups, classify code changes or route searches. Cleric can extract names, prices, dates and specifications from web pages, or pull IDs, deadlines and other fields from operations tickets and support claims. Chen noted that low-confidence outputs in some workflows could be sent to a human.
The examples follow the same division as the CI demonstration. When the possible outcomes can be listed, a decision model can select among them; when the input is unstructured and the needed output is a typed value, an extraction model can read and return it. A large model can still handle the work that calls for writing, reasoning or planning. The proposal is to use each kind of model where Chen says it fits, rather than treating every task as a request for a long generated response.
