Run a bulk refactor across 200 files without burning tokens
Quando usar: The same transformation needs to apply everywhere and the LLM would churn through too many tokens doing it file-by-file.
Fluxo
-
Define the transformationUse the Code Operations plugin. Replace every
import { foo } from 'old-lib'with the equivalent from 'new-lib'. Run via Execution Runtime.✓ Copiado→ Plugin generates a Python script that runs locally, not a per-file LLM pass -
Review the diffShow me the full diff grouped by type of change.✓ Copiado→ Structured diff you can skim
Resultado: Massive refactor done cheaply and reviewably.
Armadilhas
- Regex-based transform breaks edge cases — Runtime supports AST-level transforms — use those for syntax-sensitive changes