Skip to main content

CodeRefactorAi

6 tools in this family (folder Editor/Tools/CodeRefactorAi/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
refactor_applydestructiveExecute a RefactorPlan IN PLACE: rewrites source files, calls AssetDatabase.MoveAsset for
refactor_dry_runwritesExecute a RefactorPlan in dry-run mode: produces unified diffs under
refactor_propose_planread-onlyAsk the active chat provider to draft a RefactorPlan from a free-text goal
refactor_remove_unused_usingswritesScan .cs files (project-wide by default, or one file via file_path) and remove
refactor_rename_symbolwritesConvenience: rename a symbol (class / method / field / variable) project-wide using
refactor_validate_planread-onlyValidate a RefactorPlan: checks every operation has the right kind+fields,