Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/We tried replacing our agents decision step with a model 50 times faster it got
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

We tried replacing our agent's decision step with a model 50 times faster. It got slower.

Source: RudderStack•November 23, 2026 at 12:07 PM

We tried replacing our agent's decision step with a model 50 times faster. It got slower.

We ran a decision model 50 times faster than our LLM in shadow for a month. Decisions got slower and 7% more expensive because most of the cost is the model reading context and tool results, not writing the answer.

We put a model which answers in under 0.1 seconds into the step where our agent decides. The typical decision got slower, 7.2 seconds against 4.5, and cost about 7% more.

The model is Jev, from TypeSafe. It answers yes/no questions with a probability, and it did what it promised.

The thing is, our agent does not only answer the question. It also calls tools to gather the evidence, and Jev cannot do that. Something still has to do that work, and for us it cost about as much as the model we wanted to replace.

We ran this in shadow, behind the scenes, for a month. It sent nothing.

What is RudderCrew?

RudderCrew is an Agentic Marketing engine for GTM teams. For each customer, it decides the next step from what they actually did (send a message, wait, or hand off to your team) and shows why.

Let us say someone from a mid-size software company visits your pricing page twice. A go-to-market agent can send them a LinkedIn message, alert the account owner on Slack, or do nothing.

First it has to look things up, i.e. is the company a good fit, is it already a customer, has anyone contacted this person recently. Then it answers one yes/no question per option.

The company fits and nobody has reached out, so it sends the LinkedIn message.

Gather and decide in one loop, or in two steps?

Should an agent gather evidence and choose in one model loop, or in two steps?

We started with one loop since it was the simplest thing to build. This experiment was the first time we compared it with two steps.

Illustrative example: the same lookups, with extra work in two steps

  • One loop does both jobs for one bill. The model looks things up while forming its answer, so it can focus on the option it is leaning towards. Today's agent makes 1.47 model calls per decision.
  • Two steps pay for the gathering first. Our evidence step was told every condition and had to settle all of them. That took 1.91 model calls and cost about as much as today's whole agent. Whatever chooses next is added on top. With Jev, across about 9,600 real runs, the total was about 7% higher. In an offline test (56 runs, on GPT-6 Luna), using a second LLM to choose cost 45% more. The two tests used different models and data, so the numbers are not directly comparable.
  • Two steps give a cleaner view. The step which chooses sees only a short list of facts, and each of them can be checked. That exposed a mistake today's agent kept making, we will come back to it.

Why Jev looked right

Jev is a decision model. We give it a state and a set of questions, and it returns probabilities instead of text, in a single request.

Jev's input price is about a fifth of the LLM's uncached input price, and one answer is roughly 50 times faster. The last row is the catch.

Jev does not run a loop or call tools, so it cannot fetch a person's plan or check for an open ticket. Everything it judges must already be in the request, within 32,000 tokens by default for the state plus any one question. So something else has to gather the evidence first.

Jev is not alone in this category. OpenAI's Decisions API, which runs on GPT-6 Luna, is one example. We have not tested it.

What we ran

We pulled the gathering out into its own step. The shadow version had three steps:

  • The evidence step gathers the facts. It is an LLM with the agent's read-only tools. It rates nothing and chooses nothing.
  • Jev scores how well those facts answer each question the agent has about the person, e.g. "is this a good-fit customer?"
  • With those scores in hand, Jev scores each option's condition. The first option at 0.5 or more wins, unless one of the agent's rules blocks the message. If no option reaches 0.5, the agent takes no action.

Today's agent beside the three-step shadow version

It ran next to the real decision on our own accounts, about 10,000 times over a month. All the numbers below are from the roughly 9,600 runs where both versions finished.

What it cost

Jev was as cheap as promised, its two requests came to $0.00015 per decision.

The evidence step was not. It cost about as much as the whole of today's agent.

Reading is every input token the model is billed for, including prompt cache reads and writes. Writing is everything it generates, i.e. its tool requests, any reasoning and the final output.

Cost per decision, split into reading, writing and Jev

About three-quarters of what a decision costs is the model reading, i.e. the prompt, the person's history and tool results. The final answer is about a fifth at most.

Jev made that answer free, but the evidence step still had to write out its facts, which cost nearly as much. We pay for the loop around the answer. The model re-reads the context and every tool result on each call, and writes out each lookup it makes and the facts it found.

The typical decision was about 60% slower, and the shadow version was slower in 81% of decisions. Almost all of that time is the evidence step, Jev's final round took 0.07 seconds. The slowest decisions take about the same in both.

A side finding

The evidence step caught a mistake in our own prompt.

The agent's prompt carries two lists: the person's most recent events, and the last few decisions we made about them, each naming the event which triggered it.

An active person's page views can push an older event out of the first list, leaving it visible only in the second. Our agent sometimes read that as the event never having happened.

Illustrative example: the event is gone from recent events but still named in an earlier decision

We shipped a one-line fix telling the model that an earlier decision is evidence its event happened.

How far to trust this

The cost and speed results are the solid part. They come from real runs on our own accounts, and neither depends on where Jev's cutoff sits.

We cannot say whether Jev chose as well as today's agent. We did compare picks on a sample of 377 decisions. More than half of it is one internal test agent which almost always does nothing, so the agreement figure would flatter Jev. We are not publishing it.

We also used a single cutoff of 0.5, while TypeSafe's docs suggest starting at 0.7 for yes and 0.3 for no, and adjusting on your own data. Tuning would have made sense if the shadow version had been cheaper or faster. It was neither, and tuning cannot change that, so we stopped there.

As built, the shadow version also could not serve agents which must always take an action, since it chose no action whenever nothing reached 0.5.

What we learned

What we assumed: the model's answer was the expensive part of a decision.

What was true: about three-quarters of the cost is the model reading context and tool results. Jev made the final answer free, but the work around it stayed.

What we still do not know: whether a tuned Jev chooses as well as today's agent, and whether a separate evidence step can ever pay for itself.

What we are trying next:

  • Jev as a reviewer. Our agent's final check on each message already has all its evidence in the prompt, so it needs no lookups. We have built a version where Jev handles the clear passes and blocks and an LLM handles the rest. It looks promising on a small synthetic test, but we have not measured it on real traffic.
  • Reading less. Reading is most of the bill, so we want to gather evidence once when several agents react to the same event, and cut what each model call re-reads.
  • Other decision models, including OpenAI's Decisions API and an open-weights model.

Has anyone made a separate evidence gathering step pay for itself? We would like to hear how.

← All articles

What this article says

More in MarTech & AdTech

All →
We rebuilt Notebooks around executable cells
Posthog

We rebuilt Notebooks around executable cells

Key insights from Grow with Braze Bangkok 2026
Braze

Key insights from Grow with Braze Bangkok 2026

Integrations for Sales Team Growth
Activecampaign

Integrations for Sales Team Growth

We Miss You Emails: Examples and Templates
Activecampaign

We Miss You Emails: Examples and Templates

Reactivation Email: Win Back Contacts
Activecampaign

Reactivation Email: Win Back Contacts

Win-Back Email Subject Lines: 50 Examples
Activecampaign

Win-Back Email Subject Lines: 50 Examples

More from RudderStack

Project Artemis: How We Hunt Security Bugs in Our Own Code
RudderStack

Project Artemis: How We Hunt Security Bugs in Our Own Code

Introducing Lookout, analysis to audience in minutes with agents
RudderStack

Introducing Lookout, analysis to audience in minutes with agents

Locking down the third-party scripts your analytics SDK loads
RudderStack

Locking down the third-party scripts your analytics SDK loads

We're open-sourcing DevBox, our autonomous engineering harness
RudderStack

We're open-sourcing DevBox, our autonomous engineering harness

Five data problems we see at almost every company
RudderStack

Five data problems we see at almost every company

Introducing Rudder Lookout: From analysis to audience in minutes
RudderStack

Introducing Rudder Lookout: From analysis to audience in minutes