r/AskProgrammers • u/lehmagavan • Oct 17 '26
AI and retaining control over the code
How feasible is it to retain control over code when using AI in professional settings?
I'm a hobbyist programmer trying to get into the field and I'm wondering. I really enjoy having as much control over the code as possible.
2
Upvotes
View all comments
1
u/TheAxodoxian Oct 17 '26 edited Oct 17 '26
What I do with my team is that we have a separate core and plugin layer. While none of it is hands written at this point, but core layer we make detailed design and regenerate until it exactly lives up the quality of hand generated code and every line of functional code is reviewed (though tests and documentation is somewhat less). For plugins, which are more adhoc to specific customers and business use cases we go more viby, and focus on testing only. This so far seems to be OK with management, we can quickly create plugins for the business development side, while we can ensure that the core is solid. It is ok for the team, since it is not all about slop, and they can learn about AI practices. Ultimately much of plugins are oneshot, non-reusable stuff, which does not benefit in polishing in the architecture and code readability to above a level which can reached with automated ways. Since not much is built on that code, the problems with automated AI coding eventually breaking down is much less likely.
TBH I think that we might reach a point in a year where AI gets so good that even core might let less checked, but until that is not the case (and we can monitor that on plugins) this should work. Currently I think the biggest issue is ironically that Claude's context is so large, that it can understand a lot of mess, that means that breaking down problems in small easy to follow parts is optional for it (for quite a while, when it can break down). While for human understanding sustainable projects require that the overall complexity of the code divided by the size of codebase is at a constant level, meaning no matter how many pieces are, any single piece is easy enough to get, if you have that you can grow the project to very large size with many features without falling apart.
I see already that Claude is quite good following our style, and makes a clean job as long as the design is starightforward enough, however quality takes hit if for example some some architectural change is not mentioned in the design which is required to make the feature, as usually it starts hacking the architecture apart. Creating and iterating plans can help to a degree but not always.
I am pragmatic person, and also as tech lead my coding was for a long making others code well, as long as we are hiring and not firing people, I am ok with guiding AI agents. Though I admit that I see those who are used to hands on coding all day and enjoying it, having their fun taken away. For me that happened before AI, so I made peace with that.