Skip to main content

Rename a symbol everywhere

Just ask:
The agent runs rename_symbol β€” one LSP-backed call updates every file and verifies there are no dangling references. Works for functions, classes, types, interfaces, variables, enums. No need to tell it which file.

Move a symbol to a different file

Moves the symbol, updates every import across the project, fixes re-exports. Full support for TypeScript, JavaScript, Python, Rust.

Rename a file

Moves the file, updates every importer.

Extract a function or variable

Uses refactor extract_function β€” an LSP-backed code action. The extracted code becomes a new function with the right parameters and return type.

Organize imports

Sorts, dedupes, removes unused imports via LSP.

Tips

  • You don’t need to say which file for rename. The agent finds it.
  • If multiple symbols share a name, the agent will ask you to pick.
  • Run /lsp status to confirm your LSP is attached before a big rename.
  • Changes are checkpoint-saved automatically. Ctrl+B undoes them all.