Skip to main content

Symbol Refactoring

The agent can rename symbols — classes, methods, fields, variables, and parameters — using the IDE's refactoring mechanism (analogous to Shift-F6).

Difference from Search and Replace

CLI agents use ordinary text search and replace (essentially sed), which inevitably breaks code and then spends tokens and time fixing it.

Explyt's refactoring tool correctly updates all declarations and usages of a symbol, including getters, setters, test classes, and imports, without breaking the code. Related symbols are automatically renamed as well — for example, when renaming a field, the agent will update the corresponding getters and setters.

When It's Useful

  • You need to perform a large-scale refactoring that includes renaming entities in the project.
  • You need to standardize method or variable names and eliminate technical debt.