Troubleshoot builds with Harness AI
Harness AI analyzes log files and correlates error messages with known issues. This feature enables developers to troubleshoot and resolve deployment failures quickly, saving them from sifting through millions of log lines. Harness AI also suggests fixes and predicts potential errors in the code before the build is initiated. This feature works across Harness CI and CD modules.
Get started with AI for CI
To enable Harness AI for CI in your Harness account, perform the following steps:
- Navigate to Account Settings.
- Select Default Settings.
- Expand the Harness AI section.
- Enable the Harness AI setting.
- Click Save.
After enabling Harness AI, AI-driven error analysis and remediation become available when a step fails or when an empty stage (a stage with no steps) encounters a failure.
When viewing the logs for the failed step or stage, select the Harness AI dialog to review error analysis and troubleshooting suggestions.

You can find step logs on the Build details page.
Go to the following Harness legal pages for more information about Harness AI: