Original Reddit post

While using coding assistants inside the IDE, I notice the same pattern. If the request is not very clear, the generated code is often off. Then the cycle starts again. Rewrite the prompt. Regenerate. Repeat. I’ve been wondering about a different flow. Instead of generating immediately, what if the assistant asked a few quick questions first to collect context? Example: What stack is this project using? Is this a new feature or a refactor? Any constraints or libraries that must be used? After that it generates the code. Feels like it could reduce retries and wasted credits. Curious if others would find this useful, or if the current prompt and iterate approach is already good enough. submitted by /u/DeepaDev

Originally posted by u/DeepaDev on r/ClaudeCode