Modernize an API Call Incrementally

Migrate off a deprecated dependency one file at a time, stopping the moment tests fail.

Advanced1 min read

Customize

Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.

Your prompt

3 placeholders left
Replace every use of the deprecated {{old_library}} in {{path}} with {{new_api}}.

Migrate one file at a time, run that file's tests after each change, and stop if any test fails so we can review together.

Similar prompts

Convert Code Between Languages

An idiomatic port, not a transliteration — with anything that doesn't translate flagged rather than faked.

Map the Blast Radius of a Change

Find every caller a signature change would break, and the safe order to migrate them.

Refactor to Match a Pattern

Point at a file you already like and have the agent bring another one in line with it.

Add Diagnostics Before Guessing

Instrument first, theorize second — logging with a stated plan for capturing the failure.