Refactor Safely Use the knowledge graph to plan and execute refactoring with confidence. Steps 1. Use with mode="suggest" for community-driven refactoring suggestions. 2. Use with mode="dead code" to find unreferenced code. 3. For renames, use with mode="rename" to preview all affected locations. 4. Use with the refactor id to apply renames. 5. After changes, run to verify the refactoring impact. Safety Checks - Always preview before applying (rename mode gives you an edit list). - Check before major refactors. - Use to ensure no critical paths are broken. - Run to identify decomposition targ…