GitLab with an AI Agent: Merge Requests, Issues, Pipelines
· DoubleX
Quick answer
With an AI agent connected to GitLab, you can query projects, issues, merge requests and pipelines in plain language and get summaries, such as open merge requests, failed pipelines or a morning digest. In DoubleX IA OS, you can also schedule these routines and combine them with Slack, Sentry and Google Sheets.
Engineering teams spend a lot of time asking the same questions in GitLab: what is waiting for review, which pipeline broke, which issues are stuck. An AI agent can answer those questions on request or on a schedule, so nobody has to open five tabs. This guide focuses on what the GitLab connector does: query and summarize projects, issues, merge requests and pipelines.
What tasks can you delegate to an AI agent in GitLab?#
You can delegate read-and-summarize work: finding issues, listing merge requests, checking pipeline status and turning the results into a short report. The connector lets the agent consult projects, issues, merge requests and pipelines. It does not need you to write queries or scripts.
| Task | How the agent helps | GitLab data used |
|---|---|---|
| Review queue | Lists open merge requests and who has been waiting longest | Merge requests |
| Backlog triage | Groups open issues by theme and flags old ones | Issues |
| Build health | Shows failed pipelines and summarizes what happened | Pipelines |
| Project overview | Describes the state of a project in a few lines | Projects |
| Weekly report | Compiles the above into a document or spreadsheet | All of the above |
What are examples of requests about issues and merge requests?#
Good requests name the project, the thing you want to see and the format of the answer. The agent reads the data in GitLab and writes the summary for you. Here are requests you can copy and adapt:
- "List the open merge requests in the payments project and tell me which ones have been waiting the longest."
- "Summarize the issues opened in the last week in the web-app project, grouped by theme."
- "Which issues in the API project are still open and have not been updated in a month?"
- "Explain in three sentences what this merge request changes, based on its description and discussion."
Because the connector is focused on consulting and summarizing, treat the agent as a fast reader of your repositories. For a related workflow, see how to review pull requests with an AI agent.
How do you track failed pipelines and summarize what happened?#
Ask the agent to check pipelines for a project, filter the ones that failed and explain the result in plain language. It reads pipeline information through the GitLab connector and gives you a short summary instead of a list of runs.
A useful request looks like this: "Check the pipelines in the checkout project from the last 24 hours. List the ones that failed and summarize what happened in each."
To go further, combine this with an error tracker. If your team uses Sentry, the agent can look at related errors in the same conversation and tell you whether a failed pipeline lines up with a new issue.
Which scheduled routines are worth setting up?#
The most useful routines are the ones you would otherwise check by hand every day: a morning digest, a weekly review queue and a pipeline check. In DoubleX IA OS, a routine can run at a set time, such as every day at 8 a.m. or every Monday, and it runs with the permissions of the person who created it.
- Create an agent for engineering in the Agents screen, or start from the diagnostic and let the system suggest one.
- Connect GitLab in the Connectors screen and choose which actions the agent can use.
- Set permissions for the agent, keeping it read-only if you only want summaries.
- Ask for the task once and check the answer.
- Schedule it as a routine with the time and frequency you want.
Routine ideas:
- "Every weekday at 8 a.m., summarize open merge requests and failed pipelines in the payments and web-app projects."
- "Every Monday, list issues that have not been updated in 30 days."
- "Every hour, check pipelines in the checkout project and tell me if any failed."
To learn how schedules work, read the documentation on triggers. If you have not connected GitLab yet, follow the guide on connecting GitLab to an AI agent.
How do you combine GitLab with Slack, Sentry and spreadsheets?#
You combine them by connecting each tool and asking for one result that uses several. The agent can read from GitLab and Sentry, then post to Slack or write to Google Sheets, depending on the connectors and permissions you enable.
| Combination | What you can ask for |
|---|---|
| GitLab + Slack | A morning summary of merge requests and pipelines sent to a team channel |
| GitLab + Sentry | A check of whether a failed pipeline matches new errors or releases |
| GitLab + Google Sheets | A weekly row with counts of open issues and merge requests for tracking |
Example requests:
- "Summarize today's failed pipelines and send the summary to the engineering channel in Slack."
- "Add a row to the weekly engineering sheet with the number of open merge requests and open issues."
Sending a message or changing a sheet alters something outside GitLab, so the agent asks for confirmation first unless you decide otherwise.
How do you keep control with permissions, confirmation and history?#
You keep control by choosing what each agent can do and by reviewing its history. For each agent, the company picks which systems it uses and which actions it can run in each one, and actions that change data can stay off, leaving the agent read-only.
- Before sending, deleting or changing something in your systems, the agent asks for confirmation and shows the steps it took.
- Every request becomes a task in the Tasks screen, with the request, each tool used and the result.
- Credentials for connections are stored encrypted, and company content is not used to train models.
For more on how connectors are managed, see the Connectors documentation.
Frequently asked questions#
Can the agent create or change issues and merge requests in GitLab?#
The GitLab connector is for consulting projects, issues, merge requests and pipelines, so this guide focuses on reading and summarizing. Check the permissions in the Connectors screen to see exactly which actions are available.
Do I need to know how to code to use this?#
No. You describe what you need in your own words and the agent builds the request. Developers who want more control can use the REST API, CLI or MCP server.
Can the agent run on its own every morning?#
Yes. You can schedule a routine to run at a set time, such as every day at 8 a.m., or when an event happens. The routine runs with the permissions of the person who created it.
Is my code or company data used to train AI models?#
No. Company content is not used to train models, and requests only go to AI providers that do not use what they receive for training. There is also a zero-retention option in the Models screen.
Can I see what the agent did?#
Yes. Each request is saved as a task with the full history: the request, every tool the agent used and the result, so you know who asked, what was done and when.