The agent keeps inventing APIs that do not exist in the codebase. What would you change first?

Instruction: Describe how you would respond when a coding agent hallucinates local interfaces.

Context: Tests how the candidate diagnoses the problem, chooses the safest next step, and reasons through recovery. Describe how you would respond when a coding agent hallucinates local interfaces.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

I'd require the agent to inspect the interface it intends to call...

Your preparation path

Work through these questions in order. Read the answer aloud, then explain it in your own words.

Related Questions