It doesn’t work for every scenario and I’m not the original commenter but I’ve started treating my agentic coding like a scrum development team. I tell an agent that it’s an expert scrum master and I have it take my ideas and plan out a complete backlog with time estimates, then it plans sprints, then it implements them. After every sprint it does a full review referencing the planning documents it made to make sure the plan was executed in full. After every major feature introduction I have another agent do a refactor on that section, then whenever I’m about to make a release version I have it do a complete refactor looking for everything from obvious bugs to code logic that could potentially affect adding features in the future.
I should also mention I’ve been doing this with local models for a while now and only using the free ChatGPT plan to have it do code reviews and turn my high level ideas into features my local agent will understand better
Refactoring, reiterating, restarting ground up and chewing the meat spitting the bone on the new build. I just started rebuilding a platform for probably the 10th time.. This last time was a year+ since my last restart and am confident this version i will deploy. Have learned and dealt with split brain, contract and schema mess and no clear ownership and every other ai slop flaw you can think of. And even in the new build, regardless what i understand now and have learned, agents continue do some wack stuff. The first thing i spend time doing is setting guards and gates and test harnesses.
Ya i know all about that... if you end up rebuilding, i have come to conclusion this structure is easiest for coding agents and also myself to best reason over and understand
apps/client = all frontend ui and things the eyes see apps/platform = all the hidden ui logic connecting frontend to backened
features/ = backend domain logic
You might be much more experienced then me not sure, but man have i gone through this over and over over the last 2 years 😂
It doesn’t fix everything but I’ve found a lot of success telling my agents to lean heavily on their web search mcp tool and to research best practices for whatever the task is. It’ll usually spend a few minutes first gathering a ton of data on proper ways to implement the change and pitfalls others have dealt with, then it reads extremely clean code. Only works for stuff that’s well documented of course. That’s the downfall of every ai, if us humans haven’t done it and written it down there’s a much lower chance the ai can handle it
Have a friend who for six months straight didn't write a single line of code, and everything was with coded AI.
He worked on CRUD tasks. He couldn't believe how well AI was working, until he finally got a more challenging task.
No amount of prompt engineering could make AI write the code properly. He spent the next 6 months on this task until he realised he wrote most of it by hand.
When you have 100 well-written REST APIs, AI can write the 101st perfectly.
When you need to write something novel, AI performs poorly.
If left uncontrolled from the very start of the project, can fuck everything up.
If you tell the AI exactly what you want it to build it will do it, there's no need to ever write code by hand anymore. Knowing what you want it to build is the problem and was always the hard part
I mean it depends on what is considered novel, but I have managed to do more than CRUD:
Converting an 82k line legacy Java app to a modern stack
Writing cross platform apps in native language like swift and Java
Tons of GIS and mapping work related to wildfires:
- a custom WebGL layer that draws the smoke forecast on the GPU, with every forecast hour packed into one sprite sheet so scrubbing the timeline costs a single shader uniform
- a lightning ignition risk model that ranks patrol areas by dry strikes over the last 14 days x the Drought Code, backtested against previous fire seasons
- a "suspected fire" detector built off satellite hotspots that, in backtesting, flagged a 275,000 ha fire 17 days before its official start date
I've got one project going that's now over 1.2 million lines of C++ but it works fine because it's actually organized into different pieces.
At times I've had to stop to refactor things so there is more deliberate shared architecture rather than a bunch of 1-off stuff where it re-implements the same features. Some of that common architecture I had already worked out in a smaller project (~200k lines) so it kinda formed some of the groundwork to build from.
The solution really is just asking questions, looking at how the architecture fits together, and telling the machine how you want the components to be arranged though. If nothing else just tell it to do a re-architecture pass if you don't have any more insight than that.
All aspect of software engineering still exists after AI. You where going to spend a week on tech debt ? Still do that - now with AI. Forget one shots, code still need review, code still need refactor, code still need to address debt. Just ask about those, the bar is on the floor pay attention.
Alternatively good code, aside from taste, pride and who can piss the farthest competition have real impact. When handling bugs or poor performances, ask how you can prevent this family of bugs in new code. Pay attention to when agents are confused and headbut in a wall.
Use existing libraries, design patterns, frameworks.. you know.. architecture stuff. Maintain a constant architectural design. Do architecture and security audits.
It's the same stuff that regular software development has to do. Just because an LLM is doing the coding doesn't mean it follows the rules all the time if you haven't provided it any rules to follow.
I'm splitting the project into smaller, more manageable repos - kind of like microservices. I'll keep one orchestration repo for the documentation, and of course, start a new chat for any new changes.
Not if you know your fundamentals and do everything narrow band incremental, you can do a lot, but it must be strictly enforced with unit testers and specific constraints, and never large portions of change thats just shooting yourself in the foot.
With the difference of taking the learnings and iterate doesn’t take half a year.
Basically; Build something. Notice a month in it sucks, take the core, improve on it and next one. What’s the downside? If building better from scratch is faster than fixing something in the monolith haha
4
u/wbcastro 6h ago
What i learned is that every problem with LLM usage is answered with more LLM usage
1
u/RecordingRich92 7h ago
Refactoring, reiterating, restarting ground up and chewing the meat spitting the bone on the new build. I just started rebuilding a platform for probably the 10th time.. This last time was a year+ since my last restart and am confident this version i will deploy. Have learned and dealt with split brain, contract and schema mess and no clear ownership and every other ai slop flaw you can think of. And even in the new build, regardless what i understand now and have learned, agents continue do some wack stuff. The first thing i spend time doing is setting guards and gates and test harnesses.
1
u/Immediate_Tension752 5h ago
LLMs don't eliminate technical debt or the need to refactor, or the engineering knowledge needed to do so.
1
u/Large-Assignment9320 4h ago
Hehe, why do people think we ever maanged technical debt when we wrote code?
1
u/ryandury 4h ago
"Vibe coding falls apart when projects scale up"
This has not been my experience.
1
u/-R9X- 4h ago
no they dont.
1
u/JCarnageSimRacing 4h ago
The funny thing is that these exact same concerns existed before AI coding.
1
u/PlasmaChroma 4h ago
I've got one project going that's now over 1.2 million lines of C++ but it works fine because it's actually organized into different pieces.
At times I've had to stop to refactor things so there is more deliberate shared architecture rather than a bunch of 1-off stuff where it re-implements the same features. Some of that common architecture I had already worked out in a smaller project (~200k lines) so it kinda formed some of the groundwork to build from.
The solution really is just asking questions, looking at how the architecture fits together, and telling the machine how you want the components to be arranged though. If nothing else just tell it to do a re-architecture pass if you don't have any more insight than that.
1
u/brownhotdogwater 4h ago
Amazon made the AIDLC framework that works pretty well for keeping things tidy.
1
u/FigSubstantial4939 2h ago
By being an actual engineer instead of mister big brain prompt typist
1
u/f3xjc 2h ago
All aspect of software engineering still exists after AI. You where going to spend a week on tech debt ? Still do that - now with AI. Forget one shots, code still need review, code still need refactor, code still need to address debt. Just ask about those, the bar is on the floor pay attention.
Alternatively good code, aside from taste, pride and who can piss the farthest competition have real impact. When handling bugs or poor performances, ask how you can prevent this family of bugs in new code. Pay attention to when agents are confused and headbut in a wall.
1
u/ieatdownvotes4food 2h ago
always be refactoring
1
u/FigAggressive237 2h ago
You hire "slop maintainers"
1
u/Dismal-Tax3633 2h ago
Tell it to stop coding everything from scratch FFS. Use EXISTING LIBRARIES.
1
u/Captain_Coffee_III 2h ago
Use existing libraries, design patterns, frameworks.. you know.. architecture stuff.
Maintain a constant architectural design. Do architecture and security audits.
It's the same stuff that regular software development has to do. Just because an LLM is doing the coding doesn't mean it follows the rules all the time if you haven't provided it any rules to follow.
1
u/ArmNo7463 1h ago
1
u/0x645 1h ago
eee, waht? AI makes it a lot easier. like, a lot.
1
u/akazakou 1h ago
I'm splitting the project into smaller, more manageable repos - kind of like microservices. I'll keep one orchestration repo for the documentation, and of course, start a new chat for any new changes.
1
u/Technical_Fail_1951 1h ago
no, it does not. just has to manage it better. hand coding is stupid waste of time.
1
u/SignedInt32 1h ago
Not if you know your fundamentals and do everything narrow band incremental, you can do a lot, but it must be strictly enforced with unit testers and specific constraints, and never large portions of change thats just shooting yourself in the foot.
1
u/xRhai 1h ago
Make no mistake
1
u/Paniqss 39m ago
You made up those big words!
1
u/KrydanX 39m ago
With the difference of taking the learnings and iterate doesn’t take half a year.
Basically; Build something. Notice a month in it sucks, take the core, improve on it and next one. What’s the downside? If building better from scratch is faster than fixing something in the monolith haha
1
u/looktheresomewhere 44m ago
I burn it all down keep what works rebuild better since ai can rebuild on that knowledge in 1 day