AI-assisted Monorepo Refactoring

AI-assisted language conversion, project consolidation and solution-wide repair made a large monorepo easier to understand and change. The approach uses Microsoft Agent Framework (MAF), formerly Semantic Kernel.

Make code transformations coherent across large solutions

A mature software estate had accumulated substantial capability across VB.NET and C#, reflecting years of product development and evolving business needs. There was an opportunity to make that investment more accessible: streamline navigation, clarify where new features belonged and reduce the context both developers and AI needed for each change. Language consolidation also offered a more consistent foundation for skills development, retention and recruitment. The work focused on these improvements while preserving established behaviour and coordinating delivery across engineering teams.

01 From accumulated structure to a coherent codebase
Abstract illustration of the approach. Select the image to view it in a larger overlay.

Connect prompt-driven intent to reusable operations

I developed custom agents and procedural functions using Semantic Kernel. Parameters supplied through a prompt identified the projects and the transformation to perform, while the functions coordinated structural changes and AI-assisted code repairs. These capabilities were packaged as tooling developers could install and use locally.

The current Microsoft platform is Microsoft Agent Framework (MAF), formerly Semantic Kernel. The original tooling combined Semantic Kernel functions with explicit workflow and AI-assisted engineering, providing experience that Jedwards Tech can apply to MAF-based customer solutions.

Convert VB.NET to C# and consolidate the solution

One operation converted a targeted project from VB.NET to C#, including its source code. AI-assisted repairs addressed the resulting compile errors across the solution, including changes to namespaces, method parameter order and project references.

Other functions merged two C# projects, resolved clashes and aligned namespaces and dependencies.

Another AI function facilitated a project-renaming operation followed by the necessary namespace and reference changes necessary throughout other projects in the solution.

Classes of around 10,000 lines were split into partial classes organised around carefully considered concerns. This improved navigation within established types while making related responsibilities easier to find and reason about.

These were coordinated engineering operations with solution-wide impact that needed to be coordinated with all engineering teams to ensure their delivery wasn't affected or delayed.

Use compilation and review as complementary evidence

A successful build cannot prove that behaviour, intent and maintainability have been preserved. Compiler feedback was used to locate broken references, incompatible signatures and namespace issues, then direct further AI-assisted fixes.

The target structure and the changes made still needed engineering review. Compilation, behavioural checks and inspection of the resulting responsibilities provide complementary evidence when accepting substantial transformations.

Improve comprehension and delivery across varied work

Following language conversion and project consolidation, there was a measurable improvement in time-to-comprehension and time-to-delivery across a variety of work. Developers spent less effort finding their way around the solution and had a clearer starting point for implementing changes.

Developer feedback was unanimously positive. In particular, developers cited the ease of navigating the solution and knowing where new features needed to be implemented. A more consistent language and structure also reduced the amount of context people and AI had to reconstruct for subsequent work.

Create a codebase that supports the next change

Language consolidation and clearer project boundaries created a more approachable engineering environment. Concern-based class organisation helped developers locate behaviour, while consistent namespaces and dependencies made the wider solution easier to reason about.

The architectural value was cumulative: a shared structure supported onboarding, feature placement and further AI-assisted delivery. The refactoring improved the foundation on which everyday changes could be understood, implemented and reviewed. This experience enables Jedwards Tech to help customers plan and implement language consolidation, agent-assisted restructuring and validation around their own delivery priorities.

Planning an AI-assisted refactoring?

Contact me to discuss language consolidation, solution structure and the validation needed to make large-scale change practical.

Discuss an AI engineering engagement
Back to all case studies

AI-assisted Monorepo Refactoring illustration

Abstract code structures and tangled dependencies flowing through a central transformation into a smaller, ordered set of connected modules in blue and teal.