Investigate
Ask questions about your data, from a single trace up to every project in your organization.Explore your data
Loop queries logs, experiments, and datasets with SQL and inspects their schemas. For large or complex traces, it can read, search, and list sandbox files or run commands. Open any trace it resolves or links to in the workspace beside the thread. Loop can also:- Hand off to the SQL sandbox. Loop can write and run a query in the SQL sandbox, then refine or fix it on request. The query stays there for you to edit.
- Start from the logs table. Loop can turn a question into a SQL filter and find traces similar to your selection.
- 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
From the trace view, Loop can diagnose a failure or summarize work across LLM and tool calls. See Debug a trace. To ask about a trace in a Loop thread, paste its permalink or ID. Loop resolves it and loads its spans. Example prompts:Understand what happened
Understand what happened
Find patterns
Loop searches logs and raw traces for recurring problems and trends, even without a scorer measuring them, and records them as patterns. Each pattern includes supporting evidence. Loop updates an existing pattern when it finds related evidence, rather than creating a duplicate. 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 investigate a whole project or compare projects across your organization. For a single project, open Loop agent at the bottom right of its Overview page and enter a prompt. Loop can inspect the project’s logs, recent experiments, datasets, prompts, and score progress chart. 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 findings into saved Braintrust objects. Loop asks for approval before creating or changing them.Author prompts and evaluators
Loop can suggest, create, and save evaluators based on your application’s behavior. A scorer returns a number, and a classifier returns a label. New and updated evaluators open in the workspace for review. Loop can also create and update prompts, including revising playground prompts from your annotations on individual outputs. 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 existing rows. Edits open in a read-only workspace table that refreshes as Loop works. Select a row to inspect its trace inline. Loop can also manage dataset versions and the environments that point at them:- Snapshots. Save a snapshot before editing, or restore one to undo edits. Loop can list snapshots, their environment tags, and the current head version. Restoring uses the dataset UI’s confirmation flow and can save the current state first.
- Environments. Point an environment, such as
productionorstaging, at a snapshot or clear its mapping. Loop can list your organization’s environment slugs and create missing environments.
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 traces and dataset rows, and build dashboard charts. Open new or updated dashboards in the workspace to review them beside 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
Give Loop a goal to configure the Topics pipeline:- Check the preprocessor. Loop tests your project’s effective default preprocessor on real traces for usable conversation text. If it returns nothing, Loop writes and tests a custom preprocessor for your trace shape and can make it the project default.
- Confirm the scope. Loop looks for a grouping key, such as
metadata.conversation_id, and recommends analyzing a span, trace, or group of related traces. - Validate the facets. Loop tests a facet on up to ten representative traces and shows results inline for your feedback. Reuse that trace set as you refine the prompt. For larger sets, Loop runs an eval.
- Evaluate candidates. Loop compares candidate facet prompts in evals before saving them.
- Enable the automation. Loop creates the facets, enables the Topics automation, and offers to process 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 changes with evaluations, then schedule recurring checks or alerts.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
Turn an investigation into an alert or a scheduled check:- Alerts. Create an alert for matching logs, aggregates crossing a threshold over a recent window, or environment updates. Loop generates the filter from your description.
- Automations. Create a scheduled Loop job with its own instructions and schedule. Loop can also list existing online scoring rules, alerts, exports, retention policies, and Topics automations with their full configurations.
- Status. Pause an automation or make it active again.
- Updates. Rewrite an alert or Loop automation under its existing name. 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
Find documentation and objects, or contact support through Loop.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
Ask Loop for help, or type/ and choose the support command, to file a ticket with Braintrust. Loop guides you through the request and includes relevant context from your page and conversation.
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.