Step analysis with AI
Analyze successful steps and other steps that have run with Harness AI to understand logs, execution details, and next actions
Step analysis with AI provides structured, actionable analysis of successful steps and other steps that have run. Use it to understand long logs, review what a step did, and investigate warnings or time spent in a successful execution. For step failures, Harness AI uses the existing Pipeline Error Analyzer capability.
Step analysis supports any step type across Harness modules. It brings step diagnosis, available through Harness AI Chat and the Harness MCP Server, directly into the pipeline execution UI.
What you will learn from this topic
Analyze an individual step from the pipeline execution UI.
Review structured analysis of successful steps and other steps that have run.
Choose between step analysis and Pipeline Error Analyzer.
Before you begin
Enable Harness AI for the account, organization, or project where you want to analyze a step.
Ensure the
AI_PIPELINE_ANALYZERfeature flag is enabled for your account.Open a pipeline execution you have permission to view.
The Analyze AI action is visible only when Harness AI and the AI_PIPELINE_ANALYZER feature flag are enabled.
A failed execution is not required. Step analysis is available across modules and is not restricted to CI or CD step types.
Analyze a step execution
Select Analyze AI
In the pipeline graph view, select Analyze AI in the selected step's Details panel.

You can also turn on Console View, select a step in the left panel, and select Analyze AI above its logs.

Review the analysis
Harness AI opens a chat with the request Analyze the logs for this step. Review the response for the selected step's outcome, execution breakdown, and actionable findings.
For example, analysis of a successful Docker build and push can summarize the image and registry, break down the build process, and explain cache activity recorded in the logs. The details depend on the selected step and its available execution data.

Ask follow-up questions
Continue in the same chat to explore a finding. For example:
"Which operations account for the time spent in this step?"
"Explain the warnings in this successful step."
"What do the logs tell me about cache usage?"
"What should I investigate next?"
Review the underlying logs and execution details when evaluating the recommendations.
Step analysis and Pipeline Error Analyzer
Step analysis complements Pipeline Error Analyzer by extending analysis to successful steps and other steps that have run. Step failure diagnosis uses the existing Pipeline Error Analyzer capability.
Understand a successful step or another step that has run, including long logs or warnings
Select Analyze AI on the step.
Investigate a step failure and get help identifying its cause
Use Analyze Error in the existing Pipeline Error Analyzer experience.
Both experiences require Harness AI to be enabled.
Troubleshoot access
If Analyze AI does not appear:
Confirm that Harness AI is enabled for the relevant account, organization, or project.
Confirm that your account has the
AI_PIPELINE_ANALYZERfeature flag enabled.Select an individual step in a pipeline execution to open its details or logs.
Next steps
Pipeline Error Analyzer: Investigate pipeline failures.
Harness AI Chat: Continue investigating with natural language prompts.
Harness MCP Server: Access Harness from your AI client.
Last updated
Was this helpful?