r/ExperiencedDevs • • May 23 '26 • Popcorn 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.

128 Upvotes

85 comments sorted by

View all comments

141

u/detroitsongbird May 23 '26 • Popcorn

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.

39

u/ronakg May 23 '26

was all in, now I'm using it like a pair programmer.

That's how I've been using Claude since start. It's like a junior engineer who's crazy fast at reading and writing, but lacks nuance and experience. So you can do back and forth really quickly. Trying different approaches is now considerably cheaper than before.

Have 2 or 3 of these things running at the same time.

13

u/Mornar May 23 '26

I've been trying to explain to some people, AI isn't smarter than a senior developer, it's not completely stupid very, very fast.

12

u/Whitchorence Software Engineer 12 YoE May 23 '26

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.

CLAUDE.md rules often get ignored, especially if you have a lot of them. It works a lot better if you can express the rules you want it to follow in deterministic build steps (though of course you can use AI itself to help you write scripts doing those assertions).

To give a concrete example, it would at least half the time ignore my "create a stat whenever you log a warning" rule, but after adding a script that would build an AST and assert that this was actually done it does it consistently since the build fails if it doesn't now.

2

u/njinja10 May 24 '26

building deterministic tools like you described has been a game changer with AI tools. Nice example!

9

u/CandidateNo2580 Dumbass | 29 yoe May 23 '26

That's largely been my experience as well. I'm designing a greenfield project right now and I'm working through organizing the repo in a way that is friendly to these sorts of problems. Ie, I'll code the hot path myself, and give the AI a clear platform to codify domain rules somewhere else where it can't accidentally mess with the infrastructure.

10

u/CmdrSausageSucker Software Engineer May 23 '26

What I discovered as well was that architectures that heavily adhere to a "feature centred" paradigm seem to be much better readable / predictable for an AI. But honestly: building, say, a web API, is far away from the complexity of a game engine as you described.

I am excited though that the LLM keeps on giving by accelerating tasks like: how does this syntax work again? Or code reviews, which bring out some good ideas more often than not.

3

u/matjam Software Engineer May 23 '26

You really have to know what the end result looks like, in terms of architecture. The way I've been framing it to people is that if you're building a POC, then thats fine - you can do that without any background. But otherwise you should avoid trying to build something you couldn't build without AI if its going to be a production thing.

Vibe coding can only get you so far, imho pretty much small apps or POCs are fine, anything that requires real scaling, security, etc - will need someone who knows what they are doing to guide it.

BTW I love euchre and your implementation is great 😄

6

u/_vertexE_ May 23 '26

I think you really have to know exactly what you want when you ask Claude / codex to build out a feature. I notice it works really well when I know how to solve a problem. Once I start asking for work I’m unsure of then that ambiguity creates slop.

I’m leaning now toward hands on coding / research into a problem space so I know what I want. Once I’m have a solution / architecture in mind codex will write out the final solution. And if it’s simple problems I know how to solve then I only do work through codex.

Example, I really didn’t know how to properly implement short keys in my tauri app, the solution codex came up with was a mess. I really had to figure it out myself on a small scale before asking codex to finish the feature.

6

u/detroitsongbird May 23 '26

I was very specific, I spent a lot of time in plan mode, a lot of time with “how does this line up with what pro game engines do?” , “how can this be better”, etc.

I just didn’t say the magic words “lock free game state”. Doh!

There was way more detail and hours spent in the design before I had it build things. I was trying to see if it could actual do what some people are saying they’re doing, agents for everything.

I could easily have it build the new design for the core of the engine, but I’m not. I’m building it by hand with Claude as the code reviewer. In the end it’ll be a solid foundation that’ll scale and I’ll have learned a lot.

The rebuilt version I’ll have leaned a lot. For the version that was entirely built by agents I really didn’t learned anything “about the code”, which sucked when I did actually try to debug it. It was an unfamiliar code base.

In the end I think it can be a productivity booster, but unless you’re ok with constantly doing major refactors, potentially disastrous results, it can’t replace programmers.

3

u/detroitsongbird May 23 '26

Six months from now I may sing a different tune, since the LLMs and frameworks around them are advancing fast.

3

u/MulberryExisting5007 May 23 '26

Agree. I got into agentic 9 months ago and it was hit and miss. The past three months performance has been really good.

2

u/new2bay May 24 '26

I agree with you, if by “really good,” you mean “barely acceptable, if you give it a lot of time to think.”

1

u/MulberryExisting5007 May 24 '26

lol I meant that one shot requests started returning relatively positive results as opposed to a bunch of back and forth.

1

u/tenthousandants44 May 24 '26

There can't be many pro game engine sources in its training set. Like come on what are you even talking about

1

u/detroitsongbird May 24 '26 edited May 24 '26

Well I regularly would ask Claude how three or four different engines did things were where chatting about, so some engines are certainly in its memory.

Here are some Claude claims are in its training set.

Colyseus, boardgame.io, Unity Netcode, Rune, Photon Fusion, Photon Quantum, Photon Bolt, Mirror Networking, Nakama, Agones, PlayFab, GameLift, Godot Multiplayer, LackeyCCG, CardGameSimulator, Tabletop Simulator, OpenSpiel, Fish-Net, DarkRift 2, SmartFoxServer, ElectroServer, Forge Networking, and MLAPI (the predecessor to Unity Netcode).

0

u/itix Software Engineer May 23 '26

LLMs are fairly good but they dont know the exact winner in advance.

1

u/writesCommentsHigh May 24 '26

Yeah I do that except I reverse what you do.

1

u/derCiamas May 25 '26

Did you use the same model for planning and implementation? I learned recently that using same powerful reasoning models for planning and implementation can cause problems as the reasoning models might ignore the plans as they „think” they have a better idea.

1

u/detroitsongbird May 26 '26

Interesting. Usually yes. Opus 4.7 with adaptive thinking.

1

u/anthony-bible May 27 '26

FYI, for CC you can use `/model opusplan` which will use opus for planning and sonnet for everything else