Skip to main content

Harness AI DevOps Agent Documentation

The Harness AI DevOps Agent streamlines your DevOps processes by enabling you to create and edit steps, stages, and pipelines with ease. Leveraging the power of Large Language Models, the agent provides intelligent suggestions, automates repetitive tasks, and now generates and integrates OPA Rego policies to help you meet your compliance standards.

Installation and Setup

The Harness AI DevOps Agent is enabled directly within the Harness UI—no separate installation on an external tool or marketplace is required. Follow these steps to activate the agent:

  1. Select Account Settings in the left nav.
  2. Under General, select Default Settings.
  3. Find Harness AI and enable the Harness AI setting.
  4. Optionally, enable Allow Overrides. This will allow orgs and projects in the account to optionally override this setting and disable the agent.
note

The DevOps Agent is available via the Harness UI only

Using Harness AI DevOps Agent: Main Features

Once authenticated, you can leverage the agent’s capabilities to manage your DevOps workflows. The key features include:

FeatureDescription
Step ManagementCreate, edit, and organize individual steps within your pipelines.
Stage ConfigurationModify and configure your stages.
Pipeline OrchestrationBuild and update your pipelines.
Policy Generation and IntegrationGenerate and integrate Open Policy Agent (OPA) Rego policies to meet your compliance standards.

Step Management

Harness AI DevOps Agent enables you to create new steps or edit existing ones.

  • Context-Aware Editing: Edit steps based on your current pipeline configuration.
  • Bulk changes: Update numerous steps at once.

Stage Configuration

Configure stages to logically group related steps in your pipelines. The agent supports:

  • Creating any stage type on the pipeline
  • Creates any steps within the stage with schema validation
  • Configuring advanced settings like failure strategy, conditional executions, and delegate selectors.

Pipeline Orchestration

Manage your complete pipelines with features including:

  • Intelligent Pipeline Creation: Automatically generate pipelines based on project context.
  • Seamless Editing: Modify pipelines quickly to adapt to evolving requirements.

Policy Generation and Integration

The Harness AI DevOps Agent also enhances compliance by generating and integrating policies. This capability allows you to:

Policy FeatureDescription
Automated OPA Rego Policy GenerationGenerate Open Policy Agent (OPA) Rego policies automatically based on your defined compliance requirements.
Seamless Policy IntegrationIntegrate generated policies into your existing workflows to ensure adherence to compliance standards.

This feature helps maintain robust security and compliance postures by ensuring that your pipelines adhere to industry standards.