Skip to content

Valentina14142000/gitlab-self-healing-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Self-Healing CI/CD Agent for GitLab

Overview

CI/CD pipelines frequently fail due to small errors such as missing dependencies, lint issues, or misconfigurations. Developers often spend valuable time debugging these failures manually.

The Self-Healing CI/CD Agent automatically detects pipeline failures, analyzes error logs using AI, and proposes fixes by generating automated merge requests.

Problem

Broken CI/CD pipelines slow down development teams and interrupt the software delivery process.

Developers must manually investigate logs, determine the root cause, and create fixes.

Solution

Our AI agent integrates with GitLab pipelines and performs the following workflow:

  1. Detects pipeline failures through GitLab events
  2. Collects and analyzes CI logs
  3. Uses AI to identify the root cause
  4. Generates a fix suggestion
  5. Creates a merge request with the proposed fix

This reduces debugging time and accelerates development workflows.

Features

  • Event-driven GitLab agent
  • Automated pipeline failure detection
  • AI-powered log analysis
  • Automated fix generation
  • Merge request creation

Repository Structure

agent-node → webhook listener and GitLab API integration ai-engine → AI analysis service demo-project → example failing pipeline prompts → AI prompt templates

Demo

The demo project intentionally contains a missing dependency to simulate a real CI/CD pipeline failure.

When the pipeline fails, the Self-Healing Agent analyzes the logs and suggests adding the missing dependency to resolve the issue.

Future Improvements

  • Support multiple programming languages
  • Automatic patch generation
  • Security vulnerability remediation
  • Intelligent test generation

Author

Valentina Kiyungi

About

The Self-Healing CI/CD Agent automatically detects pipeline failures, analyzes error logs using AI, and proposes fixes by generating automated merge requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors