Check the ecosystem
Before the agent starts implementing a large feature from scratch, ask what popular libraries exist for that task. This achieves two things: you get a quick review of existing solutions, and you prime the model to actually use one instead of reinventing the wheel.
>
This simple question prevents wasted effort on custom implementations and keeps you in the ecosystem of maintained, documented solutions.