Split a module or remove duplicated code

Ask Gryphon to refactor one area. Specify the interfaces and behavior that must stay the same.

Find the callers first

Review inputs, outputs and side effects before editing. Extracting an API client, for example, should preserve response formats, retries and error handling.

Keep the change focused

Set constraints: one module, no new dependencies and no repository-wide formatting. Review moved code and the reasons for each change.

Check compatibility

Run existing tests, add missing checks and review callers of the changed code. Diff size alone does not tell you whether behavior was preserved.

Try it on your own task

Open Web and describe the task. Connect Desktop for files and commands on your computer.