{"id":114423,"date":"2026-10-23T09:28:03","date_gmt":"2026-10-23T09:28:03","guid":{"rendered":"https:\/\/www.europesays.com\/germany\/114423\/"},"modified":"2026-10-23T09:28:03","modified_gmt":"2026-10-23T09:28:03","slug":"how-siemens-sliced-the-elephant-modernizing-legacy-code-with-agentic-workflows","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/germany\/114423\/","title":{"rendered":"How Siemens \u201csliced the elephant,\u201d modernizing legacy code with agentic workflows"},"content":{"rendered":"<p>For technology companies like Siemens, software is the nervous system of factories, energy grids, and transportation networks worldwide.<\/p>\n<p>As a global leader in industrial AI, industrial software, and industrial automation, Siemens brings decades of domain expertise across factory and process automation, energy infrastructure, and intelligent transportation \u2014 expertise that no off-the-shelf AI solution can replicate. But innovation carries a heavy anchor: legacy code.\u00a0<\/p>\n<p>With codebases spanning hundreds of millions of lines developed for over more than a decade, Siemens faced a challenge that standard AI tools couldn&#8217;t solve: understanding and modernizing this code and the applications which run on it. The scale and depth of industrial-grade software demand a fundamentally different approach. Existing coding assistants lacked the contextual depth required to navigate complex, multi-layered industrial codebases \u2014 a gap Siemens set out to close.<\/p>\n<p>To solve this, Siemens and Google Cloud created Knowledge Fabric, an AI system for automating the software development lifecycle. It was built using knowledge graphs on Spanner Graph, the Google Agent Development Kit, Gemini API, Gemini Enterprise Agent Platform, Gemini CLI, and Anthropic Claude Code. In a pilot migrating existing frontiers to web-based interfaces, Knowledge Fabric reduced implementation effort, freeing engineers to focus on customer innovations while maintaining full system compatibility.<\/p>\n<p>\u201cBy ingesting the entire software ecosystem into an intelligent agentic system equipped with custom knowledge graphs, we aren\u2019t just helping developers optimize their development time; we are enabling autonomous agents to reason across the past to build the future,\u201d said Franz Menzl, senior vice president, product creation excellence at Siemens. \u201cThis is about freeing engineers from repetitive work so they can focus on higher-value problem solving.\u201d<\/p>\n<p>The challenge: the complexity of industrial software<\/p>\n<p>Modernizing large-scale industrial-grade software systems is often compared to rebuilding a jet while flying it. For Siemens, the challenge had four dimensions:<\/p>\n<p>Scale: The repositories are massive \u2014 far exceeding the context windows of standard large language models.<br \/>\nFragmentation: Critical knowledge was scattered across code, Jira tickets, Confluence pages, and scanned PDF manuals from the early 2000s.<br \/>\nComplexity: Tracing the link between a specific line of code and a functional requirement document from 10 years ago presented a challenge that no manual or conventional tooling approach could address efficiently. It\u2019s a reality shared across the industry.<br \/>\nResponsibility: Systems must adhere to strict quality, compliance, and lifecycle requirements, often over 15 to 20 years of operation. AI\u2011generated outputs must therefore be explainable, traceable, and verifiable. Hallucinated or unvalidated changes are not merely inefficient but operationally unacceptable.<\/p>\n<p>&#8220;We realized that standard RAG (retrieval-augmented generation) wasn&#8217;t enough,&#8221; said Agata Go\u0142\u0119biowska, technical lead, Google Cloud. &#8220;Code isn&#8217;t just text; it has inherent structure. A class belongs to a file, which belongs to a module. Flattening that into a vector database meant losing the representation of relationships elements of the codebase.&#8221;<\/p>\n<p>The solution: A domain-aware Knowledge Fabric<\/p>\n<p>To make this sprawling software environment navigable for AI-driven workflows, the teams built the Knowledge Fabric agent. This agent goes beyond keyword matching to \u201cunderstand\u201d the relationships between assets.<\/p>\n<p>We use Spanner Graph to model the inherent structure of the codebase, applying the same rigor to documentation across formats. By mapping connections between these domains, we can link specific code snippets directly to requirements in a design document. Agents then traverse this graph, using tools to query the structure via <a href=\"https:\/\/docs.cloud.google.com\/spanner\/docs\/reference\/standard-sql\/graph-intro\" rel=\"nofollow noopener\" target=\"_blank\">Graph Query Language (GQL)<\/a>.<\/p>\n<p>But GQL is only one piece. To enable semantic understanding, we generate embeddings for every node, using Spanner&#8217;s <a href=\"https:\/\/docs.cloud.google.com\/spanner\/docs\/find-approximate-nearest-neighbors\" rel=\"nofollow noopener\" target=\"_blank\">Approximate Nearest Neighbors (ANN)<\/a> algorithm to perform efficient vector search across the full codebase. Finally, we give agents <a href=\"https:\/\/cloud.google.com\/blog\/products\/databases\/spanner-graph-full-text-search?e=0\" rel=\"nofollow noopener\" target=\"_blank\">full-text search<\/a> capabilities, which can be combined with GQL to pinpoint nodes and edges with precision.<\/p>\n","protected":false},"excerpt":{"rendered":"For technology companies like Siemens, software is the nervous system of factories, energy grids, and transportation networks worldwide.&hellip;\n","protected":false},"author":2,"featured_media":114424,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21002],"tags":[73730,21831,23277,2695,6487],"class_list":["post-114423","post","type-post","status-publish","format-standard","has-post-thumbnail","category-siemens","tag-ai-u0026-machine-learning","tag-customers","tag-data-analytics","tag-manufacturing","tag-siemens"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/posts\/114423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/comments?post=114423"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/posts\/114423\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/media\/114424"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/media?parent=114423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/categories?post=114423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/germany\/wp-json\/wp\/v2\/tags?post=114423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}