> ## Documentation Index
> Fetch the complete documentation index at: https://traceroot.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Find problems in your agent's traces

A detector checks your agent's traces for one specific problem, such as a hallucination or a failed task. You hear about the problem without reading every trace. For each trace it checks, a model reads the trace and answers yes or no. A yes is a **finding**. traceroot groups findings of the same problem into a [signal](https://traceroot.ai/docs/signals/introduction.md), and the traceroot Agent can find the signal's root cause.

Detectors work on every plan. Free includes 100 detector runs per billing period.

![Detectors list with each detector's template, model, sampling, judge runs, signals and agent runs](https://mintcdn.com/tracerootai/-OSwxtwDVTPazBuT/images/detectors_list_v1.png?fit=max\&auto=format\&n=-OSwxtwDVTPazBuT\&q=85\&s=d1a5ab683b2a557a4964667a2390d952)

Detectors list: template, model, sampling, signals and agent runs per detector

## How detectors work

Detection runs in two steps. The second step, root cause analysis, costs more, so it runs only on problems the first step finds.

**Step 1, the judge.** About a minute after a trace's last span arrives, each detector checks whether the trace matches its filter and its sampling rate. If it does, the detector's model reads the trace, answers whether the problem is present, and writes a one-sentence summary. Detectors skip traces that come from [evaluations](https://traceroot.ai/docs/evals/introduction.md).

**Step 2, the agent.** The traceroot Agent reads one trace of a signal and writes a root cause analysis with a code location and a recommendation. [Signals](https://traceroot.ai/docs/signals/introduction.md) explains when it runs.

Each step has its own model. You pick the judge model on each detector. You pick the agent model once per project, in **Settings → Detectors → Agent Model**. Either can be a model traceroot provides or a model from your own provider key ([bring your own key](https://traceroot.ai/docs/ai-agent/byok.md)).

## How to create a detector

You need a project that receives traces. See [Tracing](https://traceroot.ai/docs/tracing/get-started.md) to set one up.

Open your project in [traceroot Cloud](https://app.traceroot.ai), select **Detectors** from the left nav, then click **New Detector**.

![Detectors page header with the New Detector button highlighted](https://mintcdn.com/tracerootai/-OSwxtwDVTPazBuT/images/detector_new_button_v1.png?fit=max\&auto=format\&n=-OSwxtwDVTPazBuT\&q=85\&s=89412478bd81663128191d535c9c68f1)

Detectors page: New Detector button

1. **Template**: pick **Failure** (selected by default), **Hallucination**, **Logic Error**, **Task Completion**, **Safety** or **Blank**. A template fills in the **Name** and the **Prompt**. **Blank** leaves both empty.
2. **Model**: pick the model that judges each trace. The default is `gpt-6-luna`.
3. **Prompt**: describe what to look for, in plain language.
4. **Filter**: choose which traces the detector checks. Leave it empty to check every trace.
5. **Sampling**: set the share of matching traces to check. It starts at 25%. **100%** checks every matching trace, and **0%** pauses the detector. A detector always makes the same sampling choice for a given trace, so sending that trace again does not change whether it is checked.
6. **Signals**: leave **Generate signals** on to group findings into signals. Set **Root cause analysis** as described [below](#root-cause-analysis).
7. Click **Create Detector**. The detector checks traces that arrive from then on.

## Create detectors with AI

Select **Home** from the left nav to open the traceroot Agent, then describe the detector you want, or ask it to suggest one from your project. For example:

* "Create a detector that flags traces where a tool call fails"
* "Suggest a new detector based on my current detectors"

The agent drafts the detector. Nothing is saved until you click **Create detector** under the chat; reply instead to revise the draft.

![traceroot Agent listing and reading the project's detectors, then summarizing their setup](https://mintcdn.com/tracerootai/-OSwxtwDVTPazBuT/images/detector_agent_v1.png?fit=max\&auto=format\&n=-OSwxtwDVTPazBuT\&q=85\&s=d656b328cfe787a2cffd6ae3dbe2888f)

traceroot Agent: a detector request, the detectors it read, and its summary of them

AI coding agents can also create detectors with the [traceroot CLI](https://traceroot.ai/docs/cli/get-started.md) (`traceroot detectors create`) or the public API under `/api/v1/public/detectors`. Writes need a signed-in user; a project API key can only read.

## Root cause analysis

You set **Root cause analysis** in the **Signals** section, on the **New Detector** page and in the detector's edit panel. It needs **Generate signals** on.

* **Automatic** (the default for every new detector): the agent analyzes signals by itself.
* **Manual**: the agent runs only when you click **Run root cause analysis** on a signal. Use it to analyze only the problems you choose.

Both modes detect and notify the same way.

The agent analyzes a signal, not each finding. [Signals](https://traceroot.ai/docs/signals/introduction.md) explains when it runs.

## View findings

Open a detector to see its runs. A run with **Identified** set to Yes is a finding.

In the runs table:

* Each run links to the trace it checked.
* **Identified** shows Yes or No, or a dash if the run failed.
* **Signal ID** links to the signal the finding joined. If grouping failed, it says **Not grouped**.
* **Agent Run ID** links to the agent's run if the agent analyzed this trace. Otherwise it shows a dash. Open the signal to read its analysis.

If the agent analyzed a trace, its analysis opens in the trace's chat panel, and you can ask follow-up questions there. The trace viewer's **Detectors** tab lists each detector that ran on the trace and links to each finding's signal.

## Notifications

traceroot tells you when a signal is created or reopened. It collects these signals over each alert window and sends them together in one message, a digest. New findings on a signal it already announced send nothing.

In your project, open **Settings → Detectors** and go to **Notifications**:

* **Email**: click **Add recipient**, enter an address and click **Save**.
* **Alert window**: pick how long traceroot collects signals before it sends a digest (1, 5, 10 or 30 minutes, 1 hour or 2 hours), then click **Save**. The default is 10 minutes.
* **Slack**: shows the connected workspace and channel. Click **Connect** or **Manage** to change them.

With no email recipient and no Slack channel, traceroot sends nothing. Adding a recipient or channel later does not resend earlier signals.

Email and Slack get the same digest, split into **New** and **Reopened**. Each signal shows:

* Its title, linked to the signal.
* A short summary of what it covers.
* Its detector and its number of hits, one per finding.

A digest lists up to 45 signals and counts the rest. The email also has a **View signals** button that opens the Signals page. The digest does not include or wait for root cause analysis. Open the signal to read it.

![Slack digest listing new detector signals, each with detector name, hit count and summary](https://mintcdn.com/tracerootai/-OSwxtwDVTPazBuT/images/detector_digest_slack_v2.png?fit=max\&auto=format\&n=-OSwxtwDVTPazBuT\&q=85\&s=c82214d2dd3c939174de142a772c657a)

Slack digest: new signals, each with detector, hits and summary

### Connect Slack

You connect Slack once per traceroot workspace. traceroot posts to one Slack channel.

1. As a workspace admin, open your workspace settings and go to **Integrations**. From a project, you can also click **Connect** under **Settings → Detectors → Slack**.
2. Click **Connect** and approve traceroot in Slack.
3. Click **Manage → Configure** and choose the channel. Click **Test Connection** to check that it works.

> [!NOTE]
>
> On a self-hosted deployment, signals, root cause analysis and notifications need `OPENAI_API_KEY` on the server. Without it, detectors still record findings. A detector with no model chosen then judges on `claude-haiku-5-5` instead of `gpt-6-luna`, unless the workspace has its own OpenAI key. Email also needs `TRACEROOT_SMTP_URL`.

## Next steps

> [card] [Signals](https://traceroot.ai/docs/signals/introduction.md)
>
> See how findings are grouped, reviewed and resolved.

> [card] [traceroot Agent](https://traceroot.ai/docs/ai-agent/overview.md)
>
> Learn how the agent behind root cause analysis works.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.