Hacker News new | past | comments | ask | show | jobs | submit
Are you expecting it to get it right and done in one shot?

When building out a new feature or functionality I'm typically getting a ratio of 2:1 or 3:1 of refactoring to build out. So for every prompt of "let's build this feature" I have to do 2-3 prompts of "I noticed this in the code isn't following X/Y/Z pattern, check out this place where X/Y/Z is followed and refactor" or similar.

If you're expecting a single prompt to get you to perfection, it's just not going to happen.

Though I can't blame you for having that expectation with how people talk about this stuff. Lots of people seem to be frontloading a ton of work making "spec files" and then letting the ai go ham on their codebase and I don't agree with that approach.

I'm not expecting it to one shot or anything. The excerpt I quoted was just one of many such threads in a much longer session to make a 1000 line PR.

I think there must be a more efficient way to direct Claude but I haven't figured out a way yet.

loading story #50561038