Red Teaming is in private beta. It is available only on LangSmith Cloud, for organizations where it has been enabled. It supports only agents running on LangSmith Cloud deployments, not externally hosted agents. To request access, join the waitlist.
How Red Teaming works
Red Teaming probes the deployment set as the tracing project’s baseline deployment. Each run:- Maps the application. Engine reviews up to 25 recent traces from the tracing project and, if one is connected, your code repository. From them, it learns the agent’s prompts, tools, guardrails, and request format. If Engine has already scanned the project, the run starts from the project’s agent overview and runs a shorter confirmation scan.
- Forms hypotheses. Each hypothesis describes one specific way the agent could fail. Engine assigns it an issue class and a scenario type, which records whether an ordinary user could trigger the failure or whether it takes a deliberate attack.
- Probes the deployment. Engine sends up to two synthetic requests per hypothesis to the deployment. A probe reuses the request format of a real trace, but replaces its content with new, synthetic input.
- Judges the results. Engine reviews each probe’s response and trace, then assigns the hypothesis a status and a severity. For an ambiguous result, Engine can send one follow-up probe.
Red Teaming prerequisites
To run Red Teaming, you need:- Engine on the tracing project: Set up Engine for the project that receives your agent’s traces.
- A baseline deployment: A ready, non-preview LangSmith Cloud deployment in the same workspace, set as the project’s baseline. See Set the baseline deployment.
- Permissions:
runs:readon the tracing project to view red-team reports. To start a run, you also needruns:createon the project anddeployments:updateon the baseline deployment. - A connected repository (recommended): With a connected GitHub repository, Engine reads your agent’s prompts, tools, and guardrails from source. Without one, findings rely on traces alone, and the report shows Repository context was not available.
Start a Red Teaming run
To start a run:- In the LangSmith UI, select Engine in the sidebar, then select the tracing project.
- At the top of the left panel, select Red Teaming.
- Click Run red team.
Read a red-team report
Use the report picker at the top of the left panel to choose a run by date. Select Load older reports to page back through earlier runs.Review the overview
When no hypothesis is selected, the right panel shows an overview of the report:- Confirmed findings: The number of confirmed findings, broken down by severity.
- Hypotheses tested: The number of hypotheses the run tested.
- Issue classes tested: How many of the 10 issue classes the run tested.
- Findings by Issue Class: Confirmed findings per issue class.
- Hypothesis Outcomes: Hypotheses by status. Click a status to filter the hypothesis list to it.
- Findings Over Runs: Confirmed findings for each run, stacked by severity. Click a run to open its report.
Browse hypotheses
The left panel groups the report’s hypotheses:- Product-Facing Findings: Confirmed findings that an ordinary user could trigger, with a normal request or a realistic, messy one.
- Technical Hardening Observations: Confirmed findings that take a deliberate attack or a technical boundary check to trigger.
- Legacy Confirmed Findings: Confirmed findings from older reports, recorded before Engine assigned scenario types.
- Other Tested Hypotheses: Every hypothesis that was not confirmed.
A confirmed finding also has a severity: Critical, High, Medium, Low, or Info.
Inspect a hypothesis
Click a hypothesis to open its detail. The detail shows Engine’s conclusion, followed by one card per probe, labeled Prompt 1 and Prompt 2. Each probe has an outcome of Attack Worked, Attack Blocked, or Needs Review. Expand a probe card to see:- The synthetic prompt: The exact prompt Engine sent to the deployment.
- Observed: An excerpt quoted from your agent’s response, with a summary of the probe’s trace, such as its tool calls, tool errors, and token count.
- Expected: What a correct application would have returned.
- View proof trace: Opens the probe’s trace in the side panel.
Red Teaming issue classes
Every hypothesis belongs to one issue class, chosen by the failure’s root cause and the fix it needs. Each report accounts for all 10 classes, and marks each one as tested, untested, or not applicable to the agent.
Two classes have extra requirements:
- Auth Isolation: Red Teaming does not confirm findings in this class. Its hypotheses report as Needs Review or Not Tested.
- Session Integrity: A hypothesis needs a two-turn probe in a single conversation. When no such probe runs, the hypothesis reports as Needs Review or Not Tested.
Run Red Teaming again
Red Teaming carries verdicts forward between runs of the same deployment revision. A new run receives the verdicts from up to five earlier successful runs against the same baseline deployment and active revision. Engine skips hypotheses that earlier runs already confirmed or found safe, unless the new run shows that the behavior changed, and prioritizes hypotheses that needed review. After you deploy a new revision to the baseline deployment, the next run starts without prior verdicts. Use Findings Over Runs to compare confirmed findings across runs.Red Teaming limits
Each red-team run is bounded:How Red Teaming handles your data
- Synthetic probes: Probe content is synthetic. Engine does not copy customer trace content or repository text into probes. A trace supplies only the request format.
- Read-only access: Red Teaming reads your traces with a read-only LangSmith credential and clones your repository with a read-only GitHub token.
- Screened reports: Engine screens model-written report text for secrets before storing it, and bounds the length of response excerpts.
See also
- Validate fixes automatically: Set the baseline deployment and replay issue traces against it.
- Connect Engine to your repository: Give Red Teaming your agent’s prompts, tools, and guardrails from source.
- Engine security: Review how Engine accesses your traces, deployments, and repositories.
Connect these docs to your agent of choice via MCP for real-time answers.

