The recommended GitLab configu... Note
GitLab

The recommended GitLab configuration for agentic engineering

Agents are improving beyond just drafting code, now assisting with reviews, pipeline repairs, and merges. However, this speed is only beneficial if changes integrate with a unified software lifecycle platform and pass established checks. Without such integration, context, controls, and evidence become fragmented, creating a shadow software factory. Essential elements like identity, policy, security, and audits must accompany changes from inception to production. A local coding harness alone cannot provide this comprehensive view.GitLab Duo Agent Platform and local coding harnesses are designed to work together, allowing agents to operate quickly while GitLab certifies their work. Teams can use their preferred coding agents and tools, with GitLab ensuring the safety of all submitted changes. GitLab maintains neutrality regarding cloud, models, and agents, enabling organizations to retain their chosen harnesses, models, and deployment paths. The platform can be configured to drive automation throughout the workflow, connecting existing harnesses to the GitLab Duo Agent Platform.Repository-aware workflows run on GitLab, ensuring that all merge requests undergo the same reviews, pipelines, scans, and approval policies. While the article focuses on Claude Code as a local harness, the process is adaptable to other preferred tools like Duo CLI. Users can continue coding in their local harness and connect it to the GitLab Duo Agent Platform to direct lifecycle work to agentic workflows within GitLab. These workflows can handle tasks such as picking up issues, reviewing merge requests, resolving conflicts, and repairing failed pipelines.With GitLab Ultimate, agents can also triage and fix security findings after code lands. The setup involves installing the GitLab Duo setup skill within Claude Code, which then configures the group settings, workflows, and necessary connections. Following setup, four distinct workflows can be initiated from Claude Code, including assigning issues, performing code reviews, fixing pipelines, and triaging security findings. An MR followup skill further streamlines this process by guiding the local harness through steps and enabling agents to monitor progress and act on the user's behalf.The combined approach offers increased speed through automated reviews and pipeline repairs, building trust by applying consistent engineering and security standards with an audit trail. It also reduces complexity by automating the handoff between the harness and GitLab, ensuring a single context, set of gates, and audit trail for lifecycle work. Prerequisites for this setup include a GitLab.com top-level group with GitLab Credits, a project within that group with existing pipelines and issues, and Owner privileges on the top-level group. Claude Code, Git, and the GitLab CLI must also be installed and signed in.