US 12,455,736 B1
Standardizing enterprise software code through LLMs
Kumar Vadaparty, Belle Mead, NJ (US); Kallol Duttagupta, Basking Ridge, NJ (US); Kundan Sen, Plainview, NY (US); Thomas Mathew, Parsippany, NJ (US); and Trevor Brosnan, Scottsdale, AZ (US)
Assigned to Morgan Stanley Services Group Inc, New York, NY (US)
Filed by Morgan Stanley Services Group Inc., New York, NY (US)
Filed on Apr. 28, 2025, as Appl. No. 19/191,343.
Int. Cl. G06F 8/72 (2018.01)
CPC G06F 8/72 (2013.01) 20 Claims
OG exemplary drawing
 
1. A system for standardizing code patterns within an enterprise software environment, the system comprising:
a code repository configured to store enterprise software code, wherein the software code comprises one or more code patterns;
a prompt library storing a plurality of prompt sets, wherein the plurality of prompt sets comprises:
one or more pattern recognition prompt sets configured to direct a large language model (LLM) to identify specific code patterns within selected software code from the code repository; and
one or more standardized solution prompt sets configured to direct the LLM to generate replacement code conforming to a predefined enterprise standard for the identified specific code patterns;
a code modernization system in communication with the LLM, the code modernization system comprising one or more processors and memory storing instructions that, when executed by the one or more processors, cause the code modernization system to:
provide a user interface enabling selection of software code from the code repository and selection of at least one pattern recognition prompt set and at least one standardized solution prompt set from the prompt library;
transmit the selected software code and the selected at least one pattern recognition prompt set to an LLM;
receive, from the LLM, identification of one or more code patterns recognized within the selected software code based on the selected at least one pattern recognition prompt set;
transmit the selected at least one standardized solution prompt set to the LLM; and
receive, from the LLM, standardized replacement code generated based on the identified one or more code patterns and the selected at least one standardized solution prompt set.