[{"data":1,"prerenderedAt":1065},["ShallowReactive",2],{"/blog/code-counting-in-gitlab":3,"navigation-en-us":311,"banner-en-us":748,"footer-en-us":756,"blog-post-authors-en-us-Darwin Sanoy":1003,"blog-related-posts-en-us-code-counting-in-gitlab":1020,"blog-share-wrapper-en-us":1045,"next-steps-en-us":1055},{"id":4,"title":5,"authors":6,"body":8,"category":289,"date":290,"description":291,"extension":292,"externalUrl":293,"faq":293,"featured":294,"heroImage":295,"hidePromo":294,"meta":296,"navigation":297,"path":298,"seo":299,"slug":303,"stem":304,"tags":305,"template":309,"updatedDate":293,"__hash__":310},"blogPosts/en-us/blog/code-counting-in-gitlab.md","Lightning fast code counting for better code management intelligence",[7],"Darwin Sanoy",{"type":9,"value":10,"toc":277},"minimark",[11,15,18,21,26,36,70,73,77,80,89,106,110,113,157,161,164,167,174,181,185,197,200,204,207,210,224,228,231,240,249,252,260],[12,13,14],"p",{},"One of the earliest forms of intelligence was to simply answer the question “How many?”. Counting is one of the first things that we learn as a child. As we grow older, we come to see this deceptively simple concept as somewhat childish. Yet, upon the concept of counting, the entire discipline of statistics is founded. In turn, every discipline that benefits from statistics owes a debt of gratitude to the very humble concept of counting.",[12,16,17],{},"Many of the massive data lakes we keep are essentially vast amounts of counting. Using artificial intelligence to analyze this data, we frequently find insights we were not expecting. So it would seem that counting is somewhat of a fractal concept – it’s deceptively simple, but, when compounded, generates delightful things.",[12,19,20],{},"So if we have a thing we are trying to be more intelligent about, our first endeavor might be to count it. Let’s see how to apply that to our code stored in GitLab.",[22,23,25],"h3",{"id":24},"why-developers-count-code","Why developers count code",[12,27,28,29,35],{},"The following list is from real-world scenarios. Many of them are also asserted in Ben Boyter’s blog post ",[30,31,34],"a",{"href":32,"rel":33},"https://boyter.org/posts/why-count-lines-of-code/",[],"Why count lines of code?",". Their enumeration here is not an endorsement of the validity or accuracy of code counting for the claimed benefit and the fundamental assumptions of such models are not stated. Because code counting is essentially a form of modeling, it is also subject to George Box’s axiom: “All models are wrong, but some are useful.”",[37,38,39,43,46,55,58,61,64,67],"ul",{},[40,41,42],"li",{},"Showing the languages in a repository using an absolute metric like source lines of code helps to quickly assess if one can contribute to the project, given their own talents.",[40,44,45],{},"Cost assessment for anything which charges by “lines of code” (some code scanning and development tools may charge this way).",[40,47,48,49,54],{},"Although ",[30,50,53],{"href":51,"rel":52},"https://gitlab.com/gitlab-org/gitlab/-/issues/371038",[],"research"," shows that lines of code are not a good metric for measuring contribution, some developers have gotten used to seeing lines of code per contributor.",[40,56,57],{},"Code base shrinkage as a measure of good architecture (simplification).",[40,59,60],{},"Anything where the complexity of code affects project agility and costs. For instance, assessing and reporting status on migrating a code base to a new language.",[40,62,63],{},"Staffing a development team – understanding what language competencies are needed across the team and in what relative proportion to each other or understanding that for the entire organization’s codebase.",[40,65,66],{},"IT tooling decisions to support the needs of an organization given the most used coding languages across all repositories in the org.",[40,68,69],{},"Assessment of tech debt.",[12,71,72],{},"While it is easy to create bad models with any of the above counts, the focus of this post is to get some good counts from which you can carefully build a model.",[22,74,76],{"id":75},"toolsmithing-gitlab-ci-a-working-example-as-a-shared-ci-library","Toolsmithing GitLab CI: A working example as a shared CI library",[12,78,79],{},"The easiest way to differentiate between a “toolized” and “templated” solution is that you can simply and easily reuse this exact code without needing to change it. Many formal coding languages have the concept of shared libraries or dependencies that are essentially toolized. A templated solution consists of a starting point that you customize and then have to manage the code yourself. These can function as scaffolding for a starting point for an entire project or snippets of code that do a specific function. The fundamental difference is that when you use a template, you end up owning and managing the resultant code going forward.",[12,81,82,83,88],{},"In GitLab CI, we can create our own tooling or dependencies with a few tricks stolen from ",[30,84,87],{"href":85,"rel":86},"https://docs.gitlab.com/topics/autodevops/",[],"Auto DevOps",". These tricks are:",[90,91,92,95,98],"ol",{},[40,93,94],{},"Use includes to reference the shared managed library code (this creates a “dependency” on code that is being managed outside of your own).",[40,96,97],{},"The includable code must be written like a function where all needed inputs are either passed in, or can be collected from the environment. No hard coding is allowed because that means you’ve created a template which can’t be depended upon directly.",[40,99,100,101,105],{},"Use GitLab CI ‘functions’. I am coining this term to indicate that in GitLab you can precede a job name with a “.” (dot) and it will not be executed when it is read. Then you can create a new job using all the code in the “dot named” job and add variables by using the ",[102,103,104],"code",{},"extends:"," command keyword. By using dot named jobs in your includable code, the developer consuming the “managed shared CI dependency” can decide when, where, and how to call the toolized code.",[22,107,109],{"id":108},"the-result-a-code-counting-gitlab-ci-extension","The result: A code-counting GitLab CI extension",[12,111,112],{},"Here are some of the final design attributes of this code counting solution:",[37,114,115,118,127,136,139,142,145,148,151,154],{},[40,116,117],{},"Is extremely fast for the given task.",[40,119,120,121,126],{},"Leverages the Git clone opitimizations lessons contained in this article: ",[30,122,125],{"href":123,"rel":124},"https://acloudguru.com/blog/engineering/how-much-code-do-i-have-a-devsecops-story",[],"How much code do I have? A DevSecOps story",".",[40,128,129,130,135],{},"Uses the ",[30,131,134],{"href":132,"rel":133},"https://github.com/boyter/scc",[],"lightning fast, open source code counting tool SCC"," by Ben Boyter.",[40,137,138],{},"Is implemented as a reusable GitLab CI shared library extension.",[40,140,141],{},"Allows configuration of the file extensions that should not be checked out because they do not include source code to be counted.",[40,143,144],{},"Leverages the GitLab Run Pipeline forms capability.",[40,146,147],{},"Can enumerate and count an entire group hierarchy in GitLab, or be given a stipulated list.",[40,149,150],{},"Uses the runner token to access and read repositories by default, but can be given a specific token.",[40,152,153],{},"Uploads HTML and text artifacts that contain the code counting report.",[40,155,156],{},"Purposely emits the code counting results into CI logs for easy reference.",[22,158,160],{"id":159},"the-output","The output",[12,162,163],{},"Results are shown below in the CI log but they are also captured as an HTML artifact.",[12,165,166],{},"The clone time is also in the log for each project so that it can be verified that the cloning optimizations are making a substantial difference.",[12,168,169,170,126],{},"These particular results are counting all the code in ",[30,171,172],{"href":172,"rel":173},"https://gitlab.com/guided-explorations",[],[12,175,176],{},[177,178],"img",{"alt":179,"src":180},"codecountingcilog","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398083/blog/Content%20Images/code-counting-in-gitlab/codecountingcilog.png",[22,182,184],{"id":183},"the-code","The code",[12,186,187,188,192,193,126],{},"The code is available in this project: ",[30,189,190],{"href":190,"rel":191},"https://gitlab.com/guided-explorations/code-metrics/ci-cd-extension-scc",[],". You can view the scanning results in the job logs of past runs here: ",[30,194,195],{"href":195,"rel":196},"https://gitlab.com/guided-explorations/code-metrics/ci-cd-extension-scc/-/pipelines",[],[12,198,199],{},"Rather than fail the entire job when a project fails to clone, the job simply logs the error from an attempted clone. This allows review of valid use cases for not being able to clone and obtains as complete of a picture as possible. The cloning error log is uploaded as a job artifact and emitted to the log.",[22,201,203],{"id":202},"innovation-mr-complexity-metrics-extension","Innovation: MR complexity metrics extension",[12,205,206],{},"During a customer engagement I was asked whether there was a way to assess how much change a Merge Request contained and mark it. This was because an operations team was missing their SLAs for deployments due to the amount of change, and, therefore, risk and review could be highly variable. However, since there was no way to estimate this without human eyes on it, MRs with a high degree of change would overrun their SLA when they couldn’t be pre-triaged.",[12,208,209],{},"I wondered if I could use the previously built code counting solution to count diffs and get a rough idea of how much change had occurred in the commits of an MR branch and then apply labels to MRs to give at rough idea of their degree of change as a sort of proxy for how much review time might be required.",[12,211,212,213,218,219,126],{},"It turned out to be plausible and you can review the ",[30,214,217],{"href":215,"rel":216},"https://gitlab.com/guided-explorations/code-metrics/git-diff-revision-activity-metrics",[],"Shared Library in Git Diff Revision Activity Metrics CI EXTENSION"," and see the results in the MRs list of this working example project that uses that code: ",[30,220,223],{"href":221,"rel":222},"https://gitlab.com/guided-explorations/code-metrics/diff-revision-activity-analytics-demo/-/merge_requests",[],"MR list for Diff Revision Activity Analytics DEMO",[22,225,227],{"id":226},"the-value-of-remote-work-water-cooler-conversations","The value of remote work water cooler conversations",[12,229,230],{},"I have to let you know why this blog was written now when this solution has been around for quite a while. You often hear about how working remotely does not allow for water cooler conversations, which in the story you’re told are where real innovation happens.",[12,232,233,234,239],{},"Within GitLab’s ",[30,235,238],{"href":236,"rel":237},"https://handbook.gitlab.com/handbook/company/culture/all-remote/guide/",[],"Remote First culture"," it is expected that anyone in the company can schedule a “coffee chat” with anyone else. The cultural expectation is that this is normal and, unless you are getting an overwhelming number of these requests, that when asked, you will find time to socially connect.",[12,241,242,243,248],{},"I received a coffee chat request from ",[30,244,247],{"href":245,"rel":246},"https://gitlab.com/tlinz",[],"Torsten Linz",", the Senior Product Manager for the Source Code Management group, to chat about my comments and linking of a working example to an issue about code counting that he had become aware of. He also wanted to see if I could help get a copy of it working in his GitLab group.",[12,250,251],{},"During that collaborative time, I discovered that my example was not working because of some major code changes in SCC and because it presumed the GitLab group to be enumerated did not need the counting job to authenticate to prove that it should have access to the projects. While we were collaborating, we fixed these problems and improved the solution to use the SCC binary, rather than depend on working Golang runtimes. After our collaborative session, as I tweaked some more, I did parameter documentation in README.md and debugged the ability to run it either with a group enumeration or a provided list of specific git repos.",[12,253,254,255,126],{},"So I owe big thanks to Torsten and to GitLab’s cultural support for remote first water cooler conversations for improving this working example to the point that it is worth sharing with a broader audience. If you’d like to know more, check out the GitLab handbook page: ",[30,256,259],{"href":257,"rel":258},"https://handbook.gitlab.com/handbook/company/culture/all-remote/informal-communication/",[],"Informal communication in an all-remote environment",[12,261,262],{},[263,264,265,266,271,272],"em",{},"Cover image by ",[30,267,270],{"href":268,"rel":269},"https://unsplash.com/@noaa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText",[],"NOAA"," on ",[30,273,276],{"href":274,"rel":275},"https://unsplash.com/s/photos/lightning-fast?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText",[],"Unsplash",{"title":278,"searchDepth":279,"depth":279,"links":280},"",2,[281,283,284,285,286,287,288],{"id":24,"depth":282,"text":25},3,{"id":75,"depth":282,"text":76},{"id":108,"depth":282,"text":109},{"id":159,"depth":282,"text":160},{"id":183,"depth":282,"text":184},{"id":202,"depth":282,"text":203},{"id":226,"depth":282,"text":227},"engineering","2023-02-15","Knowledge of your code composition can come through simple counting of lines of code per language.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749682614/Blog/Hero%20Images/noaa-PkHsrwNOfBE-unsplash.jpg",{},true,"/en-us/blog/code-counting-in-gitlab",{"title":5,"description":291,"ogTitle":5,"ogDescription":291,"noIndex":294,"ogImage":295,"ogUrl":300,"ogSiteName":301,"ogType":302,"canonicalUrls":300},"https://about.gitlab.com/blog/code-counting-in-gitlab","https://about.gitlab.com","article","code-counting-in-gitlab","en-us/blog/code-counting-in-gitlab",[306,307,308],"DevOps","solutions architecture","CI","BlogPost","D8AzmqVRvRlgb1ccisXl3uTK63PUhGuOCAD9hstZt8w",{"logo":312,"freeTrial":317,"sales":322,"login":327,"items":332,"search":667,"minimal":699,"duo":718,"switchNav":727,"pricingDeployment":738},{"config":313},{"href":314,"dataGaName":315,"dataGaLocation":316},"/","gitlab logo","header",{"text":318,"config":319},"Get free trial",{"href":320,"dataGaName":321,"dataGaLocation":316},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":323,"config":324},"Request a demo",{"href":325,"dataGaName":326,"dataGaLocation":316},"/request-a-demo/","sales",{"text":328,"config":329},"Sign in",{"href":330,"dataGaName":331,"dataGaLocation":316},"https://gitlab.com/users/sign_in/","sign in",[333,418,506,511,591,645],{"text":334,"left":297,"config":335,"menu":337},"Platform",{"dataNavLevelOne":336},"platform",{"type":338,"link":339,"columns":343,"feature":407},"lists",{"text":340,"config":341},"Explore the Platform",{"href":342,"dataGaName":336,"dataGaLocation":316},"/platform/",[344,366,389],{"title":306,"items":345},[346,351,356,361],{"text":347,"config":348},"CI/CD",{"href":349,"dataGaLocation":316,"dataGaName":350},"/solutions/continuous-integration/","ci/cd",{"text":352,"config":353},"Source Code Management",{"href":354,"dataGaLocation":316,"dataGaName":355},"/solutions/source-code-management/","source code management",{"text":357,"config":358},"Agile Delivery",{"href":359,"dataGaLocation":316,"dataGaName":360},"/solutions/agile-delivery/","agile delivery",{"text":362,"config":363},"Artifact Management",{"href":364,"dataGaLocation":316,"dataGaName":365},"/artifact-central/","artifact management",{"title":367,"items":368},"Security & Governance",[369,374,379,384],{"text":370,"config":371},"Application Security Testing",{"href":372,"dataGaLocation":316,"dataGaName":373},"/solutions/application-security-testing/","application security testing",{"text":375,"config":376},"Governance & Compliance",{"href":377,"dataGaLocation":316,"dataGaName":378},"/solutions/software-compliance/","governance and compliance",{"text":380,"config":381},"Secrets Management",{"href":382,"dataGaLocation":316,"dataGaName":383},"/gitlab-secrets-manager/","secrets management",{"text":385,"config":386},"Supply Chain Security",{"href":387,"dataGaLocation":316,"dataGaName":388},"/solutions/supply-chain/","supply chain security",{"title":390,"items":391},"Agentic AI & Context",[392,397,402],{"text":393,"config":394},"Duo Agent Platform",{"href":395,"dataGaLocation":316,"dataGaName":396},"/gitlab-duo-agent-platform/","duo agent platform",{"text":398,"config":399},"Orbit Context Graph",{"href":400,"dataGaLocation":316,"dataGaName":401},"/gitlab-orbit/","orbit",{"text":403,"config":404},"Visibility & Measurement",{"href":405,"dataGaLocation":316,"dataGaName":406},"/solutions/visibility-measurement/","visibility and measurement",{"config":408,"title":411,"text":412,"link":413},{"background":409,"textColor":410},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":414,"config":415},"Read the announcement",{"href":416,"dataGaName":417,"dataGaLocation":316},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":419,"left":297,"config":420,"menu":422},"Solutions",{"dataNavLevelOne":421},"solutions",{"type":338,"link":423,"columns":427,"feature":497},{"text":424,"config":425},"View all Solutions",{"href":426,"dataGaName":421,"dataGaLocation":316},"/solutions/",[428,446,464],{"title":429,"items":430},"Outcomes",[431,436,441],{"text":432,"config":433},"DevOps Modernization",{"href":434,"dataGaLocation":316,"dataGaName":435},"/assessments/devops-modernization-assessment/","devops modernization",{"text":437,"config":438},"Security Modernization",{"href":439,"dataGaLocation":316,"dataGaName":440},"/assessments/security-modernization-assessment/","security modernization",{"text":442,"config":443},"AI Modernization",{"href":444,"dataGaLocation":316,"dataGaName":445},"/assessments/ai-modernization-assessment/","ai modernization",{"title":447,"items":448},"By size",[449,454,459],{"text":450,"config":451},"Enterprise",{"href":452,"dataGaLocation":316,"dataGaName":453},"/enterprise/","enterprise",{"text":455,"config":456},"Small Business",{"href":457,"dataGaLocation":316,"dataGaName":458},"/small-business/","small business",{"text":460,"config":461},"Startups",{"href":462,"dataGaLocation":316,"dataGaName":463},"/solutions/startups/","startups",{"title":465,"items":466},"Industries",[467,472,477,482,487,492],{"text":468,"config":469},"Financial Services",{"href":470,"dataGaLocation":316,"dataGaName":471},"/solutions/finance/","financial services",{"text":473,"config":474},"Public Sector",{"href":475,"dataGaLocation":316,"dataGaName":476},"/solutions/public-sector/","public sector",{"text":478,"config":479},"Telecommunications",{"href":480,"dataGaLocation":316,"dataGaName":481},"/solutions/telecommunications/","telecommunications",{"text":483,"config":484},"Automotive",{"href":485,"dataGaLocation":316,"dataGaName":486},"/solutions/automotive/","automotive",{"text":488,"config":489},"Education",{"href":490,"dataGaLocation":316,"dataGaName":491},"/solutions/education/","education",{"text":493,"config":494},"Aerospace",{"href":495,"dataGaLocation":316,"dataGaName":496},"/solutions/aerospace/","aerospace",{"config":498,"title":499,"text":500,"link":501},{"background":409,"textColor":410},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":502,"config":503},"Explore the standard",{"href":504,"dataGaName":505,"dataGaLocation":316},"/gitlab-security-standard/","gitlab security standard",{"text":507,"config":508},"Pricing",{"href":509,"dataGaName":510,"dataGaLocation":316,"dataNavLevelOne":510},"/pricing/","pricing",{"text":512,"config":513,"menu":515},"Resources",{"dataNavLevelOne":514},"resources",{"type":338,"link":516,"columns":520,"feature":582},{"text":517,"config":518},"View all resources",{"href":519,"dataGaName":514,"dataGaLocation":316},"/resources/",[521,554],{"title":522,"items":523},"Discover",[524,529,534,539,544,549],{"text":525,"config":526},"Docs",{"href":527,"dataGaName":528,"dataGaLocation":316},"https://docs.gitlab.com/","docs",{"text":530,"config":531},"University",{"href":532,"dataGaName":533,"dataGaLocation":316},"https://university.gitlab.com/","university",{"text":535,"config":536},"Demo Series",{"href":537,"dataGaName":538,"dataGaLocation":316},"/gitlab-technical-demo-series/","demo series",{"text":540,"config":541},"Demo Hub",{"href":542,"dataGaName":543,"dataGaLocation":316},"/demo-hub/","demo hub",{"text":545,"config":546},"Services",{"href":547,"dataGaName":548,"dataGaLocation":316},"/services/","services",{"text":550,"config":551},"Well Architected",{"href":552,"dataGaName":553,"dataGaLocation":316},"/resources/well-architected/","well architected",{"title":555,"items":556},"Connect",[557,562,567,572,577],{"text":558,"config":559},"Blog",{"href":560,"dataGaName":561,"dataGaLocation":316},"/blog/","blog",{"text":563,"config":564},"Community",{"href":565,"dataGaName":566,"dataGaLocation":316},"/community/","community",{"text":568,"config":569},"Customers",{"href":570,"dataGaName":571,"dataGaLocation":316},"/customers/","customers",{"text":573,"config":574},"Partners",{"href":575,"dataGaName":576,"dataGaLocation":316},"/partners/","partners",{"text":578,"config":579},"Events",{"href":580,"dataGaName":581,"dataGaLocation":316},"/events/","events",{"config":583,"title":584,"text":585,"link":586},{"background":409,"textColor":410},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":587,"config":588},"Read the latest",{"href":589,"dataGaName":590,"dataGaLocation":316},"/whats-new/","whats new",{"text":592,"config":593,"menu":595},"Company",{"dataNavLevelOne":594},"company",{"type":338,"columns":596},[597],{"items":598},[599,604,610,615,620,625,630,635,640],{"text":600,"config":601},"About",{"href":602,"dataGaName":603,"dataGaLocation":316},"/company/","about",{"text":605,"config":606,"footerGa":609},"Jobs",{"href":607,"dataGaName":608,"dataGaLocation":316},"/jobs/","jobs",{"dataGaName":608},{"text":611,"config":612},"Press",{"href":613,"dataGaName":614,"dataGaLocation":316},"/press/","press",{"text":616,"config":617},"Handbook",{"href":618,"dataGaName":619,"dataGaLocation":316},"https://handbook.gitlab.com/","handbook",{"text":621,"config":622},"Leadership",{"href":623,"dataGaName":624,"dataGaLocation":316},"/company/team/e-group/","leadership",{"text":626,"config":627},"Investor relations",{"href":628,"dataGaName":629,"dataGaLocation":316},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":631,"config":632},"Trust Center",{"href":633,"dataGaName":634,"dataGaLocation":316},"/security/","trust center",{"text":636,"config":637},"AI Transparency Center",{"href":638,"dataGaName":639,"dataGaLocation":316},"/ai-transparency-center/","ai transparency center",{"text":641,"config":642},"Newsletter",{"href":643,"dataGaName":644,"dataGaLocation":316},"/company/contact/#contact-forms","newsletter",{"text":646,"config":647,"menu":648},"Contact us",{"dataNavLevelOne":594},{"type":338,"columns":649},[650],{"items":651},[652,657,662],{"text":653,"config":654},"Talk to sales",{"href":655,"dataGaName":656,"dataGaLocation":316},"/sales/","talk to sales",{"text":658,"config":659},"Support portal",{"href":660,"dataGaName":661,"dataGaLocation":316},"https://support.gitlab.com/hc/en-us","support portal",{"text":663,"config":664},"Customer portal",{"href":665,"dataGaName":666,"dataGaLocation":316},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":668,"login":669,"suggestions":676},"Close",{"text":670,"link":671},"To search repositories and projects, login to",{"text":672,"config":673},"gitlab.com",{"href":330,"dataGaName":674,"dataGaLocation":675},"search login","search",{"text":677,"default":678},"Suggestions",[679,682,685,687,691,695],{"text":680,"config":681},"GitLab Duo Agent Platform",{"href":395,"dataGaName":680,"dataGaLocation":675},{"text":683,"config":684},"Code Suggestions (AI)",{"href":395,"dataGaName":683,"dataGaLocation":675},{"text":347,"config":686},{"href":349,"dataGaName":347,"dataGaLocation":675},{"text":688,"config":689},"GitLab on AWS",{"href":690,"dataGaName":688,"dataGaLocation":675},"/partners/technology-partners/aws/",{"text":692,"config":693},"GitLab on Google Cloud",{"href":694,"dataGaName":692,"dataGaLocation":675},"/partners/technology-partners/google-cloud-platform/",{"text":696,"config":697},"Why GitLab?",{"href":698,"dataGaName":696,"dataGaLocation":675},"/why-gitlab/",{"freeTrial":700,"mobileIcon":705,"desktopIcon":710,"secondaryButton":713},{"text":701,"config":702},"Start free trial",{"href":703,"dataGaName":321,"dataGaLocation":704},"https://gitlab.com/-/trials/new/","nav",{"altText":706,"config":707},"Gitlab Icon",{"src":708,"dataGaName":709,"dataGaLocation":704},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":706,"config":711},{"src":712,"dataGaName":709,"dataGaLocation":704},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":714,"config":715},"Get Started",{"href":716,"dataGaName":717,"dataGaLocation":704},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":719,"mobileIcon":723,"desktopIcon":725},{"text":720,"config":721},"Learn more about GitLab Duo",{"href":395,"dataGaName":722,"dataGaLocation":704},"gitlab duo",{"altText":706,"config":724},{"src":708,"dataGaName":709,"dataGaLocation":704},{"altText":706,"config":726},{"src":712,"dataGaName":709,"dataGaLocation":704},{"button":728,"mobileIcon":733,"desktopIcon":735},{"text":729,"config":730},"/switch",{"href":731,"dataGaName":732,"dataGaLocation":704},"#contact","switch",{"altText":706,"config":734},{"src":708,"dataGaName":709,"dataGaLocation":704},{"altText":706,"config":736},{"src":737,"dataGaName":709,"dataGaLocation":704},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":739,"mobileIcon":744,"desktopIcon":746},{"text":740,"config":741},"Back to pricing",{"href":509,"dataGaName":742,"dataGaLocation":704,"icon":743},"back to pricing","GoBack",{"altText":706,"config":745},{"src":708,"dataGaName":709,"dataGaLocation":704},{"altText":706,"config":747},{"src":712,"dataGaName":709,"dataGaLocation":704},{"title":749,"button":750,"config":754},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":414,"config":751},{"href":416,"dataGaName":752,"dataGaLocation":753},"orbit-ga-banner","global-banner",{"layout":755,"disabled":294},"release",{"data":757},{"text":758,"config":759,"items":764,"minimal":992},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":760,"facebook":761,"youtube":762,"linkedin":763},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[765,813,872,919,960],{"title":507,"links":766,"subMenu":782},[767,772,777],{"text":768,"config":769},"View plans",{"href":509,"dataGaName":770,"dataGaLocation":771},"view plans","footer",{"text":773,"config":774},"Why Premium?",{"href":775,"dataGaName":776,"dataGaLocation":771},"/pricing/premium/","why premium",{"text":778,"config":779},"Why Ultimate?",{"href":780,"dataGaName":781,"dataGaLocation":771},"/pricing/ultimate/","why ultimate",[783],{"title":784,"links":785},"Contact Us",[786,789,791,793,798,803,808],{"text":787,"config":788},"Contact sales",{"href":655,"dataGaName":326,"dataGaLocation":771},{"text":658,"config":790},{"href":660,"dataGaName":661,"dataGaLocation":771},{"text":663,"config":792},{"href":665,"dataGaName":666,"dataGaLocation":771},{"text":794,"config":795},"Status",{"href":796,"dataGaName":797,"dataGaLocation":771},"https://status.gitlab.com/","status",{"text":799,"config":800},"Terms of use",{"href":801,"dataGaName":802,"dataGaLocation":771},"/terms/","terms of use",{"text":804,"config":805},"Privacy statement",{"href":806,"dataGaName":807,"dataGaLocation":771},"/privacy/","privacy statement",{"text":809,"config":810},"Cookie preferences",{"dataGaName":811,"dataGaLocation":771,"id":812,"isOneTrustButton":297},"cookie preferences","ot-sdk-btn",{"title":334,"links":814,"subMenu":830},[815,818,820,822,824,826],{"text":816,"config":817},"Explore the platform",{"href":342,"dataGaName":336,"dataGaLocation":771},{"text":393,"config":819},{"href":395,"dataGaName":396,"dataGaLocation":771},{"text":347,"config":821},{"href":349,"dataGaName":350,"dataGaLocation":771},{"text":398,"config":823},{"href":400,"dataGaName":401,"dataGaLocation":771},{"text":380,"config":825},{"href":382,"dataGaName":383,"dataGaLocation":771},{"text":827,"config":828},"Why GitLab",{"href":698,"dataGaName":829,"dataGaLocation":771},"why gitlab",[831],{"title":832,"links":833},"Topics",[834,838,843,847,852,857,862,867],{"text":347,"config":835},{"href":836,"dataGaName":837,"dataGaLocation":771},"/topics/ci-cd/","cicd",{"text":839,"config":840},"GitOps",{"href":841,"dataGaName":842,"dataGaLocation":771},"/topics/gitops/","gitops",{"text":306,"config":844},{"href":845,"dataGaName":846,"dataGaLocation":771},"/topics/devops/","devops",{"text":848,"config":849},"Version Control",{"href":850,"dataGaName":851,"dataGaLocation":771},"/topics/version-control/","version control",{"text":853,"config":854},"DevSecOps",{"href":855,"dataGaName":856,"dataGaLocation":771},"/topics/devsecops/","devsecops",{"text":858,"config":859},"Cloud Native",{"href":860,"dataGaName":861,"dataGaLocation":771},"/topics/cloud-native/","cloud native",{"text":863,"config":864},"AI for Coding",{"href":865,"dataGaName":866,"dataGaLocation":771},"/topics/devops/ai-for-coding/","ai for coding",{"text":868,"config":869},"Agentic AI",{"href":870,"dataGaName":871,"dataGaLocation":771},"/topics/agentic-ai/","agentic ai",{"title":419,"links":873},[874,877,880,883,886,889,891,893,895,897,899,902,904,907,911,915],{"text":875,"config":876},"DevOps modernization",{"href":434,"dataGaName":435,"dataGaLocation":771},{"text":878,"config":879},"Security modernization",{"href":439,"dataGaName":440,"dataGaLocation":771},{"text":881,"config":882},"AI modernization",{"href":444,"dataGaName":445,"dataGaLocation":771},{"text":884,"config":885},"Financial services",{"href":470,"dataGaName":471,"dataGaLocation":771},{"text":887,"config":888},"Public sector",{"href":475,"dataGaName":476,"dataGaLocation":771},{"text":478,"config":890},{"href":480,"dataGaName":481,"dataGaLocation":771},{"text":483,"config":892},{"href":485,"dataGaName":486,"dataGaLocation":771},{"text":488,"config":894},{"href":490,"dataGaName":491,"dataGaLocation":771},{"text":493,"config":896},{"href":495,"dataGaName":496,"dataGaLocation":771},{"text":450,"config":898},{"href":452,"dataGaName":453,"dataGaLocation":771},{"text":900,"config":901},"Small business",{"href":457,"dataGaName":458,"dataGaLocation":771},{"text":460,"config":903},{"href":462,"dataGaName":463,"dataGaLocation":771},{"text":839,"config":905},{"href":906,"dataGaName":842,"dataGaLocation":771},"/solutions/gitops/",{"text":908,"config":909},"Software composition analysis",{"href":387,"dataGaName":910,"dataGaLocation":771},"software composition analysis",{"text":912,"config":913},"Value stream management",{"href":405,"dataGaName":914,"dataGaLocation":771},"value stream management",{"text":916,"config":917},"All solutions",{"href":426,"dataGaName":918,"dataGaLocation":771},"all solutions",{"title":512,"links":920},[921,926,931,933,935,937,939,941,943,945,947,949,951,953,956],{"text":922,"config":923},"Install",{"href":924,"dataGaName":925,"dataGaLocation":771},"/install/","install",{"text":927,"config":928},"Quick start guides",{"href":929,"dataGaName":930,"dataGaLocation":771},"/get-started/","quick setup checklists",{"text":525,"config":932},{"href":527,"dataGaName":528,"dataGaLocation":771},{"text":530,"config":934},{"href":532,"dataGaName":533,"dataGaLocation":771},{"text":535,"config":936},{"href":537,"dataGaName":538,"dataGaLocation":771},{"text":540,"config":938},{"href":542,"dataGaName":543,"dataGaLocation":771},{"text":545,"config":940},{"href":547,"dataGaName":548,"dataGaLocation":771},{"text":558,"config":942},{"href":560,"dataGaName":561,"dataGaLocation":771},{"text":563,"config":944},{"href":565,"dataGaName":566,"dataGaLocation":771},{"text":568,"config":946},{"href":570,"dataGaName":571,"dataGaLocation":771},{"text":573,"config":948},{"href":575,"dataGaName":576,"dataGaLocation":771},{"text":578,"config":950},{"href":580,"dataGaName":581,"dataGaLocation":771},{"text":641,"config":952},{"href":643,"dataGaName":644,"dataGaLocation":771},{"text":954,"config":955},"What's new",{"href":589,"dataGaName":590,"dataGaLocation":771},{"text":957,"config":958},"All resources",{"href":519,"dataGaName":959,"dataGaLocation":771},"all resources",{"title":592,"links":961},[962,964,966,968,970,972,974,976,978,982,987],{"text":600,"config":963},{"href":602,"dataGaName":594,"dataGaLocation":771},{"text":605,"config":965},{"href":607,"dataGaName":608,"dataGaLocation":771},{"text":611,"config":967},{"href":613,"dataGaName":614,"dataGaLocation":771},{"text":616,"config":969},{"href":618,"dataGaName":619,"dataGaLocation":771},{"text":621,"config":971},{"href":623,"dataGaName":624,"dataGaLocation":771},{"text":626,"config":973},{"href":628,"dataGaName":629,"dataGaLocation":771},{"text":631,"config":975},{"href":633,"dataGaName":634,"dataGaLocation":771},{"text":636,"config":977},{"href":638,"dataGaName":639,"dataGaLocation":771},{"text":979,"config":980},"Sustainability",{"href":981,"dataGaName":979,"dataGaLocation":771},"/sustainability/",{"text":983,"config":984},"Diversity, inclusion and belonging (DIB)",{"href":985,"dataGaName":986,"dataGaLocation":771},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":988,"config":989},"Modern Slavery Transparency Statement",{"href":990,"dataGaName":991,"dataGaLocation":771},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":993},[994,997,1000],{"text":995,"config":996},"Terms",{"href":801,"dataGaName":802,"dataGaLocation":771},{"text":998,"config":999},"Cookies",{"dataGaName":811,"dataGaLocation":771,"id":812,"isOneTrustButton":297},{"text":1001,"config":1002},"Privacy",{"href":806,"dataGaName":807,"dataGaLocation":771},[1004],{"id":1005,"title":7,"body":293,"config":1006,"content":1008,"description":293,"extension":1014,"meta":1015,"navigation":297,"path":1016,"seo":1017,"stem":1018,"__hash__":1019},"blogAuthors/en-us/blog/authors/darwin-sanoy.yml",{"template":1007},"BlogAuthor",{"role":1009,"name":7,"config":1010},"Field Chief Cloud Architect",{"headshot":1011,"linkedin":1012,"ctfId":1013},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749659751/Blog/Author%20Headshots/Darwin-Sanoy-headshot-395-square-gitlab-teampage-avatar.png","https://linkedin.com/in/darwinsanoy","DarwinJS","yml",{},"/en-us/blog/authors/darwin-sanoy",{},"en-us/blog/authors/darwin-sanoy","UkMMwmU5o2e6Y-wBltA9E_z96LvHuB-bG6VW9DsLzIY",[1021,1029,1037],{"title":1022,"description":1023,"heroImage":1024,"category":289,"date":1025,"authors":1026,"slug":1028,"externalUrl":293},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[1027],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1030,"description":1031,"heroImage":1032,"category":289,"date":1033,"authors":1034,"slug":1036,"externalUrl":293},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[1035],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1038,"description":1039,"heroImage":1040,"category":289,"date":1041,"authors":1042,"slug":1044,"externalUrl":293},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[1043],"Isa Huerga","co-create-h1-2026",{"header":1046,"text":1047,"button":1051,"disclaimer":1054},"Start your free\n\n30-day GitLab trial\n",[1048,1049,1050],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":318,"config":1052},{"href":1053,"dataGaName":321,"dataGaLocation":561},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1056,"blurb":1057,"button":1058,"secondaryButton":1063},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1059,"config":1060},"Get your free trial",{"href":1061,"dataGaName":321,"dataGaLocation":1062},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":787,"config":1064},{"href":655,"dataGaName":326,"dataGaLocation":1062},1794911788609]