AI Help

How do I stop an AI coding agent from changing dependency versions during a small fix?

State the allowed scope and review dependency manifests and lockfiles in the final diff. Request an explanation for every dependency change.

Steps to follow

  1. Identify the normal build and package manager from repository guidance. State that the fix should use the existing supported dependencies.
  2. Ask the agent to solve the specific failure and report a demonstrated dependency blocker before changing versions.
  3. Inspect manifest and lockfile diffs and verify any necessary version change with the relevant checks.

Example in practice

Illustrative example. A UI label fix should be reviewable without unrelated package upgrades appearing in its patch.

Related AI help

Official guidance

OpenAI documentation