Auto-refactoring technology built to support mass-scale code changes

Moderne’s ground-breaking system for code refactoring at scale enables developers to know their code like never before and automate change across multiple repositories at once.

Revolutionary Refactoring Tech

Data

Lossless Semantic Tree (LST) visual

Lossless Semantic Tree (LST): Full-fidelity code representation

The LST is an evolution of the abstract syntax tree, providing the most detailed code representation available today. It captures rich, semantic-based data including all dependencies (transitive and direct), type information, and formatting—everything needed to search and transform code programmatically. Moderne serializes LSTs to disk to horizontally scale change across your repositories.

PROGRAMS

Moderne recipe builder visual

Rules-based recipes for programmatic code transformation

Recipes are deterministic programs that accurately search and fix your code by navigating to different parts of the LST tree. Recipes can perform simple tasks like finding a method to complex tasks comprising 1,000s of steps like performing major migrations or mass security vulnerability sweeps. Recipes are created and maintained by the open-source OpenRewrite community, and developers can easily build custom recipes.

AI Included

Moderne AI agentic experience

Imagine the possibilities of asking an AI agent to describe dependencies in use, upgrade frameworks, fix vulnerabilities, or locate where a piece of business logic is defined—across thousands of repositories. The rich LST code data is the life force of the AI agentic experience in the Moderne Platform.

Our agentic experience includes tool function calling, whereby the thousands of deterministic recipes in the OpenRewrite recipe marketplace serve as tools to provide LLMs vital context and direction. Developers work through a real-time agentic interface to effortlessly navigate, understand, and evolve even the largest, most complex codebases. 

REFACTORING integration

Integrating and scaling refactoring technologies

Moderne is able to scale refactoring tech that is idiomatic to different communities, such as codemods and linters. We integrate them in recipes and run them on code as text within the platform across multiple repositories at once. This enables developers to get a ‘one-stop-shop’ approach to access and execute refactoring tasks at mass scale. Moderne will continue to support languages natively as well.

Diagram showing the scan, generate, and edit processes that the Moderne platform uses when it integrates with other refactoring tools, such as codemods, linters and formatters to provide a "one-stop-shop" for mass-scale refactoring tasks.
eBook
 feature

O'Reilly: How to Refactor and Secure the Modern Software Supply Chain with Automation

Download our O’Reilly eBook

Learn more about the practice and technologies behind mass-scale automated code refactoring and remediation.