Modernise legacy code with a transformation agent
Amazon estimates its Q Developer agent saved the equivalent of 4,500 developer-years upgrading applications to Java 17.
Why it matters
Old software keeps hospitals, banks and governments on insecure, costly systems. Agents that do the upgrade work give engineers time for new work and close security gaps.
How it works
Q Developer's code-transformation agent upgrades Java 8 and 11 applications to Java 17. AWS says Amazon upgraded more than 50% of its production applications in six months and that 79% of the auto-generated code reviews were applied without additional changes. CEO Andy Jassy said the average upgrade fell from about 50 developer-days to a few hours; Amazon also estimates 260 million US dollars a year in efficiency gains (Business Insider).
Who it's for
Engineering leaders and teams with legacy systems, especially in the public sector.
The prompt
Upgrade this repository from [Java 8 or 11, or another legacy version] to [target version]. 1. Inventory the build files, dependencies and deprecated APIs. Write the upgrade plan and wait for my OK. 2. Run the existing tests first and record the baseline. 3. Upgrade in small steps (build tool, then dependencies, then code). Run the build and tests after each step. 4. For each change, explain why it was needed. 5. Finish with a summary: what changed, the test results compared with the baseline, and risks for a human to review. Work on a new branch. Do not push, merge or deploy.
Open inClaude (opens in a new tab)ChatGPT (opens in a new tab)Gemini (opens in a new tab)Grok (opens in a new tab)
Sources
The figures are Amazon's internal figures.
1. AWS DevOps Blog: Java 8/11 to 17; 50%+ of production apps in six months; 79% of reviews applied unchanged. Accelerate application upgrades with Amazon Q Developer agent for code transformation (opens in a new tab)
2. Business Insider: 50 developer-days to a few hours; 4,500 developer-years; 260 million US dollars a year. Amazon CEO says AI saved a 'crazy' amount of time (opens in a new tab)