Back to articles
Building an AI Code Reviewer for GitLab CI with Google Gemini
How-ToTools

Building an AI Code Reviewer for GitLab CI with Google Gemini

via Dev.toDeny Herianto

This is a submission for the Built with Google Gemini: Writing Challenge What I Built with Google Gemini Niteni , Javanese for "to observe carefully", is an AI-powered code review tool for GitLab CI pipelines, powered by the Gemini REST API. GitLab's Free tier doesn't have a built-in AI review feature. I wanted something that would run inside a standard CI job, post inline diff comments (not a wall of text), and provide one-click "Apply suggestion" buttons, all without pulling in any npm runtime dependencies. That last constraint was deliberate. CI environments are ephemeral. Every npm install is wasted time and a potential failure point. So Niteni uses only Node.js built-ins: https , fs , path , os , and url . Gemini does the heavy lifting via a direct REST call. How Gemini fits in Niteni sends the full MR diff to Gemini and asks it to return a structured list of findings, each with a severity level ( CRITICAL , HIGH , MEDIUM , LOW ), file path, line number, description, and optional

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles