The Loop: How the Eval Factory brings continuous improvement to agents

Omri Cohen. The Loop: How the Eval Factory brings continuous improvement to agents
Omri Cohen
AI BACKEND DEVELOPER, KOMODOR
Dinor Nagar. The Loop: How the Eval Factory brings continuous improvement to agents
Dinor Nagar
AI ENGINEER & RESEARCHER, KOMODOR

Komodor Webinar — Recorded November 24, 2026

Speakers: Omri and Dinor , from the Komodor AI Engineering Group

Presented by Komodor AI optimization experts Omri Cohen (AI Backend Developer) and Dinor Nagar (AI Engineer & Researcher).

TL;DR: Breakdown

  • Focus: Scaling continuous AI agent optimization across production fleets to reduce costs, lower latency, and improve accuracy without silently degrading quality.

  • Core Concepts: The EvalFactory Loop combines four specialized components—Evaluator, Labeler, Insights Engine, and Coach—operating within user-defined budgets and guardrails across benchmarks, datasets, and live shadow runs.

  • Includes: A breakdown of why production agents become expensive, a deep dive into the end-to-end optimization architecture, a live demo of experiment setup and a real-world RCA agent case study, and a Q&A on overfitting and custom evaluations.

  • Wrap-up: The team highlights common optimization pitfalls (like judge drift and overfitting), shares resources including Komodor’s benchmarking site and free trial, and invites attendees to connect at AWS re:Invent.

Key Takeaways from the Webinar:

  • Production AI agents quickly become expensive due to using top-tier models for simple tasks, passing verbose prompts and context on every step, and burning tokens in retry loops at high volume.

  • True continuous improvement goes beyond prompt tweaking by allowing an automated loop to optimize models, tools, skills, knowledge bases, memory, and the agent harness within strict user-defined policies.

  • Human calibration is essential at the start of any optimization loop; experts should review the first 10 to 20 evaluator runs and keep the evaluator fixed throughout the experiment to prevent judge drift.

  • Testing changes safely requires matching the data source to the goal—using benchmarks for baseline comparisons, curated datasets for regression fixes, and parallel shadow runs to validate real-world production traffic and cost.

  • In a live production case study, running three automated optimization cycles (stepping down from Opus to Sonnet, then to Haiku, followed by a prompt refinement) cut per-run agent costs by 96% while keeping accuracy near 100%.

Webinar Transcript (edited for clarity)

Ilan (Host): Welcome everyone to today’s webinar, The Loop: How the EvalFactory Loop Brings Continuous Improvement to Agents. This is another installment in Komodor’s webinar series on agent optimization.

Today, we will cover why production agents get so expensive, how to scale improvement from a single agent to an entire fleet at production scale, how the loop works under the hood, and how to test that cheaper agents actually perform. We will also run a live demo and finish with an open Q&A. Please submit your questions using the Q&A button on your Zoom panel. This webinar is being recorded, and both the slides and recording will be shared afterward.

With me today are two AI developers from the Komodor optimization team: Omri Cohen, an AI Backend Developer, and Dinor Nagar, an AI Engineer and Researcher who is back with us after last month’s session. Without further ado, I’ll let them take it away.

Omri Cohen: Hey everyone. Today we’re continuing our previous webinar on agent optimization by looking at why agents become so expensive in production.

Imagine you build an agent, test it locally with a top-tier model like Opus, see that it works well, and ship it to production. Suddenly, costs skyrocket because even the easiest tasks are hitting that expensive model. On top of that, coding agents and AI tools tend to be verbose; long prompts and tool outputs are sent as context on every single step, and you pay for them every time. Add in retry loops—where a failing tool burns tokens repeatedly—and multiply all of that by thousands of daily production runs, and you end up with a massive bill.

The usual manual fix is to swap in a cheaper model or shorten the prompt. It looks like a quick win, but how do you ensure you aren’t silently harming quality or another aspect of the agent? That is what we are covering today.

As a reminder, last month we took a single support agent with a dataset of four tickets, manually switched the model from Sonnet to Haiku, and ran three rounds of prompt improvements to achieve the same results at a lower cost. Today, we are taking that to production scale. Instead of optimizing one agent by hand, you can automate the loop across your fleet using different data sources—such as production runs, datasets, and golden scenarios—while setting strict budgets to control the process.

Furthermore, production agents have many moving parts beyond just the prompt. Our loop can suggest changes across the prompt, the model, tools, skills, knowledge base, memory, and even the harness itself.

To configure the loop in our platform, you start by selecting one agent or your entire fleet. Next, you choose the data the loop will rely on, whether that is previous production runs, a curated dataset, or a trusted industry benchmark. Then, you set a budget so the loop cannot run away with your spend, and you define levers—locking what you don’t want changed and unlocking what the loop is allowed to optimize. Once configured, the loop runs autonomously to meet your goals.

Dinor Nagar: Now that we understand the motivation and configuration, let’s dive into the four core components that make up the loop:

  1. Evaluator: An agent that grades every run on quality, cost, and duration against a stored baseline using a judge.

  2. Labeler: Tags every run with predefined or custom categories so we can easily identify patterns and problems across long agent traces.

  3. Insights Engine: Analyzes all labels and run transcripts to uncover recurring problems and ranks them by potential impact.

  4. Coach: Proposes the specific change or changes needed to solve the problems identified by the Insights Engine.

Let’s look closer at each component.

First, the Evaluator relies on weighted criteria tailored to your domain—such as correctness, coherence, and safety—so style doesn’t outrank correctness. Even in an era of heavy automation, we at Komodor believe a human expert must review at least the first 10 to 20 evaluator runs. If you rely 100% on an uncalibrated LLM judge, you might spend hundreds of dollars over five cycles only to realize the evaluator wasn’t grading accurately. Crucially, the evaluator must stay fixed throughout the experiment; changing the criteria mid-loop makes comparisons unreliable.

Second, the Labeler classifies each run into structured categories—such as topic, failed tools, repeated work, and run summaries. Users can also add custom domain-specific labels. Because agent traces can be very long and involve many tool calls, turning them into structured facts makes it much easier to spot patterns.

Third, the Insights Engine takes those labels and transcripts to diagnose what went wrong—for example, a wasteful tool, an irrelevant prompt instruction, or an overly expensive model. It ranks these problems by evidence so the highest-impact issues are tackled first. It also remembers what was already tried so the loop doesn’t get stuck repeating rejected fixes.

Finally, the Coach is the only component that proposes solutions. Every prescription is backed by failing runs from the data, and the Coach strictly adheres to your policy. If you tell the system to optimize only prompts and skills and never touch the model, the Coach respects those boundaries.

When we connect these components, the loop works as follows: the Labeler tags the runs, the Insights Engine finds what to improve, and the Coach chooses the change. We build and deploy a new candidate revision, re-run it against our test data, and evaluate the new score—say, seeing accuracy jump from 50% to 70%. At that point, a human decides whether to promote the revision to production or run another cycle within the remaining budget.

To test changes safely before they ship, we support three data types, ranging from fast and risk-free to closest to production:

  • Benchmarks: Public or private industry use cases (such as SRE Gym) that measure domain performance. They answer: Is this candidate better than what runs today?

  • Datasets: Recorded production runs and curated edge cases re-run in minutes with no live exposure. They answer: Does this change fix the failures we already found?

  • Shadow Runs: Live production inputs routed in parallel to both the production agent and the candidate variant, while users only see the production response. They answer: Does this hold up on real traffic at real cost?

Putting the full end-to-end flow together: you bring your agent, draft a mandate (such as optimizing cost or accuracy), calibrate and trust your evaluator, and run a baseline to establish your starting point. From there, the loop runs cycle by cycle, and you maintain full control over whether to continue, promote, or stop.

Now, let’s jump into a live demo. Omri will show how to configure an experiment, and then I’ll walk through a real-world use case from our environment.

Omri Cohen: Let’s look at how customers set up an experiment in the Komodor platform.

First, you select the agent you want to improve—for example, our Support Triage agent. Second, you choose your optimization goal: accuracy, cost, or latency. Let’s pick cost and set a target reduction of 50%. Below that, you set your levers—deciding whether to lock or unlock the system prompt, model, model provider, tools, skills, knowledge base, or output format.

Third, you select your data source: shadow runs, an existing dataset, or a trusted benchmark from our catalog. Fourth, you set your budget—let’s say $300—and the platform estimates how many cycles and how much time that will take. Finally, you set your control level, choosing whether the loop should pause and ask for approval before each cycle or run autonomously within your guardrails. Once that’s set, you name the experiment and click Start.

Dinor Nagar: Now let’s look at an actual use case from our environment: a Kubernetes Root Cause Analysis (RCA) agent. Our goal was to drastically lower the cost per run while keeping accuracy intact.

Looking at the performance graphs, you can see our quality stayed right at 100% across all cycles, while our cost per run dropped significantly every round. Our baseline averaged $0.15 per run.

  • In Cycle 1, the Coach suggested switching the model from Opus to Sonnet, which immediately cut costs by about 60%.

  • In Cycle 2, we continued optimizing, and the Coach suggested moving from Sonnet to Haiku, delivering another massive cost reduction (roughly 90% lower than Cycle 1).

  • In Cycle 3, instead of downgrading the model further, the Coach focused on the prompt, suggesting a targeted refinement that yielded an additional 11% improvement.

Overall, the loop reduced our average cost per run by 96%—down from $0.15 to less than a cent—while maintaining 100% accuracy. All you have to do is bring your agent, your data, and your budget.

Omri Cohen: Building a reliable optimization loop comes with real challenges, and we’ve engineered around several ways a loop can fool you:

  • Noisy results: High variance across runs makes it hard to see what’s actually failing, which we address using the Labeler.

  • Overfitting the test: Optimizing too narrowly for a specific dataset can hurt general performance.

  • Wrong ground truth: Poor or irrelevant datasets lead to misleading optimizations.

  • Judge drift: If your evaluator isn’t calibrated and verified by humans early on, the entire loop rests on a weak foundation.

  • Hidden regressions: Cutting costs can accidentally degrade latency or accuracy if you aren’t tracking all metrics simultaneously.

We continuously refine our loop at Komodor to guard against these issues so customers can reliably improve their agents over time.

Ilan (Host): Before we jump into Q&A, I want to note that while today’s demo focused on cost optimization, the same engine handles accuracy and latency. We also have upcoming capabilities around open-weight models and model routing.

If you want to learn more, check out our deep-dive blog on the EvalFactory, explore our AI research team’s latest experiments at benchmarks.komodor.com, or request a free trial of the Komodor Agentic Operations Platform at [komodor.com/freetrial](https://komodor.com/freetrial). We will also have a booth at AWS re:Invent next week if you’d like to talk in person.

Let’s dive into a few common questions we hear from teams. First: we mentioned overfitting to a dataset as a major pitfall. How does Komodor recommend dealing with that?

Omri Cohen: When you optimize an agent against a very specific dataset, the prompt tends to become overly tailored to those exact cases. Once you have a promising new revision from a dataset, we recommend running it as a shadow run in production. Running it side-by-side against live traffic—and scoring both versions with your existing evaluators—proves whether the improvement actually generalizes.

Ilan (Host): Great. Second question: with the fast-evolving world of evals, can customers bring their own custom evaluators into Komodor?

Dinor Nagar: Absolutely—in fact, we recommend it. Customers are the experts in their own domains, so our platform is built to be dynamic and allow teams to plug in their own custom evaluators to drive the improvement loop.

Ilan (Host): As a follow-up, what is the MVP path for a customer just getting started? Do they need to build datasets and evaluators from scratch, or do things work out of the box?

Dinor Nagar: All you need to start is your agent. Run it to collect initial data, and either bring your own evaluator or customize the criteria on our out-of-the-box base evaluator. From there, you just configure the experiment, set your budget, and let the loop run. You can inspect every cycle and every Coach suggestion before deciding whether to promote the new revision.

Ilan (Host): Awesome. Thank you so much, Omri and Dinor, for the insightful session. We’ll be back next month with another webinar in our production agent optimization series. Thank you everyone for joining, and take care!

FAQ

1. How do I prevent the optimization loop from degrading my agent’s accuracy while cutting costs?

The EvalFactory Loop tracks quality, cost, and latency simultaneously using a fixed, human-calibrated Evaluator. Before any candidate revision is promoted, it is graded against your baseline; changes are only kept if they hold quality, and a human expert always makes the final decision on whether to ship a revision to production.

2. How does Komodor prevent the loop from overfitting to a small test dataset?

After optimizing an agent on a curated dataset, Komodor recommends validating the winning candidate using Shadow Runs. Shadow runs execute the new agent revision in parallel with your live production agent on real traffic—without exposing users to the candidate’s output—allowing you to compare real-world performance and cost side-by-side.

3. Can we control which parts of our AI agent the loop is allowed to modify?

Yes. During experiment setup, you configure levers (policies) that lock or unlock specific components—such as the system prompt, model, model provider, tools, skills, knowledge base, and output format. The Coach strictly operates within these boundaries and will never modify locked components.