🚀 CodePilot AI: Autonomous Engineering Manager for GitLab

Inspiration

Modern software teams spend a significant amount of time on repetitive engineering management tasks such as reviewing merge requests, planning sprints, tracking technical debt, assessing release readiness, and creating project management artifacts.

While AI-powered coding assistants have become common, most solutions still require humans to manually coordinate development workflows and make operational decisions.

We wanted to build something beyond a chatbot—a true AI agent that can understand a software project, reason across multiple engineering signals, and take meaningful actions.

Inspired by the vision of autonomous software operations, we created CodePilot AI, an AI Engineering Manager that works directly within GitLab using the Model Context Protocol (MCP) and Google Cloud Agent Builder.


🎯 What It Does

CodePilot AI acts as an autonomous Engineering Manager for GitLab projects. The platform continuously analyzes repositories, merge requests, issues, pipelines, and project activity to help engineering teams make better decisions and automate routine workflows.

🧠 Repository Intelligence

  • Analyzes repository structure and overall project health.
  • Detects technical debt, TODOs, dead code, and duplicate code.
  • Generates repository health scores.
  • Automatically creates GitLab issues for identified improvements.

🔍 AI Code Review

  • Reviews merge requests automatically.
  • Identifies security vulnerabilities and performance bottlenecks.
  • Provides code quality recommendations directly within GitLab.
  • Helps maintain engineering standards at scale.

📋 Sprint Planning Assistant

  • Converts feature requests into actionable development work.
  • Creates epics, issues, and implementation tasks.
  • Generates acceptance criteria.
  • Assigns priorities and effort estimates.

🛡️ Release Guardian

  • Evaluates deployment readiness using code and pipeline signals.
  • Detects release blockers and high-risk changes.
  • Generates release checklists.
  • Produces Go / No-Go deployment recommendations.

📈 Engineering Insights

  • Monitors project velocity and engineering health.
  • Identifies workflow bottlenecks.
  • Generates executive summaries and actionable recommendations.
  • Provides data-driven project insights.

💡 Unlike traditional assistants, CodePilot AI doesn't just provide suggestions—it takes action directly inside GitLab through real-time MCP integrations.


⚙️ How We Built It

We built CodePilot AI using Google Cloud's AI ecosystem combined with GitLab MCP integration.

Core Technologies

  • Google Cloud Agent Builder
  • Gemini Models
  • GitLab MCP Server
  • Vertex AI
  • Cloud Run
  • React Frontend

Multi-Agent Architecture

CodePilot AI follows a multi-agent architecture where specialized agents collaborate to solve complex engineering management tasks.

Specialized Agents

  1. Repository Intelligence Agent
  • Analyzes project structure and technical debt.
  1. Code Review Agent
  • Evaluates merge requests and code quality.
  1. Sprint Planning Agent
  • Converts requirements into development tasks.
  1. Release Guardian Agent
  • Assesses deployment readiness and deployment risk.
  1. Engineering Insights Agent
  • Generates project-level analytics and recommendations.

Architecture Diagram

┌────────────────────┐
│  GitLab MCP Server │
└─────────┬──────────┘
          │
          ▼
┌──────────────────────────┐
│ Google Cloud Agent Builder│
└─────────┬────────────────┘
          │
          ▼
┌──────────────────────────┐
│ Gemini Reasoning Engine  │
└─────────┬────────────────┘
          │
 ┌────────┼────────┬─────────────┐
 ▼        ▼        ▼             ▼

Code     Sprint   Release    Engineering
Review   Planning Guardian   Insights
Agent    Agent    Agent      Agent

Gemini serves as the primary reasoning engine, while Agent Builder orchestrates workflows between specialized agents.

Through GitLab MCP, agents can securely:

  • Access repository data
  • Analyze merge requests
  • Create and update issues
  • Generate project artifacts
  • Post code reviews
  • Produce release reports

🚧 Challenges We Ran Into

Designing for Autonomy

One of the biggest challenges was building an agent that goes beyond simple request-response interactions and demonstrates true execution autonomy.

Workflow Coordination

Coordinating multiple specialized agents while maintaining context across repository analysis, sprint planning, code review, and release management workflows required careful orchestration.

Prompt & Tool Optimization

We had to carefully structure prompts and tool interactions to ensure agents reasoned effectively using real GitLab project data while avoiding unnecessary or redundant actions.

Shifting the Mental Model

Adopting MCP-based workflows required a shift from traditional chatbot thinking toward an Analyze → Decide → Act execution model.


🏆 Accomplishments We're Proud Of

  • 🚀 Built a true multi-agent engineering management platform.
  • 🔌 Successfully integrated GitLab through the Model Context Protocol (MCP).
  • 🤖 Enabled autonomous issue, task, and artifact creation directly within repositories.
  • 🛡️ Automated release readiness assessments and deployment risk analysis.
  • 💼 Demonstrated practical business value by actively participating in software delivery workflows instead of functioning as a passive chatbot.

📚 What We Learned

Throughout this project, we learned that the most valuable AI agents are not those that generate the longest responses, but those that can make informed decisions and execute meaningful actions.

Key Learnings

  • Google Cloud Agent Builder orchestration patterns
  • MCP-based agent ecosystems
  • Multi-agent collaboration architectures
  • Tool-driven reasoning systems
  • Autonomous workflow execution
  • AI governance and guardrail design

We also reinforced how critical deep contextual integration and robust workflow safeguards are when building reliable autonomous systems.


🔮 What's Next for CodePilot AI

Our vision is to evolve CodePilot AI into a fully autonomous Engineering Operations platform.

Future Enhancements

📊 Predictive Engineering Intelligence

  • Predictive release risk forecasting using historical deployment data
  • Engineering productivity trend analysis
  • Failure pattern detection

🚨 Automated Incident Response

  • Production monitoring integrations
  • AI-driven incident triage
  • Automated remediation workflows

👥 Capacity & Planning Intelligence

  • Team capacity forecasting
  • Cross-repository dependency analysis
  • Resource allocation recommendations

🔒 Security & Compliance

  • Continuous compliance auditing
  • Automated remediation recommendations
  • Security posture monitoring

💡 Intelligent Team Coaching

  • AI-generated sprint retrospectives
  • Velocity-driven improvement recommendations
  • Engineering process optimization

🌐 Multi-Platform Expansion

Support for additional engineering ecosystems including:

  • GitHub
  • Jira
  • Linear
  • Azure DevOps
  • Bitbucket

🌟 Vision

CodePilot AI transforms software delivery from a human-coordinated process into an AI-assisted autonomous engineering operation—allowing teams to focus on building great products while intelligent agents handle the operational complexity.

Built With

Share this project:

Updates