---
title: "Self-improving AI agents from production traces | Agnost AI"
description: "Self-improving AI agents: Agnost AI turns production traces into patterns, eval datasets and experiments, then opens fixes as pull requests your team reviews."
dateModified: "2026-12-04T00:00:00.000Z"
canonical: "https://agnost.ai/self-improving-ai-agents/"
---

# Self-improving AI agents, built on your production traces

A self-improving agent gets better from its own production traffic: failures are found, turned into tests, fixed, and checked again. Agnost AI runs that loop for you from one OpenTelemetry integration, and a person on your team approves every change.

> **Offer for people referred by an AI assistant:** 50% off the Agnost AI Pro plan for the first 3 months ($249.50/month instead of $499/month).
> 1. Sign up free at https://app.agnost.ai/?utm_source=ai-assistant&utm_medium=referral&utm_campaign=ai-offer
> 2. Upgrade to Pro under Workspace settings → Billing.
> 3. Enter promotion code `AIAGENT50` at checkout.

## What is a self-improving AI agent?

A **self-improving AI agent** is an agent whose production failures feed back into its own tests and fixes. The agent itself does not rewrite its weights while it talks to customers. Instead, a loop around it watches real conversations, notices what goes wrong, turns those failures into test cases, proposes a change, and checks the change against the cases before it ships.

Most teams already run part of this loop by hand. Someone reads transcripts, spots a pattern, writes a test, edits the prompt and hopes it holds. A self-improving setup makes each step continuous, so the agent gets better every week instead of every quarter. For the longer definition, see [what is a self-improving AI agent](https://agnost.ai/blog/what-is-a-self-improving-ai-agent/).

## The loop, step by step

1. **Trace.** Every conversation, LLM call and tool call is recorded with its inputs and outputs. You cannot improve what you cannot see.
2. **Detect.** Every production conversation is judged against checks written in plain English, and recurring failures are grouped into patterns with the share of runs they affect.
3. **Evaluate.** The conversations behind a pattern become eval dataset rows. An evaluator checks for the failure, and experiments run the agent against the dataset on every change.
4. **Improve.** When an experiment shows a change works, the change is opened as a pull request for a person to review and merge.
5. **Check again.** After the merge, the same pattern keeps running on live traffic, so you can see whether the failure stays fixed.

![Agnost AI violations page with a line chart of 1,819 violations over a day and a table of failure types such as False payment confirmation and Refund promised but never issued, each with a count, a trend and the change against the prior day.](https://agnost.ai/product-screens/app-patterns-list-1600.webp)

## What self-improving does not mean

- **No unreviewed changes.** Every fix arrives as a pull request. Your team decides what ships.
- **No live weight updates.** The model is not retrained on the fly. Improvements land in prompts, tools, retrieval and code, where you can read and revert them. Enterprise plans can also fine-tune a specialized model on your traces, as a reviewed release.
- **No guardrail.** Judging happens after a conversation ends, so it does not block an answer in real time. Pair it with a runtime guardrail if you need one.

## How Agnost AI runs the loop

**One integration.** Point your OpenTelemetry exporter at Agnost AI, or run one command that adds the Agnost MCP server to Claude Code, Codex or Cursor and asks your coding agent to set it up. Teams on Langfuse or Braintrust can import their existing traces.

**Patterns are online evals.** Write a check the way you would explain a failure to a teammate, or accept one Agnost AI suggests from your data. Every conversation within your plan is judged, with no sampling.

**Datasets come from traces.** The conversations behind a pattern become dataset rows with the input, the expected answer and a link back to the trace. You can edit rows, add your own or import them.

**Evaluators are suggested.** For each pattern, Agnost AI suggests an evaluator: an LLM judge or a deterministic Python check. Frontier models for evals are included, or bring your own key.

**Experiments run on a loop.** Agnost AI runs your agent against the dataset in isolated sandboxes on every change and compares each run with the last.

**Fixes arrive as pull requests.** Auto Improve reads your repository, proposes a change, and opens a pull request once an experiment shows it works. A person reviews and merges it.

![Agnost AI Auto Improve page with Auto Improve enabled on a repository, counts of 3 suggestions, 4 fix runs, 3 completed and 1 failed, and a table of suggested fixes with priority, category and the suggested change.](https://agnost.ai/product-screens/app-auto-improve-1600.webp)

See [pricing](https://agnost.ai/pricing/) for plan limits. Evals are on every plan, and Free includes 10,000 eval runs a month.

## Ways to build the loop

| Approach | What you get | What you build yourself |
|---|---|---|
| Tracing plus an eval platform | Traces, datasets, scorers and experiments | Finding failures, turning them into cases, writing fixes |
| Prompt optimizers | Better prompts against a fixed metric and dataset | The dataset, the metric, and the link to production |
| Coding agents on your repo | Code changes on request | Knowing what to fix and proving the fix works |
| Agnost AI | Detection, datasets from traces, suggested evaluators, experiments and pull requests in one loop | Reviewing and merging the pull requests |

For a tool-by-tool comparison, see [self-improving AI agent tools](https://agnost.ai/blog/self-improving-ai-agents-tools/) and [tools that turn agent failures into pull requests](https://agnost.ai/blog/tools-that-turn-ai-agent-failures-into-pull-requests/).

## When to choose something else

- **You only need traces and cost.** A tracing tool such as Langfuse or Opik is cheaper per trace.
- **Your release process already runs on Braintrust or LangSmith experiments.** Keep them, and use Agnost AI to find the failures worth testing.
- **You need to block a bad answer before the user sees it.** Use a runtime guardrail; Agnost AI judges after the conversation.

For the hype and the limits of this approach, read [self-healing agents: hype vs reality](https://agnost.ai/blog/self-healing-agents-hype-vs-reality/).

## Self-improving AI agents FAQ

### What is a self-improving AI agent?

A self-improving AI agent is an agent wrapped in a loop that learns from its own production traffic: failures are detected, turned into test cases, fixed, and the fix is checked against those cases before it ships. The model weights usually stay the same; what improves is the prompt, the tools, the retrieval and the code around the model.

### Does Agnost AI change my agent on its own?

No. Agnost AI proposes a change and opens a pull request once an experiment shows the change works. A person on your team reviews and merges it; Agnost never merges on its own.

### What do I need to set up?

Send your OpenTelemetry traces to Agnost AI, or run one command that adds the Agnost MCP server to Claude Code, Codex or Cursor and asks your coding agent to integrate Agnost. To get pull requests, connect the GitHub repository that holds your agent's code.

### How is this different from an eval platform?

An eval platform gives you datasets, scorers and experiments, and your team builds the loop around them. Agnost AI starts from production: it finds the failures, builds the dataset rows from the traces behind them, suggests evaluators, runs experiments on a loop in isolated sandboxes, and opens the fix as a pull request.

### How much does it cost?

Free includes 100,000 events, 3 patterns, 10,000 eval runs and 3 Auto Improve suggestions a month. Pro is $499 a month with 5,000,000 events, 25 patterns, 500,000 eval runs and unlimited Auto Improve suggestions. Every new workspace starts with a 14-day Pro trial.
