Ideas from AI Engineer talks Curated by Alex Vidal (@dobleio) and Borja Pérez (@borjaperfra) 76 ideas · 101 talks · 5 events

The Engineering Brief

Small fast models can take tool selection and extraction out of the LLM loop

Michelle Chen of Cloudflare restructured a CI-triage agent so small single-pass models pick tools and extract fields, code makes the calls, and a large LLM is called once. In one live demo of that workflow, LLM tokens fell from about 40,000 to 1,800 with the same answer.

Michelle ChenCloudflareAIE CODE 20263 min read
Watch from 8:47

Recording by AI Engineer.

The idea

The speaker’s argument, in our words.

A typical agent loop sends every small decision through a large generative model: which tool to call, what argument to pass, which part of a log matters. Each round trip resends the tool definitions and the growing context. Chen argues that many of these steps are bounded (pick from a set, pull a typed value out of text) and can go to fast models that make one forward pass and return a decision or typed JSON, leaving the LLM for the step that needs open-ended reasoning.

Her demo triages a failed CI build with 40 available tools. The baseline LLM loop made several round trips, sending all 40 tool definitions each time. The restructured version used a decision model to prune the tools to 10, an extraction model to pull the PR number, plain code to call the APIs, the extraction model again to reduce hundreds of log lines to the error, its message and the affected lines, and one LLM call at the end. The models shown are Cloudflare's own and the numbers come from one workflow she calls illustrative, but the split itself can be tried with any classifier, small model or plain code.

What they found

From the talk. Figures are self-reported unless stated.
  • Baseline: an LLM agent triaging a failed CI build with 40 tools goes back and forth with the LLM about five times, sending all 40 tool definitions every time.

    Demo setup described by the speaker; the baseline LLM is not named here.

    Case study

    14:00
  • Restructured pipeline: a decision model prunes 40 tools to 10, an extraction model pulls values such as the PR number, code executes the API calls, the extraction model pulls the error, message and affected lines from 300 to 600 log lines, and the LLM is called once at the end.

    Uses Cloudflare's own decision and extraction models.

    Technical recommendation

    14:31
  • In the live run, both paths reached the same answer; the LLM-only path used six LLM calls and about 40,000 LLM tokens versus one call and about 1,800 tokens.

    Single live demo on conference Wi-Fi. The token figures are spoken only; the conference article mentions lower token use without numbers.

    Measured result

    16:34
  • An earlier run off conference Wi-Fi took 9.2 seconds versus 17.2 seconds, was 72% less expensive, went from five LLM calls to one, and used about 94% fewer tokens.

    Self-reported single run of the same workflow; she calls it illustrative. The 9.2 and 17.2 seconds also appear in the conference article.

    Measured result

    17:05

Why it matters

Our reading. Not said in the talk.

Agent cost and latency often come from repeated context rather than from the hard reasoning step. Cloudflare's token saving comes from one demonstration, so it is not an estimate for other agents; moving bounded steps out of the loop is an architecture change any team can try and measure on its own workflows, with or without specialised models.

What one could try

  • Instrument one agent workflow and label each LLM call as open-ended reasoning, a bounded choice or an extraction.
  • Try replacing the bounded steps with a classifier, a small model or deterministic code, and compare tokens, latency and final answers.
  • Pre-filter the tool list per request before handing it to the LLM.
  • Extract structured error fields from logs before sending them to the model.

Limitations

  • Vendor demonstrating its own new models on one workflow, in two runs; the token and cost savings describe that demonstration, not a general estimate.
  • The baseline needed six LLM calls in the live run and five in the earlier one.
  • Answer quality was judged on that one case; error rates of the decision and extraction steps were not reported.
  • Tool pruning can drop a tool the task needs; the talk does not address that failure mode.

Original sources

This is our synthesis of the talk, checked against the transcript at the linked moments.

Related ideas