Text of about.gitlab.com › blog › explain-this-code as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

ML experiment: Explain this source code

To search repositories and projects, login to gitlab.com . Suggestions GitLab Duo Agent Platform Code Suggestions (AI) CI/CD GitLab on AWS GitLab on Google Cloud Why GitLab? Published on: April 6, 2023 3 min read ML experiment: Explain this source code Learn how GitLab is experimenting with ML-powered source code explanation features in this fourth installment of our ongoing AI/ML in DevSecOps series. Taylor McCaslin DevOps product features AI This blog post is part of an ongoing series about GitLab's journey to build and integrate AI/ML into our DevSecOps platform .

The series starts here: What the ML is up with DevSecOps and AI? . Throughout the series, we'll feature blogs from our product, engineering, and UX teams to showcase how we're infusing AI/ML into GitLab. Deciphering the source code of a new software project can be a daunting or at least time-consuming task. The code may be poorly documented, or it may be written in a programming language that is unfamiliar to the developer.

Even if the developer is familiar with the programming language, the code may be complex and difficult to understand. But what if developers had a helpful tool to figure out very quickly what code was doing? With recent advancements in AI models, it's now possible to have code explained in natural language. Explain this code with AI At GitLab, we’re experimenting with AI-assisted code explanations. We want to enable software developers to quickly understand source code they encounter.

Whether it's starting with a new project, contributing to a project in a language they're not fluent in, or just trying to understand historical code, we want to help developers get up to speed quickly. In a rapid prototype, our own Denys Mishunov , Staff Frontend Engineer, and Michael Le , Senior Product Designer for our Create::Source Code group , leverage AI to power code explanations within GitLab's repository source code file viewer .

Above, you can see an example of highlighting a selection of code and asking for a code explanation. Watch the full demo below. Iterating on AI/ML features While just an experiment today, we are iterating on how to effectively bring features like this to our customers. We're starting on the repository file viewer, and this prototype can be extended to anywhere you interact with code within GitLab, from merge requests to snippets , and beyond.

This experiment is just the start of the ways we’re looking to infuse GitLab with AI/ML capabilities to help GitLab users become more efficient and effective at their jobs. We are looking across the software development lifecycle for painful and time-consuming tasks that are ideal for AI Assisted features. We’ll continue to share these demos throughout this blog series. Interested in using these AI-generated features?

Join our waitlist and share your ideas. Continue reading our ongoing series, " AI/ML in DevSecOps ". Disclaimer: This blog contains information related to upcoming products, features, and functionality. It is important to note that the information in this blog post is for informational purposes only. Please do not rely on this information for purchasing or planning purposes. As with all projects, the items mentioned in this blog and linked pages are subject to change or delay.

The development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab. Start your free 30-day GitLab trial GitLab Duo Agent Platform access Try our most advanced features Automate complex tasks with AI Get free trial No credit card required. More to explore View all blog posts AI Turn Jira tickets into GitLab merge requests with Duo Agent Platform AI How to design a decision-grade pilot for agentic AI AI The Pentagon wants to know who checks code when AI writes it We want to hear from you Enjoyed reading this blog post or have questions or feedback?

Share your thoughts by creating a new topic in the GitLab community forum. Share your feedback Start building faster today See what your team can do with the intelligent orchestration platform for DevSecOps. Get your free trial Contact sales