Bruin Academy

Guide

Build a Self-Healing Pipeline Agent

Give an AI agent the context and Cloud access it needs to investigate pipeline failures, run allowed fixes, and check the result.

What

Use this guide with an existing Bruin pipeline. A self-healing pipeline agent reads the failure and your project context, finds the likely cause, runs a recovery step you allow, and checks the result. It can only do what you configure it to do.

How

  1. Set the agent's job and the actions it may run automatically.
  2. Add context: asset descriptions, checks, ownership, lineage, and any tests you have.
  3. Set up local MCP and CLI access, or a Cloud agent, then test the access.
  4. Handle an incident: find the cause, run the allowed fix, check the result, and report what happened.

Before you start

  • Bruin CLI installed and a Bruin project with at least one pipeline
  • A Bruin Cloud project that can run the pipeline
  • Permission to create a limited Bruin Cloud API token or configure a Cloud agent
  • A Git-based review workflow for proposed pipeline fixes

Get help & contribute

Sign up to our newsletter

Practical updates on open-source data pipelines, AI analysts, governance, and what we are shipping at Bruin.

The signup form is hosted by Brevo. Accept cookies to load it.