Strategy20 min read

GitLab Duo Agent Platform Alternative: Proof Beyond the MR

Cognibl is the work-management platform from DILR.AI that refuses a done status until proof of work is attached. This guide sets it against the GitLab Duo Agent Platform, explaining who GitLab records as the author of agent work, what evidence of a run survives, and where a separate done rule adds value.

On this page 14 sections
GitLab Duo Agent Platform Alternative: Proof Beyond the MR COGNIBL GitLab Duo Agent Platform Alternative: Proof Beyond the MR 01 Name the author 02 Approve the merge 03 Keep the evidence 04 Prove the work dilr.ai/blog

GitLab has moved its agents from the editor into the merge request. The GitLab Duo Agent Platform describes itself as an AI-native solution that embeds multiple agents throughout the software development lifecycle, and it reached general availability in GitLab 18.8. A Developer Flow can take an issue and turn it into a merge request, a Code Review Flow can review it, and a Fix CI/CD Pipeline Flow can repair the job that failed. For an engineering lead whose whole delivery system already runs on GitLab, that is a serious proposition, because the agents work inside the tool the team already trusts.

The harder question for that engineering lead is not whether the agents can write the change. It is what GitLab records about the work afterwards: who it names as the author, who may approve, what evidence of the agent's run survives, and for how long. GitLab answers each of those questions in its documentation, and the answers are more specific than most teams realise. This guide reads them closely and then sets them against Cognibl, from DILR.AI, a work tracker that refuses a done status until proof of work is attached.

The scope is deliberately narrow. The general split between the merge gate and the done gate belongs to our coding agent review queue guide and our Cursor cloud agents comparison. The chain from an assigned issue to a Done column on GitHub, and the rule that the requester cannot approve, belong to our GitHub Copilot coding agent comparison. This post holds what is specific to GitLab: composite identity, authorship of agent merge requests, session retention, audit signals and human checkpoints inside flows.

This guide is shipped by the team behind Cognibl, a work tracker where people and AI agents share one board and a task cannot reach done without proof of work attached. Or see DATS, our five-stage system for placing AI where it changes the numbers.

What is the GitLab Duo Agent Platform, and what does it do well?

The GitLab Duo Agent Platform is GitLab's system of AI agents and flows that work inside projects, issues, merge requests and pipelines. GitLab builds foundational flows for common tasks, such as turning an issue into a merge request, reviewing code and fixing a failing pipeline, and teams can build custom flows. It runs on GitLab.com, GitLab Self-Managed and GitLab Dedicated, which is its main strength.

GitLab's foundational flows page lists twelve flows maintained by GitLab, from Agentic Breaking Change Resolution through Code Review, Developer, Fix CI/CD Pipeline, Generate Workplan and Recommend Reviewers to several security flows. A flow, in GitLab's own definition on the flows page, is a combination of one or more agents working together to solve a complex problem. In the GitLab UI, flows run directly in GitLab CI/CD on runners, so the work happens beside the pipelines the team already operates, a pattern our developer productivity work meets often. Custom flows, which let a team define its own steps, agents and automations, became generally available in GitLab 19.2.

Three things set it apart for a team that has standardised on GitLab:

  1. It starts where the work already is. The Developer Flow starts when someone assigns the flow to an issue, mentions the flow's service account, selects Implement, or changes a work item status. Nobody has to copy context into another tool.
  2. It goes past the merge request. GitLab's product page puts the pitch plainly: coding agents get you to the MR, and the platform carries the change through review, tests, security and pipelines.
  3. It runs where regulated teams need it. The Agent Platform documentation covers GitLab Duo Self-Hosted with a self-hosted AI Gateway, and the product page describes bringing your own model into a single-tenant AI Gateway on GitLab Dedicated.

Packaging is not simple, and a buyer should read it directly rather than from a summary. The Agent Platform page header lists the Premium and Ultimate tiers, while its feature table shows many features on Free as well and says Free tier use requires the purchase of GitLab Credits. Several features, including the Resolve SAST Vulnerability flow and the Security Analyst Agent, are Ultimate only. We give no credit figures here; check your own subscription with GitLab.

If your team is still deciding where agents belong in delivery at all, our AI developer productivity solution and the proof of done guide cover that earlier decision.

Who is the author when a GitLab Duo flow writes the code?

GitLab Duo records agent work under a composite identity: one token that combines a service account, which performs the actions, with the human user who started the flow. Commits show they were created by the service account on that person's behalf, and when a flow opens a merge request, GitLab attributes the merge request to the human user who triggered it, not to the agent.

GitLab's composite identity documentation explains the design. Turning on a flow creates a service account in the top-level group, with a username along the lines of duo-<flow_name>-<top_level_group_name> for a foundational flow, and adds it to the project with the Developer role. When a person runs the flow, the run uses a one-time composite identity whose access is the person's role or the service account's Developer role, whichever is more restrictive. GitLab's own example is a Maintainer: when the service account is a Developer, the Developer role is used. GitLab frames the benefits as traceability, security and accountability: agent activity is visible as agent activity, and the human who asked is embedded in the token.

The merge request rule is the part engineering leads most often miss. GitLab attributes an agent-opened merge request to the triggering human so that the project can adhere to compliance frameworks that require segregation of duties, and it names SOC 2, SOX, ISO 27001 and FedRAMP as frameworks that typically require that a user cannot both author code changes and approve them for production deployment. The reasoning on that page is direct:

"From a compliance perspective, prompting an AI system to write code is equivalent to writing the code yourself." GitLab, Composite identity documentation

There are two exceptions worth writing down. Composite identity does not apply to GitLab Duo Agentic Chat in the UI and IDE. And flows started by a scheduled automation run with no human user at all: they run as a dedicated service account, and that account's role is the only limit on what the flow can do. Our guide to recurring agent tasks covers why scheduled runs need their own evidence. GitLab also notes that this attribution covers authorship only and does not decide who is billed for usage.

For an engineering lead, the practical reading is that GitLab answers the question "whose change is this?" in a way an auditor will recognise. The person who prompted the agent owns the change. That is a sound answer to an authorship question. It is not an answer to a completion question, which is where the rest of this guide goes. Our AI agent task verification guide explains why identity and verification are separate problems.

Who can approve a merge request that a GitLab Duo agent opened?

In GitLab, approval follows the project's merge request approval settings, and the pages we read describe no separate approval path for an agent-opened merge request. By default the creator of a merge request cannot approve it. Because GitLab attributes an agent-opened merge request to the person who triggered the flow, our reading is that this default stops that person approving the agent's change.

GitLab's approval settings documentation states both defaults. The first, Prevent approval by merge request creator, is on: by default the author cannot approve. The second, Prevent approvals by users who add commits, is a separate setting. By default the Git author and Git committer of each commit can approve, and turning the setting on excludes both identities. Read together with the composite identity rule, a team that wants nobody connected to an agent's commits to approve them should check whether that second setting is on, because GitLab does not turn it on by default, and the pages we read do not say whether the triggering person counts as a Git author or committer of the agent's commits.

We have labelled the interaction as our reading on purpose. GitLab's documentation states the attribution rule and the approval defaults on separate pages; it does not, on the pages we read, walk through the combined case for an agent-opened merge request. Test it in a sandbox project before relying on it in an audit.

Approval is still a merge decision. It answers whether this change should enter the default branch, and GitLab's controls for that question are mature. The same split on GitHub, where the requester of a Copilot pull request cannot approve it, is covered in the GitHub Copilot comparison, so we do not repeat it here.

When does GitLab treat an issue as finished?

GitLab treats an issue as finished when it closes, and closing can happen automatically. A closing pattern such as "Closes #4" in a merge request description closes the referenced issue when the merge request is merged into the default branch. Separately, on Premium and Ultimate, setting a work item status in the Done or Canceled category closes it.

GitLab's issue management documentation gives the example plainly: with "Closes #4, #6, Related to #5" in a merge request description, issues 4 and 6 close when the merge request is merged, while issue 5 is only marked as related. The keyword families are close, fix, resolve and implement in their usual forms, and GitLab Self-Managed administrators can change the default closing pattern. A closing pattern also works when a commit carrying it is pushed to the default branch.

The work item status documentation adds a richer workflow on Premium and Ultimate. The default statuses are To do, In progress, Done, Won't do and Duplicate, and they cannot be modified. Statuses in the Done and Canceled categories automatically set the work item to closed. Status is configured once, for the top-level group, and its subgroups and projects use the same statuses. Our Jira Rovo comparison looks at the same status question on Jira.

Notice what the documentation does and does not say. It says a Done status closes the item. It does not say, on the pages we read, that a merge or a closing pattern sets the status to Done, so do not assume the board and the issue state always move together. Check one of your own merged agent merge requests and look at both.

There is also a loop worth seeing. Changing a work item status is one of the events that can start the Developer Flow. So a status change can start an agent, and a merge with a closing pattern can close the issue the agent worked on. Between those two events, the completion decision lives wherever your team's review habits put it. For a bug fix whose definition is the diff, that is fine. For work whose definition of done sits outside the code, our coding agent artefacts guide covers which outputs actually prove the work.

What evidence of a GitLab Duo agent run survives, and for how long?

GitLab keeps a session for each flow, Agentic Chat and external agent run, but sessions are automatically deleted 30 days after the last activity. Other evidence sits in other places: project membership, audit events, CI/CD job logs and API logs, and the pages we read give a retention period only for sessions. GitLab treats membership, sessions and data access as separate signals, and each has limits a buyer should know before an audit.

The sessions documentation says GitLab creates a session each time GitLab Duo Agentic Chat, a flow or an external agent runs, and shows its status and execution data under AI > Sessions. The retention rule is the one to write into your evidence policy: sessions are automatically deleted 30 days after the last activity, the period resets each time someone interacts with the session, and in the IDE a user can delete sessions sooner. A session that nobody revisits is gone a month later, which is why our proof of done guide treats the completion record as its own object.

The composite identity page has a section on investigating service account activity, and it reads like an auditor's checklist:

  • Membership shows the service account is authorised to access a project, not that it did. GitLab advises using the members list as the authoritative source, because not every foundational flow membership change creates an audit event.
  • Sessions show a flow used the service account and which user the run is attributed to, alongside the CI/CD job logs, which show the commands the flow ran on the runner. Sessions are deleted after the retention period.
  • Data access shows which requests the composite identity made. The relevant audit events record REST API requests only, not GraphQL requests or Git operations such as cloning the repository, and AI audit events are available only if AI audit event storage was turned on before the session ran.
Where GitLab keeps evidence of one agent run
01MembershipAuthorised, not used02Session and joblogDeleted after retentio…03Data accessConditions apply04Completion recordHeld outside the run
GitLab treats membership, sessions and data access as separate signals; the completion decision is a fourth question none of them answers.

There is a newer signal on the work items themselves. In GitLab 19.7, GitLab introduced agent attribution on comments and work items, which shows a line such as "Session by <agent_name> on behalf of @". It is a beta feature behind a flag that is disabled by default, so do not plan an evidence trail around it until it reaches your instance.

None of this is a weakness in GitLab's design. In our reading, sessions work as operational records for working with agents, audit events as security records and job logs as build records. None of them is presented as the durable record of why a piece of work was accepted as finished. Our banking audit trail guide shows why that distinction matters to a regulated firm.

Where do human checkpoints sit inside a GitLab Duo flow?

A human checkpoint in a GitLab Duo flow is a pause the flow's author builds in. A custom flow must include a HumanInputComponent in its flow definition for the run to stop and wait. At that point the person reviews what the agent has done and chooses Approve, Reject or Modify, and GitLab raises a to-do item and an email so the pause is noticed.

The sessions documentation describes the mechanics. When a flow reaches a checkpoint, execution pauses. Approve lets the agent continue with its planned actions, Reject stops the flow immediately, and Modify sends feedback that returns the agent to the checkpoint for another review. A to-do item labelled "Duo Workflow approval required" appears in the person's to-do list and is marked done automatically once they act. Generally available since GitLab 19.6, the right sidebar's session list also has a "Needs a decision" tab for sessions waiting on a person. Deciding where those pauses belong is part of our five-stage DATS system.

Two details shape how a team should use this:

  1. Checkpoints are a design choice, not a default. The documentation we read ties the HumanInputComponent to a custom flow's definition, so the flow's author decides where a run pauses. The Developer Flow in the GitLab UI, by contrast, runs in the background and then creates or updates a merge request for review.
  2. A checkpoint approves the next step, not the outcome. Approve, Reject and Modify all act on the agent's proposed next actions. They are a steering control during the run. The question of whether the finished work met its definition of done comes after the run, and the checkpoint record lives in a session that retention will eventually remove.

GitLab's product page promises a human checkpoint where your policy calls for one, and the docs deliver that. The job an engineering lead still has to design is the after-the-run decision: who looks at the evidence, against what definition, and where that look is recorded. The same diagnostic logic underpins our AI execution office, which sets up that supervision as a working routine rather than a policy document.

How does Cognibl, from DILR.AI, decide that work is done?

Cognibl decides that work is done with a rule on the status itself. A task cannot reach its done status until proof of work is attached: a CSV saying what was done, the documents it references and, for code, a coverage report. Without that proof the status change is refused, for people and agents alike, and merging a pull request moves the card one step, never straight to done.

The Cognibl product page describes the run in five steps. A person assigns a task to a named agent from the assignee list. The agent moves the task to In progress on its own, works on a branch, runs the repository's tests and opens a pull request early. It attaches proof of work, including screenshots taken while testing the result in a headless browser. It writes a closing comment, and only a person can merge. A run that ends without proof stops at Blocked with the comment "Run ended without proof." so that somebody looks at it.

The proof is checked in three layers, cheapest first. Deterministic checkers go first and decide what a machine can decide outright, such as the template format, the required files and the thresholds. Then an AI verification flow reads the proof against the definition of done line by line and writes the summary a reviewer starts from. Then a person reviews a share of the passes. The two AI flows on the product flag problems; people decide. For a closer look at how those checks shape a team's queue, see our guide to recurring agent tasks with proof.

The record is built to outlast the run. Cognibl keeps a reference and a content hash for each proof file, never a second copy, and editing proof creates the next version. Every tool call an agent makes through the gateway, whether allowed, refused or failed, is written to an append-only, hash-chained trace that is redacted at capture and written by the gateway, not reported by the agent. For a UK team, the product page says traces are redacted at capture and payloads stay out of application logs, which makes the trace a UK GDPR question as much as an engineering one. Tools are granted toolset by toolset and all are off by default; the MCP skills library guide covers how versioned agent instructions sit alongside that.

Each run also gets a token scoped to its task, revoked when the run ends, and Git runs through a proxy that refuses a push to the base branch. Our microVM isolation guide explains what that boundary buys.

There is one limit a GitLab team must hear first. Cognibl links GitHub repositories today; GitLab and Bitbucket are planned, according to the Cognibl product page. A team whose code lives only in GitLab cannot connect its repositories to Cognibl yet. You can read the full product description on cognibl.com.

GitLab Duo and Cognibl side by side

The two products answer different questions, so this table compares what each one records and decides rather than scoring features.

QuestionGitLab Duo Agent PlatformCognibl
What is it for?Running agents and flows across the GitLab lifecycleTracking work by people and agents on one board
Who takes the task?A flow's service account, attributed to the triggering personA named agent picked from the assignee list
Who approves or merges?Per your approval settings; the creator cannot approve by defaultOnly a person can merge, and a merge is never done
What closes the work?A merge with a closing pattern, or a Done statusA done status that is refused without proof
Where is the run record?A session, deleted 30 days after last activityVersioned proof plus a gateway-written trace
Where does it run?GitLab.com, Self-Managed, DedicatedCloud agents on Claude Code or Codex
Repository supportGitLabGitHub today; GitLab and Bitbucket planned

Read the last row first. If your code lives only in GitLab, the table is mostly academic today. If your team works across GitHub and GitLab, or is choosing where agent work is recorded, the middle rows are the ones that matter. Our Devin comparison and Factory Droid comparison reach the same split for those products from different starting points.

When is the GitLab Duo Agent Platform the better choice?

The GitLab Duo Agent Platform is the better choice whenever a team's code, pipelines and security scanning already live in GitLab and the main goal is to automate delivery work inside that system. It is also the clear choice for a team that must run on GitLab Self-Managed or Dedicated with self-hosted models, an option the Cognibl product page does not describe.

Concretely, GitLab Duo wins in five situations:

  1. Your repositories are on GitLab. Cognibl cannot link a GitLab repository today. Agents that work natively on merge requests, pipelines and work items are the obvious fit.
  2. The work is past the merge request. Code review, pipeline repair, breaking change resolution and the security flows are delivery automation that a work tracker does not attempt.
  3. You run your own infrastructure. GitLab Self-Managed with a self-hosted AI Gateway, or a single-tenant AI Gateway on GitLab Dedicated, keeps the agents inside an estate the security team already approved.
  4. Segregation of duties is the audit question. If the auditor's question is who authored and who approved a production change, composite identity and approval rules answer it in GitLab's own records.
  5. Your process is the GitLab work item. Teams that already run statuses, epics and closing patterns across a top-level group gain agents without moving the plan to Jira, Linear or Asana.

Cognibl fits a narrower set of teams: those on GitHub whose agents produce work with a definition of done outside the diff, and who need the completion decision recorded with its evidence for longer than a session lasts. If you are unsure which camp you are in, an AI placement diagnostic is designed to answer exactly that before anyone buys a tool.

What is the best GitLab Duo Agent Platform alternative in 2026?

The best GitLab Duo Agent Platform alternative depends on what you are replacing. If you want different coding agents but will stay on GitLab, GitLab's own product page says it can integrate external agents such as Claude Code and Codex. If you are leaving GitLab for GitHub, the GitHub Copilot coding agent is the native comparison. Cognibl fits only teams on GitHub that need proof before done.

We would judge any alternative on four criteria, in this order:

  1. Where your code lives. This decides more than any feature list. A GitLab-only shop should usually stay with agents that work natively on GitLab, whether that is GitLab Duo itself or external agents connected to it.
  2. Who is named as the author. Check how the alternative attributes agent commits and merge requests, and whether that satisfies your segregation of duties.
  3. How long the run record lasts. Compare the retention of the alternative's session or run history with how long your auditors expect evidence to exist.
  4. What decides that work is done. Ask whether completion follows the merge, or whether a separate rule with attached evidence decides it.

On those criteria, the honest verdict runs like this. For a team staying on GitLab, GitLab Duo is very likely the right answer, and the closest alternatives are external coding agents that GitLab itself can integrate. For a team on GitHub, our GitHub Copilot coding agent comparison, Cursor comparison and Devin and Factory comparisons cover the native and independent options. Cognibl is the alternative we would point to only where criterion four is the deciding one and the code is on GitHub. It is a work tracker with a proof rule, not a replacement for GitLab's delivery automation.

If you are designing the governance around any of these tools, the AI operating model service sets the roles and lifecycle first, and our approach explains how we place AI in delivery.

Frequently asked questions

Can Cognibl track work for a team whose code lives in GitLab?

Cognibl cannot link GitLab repositories today. Cognibl links GitHub repositories, and its product page says GitLab and Bitbucket are planned. The same page is plain about the consequence: if your code lives on GitLab or Bitbucket, Cognibl does not fit yet, and a classic tracker is the better choice for now.

For mixed estates, our suggestion is to keep GitLab Duo on GitLab projects and evaluate Cognibl only on the GitHub side. Read what Cognibl is for the full product scope.

Does a merged GitLab merge request mean the issue is done?

A merged GitLab merge request closes an issue automatically when its description, or a commit message in it, carries a closing pattern such as "Closes #4" and the merge targets the default branch. GitLab documents that a Done status closes an item; the pages we read do not say a merge sets the status to Done, so check both fields on your own projects.

In Cognibl the answer is fixed by design: merging moves the card one step, and done still needs proof of work.

Can GitLab Duo session records be kept longer than 30 days?

GitLab Duo sessions are automatically deleted 30 days after the last activity, and the period resets each time someone interacts with a session. The GitLab pages we read do not describe a setting that extends retention. Evidence that must last longer has to be captured somewhere your retention policy covers, such as audit events, CI/CD job logs or a separate work record, so check how long each is kept on your own instance.

Plan which of those your auditors will accept before the first agent run, because AI audit events only exist for sessions that ran after their storage was turned on.

Want to see this in production? Open Cognibl at cognibl.com, book a placement diagnostic call, see the DATS methodology, or browse more AI strategy guides from our team.

Talk to the operators

Keep the evidence after the session ends.

30-min scoping call · No deck · Confidential. We will look at how your team decides agent work is done, and where that decision is recorded.

Written by the Dilr.ai engineering team, practitioners who ship enterprise AI in production. Read more about Dilr.ai and our approach, follow us on LinkedIn for shipping notes, or subscribe via the RSS feed.

  • gitlab duo agent platform alternative
  • gitlab duo alternative
  • gitlab duo composite identity
  • ai coding agent audit trail
  • ai coding agents reddit
  • best ai coding agent platform 2026
  • proof of done software
  • cognibl

What does this article answer?

The questions this article answers, in short

  • The GitLab Duo Agent Platform is GitLab's system of AI agents and flows that work inside projects, issues, merge requests and pipelines. GitLab builds foundational flows for common tasks, such as turning an issue into a merge request, reviewing code and fixing a failing pipeline, and teams can build custom flows. It runs on GitLab.com, GitLab Self-Managed and GitLab Dedicated, which is its main strength.
  • GitLab Duo records agent work under a composite identity: one token that combines a service account, which performs the actions, with the human user who started the flow. Commits show they were created by the service account on that person's behalf, and when a flow opens a merge request, GitLab attributes the merge request to the human user who triggered it, not to the agent.
  • In GitLab, approval follows the project's merge request approval settings, and the pages we read describe no separate approval path for an agent-opened merge request. By default the creator of a merge request cannot approve it. Because GitLab attributes an agent-opened merge request to the person who triggered the flow, our reading is that this default stops that person approving the agent's change.
  • GitLab treats an issue as finished when it closes, and closing can happen automatically. A closing pattern such as "Closes 4" in a merge request description closes the referenced issue when the merge request is merged into the default branch. Separately, on Premium and Ultimate, setting a work item status in the Done or Canceled category closes it.
  • GitLab keeps a session for each flow, Agentic Chat and external agent run, but sessions are automatically deleted 30 days after the last activity. Other evidence sits in other places: project membership, audit events, CI/CD job logs and API logs, and the pages we read give a retention period only for sessions. GitLab treats membership, sessions and data access as separate signals, and each has limits a buyer should know before an audit.
  • A human checkpoint in a GitLab Duo flow is a pause the flow's author builds in. A custom flow must include a HumanInputComponent in its flow definition for the run to stop and wait. At that point the person reviews what the agent has done and chooses Approve, Reject or Modify, and GitLab raises a to-do item and an email so the pause is noticed.
  • Cognibl decides that work is done with a rule on the status itself. A task cannot reach its done status until proof of work is attached: a CSV saying what was done, the documents it references and, for code, a coverage report. Without that proof the status change is refused, for people and agents alike, and merging a pull request moves the card one step, never straight to done.
  • The GitLab Duo Agent Platform is the better choice whenever a team's code, pipelines and security scanning already live in GitLab and the main goal is to automate delivery work inside that system. It is also the clear choice for a team that must run on GitLab Self-Managed or Dedicated with self-hosted models, an option the Cognibl product page does not describe.
Written by Dilr.ai EngineeringEngineering team

Who can help us place AI where it pays off?

DILR.ai consulting takes AI from placement to production

The DATS system runs from a 4 to 6 week placement diagnostic through to embedded delivery, so AI reaches production instead of staying a pilot.