The agent keeps editing the wrong file because the repo has similar module names. How would you fix that?

Instruction: Explain how you would improve repo targeting when search results are ambiguous.

Context: Tests how the candidate diagnoses the problem, chooses the safest next step, and reasons through recovery. Explain how you would improve repo targeting when search results are ambiguous.

Official answer available

Preview the opening of the answer, then unlock the full walkthrough.

I would improve grounding before generation. Similar names usually mean the search and ranking layer is not giving the agent enough structural signal about which module actually owns the behavior in question.

I would combine symbol-aware search, dependency context, and examples of the...

Related Questions