Inspiration
I often work with .gitlab-ci.yml files. They are powerful, but sometimes hard to write and understand. I wanted to create a tool that uses AI to analyze, fix, and explain these files easily.
What it does
CI Copilot is an AI-powered assistant for GitLab CI/CD pipelines. It helps developers by:
Suggesting improvements
Fixing common issues
Auditing the file for problems in security or performance
Explaining what the pipeline does in simple English
You can use it from the command line or as a local API server.
How we built it
The CLI is built with Go
The AI service uses FastAPI in Python
I use Gemini 1.5 (Google AI) for generating responses
Prompts are stored in separate files so they can be updated or reused
The structure is modular, so it’s easy to add new models or features later
Challenges we ran into
Making the AI give clean and useful answers
Keeping the format strict (no extra markdown or broken JSON)
Designing the CLI to be simple but powerful
Organizing the project so it’s easy to maintain and grow
Accomplishments that we're proud of
I built both the CLI and AI server by myself
Everything works together smoothly
It’s easy to use and extend
It’s already helpful for real CI/CD use cases
What we learned
Prompt design is key — the AI needs good instructions
Gemini works great for DevOps tasks
Simple tools can solve real problems
Building AI-powered dev tools is very fun and useful
What's next for CI Copilot
GitLab-native integration Run checks automatically when a .gitlab-ci.yml file is pushed — no need to modify pipeline files. This could be done using GitLab server-side hooks or custom integrations.
Standalone CI/CD AI module Build a dedicated AI model trained only on real-world .gitlab-ci.yml files. This model would be fast, reliable, and focused — no extra logic, just CI/CD understanding.
Pluggable AI Currently powered by Google Gemini. The system is designed to grow — I plan to develop a personalized AI model trained specifically for CI/CD workflows.
Custom rule sets Let teams define their own CI/CD rules (style, security, policies) and let the assistant enforce them.
IDE integration Create a plugin for VS Code or JetBrains to give real-time suggestions while editing .gitlab-ci.yml.
Web dashboard Show issues, improvements, and project stats in a web UI — perfect for teams or DevOps leads.
Enterprise mode Support offline usage, internal AI models, and extra security settings for companies.
Log in or sign up for Devpost to join the conversation.