← all jobs

refactor a pull request

You’re using an agent to carry a long, multi-file refactor from reading the codebase through a tested pull request.

recs

modelbest whenavoid whencost vibe
Sonnet-classThe refactor crosses modules and the agent needs to preserve behavior, conventions, and test intent.The change is mechanical, tightly scoped, or easy to verify in one pass.worth it for the main pass
Faster / cheaper cloud modelYou have a precise plan and want quick, reviewable edits or follow-up fixes.The agent must discover the architecture or make judgment calls across a large diff.cheap per turn; retries add up
Local coding modelCode cannot leave your machine and you can supply narrow tasks, tools, and strong tests.The refactor needs a long context window or reliable decisions across many files.no API bill; hardware and time count

why