Check this thread - Share your "Rules for AI" - #43 by Kirai
You need to leverage rules, just ask him multiple times (with different words) to not refactor anything and keep code changes to absolute minimum to achieve the task
Usually it helps
2 Likes