Engine across the lifecycle
For each issue, Engine surfaces the contributing traces, proposes a fix, keeps the issue current by attaching new traces that match the same failure pattern, and creates ground truth dataset examples from the production trace inputs.Build: Open a pull request
Apply the proposed fix by opening a pull request in your connected repository. Engine can propose code changes to agents built with Deep Agents, LangChain, and LangGraph.
Test: Generate datasets
Create ground truth dataset examples from production traces for offline evaluation, so you can verify a fix before it ships.
Monitor: Track recurring issues
Scan your tracing projects on a schedule to surface, prioritize, and diagnose recurring issues, and add new matching traces to each issue as they appear.
How Engine differs from Insights
Engine and Insights both analyze your traces, but they answer different questions:- Insights is an analytics tool. It groups traces into categories, which it generates automatically or which you define, and reports metrics for each category so you can see usage patterns and how they shift.
- Engine looks for concrete problems to fix. Each issue it opens comes with a diagnosis, the traces that support it, and a proposed fix.
How Engine works
Engine scans each connected tracing project on a dynamic schedule tuned to balance cost and performance, and clusters and prioritizes the issues it finds by severity.The issue lifecycle
Each issue moves through a closed loop in which Engine:- Detects a recurring issue in your traces.
- Diagnoses the root cause against your traces and connected source code.
- Proposes a fix as a pull request.
- Tracks the issue over time, automatically adding new traces that match the same pattern, and generates ground truth dataset examples so you can verify a fix. See Find and fix issues.
- Reopens the issue automatically if it resurfaces after being closed.
How Engine selects traces
Engine draws on several signals to decide which traces to review. It looks for traces that raise errors, traces that behave unusually, and problems in traces that look normal, such as a wrong answer that raises no error. It also uses other curated signals. Trace feedback is another signal Engine uses. It includes scores from online evaluators and annotation queues, ratings from your users, and traces you flag for Engine. Feedback added after a trace ran still counts, such as a score a reviewer leaves in an annotation queue a week later. Engine uses trace feedback from any source automatically, so you do not need to set anything up. When trace feedback leads Engine to an issue, the issue lists the feedback Engine used, so you can see which scores or ratings surfaced the problem. For more information, see Review evidence.How Engine learns from your actions on issues
Engine gets more accurate as you work through issues. On each scheduled scan, it reviews the actions you took on issues since the last scan and turns each one into a general rule in the User Preferences section of the project’s agent overview. Later scans use those rules to decide what to flag and how to prioritize it. Engine learns from these actions, including any reason you give with them:- Closing an issue or marking it Incorrectly Flagged: Engine treats that kind of issue as lower priority.
- Changing an issue’s priority: Engine records how severe that category of issue is for your agent.
- Opening a pull request: Engine records that the category is real and worth a proposed fix.
Why connect a repository
Connecting a GitHub repository or GitLab project is optional, but Engine finds more issues, and more useful ones, when it can read your source code. With source access, Engine locates the code path behind a failing trace and grounds its diagnosis and proposed fix in your actual implementation. That holds even if you never merge an Engine pull request: you can apply the fix yourself or copy the fix context into your coding assistant. Engine’s GitHub access is fixed. Through the GitHub App, Engine can:- Read the repositories you select when you install the app.
- Open pull requests from fix branches it creates.
Manage Engine costs
Understand LSU costs
LangSmith Cloud uses LangChain-managed inference. Self-hosted deployments can also use their own model providers, with API keys or cloud identity. BYOC deployments use only their own model providers. With your own providers, you pay them for model calls and LangChain charges a lower LSU rate for Engine usage.
Set the analysis level
The analysis level controls how many of your project’s traces Engine analyzes, and so how many LSUs it uses. Choose it when you turn on Engine for a project, and change it later under Analysis level in the Engine settings panel:- Reduced: Monitors fewer traces at a lower cost.
- Standard (default): Analyzes more of your eligible traces for fuller coverage.
- Expanded: Maximum coverage for high-volume projects. Available only for projects with enough tracing volume.
Set spend limits and monitor usage
Organization Admins can set spend limits at two levels:- Org-wide limit: Open Settings and select Engine under Engine. On the month-to-date spend card, click the limit chip and set a limit in the popover.
- Project or environment limit: Open the Engine tab in a tracing project or agent environment and click the Configure Engine icon. Under Spend limit, click the limit chip (the chip reads None when no limit is set) and set a limit in the popover.
- Org-wide limit: Choose Default, No limit, or a custom cap. Until an admin chooses, the default applies (750 LSU per month, $750), so Engine spend is capped even though no one has set a limit. The Engine settings page names the enforced limit and its source.
- Project or environment limit: Leave the popover’s field blank for no limit. Use Remove limit to clear a cap you set earlier.
Get started
Set up Engine
Enable Engine for your organization and turn it on for a tracing project or agent environment.
Find and fix issues
Review the issues Engine detects, open pull requests, and create dataset examples.
Connect Engine to your repository
Let Engine read your source code and open pull requests with proposed fixes.
Engine notifications
Send detected issues to Slack, Jira, or your incident-management and paging tools.
See also
- Validate fixes automatically: Replay an issue’s traces to confirm it reproduces and that Engine’s fix resolves it (beta, LangSmith Cloud only).
- Proactively identify issues with Red Teaming: Probe a deployed agent with synthetic requests before failures reach production (beta, LangSmith Cloud only).
- Engine security: How Engine handles your data, and its GitHub and model subprocessor controls.
- Engine on self-hosted and BYOC: Install and run Engine on a self-hosted LangSmith instance or a BYOC data plane.
Connect these docs to your agent of choice via MCP for real-time answers.

