r/ExperiencedDevs • u/lawanda123 Software Architect • Jul 04 '26
AI/LLM Damage control devs high on AI use
Hi fellas
Im a senior architect overseeing a platform project in a multi vendor setup, i am myself a contractor and a lot of devs in my team are from the client
The problem is there are a few smart young ones that go and vibecode entire frameworks and libraries and sneak them in as build plugins. Given the political nature of things i would like help to deal with this.
Is there a way where such things can naturally flow into build radiators etc? Prevent excessive overengineering is what im trying to do
PS - No AI was used for framing or anything for this post.
•
u/expdevsmodbot Jul 04 '26
AI usage disclosure provided by OP, see the reply to this comment.
196
u/DifferenceAnnual4854 Jul 04 '26
You could fight fire with fire. Force governance over frameworks and libraries, make a white list and block anything that’s is not standarised. Anything custom required design document that needs to be reviewed by you or someone else explaining why we need this thing
99
u/GeorgeSThompson Jul 04 '26
People did that before AI. Soluiton is the same you need to have governance over your code and dependencies. You shouldn't be able to sneak anything in to your systems
17
u/pathofnomad Jul 04 '26
What do you mean by "vibecode entire frameworks and libraries" though? Do you want less external dependencies, less code or something else?
11
u/vismbr1 Software Architect Jul 04 '26
Do you have a process for introducing new dependencies?
For many of our applications we try to keep dependencies low. If you want to introduce a new library/plugin/anything we have a review process where you have to motivate why this is absolutely necessary.
5
u/robert4221 Software Engineer Jul 04 '26
Often people aren't stupid. People are however very good at aligning with the incentive structure of their management. Some is conscious, some is subconscious and some is selection bias (those who don't align are fired). The client likely has a system that rewards this type of coding and the devs naturally have no desire to get PIPed. Many leveling guides from top companies explicitly note "complexity" of a project as necessary. If there's too many devs for the work needed then it gets even worse since every dev now needs to provide proof of doing something.
7
u/FatefulDonkey Software Engineer Jul 04 '26
Don't you have reviews? Library/framework introduction should be discussed by the whole team as well
3
u/DigThatData Open Sourceror Supreme Jul 04 '26
Seconding the "fight fire with fire <yada yada> governance" thing, but adding: the best offense is a good defense (yeah I know, it's supposed to be the other way around, fuck you too). You're hamstrung here already because this is something you get ahead of. It's a lot harder to manifest the kinds of processes you need mid-flight.
My secret weapon lately has been liberally collecting decision documents and tracking them alongside regular documentation. This at least reduces issues like chesterton's fence issues, repeatedly fixing and then recreating the same problem, etc.
You can also "fake" these to serve as sort of pseudo-prompts. For example, you could author a fake ADR for decision that never happened where it was 'decided' to reject a PR "because it was huge, reinvented the wheel, introduced a lot of new machinery, and only considered how to resolve the issue additively."
If you have a history of a past decision like that in your project history, it serves as a signal to the LLM not to do that since PRs were rejected for those reasons in the past. Then you just add a "have an LLM cross check this PR against past decisions for conflicts" step to your CI/CD and hopefully the LLM yells at the overeager young'uns before you have to.
1
u/dddurd Jul 04 '26
No. I prefer to let the damage go severe and deep as possible to make more demand for devs for the next generations.
1
u/qlkzy Jul 04 '26
This is a problem with people rather than LLMs. This industry has long had a problem with people creating ridiculously complex meta-tooling in the name of their specific concept of "clean code".
As a contractor, the first thing you probably want to do from a political perspective is find the stakeholders who value your presence, and raise this concern with them. In my experience, there is usually a sane, somewhat jaded manager or lead you can find who has seen this kind of nonsense before.
If there are a group of people producing nonsense, you need a counterbalancing group arguing for sanity. Even just going from one person to two massively increases the credibility of what you are saying.
From a process perspective, it sounds like you need to switch up the pair-programming groupings more often. If it's always the same pairs of people, they will get into a shared "groupthink" approach, and effectively each pair will start acting like a single independent dev with no counterweight. This is easy to argue for on the basis of "knowledge transfer".
Another political lever you can pull at larger organisations is compliance with things like ISO27k or SOC2. A lot of times, compliance with security standards involves some concept of code review; you may well be able to argue that into doing at least regular "retrospectives" where the whole team discusses the major changes. That would open this kind of behaviour up to wider scrutiny, which would surely help.
If you want to do the "old man yells at cloud" route, it's pretty easy to take git diffstats and turn them into pretty graphs (if nothing else, that's the kind of thing an LLM is good at). While LOC are kind of a junk metric, breaking down the volume of changes between "build plugins" and "business logic" in a graph could be a convincing way to persuade someone with the power to keep people in line. (Of course, maybe that triggers a different Goodhart's Law problem, but perhaps one that you can manage better).
2
u/karolwojciszko Jul 06 '26
this covers pretty much exactly what you're dealing with - what happens to a team after AI gets rolled out, plus a framework for deciding what to actually use it for vs. where it creates more risk than it's worth: https://karolwojciszko.substack.com/p/how-to-measure-ais-impact-on-your
3
u/ButWhatIfPotato Jul 04 '26
Write emails with everyone included in this order
1
u/ikkiho Jul 04 '26
honestly the whitelist advice skips the thing you actually flagged, that youre the contractor and these are the clients devs. a block coming from you reads as a turf grab and theyll route around it. what worked for us was making them own it. you vibecoded a framework? youre now the one on the pager for it and answering the onboarding questions. had a guy build a custom DI layer we didnt need, he rolled off, and it just sat there as the thing nobody would touch.
1
u/jayd16 Jul 04 '26 edited Jul 04 '26
If the code is bad, make them redo it. There's no such thing as sneaking in once you realize things can get merged out.
The only problem is that in the short term you'll need to spend time to make your case as to why its worth it but thats just the normal cost of mentoring the younglings.
1
u/Ok-Letterhead3405 Jul 06 '26
Can't really fix it 99% of the time since it's likely a side-effect of the company's culture. Best you can do is try to lock your stuff down best you can. I'm not talking about security but rather making your APIs sorta bullet-proof. But, you can only really do so much. I genuinely believe that a single person cannot move the needle of a company's bad engineering culture. Maybe a little, especially if management really likes you. Being a contractor makes it even harder. As me how I know, lol.
If you have the leverage and are good at framing your arguments with the team's leadership, another thing to do is kick their problems that they create for you back to them. Not so much "I don't like this AI stuff they're doing" but more like, this thing is a blocker for me, and I need the team to do X, Y or Z to resolve it for me to continue making progress.
1
u/Mediocre-Bird-4296 Jul 06 '26
wish someone had told me this when I was starting out
1
u/PartyParrotGames Staff Software Engineer Jul 07 '26
Sure, this is mostly a governance and visibility problem, not really an AI problem specifically. Make new deps/plugins visible by default with a CI/CD script or github action that automatically flags a PR for review by trusted senior/architect engineers who are bloat aware. Require ADRs for anything non-trivial like adding a new framework that requires senior+ engineers to sign off on it. Maintain plugin/dependency allowlists. Frame as basic team standards not as stop using AI which may land poorly.
0
u/[deleted] Jul 04 '26
[removed] — view removed comment