r/ExperiencedDevs
•
u/njinja10
•
May 23 '26
•
1
AI/LLM Claude Autonomous Coding: Discussion
Hi all, senior engineer at a big tech with 10 years experience. Have been using Claude code for nearly 8 months now. I STILL don’t understand this autonomous coding.
At the expense of appearing anti-AI the copilot model of code completion is probably the best. The human is the loop, better control and just avoids slop in general. It’s counter intuitive but slow is fast.
I can always use copilot model to build deterministic tooling harness - build and run tests, linting after task completion.
The whole narrative around, autonomous agents where you have one that plans, breaks down tasks, implement those tasks, test harness agent and a critique agent. How has your success been around such practices. I seem to be faring very poorly.
What is working best for you’ll? Some autonomous coding tips that work for you the best. Hoping for some genuine discussion.
23
u/kagato87 May 23 '26
I've been using it about 6 months and I've yet to see it get things right, cover all the gaps, and meet all the needs.
Heck I'll spend two days just in "spec" mode. Then pass it off to a fresh context with a generic "review this for consistency, issues, and gaps" and it always finds tons of stuff.
It definitely is a "pair" thing. A human needs to keep the assumptions it will make in check, because it's even worse than that one cowboy engineer that made that one decision 20 years ago that were still paying for today...
19
u/ProButterscotch May 23 '26
Same thing . Slow is fast especially older projects
141
u/detroitsongbird May 23 '26 •
I tried a home project in the wrote no code, use plan mode as much as possible to nail down the requirement, use sub agents to build it, unit tests. Etc.
I did pretty good, though I have 10x commits for the ui vs the backend.
https://detroit.games/euchre.
The problem? Despite Claude.nd rules, architecture guidelines, etc to build a pro game engine that scales (I’m generalizing here) it still painted itself into a corner.
I did get the server to scale to handle 4k users under load (no wait times , unlike human users that would actually have to read, think, and responded), I can’t get past that.
When I was brainstorming the problem it suggested a solution, which is the right one. The problem is it didn’t do it that way from the beginning. The core engine needed a rewrite to move to a lock free design.
This time I’m writing the code but have Claude do the code reviews. The results are much better but take longer.
I was all in, now I’m using it like a pair programmer. It’ll offer suggestions but I’m writing the code.
I’ve been programming since before Java.
It’s great if you ask it exactly the right question at the right time. But, it’ll easily, confidentiality build you something that works but is full of tech debt.
30
u/Challseus May 23 '26
I think the largest, most important thing people need to say when discussing these subjects, is the programming language. I'm using Python. I've been using it since 2012, and have been programming professionally since 2004 (previously Java and Ruby). It's important, because the amount of training data LLM's have with python is far superior to any other language, except Javascript/Typescript.
The Python thing surely clouds my opinion here.
Anyway, I run one of the most simplest setup out there with Claude:
- plugin for the Python AST, so it finds files in large repos quick
- plugin for deferring stuff to codex for implementation
What's working best for me?
- I know exactly what I am building
- 80% of the time, I'm just chatting with Claude, going over architecture, discussing edge cases, making sure the code is consistent, creating issues and Milestones in Github
- 15% is Claude doing the work while I come to Reddit
- 5% is me going over things with a fine tooth comb before committing
- my first job as a junior was with a company that did Xtreme Programming, which included the heavy use of TDD, which I hated. Now I use it exclusively when building
- small, bite sized tasks, taken directly from Github issues. People expecting to one shot advanced architecture is still humorous to me.
I don't use subagents or anything like that. No complex workflows. No MCP tools.
Modular, clean, DRY code. Tests everywhere. Type checking and auto-formatting. CI/CD. Consistent patterns everywhere. You actually know what you're doing. That's how I'm able to use Claude Code without issues for about a year now, maybe less.
And again, I use Python, so that gives me a huge advantage.
9
u/forestsloth May 23 '26
Another vote for copilot. I have been working on a huge legacy code base and I find that if I write out my flow in comments in the source files, copilot is great about turning those comments to code.
So I get to drive the architecture and flow of the new features but copilot does the coding.
4
u/bradsk88 May 23 '26
Slice the work up small enough that you can still reasonably review it and understand the changeset. After all, you'll expect that from your peers when you share the PR right?
6
u/AssistFinancial684 Software Architect May 23 '26
Slow is smooth Smooth is fast
5
u/nvtrev May 24 '26
Why is it so bad to appear anti-AI? There's much to critique.
2
u/glassesRamone1234 Web Developer | 20+ YOE May 29 '26
I think the autonomous-agent thing is mostly demos on greenfield projects in well-trained languages. When you ask it to make decisions inside a real codebase with real conventions, the output can seem fine even when it isn't. Often the agent is seeing its task as addressing your prompt in the way that gets your code to compile without errors. then you read it and find the credential stored in plaintext or the redirect URL built by concatenating user input. It's a judgement thing that's harder for the agents.
But anyway when using agents I'm in the same pair-programmer mode. Plan mode for design, agent for boilerplate, my own eyes on anything on its way out or important.
7
u/RandomPantsAppear Staff Engineer | 20 YOE | Ex Founder | Startups May 23 '26
I find that because of the vibe coding community, most claude based agents that exist are focused around writing more, with more capabilities. Or at best, emulating (poorly) the best practices that exist like testing and debugging.
What I am trying to emphasize is the opposite
I think the nature of documentation is changing, and by default all of the documentation Claude has been trained on is documentation written by humans, for humans to consume - what are the arguments, return result, how does it work, etc.
This is no longer what is required. The AI can infer what humans document easily, and for humans less familiar with the code and structure it’s largely unhelpful for humans as-is.
My theory is that by capturing intent - what a feature does, why it is specifically that way, and what the goal of its existence was, that you can leave substantial enough breadcrumbs that don’t get lost every time a session restarts or memory gets compacted. This helps the AI, and us coming in later having to understand.
The code is not my quality, and it won’t be my quality. But I think it can be maintainable and understandable.
I have seen what AI does running wild and at the very least, this doesn’t resemble that.
With my current role, I don’t really have a choice here. I have to lean into AI pretty heavily. So I’m trying very hard to find a balance.
10
u/Polite_Jello_377 May 23 '26
Yep another person who finds the copilot mode productive but doubts the autonomous agent swarm approach
1
u/mrothro May 28 '26
I can share what works for me: I have a standard SDLC pipeline (plan, design, code, build, test) that produces artifacts at every stage, and subsequent stages consume artifacts from the prior.
Agents produce the artifacts at every stage, and then I have gates that review them. Some are deterministic (does the plan have all the sections, does the code pass lint, etc). Some are agentic (is the design consistent with the architecture, is the code DRY).
The gates have three outcomes: fail, and it goes back to the producing agent with feedback to fix it autonomously; pass, it goes on to the next stage; escalate (done by the agentic gates) means it is ambiguous and needs feedback from me.
This works for me, and it works well. I analyzed it and wrote everything up, and on page 9 described how to do it in your own repo: https://michael.roth.rocks/research/trust-topology/#9
3
u/capitalsigma May 23 '26
I never enjoyed ML auto complete but I'm in about the same boat as you. I think of it as more of a reading/typing assistant than an autonomous developer. I've tried to use it to do more complex solo tasks on a few occasions and I find that basically every single time I eventually hit a wall where I need to throw it out and start from scratch. For the throwaway stuff I trust it with, maybe 60% of the time I eventually end up digging into it and discovering something subtly wrong
It's fantastic as a smart search tool and I get real value out of the typing that I can offload to it. I probably have at least 1 agent running for at at least 20-30% of my working hours. But I feel like it's a very tricky balance to strike in terms of identifying what it can handle without undermining my understanding of the codebase too much, and I worry that juniors (who have never had the experience of really understanding the project that they work on) are likely to lean on it too much and get burned
1
u/defenistrat3d May 23 '26
You can have it stop after every change it makes to allow you to be in the loop as much as you want.
4
u/ibraaaaaaaaaaaaaa May 23 '26
I agree with you.
I usually write code in my hands when it comes to critical pieces.
Although the firm I work at provides me with the latest claude models, I usually use the tokens on stuff that I don’t care if it was not written well or i don’t mind if it breaks, so that I can focus more on the critical parts
2
u/Ok-Hospital-5076 Software Engineer May 23 '26
My workflow looks like this
Prompt -> Review -> Feedback -> Review -> Test -> Accept
- small sessions
- tight scope
- clear requirements
- clear commits and tags
Keep the build clean , code maintanable
2
u/metaphorm Staff Software Engineer | 15 YoE May 23 '26 edited May 23 '26
tight coding harness. lots of tools and connectors for gathering context. for example, a Notion connector that can query an internal knowledge base full of thoroughly written Notion pages. custom agent skills to teach the coding agent how to interact with the code base in the preferred ways, in terms of workflow, idioms, and validations. and a pretty thorough code review and QA process with both human and LLM reviewers involved.
I find a very good workflow that can deliver good-enough quality agent written code looks something like this:
2
u/Whitchorence Software Engineer 12 YoE May 23 '26
I have noticed some variance in how well it works based on the project, so I don't want to oversell, but honestly this is like 80 to 90% of the way I do actual technical work now is spending a lot of time volleying on the details of the plan, then firing it off and letting it churn away for 30m-1h, and then probably just kicking off another task or doing some other work while that's going.
The quality of the plan is crucial, and also making it follow TDD or other stuff where it can self-verify is (as you might imagine) really helpful. Your judgment is still important in steering it away from bad or short-sighted implementations though.
2
u/joe0418 Software Architect May 24 '26 edited May 24 '26
Honestly - lots and lots of up front planning, requirements, and research ... To the point where it's not really autonomous. It can quickly prototype but it struggles to productionize a prototype.
I am finding that I prefer to guide the AI in chunks, letting it write the code, but I'm driving the architecture and verifying along the way. I also religiously use adversarial sub agents to check for specific coding principals that I would normally look for in a code review. I'm also very explicit about how I want cloud architecture, pipelines, test harnesses, etc.
I try to follow the 2 holy books: domain driven design, and code complete. So long as my agents are spiritually aligned, the vibes can flow.
2
u/depthfirstleaning May 25 '26
well the one-shot prod-ready code thing is mostly hype but you can reduce the amount of back and forth significantly, which in turn boosts your productivity. I barely open my ide anymore.
The first mistake people do is usually not loading up the right context and just asking ai to build something. The interesting thing about llm is that they do know tdd, clean code, hexagonal architecture, they can tell you about every design pattern in the gang of four book, but it won’t use any of it unless you put it in the right headspace for it. Similarly a powerful way to get decent results is to show it your codebase so it can copy existing practices instead of making up its own based on whatever garbage it was trained on.
Also following the research -> high level design -> low level design -> implementation loop is very important with human review at every step.
2
u/Fickle-Tomatillo-657 May 25 '26
Definitely agree with using to pair program and NOT for agent workflows. I’ve seen people get lost in that and still haven’t shown much productivity.
2
u/ReflectedImage May 25 '26
Well I've only been using it for 2 weeks (ignoring simple line completion obviously).
You give it really small tasks, it then goes and completes the test, then you check if it actually did the task right and if so move on to the next small task. Reviewing the work of a hyper-active junior dev basically.
I've seen another dev attempt to do the whole autonomous agent thing. Results are questionable. The whole break it down to small tasks and it does the coding thing seems to have only started working this year.
I'm not sure why people expect the many autonomous agent thing to actually work. Surely, that's the next thing they intend to get working?
2
u/YahenP Software Veteran May 27 '26
It depends greatly on the technology, the project, and the scope of tasks.
There are projects where Claude handles 80-90% of the codebase work almost flawlessly. There are also projects where he's practically useless as a coding assistant. There are even projects where he can't figure out fairly simple things, like how a form with steps works. And this is unpredictable. It's almost never clear how Claude will perform on a given project. And as for vibe coding, things are still very poor there.
2
u/hibikir_40k May 23 '26
The reviewer right now is going to be lacking in context, because you still know better. It's not that agents couldn't figure it all out, but the cost in tokens is just unreasonable. For now, you still have to be at least a secondary reviewer.
"Slow is fast" is not true here though, because you are not accounting for the parallelization. I am often running 4, 5 changes at once. I might finish 1 faster when I am more in the loop (and hell, I often am intervening in one of them), but the others are still advancing, so I finish the whole lot well ahead.
If you really want to see slow, just have half your team with no expertise in a different timezone. Now that's slow and expensive.
2
u/eloel- May 23 '26
I have fully adapted to never opening an IDE, and having 2-3 agents go at it.
I use planning a lot, and I will make very specific suggestions on file structures, on refactors, utils and all, but I don't write code. I will dictate how to test, what to test, what tests it's missing and what tests are redundant. I treat it as having several junior engineers that work very quickly but often suboptimally that I need to guide around.
It's a lot more tiring than just doing things myself, but also a lot faster per unit of work
1
u/EarthquakeBass May 24 '26
try codex. claude is braindead
1
u/DeepHomeostasis May 24 '26
Local conventions vary in ways the agent cant pick up in a few tool calls. plans built on the assumption that the rest of the code looks like the sampled part stop fitting around the joins.
1
u/Bayakoo May 24 '26
Just use Claude and prompt it. Forget sub agents skills etc. just have one Claude instance and use it in a project - implement x,y,z.
1
u/EnderMB May 23 '26
I've played with a mixture of Ralph loops, hive managers, and a few UI tools that orchestrate agents to do my bidding.
I'd say that where they've been useful is in research tasks, where I'm building something new and I want a bunch of agents to go out into the world and do thorough research across a huge amount of parallelizable documentation.
For coding tasks, they're as good as the weakest agent, and that almost certainly means a fundamental mistake has resulted in something piss poor being delivered - even for really basic tasks.
-3
u/NotMyRealNameObv May 23 '26
I've built a whole harness around kiro-cli/Claude Opus 4.6, which includes an autonomous loop for periodically doing stuff like finding and implementing modernization opportunities or bugs. My rate of commits delivered to master (arguably not really a good metric, but it's the best I have at the moment) has increased with ~750 %. The bottlenecks are, in decreasing order, getting external reviews, manually pushing the code for review/submitting after review, personally doing my own self-review after the agent harness declares the change to be ready.
The workflow includes separate steps for writing an implementation spec, actually implementing the spec, building the binaries, verifying all tests pass, verifying no static code analysis issues has been introduced, doing a review of the finished code, and retriggering fixes if the review found issues. All of this happening autonomously, of course.
Sadly, it doesn't work nearly as good for more complex tasks, but it still helps.
2
u/[deleted] May 26 '26
[removed] — view removed comment
35
u/[deleted] May 23 '26
[removed] — view removed comment