# AI traces

> See how Corfedo AI produced one of your answers, step by step, to understand a slow, costly or wrong answer.

Source: https://docs.corfedo.ai/use/runs/

A trace shows how Corfedo AI produced one answer: each model call and tool call, what it searched and read, how long each step took and what it cost. Use it when an answer is slow, expensive, or misses code you expected it to find.

## Before you begin

- **AI traces** appears in the sidebar when an administrator turns on **Your traces** on the [Privacy](https://docs.corfedo.ai/workspace/privacy/) page.

## Open a trace

### Find the answer

Under an answer in a conversation, select **View trace**. To find an older answer, also from MCP clients, the CLI, the SDKs or Slack, open **AI traces** in the sidebar. Slack answers show as **Integration**.

### Read the summary

The figures at the top show the **Duration**, **Tool calls** and **Tokens in / out**, and the **Cost** when your workspace shows costs. **Findings** points out what went wrong or could be better, such as tool calls that returned nothing or input that kept growing.

### Follow the steps

The timeline lists every step in order. Select a row to see its details: the tool and its arguments, the results it returned and the files it cited, or a model call's tokens and output.

**Check:** the trace lists the searches and file reads behind the answer.

## Read a trace for a wrong answer

| What the trace shows | What it means | What to try |
| --- | --- | --- |
| **N tool calls returned nothing** under **Findings** | The query missed, or the repository is not searchable | Ask again with the repository or a name from the code. Check its [status](https://docs.corfedo.ai/workspace/sources/repositories/). |
| **No repositories to search** | Your **Sources** selection or your access left no repository | Choose other sources, see [Ask Corfedo](https://docs.corfedo.ai/use/ask/) |
| Status **Limited** | The answer stopped at one of the profile's limits | Ask a narrower question, or choose a profile with higher limits |
| Many steps with long model calls | The question needed many searches | Name the repository, folder or symbol in the question |

## Troubleshooting

| What you see | Why | What to do |
| --- | --- | --- |
| **You do not have access to AI traces.** | **Your traces** is off on the Privacy page | Ask an administrator |
| Steps without prompts or results | Only **Structure** is on for **Your traces** | Ask an administrator to turn on **Content** |
| **Content needs access to every repository the answer could read.** | The answer could read a repository you can no longer read | The structure stays visible. Ask for access to see the content. |
| **This trace does not exist, or you do not have access to it.** | The trace is someone else's, or it no longer exists | Open one of your own traces |
