Skip to main content
Once you have traces in your project, Patterns uses Braintrust’s agent, Loop, to find recurring issues worth investigating. Each finding includes supporting evidence and a suggested next action, with impact measurements when available.
Loop and Patterns start consuming Braintrust credits on December 7, 2026.

Connect your code

Optional
Connecting GitHub 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 and click Connect GitHub. Choose the repositories Loop can access and connect them to your project.

Enable Patterns

Go to Patterns, click Continue and then Enable Patterns. Optionally set up Slack alerting.
Patterns setup panel with a Continue button.Patterns Slack alert setup with a channel selector and an option to enable without Slack alerting.
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.

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

Choose a problem to fix

Choose a pattern based on its severity, how often it occurs, and who it affects. Open it to review:
  • 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
You can ask Loop or your coding agent to review patterns and recommend a problem to address:
Run in Loop
If you need more context, send application logs so investigations can include service errors, retries, and other events alongside your traces.

Troubleshoot

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:
Run in LoopReview the evidence, then use the investigation summary and trace links in place of a pattern brief in Verify fixes with evals.
If prompted to choose a provider, select one for discovery runs. If setup shows Add provider, configure a compatible AI provider or check whether your organization meets the built-in model requirements. See Provider troubleshooting for details.

Next steps

Verify fixes with evals

Turn a finding into an eval and verify a fix.
For more ways to investigate findings, see Review and act on patterns.