AI-powered PR comment implementation with auto-branch creation and local testing workflow

Here's my dream AI agentic feature for GitLab:

When a teammate leaves a code review comment on my MR (like "extract this logic into a shared service" or "add error handling here"), I'd love for GitLab's AI to:

  1. Analyze the comment in context - understand the suggested change based on the code diff and conversation thread
  2. Generate the actual code changes - implement the suggestion right there in the code
  3. Present the diff to me for approval - show me exactly what would change before any commits happen
  4. Create a branch with my approval - automatically branch from my current MR with the changes applied
  5. Give me a ready-to-paste git command - so I can pull and test it locally in lower environments before merging for testing purposes.

This would be INSANE because:

  • The feedback loop becomes instantaneous
  • It keeps the conversation in GitLab instead of me copying code to/from external LLMs
  • I maintain control by reviewing the diff and testing locally
  • The branch approach means I can verify it actually works in dev/staging

This feels uniquely GitLab's territory to solve - deep integration with the MR workflow, permissions, and the actual codebase context. External tools can't do this seamlessly.

Edited Feb 21, 2026 by aziz s
Assignee Loading
Time tracking Loading