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.
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.
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.
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.
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.