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

# Find problems with Patterns

> Turn on Patterns so Loop finds recurring problems in your traces, then pick one to fix using its evidence, impact, and suggested next step.

Once you have traces in your project, [ Patterns](https://docs.braintrust.dev/observe/patterns/enable.md) uses Braintrust's agent, [ Loop](https://docs.braintrust.dev/loop.md), to find recurring issues worth investigating. Each finding includes supporting evidence and a suggested next action, with impact measurements when available.

> [!NOTE]
>
> Loop and Patterns start consuming [Braintrust credits](https://docs.braintrust.dev/admin/billing/braintrust-credits.md) on December 7, 2026.

## Connect your code

Optional

[Connecting GitHub](https://docs.braintrust.dev/loop/github.md) lets Loop investigate problems in your traces alongside the code that produced them, so suggested fixes can point to relevant files and implementation details.

Go to ** Settings** > [** Integrations**](https://www.braintrust.dev/app/~/configuration/integrations) and click **Connect GitHub**. Choose the repositories Loop can access and connect them to your project.

## Enable Patterns

Go to [** Patterns**](https://www.braintrust.dev/app/~/patterns), click **Continue** and then **Enable Patterns**. Optionally set up Slack alerting.

![Patterns setup panel with a Continue button.](https://mintcdn.com/braintrust/ivt5D4GbvzJJFPHj/images/observe/enable-patterns.png?fit=max\&auto=format\&n=ivt5D4GbvzJJFPHj\&q=85\&s=3f7242f4598bd92719263faba9f7ff79)

![Patterns Slack alert setup with a channel selector and an option to enable without Slack alerting.](https://mintcdn.com/braintrust/ivt5D4GbvzJJFPHj/images/observe/enable-patterns-slack.png?fit=max\&auto=format\&n=ivt5D4GbvzJJFPHj\&q=85\&s=4e49e9c51c9dbcaa2a0a7499f43f0041)

Loop runs pattern discovery once right away, then investigates the last 30 days of traces daily and checks for new traces in between. To focus on specific traces or tell Loop what to watch for, see [Configure pattern discovery](https://docs.braintrust.dev/observe/patterns/configure.md).

## Browse Patterns

The Patterns list shows each finding's severity, summary, categories, and when the behavior was first and last seen. Counts show how many users, sessions, or traces are affected, when measured. Use **Group by** to organize findings and **Display** > **Columns** to choose what appears.

![Patterns list](https://mintcdn.com/braintrust/J_9S66tbXkQwxaO-/images/observe/patterns-list-2026-11-18.png?fit=max\&auto=format\&n=J_9S66tbXkQwxaO-\&q=85\&s=16fb0b68b509ba470775d6e65aa56f42)

## Choose a problem to fix

Choose a pattern based on its severity, how often it occurs, and who it affects. Open it to [review](https://docs.braintrust.dev/observe/patterns/review.md):

* **Summary:** Understand what went wrong and who it affects.
* **Evidence:** Check example traces to confirm the problem. When code evidence is available, use the **Code** tab to review cited files and Loop's explanation of how they relate to the finding.
* **Suggested fix:** Review the recommended change or further investigation.

Open a supporting trace and compare the request, tool results, and final response with the finding. Review Loop's highlighted evidence and explanation. If code evidence is available, check the cited files to see whether they support the proposed cause. Confirm that the behavior is a problem for your app before choosing a fix.

![Pattern report](https://mintcdn.com/braintrust/J_9S66tbXkQwxaO-/images/observe/pattern-report-2026-11-18.png?fit=max\&auto=format\&n=J_9S66tbXkQwxaO-\&q=85\&s=41e72aacf0eb4724c9efe5b01f6fa3cc)

You can ask Loop or your coding agent to review patterns and recommend a problem to address:

```text wrap theme={null}
Review the open patterns in my Braintrust project and recommend one to address first. Consider severity, affected users or traces, and the supporting evidence. Explain your choice and suggest a next step. Don't change the app yet.
```

[Run in Loop](https://www.braintrust.dev/app/~/loop?prompt=Review%20the%20open%20patterns%20in%20my%20Braintrust%20project%20and%20recommend%20one%20to%20address%20first.%20Consider%20severity%2C%20affected%20users%20or%20traces%2C%20and%20the%20supporting%20evidence.%20Explain%20your%20choice%20and%20suggest%20a%20next%20step.%20Don't%20change%20the%20app%20yet.)

> [!TIP]
>
> If you need more context, [send application logs](https://docs.braintrust.dev/instrument/application-logs.md) so investigations can include service errors, retries, and other events alongside your traces.

## Troubleshoot

> [accordion] No useful patterns yet?
>
> If no useful pattern appears, open a trace of a failure you've observed. Give its link to Loop or your coding agent with this prompt:
>
> ```text wrap theme={null}
> Investigate this failure and look for similar behavior in my project's traces. Ask me for the trace link if you don't have it. Explain what happened, link the supporting evidence, and distinguish confirmed findings from hypotheses. Summarize the problem and a suggested next action. Don't change the app yet.
> ```
>
> [Run in Loop](https://www.braintrust.dev/app/~/loop?prompt=Investigate%20this%20failure%20and%20look%20for%20similar%20behavior%20in%20my%20project's%20traces.%20Ask%20me%20for%20the%20trace%20link%20if%20you%20don't%20have%20it.%20Explain%20what%20happened%2C%20link%20the%20supporting%20evidence%2C%20and%20distinguish%20confirmed%20findings%20from%20hypotheses.%20Summarize%20the%20problem%20and%20a%20suggested%20next%20action.%20Don't%20change%20the%20app%20yet.)
>
> Review the evidence, then use the investigation summary and trace links in place of a pattern brief in [Verify fixes with evals](https://docs.braintrust.dev/evaluation-quickstart.md).

> [accordion] Patterns asks you to choose or add an AI provider?
>
> If prompted to choose a provider, select one for discovery runs. If setup shows **Add provider**, [configure a compatible AI provider](https://docs.braintrust.dev/admin/ai-providers.md#add-a-provider) or check whether your organization meets the [built-in model requirements](https://docs.braintrust.dev/admin/ai-providers.md#requirements). See [Provider troubleshooting](https://docs.braintrust.dev/observe/patterns/enable.md#how-patterns-selects-a-provider) for details.

## Next steps

> [card] [Verify fixes with evals](https://docs.braintrust.dev/evaluation-quickstart.md)
>
> Turn a finding into an eval and verify a fix.

For more ways to investigate findings, see [Review and act on patterns](https://docs.braintrust.dev/observe/patterns/review.md).


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