Refactoring code with AI agents: preserving behavior and verifiable changes
Give AI agents a refactoring scope, behavior to preserve, and verification commands. Use before-and-after Java examples and prompts to examine boundaries, exceptions, change scope, and test reliability.
ai-agent / refactoring / java↗