Run a bulk refactor across 200 files without burning tokens
언제 쓸까: The same transformation needs to apply everywhere and the LLM would churn through too many tokens doing it file-by-file.
흐름
-
Define the transformationUse the Code Operations plugin. Replace every
import { foo } from 'old-lib'with the equivalent from 'new-lib'. Run via Execution Runtime.✓ 복사됨→ 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.✓ 복사됨→ Structured diff you can skim
결과: Massive refactor done cheaply and reviewably.
함정
- Regex-based transform breaks edge cases — Runtime supports AST-level transforms — use those for syntax-sensitive changes