Investigate
Ask questions about your data, from a single trace up to every project in your organization.Explore your data
Loop can query your logs, experiments, and datasets with SQL and inspect the schema of a data source. To dig through large or complex traces, it can also read, search, and list files in a sandbox, or run commands there. When it resolves a trace or generates a permalink, you can open that trace in the workspace and inspect it alongside the thread. Loop can also:- Hand off to the SQL sandbox. Loop can write a query into the SQL sandbox and run it there, then refine or fix it on request. The query stays in the sandbox so you can edit it by hand.
- Start from the logs table. Loop can turn a question into a SQL filter without you writing the query, and find traces similar to ones you’ve selected.
- Resolve identities. Loop resolves
span_attributes.created_by_user_idto organization member names and emails, andspan_attributes.created_by_api_key_idto API key and service token names, so you can ask about people and keys by name instead of by ID.
metadata, including ones named like metadata.user_id, describe your own application’s users. Loop doesn’t read them as Braintrust members.Summarize logs and suggest next steps
Summarize logs and suggest next steps
Break down cost by model
Break down cost by model
Graph caching and usage metrics
Graph caching and usage metrics
Hand off a query to the SQL sandbox
Hand off a query to the SQL sandbox
Attribute traces to teammates
Attribute traces to teammates
Analyze traces
Loop can work through a complex trace and explain what happened across many LLM and tool calls, either diagnosing a failure or summarizing the work performed. You start both from the trace view rather than from a Loop thread. See Debug a trace. You can also ask about a trace from inside a Loop thread. Paste the trace’s permalink or give Loop its ID, and Loop resolves it and pulls in the spans. Example prompts:Understand what happened
Understand what happened
Find patterns
Loop can search your logs and raw trace data for recurring problems and trends, regardless of whether they’re already measured by a scorer, and record them as patterns. Each pattern includes the evidence Loop found when creating it. When new evidence points at a pattern Loop already recorded, it updates that pattern rather than adding a second one. Example prompts:Record a failure you suspect
Record a failure you suspect
Turn an investigation into a tracked pattern
Turn an investigation into a tracked pattern
Ask how a pattern was found
Ask how a pattern was found
Analyze projects
Loop can answer questions that span a whole project, rather than a single trace or experiment, and it can compare across every project in your organization. To analyze a project in depth, open the Loop agent in the bottom right corner of a project’s Overview page, and provide a prompt. Loop has access to the project’s logs, recent experiments, datasets, prompts, and the score progress chart on the overview page. Example prompts:Track a score over time
Track a score over time
Find the experiments that moved
Find the experiments that moved
Check recent activity
Check recent activity
Watch token usage
Watch token usage
Rank projects by usage
Rank projects by usage
Compare performance across projects
Compare performance across projects
Spot trends in volume
Spot trends in volume
Audit recent projects
Audit recent projects
Build
Turn what you find into saved Braintrust objects. Each of these pauses for your approval before anything is created or changed.Author prompts and evaluators
Loop can suggest evaluators grounded in your application’s real behavior, then create and save them rather than just describing them. An evaluator is either a scorer, which returns a number, or a classifier, which returns a label. Loop can also create and update prompts directly. New and updated evaluators open in the workspace for review. In a playground, Loop can turn your annotations into prompt revisions, so the feedback you leave on individual outputs becomes a concrete edit. Example prompts:Suggest scorers for my project
Suggest scorers for my project
Write a scorer for known errors
Write a scorer for known errors
Create a helpfulness judge
Create a helpfulness judge
Set up online scoring
Set up online scoring
Curate datasets
Loop can generate datasets from log patterns and edit rows in an existing dataset. When Loop edits dataset rows, the dataset opens as a read-only table in the workspace, so that you can review the changes. Select a row to inspect its trace inline, and the table refreshes as Loop makes further edits. To undo a round of edits, restore an earlier snapshot, which Loop can also do for you. Loop can also manage dataset versions and the environments that point at them:- Snapshots. Loop can save a snapshot before it changes anything, list existing snapshots along with their environment tags and current head version, and restore the dataset to a snapshot. Restoring uses the same confirmation flow as the dataset UI, and can save the current state first.
- Environments. Loop can point an environment such as
productionorstagingat a specific dataset snapshot, or clear that mapping. It can list the organization’s environments to check available slugs, and create one that doesn’t exist yet.
Generate a dataset from errors
Generate a dataset from errors
Add traces to a dataset
Add traces to a dataset
Snapshot before editing
Snapshot before editing
Review and restore a version
Review and restore a version
Promote a dataset version
Promote a dataset version
Build views and dashboards
Loop can create and edit custom views for both trace and dataset row data, and it can build charts for a dashboard. When Loop creates or updates a dashboard, you can open it in the workspace to review the result alongside the thread. Example prompts:Suggest trace visualizations
Suggest trace visualizations
Build a custom dataset view
Build a custom dataset view
Build a daily cost dashboard
Build a daily cost dashboard
Investigate an error spike
Investigate an error spike
Configure Topics
Loop can configure the whole Topics pipeline, not just test individual facets. Given a goal, Loop works through the pipeline in stages:- Check the preprocessor. Loop inspects your project’s effective default preprocessor and runs it on real traces to confirm it returns usable conversation text. If the default returns nothing, Loop writes a custom preprocessor for your trace shape, tests it, and can set it as the project default. Setting the project default changes the preprocessor every function that takes one uses, including the built-in Topics facets, so Loop asks for approval first.
- Confirm the scope. Loop looks for a grouping key such as
metadata.conversation_idand recommends whether to analyze a span, a trace, or a group of related traces. - Validate the facets. Loop runs a facet on up to ten representative traces and shows you the results inline, so you can correct its reading before it commits to a prompt. Build up a set of traces worth checking, then have Loop re-run the facet against that same set as you refine it. For a larger set, Loop runs the facet as an eval instead.
- Evaluate candidates. Loop runs evals over candidate facet prompts to measure quality before anything is saved.
- Enable the automation. Loop creates the facets and turns on the Topics automation, then offers to rewind it over a historical window.
Set up Topics from scratch
Set up Topics from scratch
Configure Topics with a custom preprocessor
Configure Topics with a custom preprocessor
Discover error categories
Discover error categories
Run and automate
Test a change with an evaluation, then turn the check that caught it into a scheduled run.Run evaluations
Loop runs evaluations two ways:- In a playground or experiment. Loop can edit the task prompt or code, add or modify scorers, and re-run the evaluation to show the effect of a change.
- As a new experiment. Loop can run an experiment from a dataset, from rows it supplies inline, or from a prior experiment, using a saved or inline task and any scorers you choose. When a prior experiment supplies the data, its outputs become the expected values.
Build a dataset and run an experiment
Build a dataset and run an experiment
Evaluate an agent decision
Evaluate an agent decision
Compare a cheaper model
Compare a cheaper model
Eval() script. To keep evaluations in your own repository and run them in CI, see Run evaluations in code.Manage automations and alerts
Loop can set up recurring work and notifications from what it finds, so a problem you just investigated becomes something you get told about, or something Loop rechecks on a schedule.- Alerts. Loop can create an alert on individual matching logs, on an aggregate that crosses a threshold over a recent window, or on environment updates, generating the filter from your description.
- Automations. Loop can create a scheduled Loop job with its own instruction and schedule. It can also list the project’s existing automations, including online scoring rules, alerts, exports, retention policies, and Topics automations, and return each one’s full configuration.
- Status. Loop can pause an automation or set it back to active.
- Updates. Loop can change an alert or a Loop automation by rewriting it under its existing name. A rewrite replaces the whole configuration rather than patching a single field, so ask Loop to read the current configuration first, then check what it proposes before you approve. Scheduled exports and retention policies are inspect-only.
Alert on the errors you just found
Alert on the errors you just found
Alert on a quality regression
Alert on a quality regression
Alert on cost growth
Alert on cost growth
Audit what's configured
Audit what's configured
Work out why a scheduled run found nothing
Work out why a scheduled run found nothing
Get help
Loop can help you find your way around Braintrust, and reach out to support when you can’t resolve something.Search docs and find objects
Loop can search the Braintrust documentation, resolve object names and URLs, list recent objects, summarize an experiment’s metrics against a baseline, and generate shareable links to objects it creates. Example prompts:Look up how to set up human review
Look up how to set up human review
Compare experiments
Compare experiments
Request support
Loop can file a support ticket with the Braintrust team when you encounter something it can’t resolve. Ask for help, or type/ and choose the support command, and Loop guides you through creating the request. It includes relevant context from your current page and conversation so the support team can understand the issue.
Next steps
- Run Loop on a schedule to turn any of this into recurring work.
- Enable Patterns for automatic discovery of recurring problems.
- Manage threads and limits for sandbox behavior and cleanup.
- What Loop can’t do for the boundaries it works inside.