I've been coding with Claude, and no matter how I request that it generates only one file at a time, it keeps trying to produce all of them at once. This usually results in hitting the response limit. Is there a way to phrase my request or something else I can do to manage this better?
4 Answers
Yeah, Claude tends to rewrite whole files even for small code adjustments. I've noticed the same thing!
Another option might be to just pay for a better version of Claude or check out Gemini instead.
You could try using MCP to write directly to your codebase. Alternatively, prompt it like this: request a single "file snippet" and get approval from you before moving on to the next part.
Try rephrasing your request to be positive instead of negative, like saying, "Please put everything in one file." I think it responds better that way, as it focuses on what you want instead of what you don't want.
That makes sense! But I'm working on multiple processes and need distinct modules. Compressing everything into one file would be a hassle for my runner script.
I'm not great at making minor tweaks either. I usually prefer to rewrite entire functions or get the full code when it's lengthy, but those response limits can be really frustrating.