What Is AI Code Refactoring? Agentic AI & Safe Code Changes
IBM Technology
Summary
El vídeo explica qué es la refactorización de código con IA, destacando cómo estos modelos probabilísticos pueden mejorar la legibilidad y reducir la deuda técnica. Se diferencia claramente entre la refactorización 'inline' (sugerencias en tiempo real mientras programas) y la 'agentic' (agentes autónomos que ejecutan cambios en todo el repositorio). Para garantizar la seguridad, se utiliza un ciclo de trabajo supervisado que incluye planificación, revisión humana, ejecución mediante parches y verificación obligatoria mediante tests, permitiendo incluso la integración en pipelines de CI/CD.
Topics covered
- Definición y beneficios de la refactorización
- Gestión de deuda técnica
+5 more topics (full content when you follow the channel)
Transcript excerpt
A large language model is, well, a probabilistic guessing machine, and these guessing machines are being used to rewrite production code. That's called AI code refactoring. And I suppose the question we have to ask is, is it really safe to let these guessing machines loose on enterprise code? Well, plain old code refactoring means changing a program. It means taking a program's internal structure, so maybe it kind of looks a bit like this, and we want to change it, well we can add in something like this but what we haven't changed is its external behavior. To the outside world this thing still looks the same. So... If the external view doesn't change then I think the question is why bother doing code refactoring at all? Well let me give you an example why you might want to do it. So let's take for example a variable called temp2 in a piece of code. Well temp2 tells anybody trying to read…