I don't understand prompt based coding workflows

Posted by ahspaghett69@reddit | ExperiencedDevs | View on Reddit | 122 comments

I have been trying to use agentic coding patterns to boost my productivity at work, but it so far has been a complete failure and I feel like I'm going insane?

I used to use copilot but due to data concerns it was taken away. I always found that it gave me a very clear and measurable performance boost. It actually felt like a significant leap forward.

Now, I have access to Claude Code and the latest models. I tried to code a very simple project for a demo, so not something that would go production or had security concerns etc.

I followed the latest guides and setup subagents and wrote out some style guides and basic instructions about thinking and planning etc then I got started

First of all it completely ignored my subagent instructions. So, ok, I guess I'll specify them in the prompt instead, whatever.

Then, it started writing code, but it clearly misinterpreted what I wanted, even though I specified it as clearly as I possibly could. Ok, I'll prompt it to fix it and update my instructions.

Now, it produced something, and it tried to test it, great! Except it didn't work, and then it got stuck in a loop trying to fix it itself, even though the error was extremely trivial (an issue with indentation in one of the files), and in trying to fix it it completely destroyed the code it has written.

So, I prompted it on how to fix it, and it worked, but now the code was an absolute mess, so I decided to start again and use a different tactic. Instead I would create all files, lay out all the code, and then just tell Claude "autocomplete this".

Well, that worked a lot better...except it hallucinated several parameters for API functions, which, while not the end of the world, is not a mistake a person would make, and the code was absolutely disgusting with heaps of duplication. I guess because it had to "fit" the structure it lost any sense of reusability or other patterns.

Has anyone else had this experience? Am I missing something? I obviously didn't expect it to be a literal "oh yeah you write one prompt and it's done" situation but writing code this way seems incredibly inefficient and error prone compared to writing it the traditional way. What took me 2 hours of fiddling with prompts and agents to get done with prompts I did in less than 1 hr the normal way and the code was far better.

I sort of feel like I'm in a twilight zone episode because everyone else seems to be having a ton of success but every time I've tried to use it I've had the same experience.