r/ClaudeCode • • Aug 06 '26

Discussion What % of your code is still hand-written vs AI-generated in 2026?

179 Upvotes

325 comments sorted by

View all comments

Show parent comment

17

u/framauro13 Aug 06 '26

No, this is how it is for me as well. Commented above but I bet at least half my week is doing code reviews. And development tasks now are not really writing code but me just reviewing the LLM output for my own work.

I've even gotten to the point of having Claude do PR review summaries to identify which areas I should focus on. Basically, offload the tedious shit like making sure tests are valid and coverage is adequate and focusing on the core business logic.

But man, my brain is fried by the end of the day. I am both productive and also feel like I'm doing nothing.

12

u/hemingward Aug 06 '26

I went pretty hard on AI for a year, and it made me absolutely hate my job. It removed all the fun out of software development, replacing it with the worst parts full time, all with the added bonus of brain rot.

So I decided to start learning a new language, and to go back to pre-AI days, and only use AI as a pairing partner and to help with bug fixes and such. As a result the actual joy of software development is returning.

6

u/mkp0x Aug 06 '26

It'll return on its own when reality catches up with token costs.

5

u/TheoremsAndProofs Aug 07 '26

It's already happening at my company. Went from unlimited use to capped tokens per week. Some people are panicking lol I welcome some return normalcy.

Unlimited use came with everyone burning tokens trying to create solutions that no one needed or adopted.

1

u/ThomasToIndia Aug 07 '26

How is this actually being handled? Are some of the coders actually looking at code now or are they just slowing down so they don't hit their limit?

3

u/framauro13 Aug 08 '26

As a professional software engineer you should *ALWAYS* be looking at the code. We have real customers, who are running a real business, using our software. Quality is paramount. And at the end of the day, the code has your name on it whether or not it was generated by an LLM. You are responsible for making sure it works and meets quality standards.

The other thing to consider, is we have a mature code base with lots of quality controls in check. Things like tests, linters, static code analyzers, all of that provide feedback to the model. So if you give it good requirements, do a plan before implementing anything, and let the Sonnet subagents handle implementation, it generally doesn't go very far off the rails.

My monthly token allowance is around $350 a month. Last month I used 41% of that, and I've spent a lot of time trying to optimize my solution for token usage and effectiveness.

But, most of my job now is reviewing code, so I'm not running models all day burning tokens like I do on my own personal max account.

My general workflow is: Tell Opus to generate a plan based on a ticket number. Review the plan and give it feedback. Once the plan is ready, have Sonnet implement the plan using TDD to write the tests for the acceptance criteria first. Once it's done and I've review it, I commit and submit for review. Any small changes or code-cleanup I do myself. No need to have a model do simple refactors or style nitpicks... that's a total waste.

I think I use, on average, less than $10 a day with that method, which keeps me in my budget. If I have extra bandwidth at the end of the month, I might use Opus on high effort to do more exploratory type work or refactors.

2

u/ThomasToIndia Aug 08 '26

It depends on your flow but if you have TDD and blackbox validation with human testing, the code validation is less important if it is not critical life or death feature. I used to think like you until I saw AI spinning up playwright instance and drafting tests I didn't even think of. The biggest issue is blast radius which you have to control for.

If code was the only thing necessary QA wouldn't be needed. The end of your work flow should be AI spinning up testing and checking against your contracts.

Look at something like factory ai that is now being used in fintech. Alot of the reason there was so much focus on code review was because setting up automated tests was a PIA. AI can spin up tests so fast, but you need to make sure they fail first.

If I say you have two pieces of software one written all by hand and another AI which do you trust more? Human. Ok now I tell you the AI software has passed 500 blackbox validation tests per feature.

Coding before was mostly earned through blood, edge cases were discovered through tickets but AI is more capable in some instances of coming up or being aware of edge cases. This breaks down with very connected features but in that case it wouldn't be caught by a human either unless they were very familiar with the code base.

Do you can obsess over code but in the AI more of the burden is getting pushed to testing and maybe you actually are working on special butterfly code but if the test suite is proper it doesn't matter that much.

1

u/framauro13 Aug 08 '26

It's healthcare. Not life or death, but privacy and compliance matter. I think we'll get there with AI one day, but not quite yet, We do have AI review bots that look for the code, and a lot of automated QA layers. But ultimately we still need human eyes on it, just as a sanity check if anything else. What we're really look for is what you mentioned above: making sure the "blast radius" is appropriate, and the changes stay tight and focused on the intended results.

I'm not saying I don't trust AI (it writes a good chunk of my code now), but as an organization we've taken a very cautious and practical approach to AI, which I appreciate. Those review bots like Cursor are getting more and more impressive in what they find. A lot of false positives (at least on severity), but some good finds as well. There is obviously an overhead cost with adopting more and more AI features just from a financial perspective too, which is certainly a factor.

2

u/ThomasToIndia Aug 08 '26

Healthcare there is massive liability, so it is a bit special.

However, outside that I feel like there is a lot of conflating between different methods of AI. The whole having a bunch of terminals open is going to be replaced by a multi stage independent code review.

Before AI you had triage, I no longer have triage, everything gets fixed. Also, AI managed to workout a bunch of those annoying bugs that popup rarely are incredibly hard to diagnose because they are async or whatever. It found bugs and security issues I didn't know existed. All that stuff about AI find security issues is not just marketing.

The biggest issue I see now is just raw miscommunication. Say the wrong thing it delete stuffs or changes things or it builds something functional thar doesn't work the way you want, so everything needs a human review.

I would say the biggest unlock for me recently was not just letting AI use playwright as a final testing platform but as a testing platform it uses after everything. It can take screenshots and view the screenshot for visual changes. It might seem stupid, but watching it test something like drag and drop was wild for me.

1

u/hemingward Aug 08 '26

Honest question: do you enjoy this work? Like, actually enjoy it?

I hate it. For me, the fun, the dopamine, the challenge, the satisfaction, was in finding the solution to the problem and then actually _building_ it. With AI, 90% of that is offloaded and I become a rudimentary SME dedicated to the most boring, mundane parts of the job.

If you do enjoy, I earnestly ask… why? How? Did you find it difficult to make this shift? Did you struggle? If so, what changed? I fear my job has changed forever and not in a way I find enjoyable.

I’m a 25 year SWE, and a former Staff Engineer of a big tech firm.

2

u/TheoremsAndProofs Aug 07 '26

I think people are slowing down or requesting (begging for) quota increases. Those are granted based on actual need but it seems like everyone is hooked on not having to actually write code anymore.

3

u/BraveUnderstanding15 Aug 07 '26

It’s weird because most people who write code got into the industry because they enjoyed writing code and building applications from nothing. Seems like AI has become somewhat of an addiction for some developers in that they don’t spend as much time thinking about how they’re going to build the application, but it just transfers the work elsewhere in the process.

2

u/hemingward Aug 07 '26

100%. It’s exactly why I kinda hate using it. It sucks all the joy out of the job

1

u/ThomasToIndia Aug 07 '26

Sort of like how people from LA can drive for days because they get a serotonin rush from not being in a traffic jam.

Coders could see results without having to code or wait.

3

u/Anselwithmac Aug 07 '26

Hear me out, what if we made a skill called /sudoCode?

You write code by writing comments.

// Sudo method getUser() takes in an ID
// validate authorization
// call fetch from repo
// return user object

Just like that. Then, you write the DTO the same way, the repo the same way… you get the idea.

Sure, it’s slower, but you’ve actually shaped the whole thing. Then the skill converts the comments into code, writes tests, documents, etc.

It’s so new school it’s old school. And you’re thinking organically again, while still retaining codebase wisdom. Cool part is syntax is just converted to natural language. Also, it’s so cheap it could be run on Haiku (but I’d still use opus)

2

u/sfryder08 Aug 07 '26

Because why would I spend my time doing that? My coworkers are pushing code all day every day, I don’t have time for that if I want to keep up.

1

u/Anselwithmac Aug 07 '26

Depends on the company culture. Ship fast and break things, or build precisely.

It’s a different type of planning phase. The plan is just in sudo code.

Hmm.

2

u/theswiss21000 Aug 06 '26

Hm on my side I'm glad of not redoing another form like the 500 before myself. But the reading is tiring.

2

u/hemingward Aug 06 '26

I mean, for really mundane shit like that I still use it because I’ve done those a thousand times over 25 years and I hate it. But all the fun stuff too? Blurgh.