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
- Identify the normal build and package manager from repository guidance. State that the fix should use the existing supported dependencies.
- Ask the agent to solve the specific failure and report a demonstrated dependency blocker before changing versions.
- 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
- How do I move an AI coding agent’s patch from an isolated worktree to my branch?
- How do I give an AI coding agent only the logs needed to diagnose a build failure?