Run glab mr create from inside Claude Code and the editor now knows exactly what happened: claude code gitlab merge requests support arrived in version 2.1.259, released on 2 September 2026, which added recognition of the glab mr commands — create, merge, close, reopen, note and update — so your GitLab merge requests show up as MR !N in the collapsed tool summary and refresh the merge request badge in the footer. Per the official Claude Code changelog, that closes a long-standing gap: GitHub users have had first-class pull request awareness for ages, while GitLab teams watched their MRs pass through as anonymous shell commands. This guide covers exactly what changed, how the recognition works, and how to fold it into an automated GitLab workflow.
📺 Watch: Claude Code Just Got a HUGE Customization Upgrade
🔥 Get the Agent OS as a free bonus: AI Profit Boardroom members get the full Agent OS zip, prompt libraries, daily tutorials and weekly live coaching calls. → Get inside · Want AI SEO help 1-on-1? Book a free SEO strategy session →
Claude Code GitLab Merge Requests: What Changed in 2.1.259
The changelog entry for version 2.1.259, dated 2 September 2026, is precise, and it is worth quoting in full: "Added recognition of glab mr create/merge/close/reopen/note/update so GitLab merge requests show as MR !N in the collapsed tool summary and refresh the footer MR badge".
Unpack that and you get three concrete behaviours:
- Six glab mr subcommands are recognised. When Claude runs glab mr create, merge, close, reopen, note or update through its shell tool, Claude Code understands the command as a merge request operation rather than an arbitrary terminal call.
- Collapsed summaries name the MR. Long sessions collapse tool calls into one-line summaries. Those lines now read as MR !N — GitLab's native merge request notation — so you can scan a session and see which merge requests were touched without expanding anything.
- The footer badge stays current. Claude Code's footer shows a badge for the merge request tied to your current work, and it refreshes as those glab commands land — merge an MR through Claude and the badge reflects it immediately.
None of this changes what the commands do. It changes what you can see, which for anyone reviewing an agent's work at the end of a session is the difference between auditing and guessing.
How the glab Recognition Actually Works
The mechanism mirrors what Claude Code has long done for GitHub's gh CLI. glab is GitLab's official command-line tool, and Claude Code has always been able to run it the way it runs any shell command. What 2.1.259 adds is semantic awareness: the six mr subcommands are treated as first-class events in the interface rather than opaque output.
To benefit, you need two things in place. First, glab installed and authenticated against your GitLab instance — the tool's own documentation covers login for both gitlab.com and self-hosted installs. Second, Claude Code 2.1.259 or later. Once both are true there is nothing to enable; the recognition applies automatically whenever Claude uses those commands. If Claude proposes an MR action you have not pre-approved, normal permission rules still apply — worth understanding via the Claude Code permission prompts guide, which covers the none setting that landed in the very same 2.1.259 release for unattended machines.
If you want your coding agent shipping client work through a pipeline you control — with the workflows, prompts and systems already built for you — check out the AI Profit Boardroom. Want a second pair of eyes on your AI SEO setup first? Book a free SEO strategy session and get a plan tailored to your stack.
Why This Matters for GitLab Automation Workflows
The audience for this feature is anyone letting Claude Code drive a real delivery loop on GitLab: branch, commit, open the MR, respond to review notes, merge. That loop was already possible — glab has been scriptable throughout — but visibility lagged behind capability. When every MR operation looked like generic shell output, reviewing an automated session meant expanding tool call after tool call to reconstruct what shipped.
With MR !N summaries and a live footer badge, the session itself becomes the audit trail. That matters most in exactly the setups automation people run: long unattended sessions, scheduled jobs, and remote machines. Pair it with the self-hosting patterns in the Claude Code self-hosted environments guide and the guardrails from the restrict access walkthrough, and you get a GitLab pipeline where the agent does the work, the interface names every merge request it touched, and your permission rules decide what needed a human.
It is also a quiet statement of platform parity. GitLab teams have historically been second-class citizens in AI coding tools, and the collapsed-summary treatment — the same courtesy gh pull requests get — signals that the glab path is maintained, not merely tolerated.
The Release Around It: What Else Landed in 2.1.259
Version 2.1.259 was a dense release beyond merge requests, and two more changelog entries from the same day are worth knowing about:
- Managed MCP servers. The changelog adds a managedMcpServers setting through which organisations can provide HTTP and SSE MCP servers to every user — centrally distributed tooling, in the same entry shape as a standard MCP config.
- Permission prompts for headless hosts. The new none option automatically denies anything that would have raised an approval prompt on machines where nobody is watching, while your configured permission mode keeps deciding everything else.
Add the diff panel from 2.1.260 a day later — uncommitted changes beside the conversation, toggled with the diff command — and the pattern across the week is clear: more visibility into what the agent did, more control over what it may do. If you are still setting up your environment, the cc-switch guide covers hopping between configurations, and the Claude Code free guide covers running it without burning budget while you learn.
📺 Watch: Run Claude Code Free Forever, Here's How!
A Practical GitLab Delivery Loop With Claude Code
Here is what a sensible claude code gitlab merge requests workflow looks like once the recognition is in place, ordered the way the work actually flows:
- Scope the change in conversation. Describe the fix or feature and let Claude plan before it touches the repository — cheaper to correct a plan than a diff.
- Let Claude branch, edit and commit. Standard git operations, reviewed as they happen or afterwards through the diff panel if you are on 2.1.260 or later.
- Open the MR through glab. Ask Claude to raise the merge request with glab mr create — from 2.1.259 the session summary records it as MR !N and the footer badge picks it up.
- Handle review through glab mr note and update. Reviewer feedback becomes conversation input; Claude's responses become tracked MR operations rather than invisible shell calls.
- Merge deliberately. Keep glab mr merge behind a permission rule so the final action stays a human decision — or pre-approve it only in pipelines where your tests are the gatekeeper.
The loop worked before this release; the difference is that every step of it is now legible in the session record, which is what makes it safe to hand to an agent repeatedly rather than supervising it once.
Claude Code GitLab Merge Requests FAQ
Does this work with self-hosted GitLab?
The recognition keys off the glab commands themselves, and glab supports self-hosted GitLab instances through its standard authentication. Nothing in the changelog entry restricts the feature to gitlab.com.
Do I need to configure anything to turn it on?
No. From 2.1.259 the recognition of the six mr subcommands is built in. Your only prerequisites are a working glab login and an up-to-date Claude Code.
Can Claude Code merge a GitLab MR without asking me?
Only if your permission rules allow it. Recognition is about display, not authority — glab mr merge is still a command that goes through the same approval model as any other shell action, and you decide what is pre-approved.
What about GitLab issues, pipelines or releases?
The 2.1.259 entry covers the six mr subcommands specifically. Other glab commands still run fine as ordinary shell calls; they just do not get the dedicated summary treatment yet.
Verdict: Small Entry, Real Workflow Win
Claude Code GitLab merge requests support is the kind of changelog line that undersells itself. Six recognised subcommands and a badge refresh sounds minor; in practice it makes agent-driven GitLab delivery reviewable at a glance, which is precisely what unattended automation was missing. If your team ships on GitLab, update to 2.1.259, let Claude run the loop through glab, and read the session summary like a changelog of your own. For the structural layer that turns these tools into a business system, Agent OS is the place to start — and for picking the model behind it all, the Goldie Bench write-up covers how the leading coding brains compare in hands-on tests.
If you want an AI delivery pipeline that closes MRs while you sleep — plus 1,000+ done-for-you workflows and weekly live coaching — check out the AI Profit Boardroom. Or start with a conversation: book a free SEO strategy session and get your automation roadmap for free.











