The codebase has local conventions that are not written down anywhere. How would you help the agent learn them safely?

Instruction: Describe how you would expose unwritten conventions to a coding agent.

Context: Tests how the candidate diagnoses the problem, chooses the safest next step, and reasons through recovery. Describe how you would expose unwritten conventions to a coding agent.

Official answer available

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

I would infer conventions from trusted examples rather than asking the agent to invent them. That means retrieving representative files, tests, naming patterns, and prior changes from the repo so the agent can ground itself in actual local behavior.

I would also keep those...

Related Questions