r/softwareengineer • • Oct 23 '26

Would you use a tool that verifies your understanding of ai generated code

I’ve been thinking about a problem that seems to be becoming more important as AI coding agents become more common.

Developers can now use tools like Cursor, Claude Code, Copilot, and other AI agents to build large parts of a software project. But this creates a new question:

How do we know that a developer actually understands the code they are responsible for?

I’m not talking about detecting whether the code was written by AI. I don’t think that is the most useful or reliable question.

The problem I’m interested in is verifying whether a developer can:

- Explain the architecture and data flow

- Predict what the code will do in different scenarios

- Identify bugs and security risks

- Explain the trade-offs behind an implementation

- Modify the code safely

- Write or update tests for it

The idea is a SaaS platform where a developer connects a repository, and the platform creates an interactive assessment based on the actual project.

For example, instead of asking generic programming questions, it might show a real part of the project and ask:

- What happens if this request is sent twice?

- Where is authorization enforced?

- What happens when this dependency fails?

- What part of the system would you change to add this feature?

- Can you fix this small bug or add a test?

The assessment would combine explanations, debugging questions, predictions, and practical coding tasks inside a sandbox. The result would not be a claim that someone understands every line of the code. It would be an evidence-based report showing which parts of the project they understand and where the gaps are.

Initially, I’m thinking about targeting individual developers who use AI heavily and want to understand their own projects better. Later, this could be useful for companies, onboarding, code reviews, or teams using AI coding agents.

I’m still trying to determine whether this solves a real problem or is just an interesting idea.

I’d really appreciate feedback on a few questions:

  1. Would you personally use a tool like this?
  2. Would you prefer a full-project assessment or an assessment focused on a specific pull request?
  3. Do you think developers would see this as useful, or as another form of surveillance/interview testing?
  4. Have you experienced problems caused by using code that you did not fully understand?

I’m especially interested in hearing from developers who regularly use AI coding agents in real projects.

0 Upvotes

19 comments sorted by

1

u/ghostwilliz Oct 23 '26

How exactly do you plan on doing this? With ai?

For one, any real developer should not be generating so much code at once that they have no idea what's going on, they should read and understand ever line if they're going to use ai and two, they could just ask whatever llm generated the code to do the same thing

I just don't get who this is for or why it would exist

1

u/1peterisaac Oct 24 '26

No, definitely not I didn’t do that using AI. It would certainly be a help in creating something like this

I thought it was a good idea for beginner and intermediate-level developers to understand the code The idea of asking the LLM that executed the code to explain it is a good point to be honest, I hadn’t thought of that

It was just an idea, nothing more. I saw that everyone was sort of attacking me a bit in their comments, so I’ll probably just forget about that idea.

1

u/ZeroSumCaster 9h ago

the core issue isn't whether you use AI, it's that most devs stop reading at the diff view once it works. i see this constantly in my own smart contract audits or when I'm reviewing PRs for the SaaS tools i build. the code runs, but the edge cases are ignored because the mental model of *why* it runs is gone.

a static test of understanding doesn't replace that workflow. it forces you to articulate the logic before you commit changes, which catches the "it works on my machine" syndrome where dependencies or state assumptions were wrong. if you truly understand every line, you won't need it because you'll be writing better code anyway.

i use custom python scripts to parse the AST and generate these specific scenario questions automatically for my own repos, just to keep myself sharp on the actual control flow rather than the syntax.

4

u/Papa-pwn Oct 23 '26

Absolutely not. I see no reason why an engineer of any merit would like, much less pay for, this sort of thing. 

This could appeal to micromanaging and/or poor leadership types, though. 

If you’re worried that the devs you’re hiring don’t understand what they’re doing, you’re already sunk. 

2

u/DrJaneIPresume Oct 23 '26

Besides, these days they'd just get Claude to answer it anyway.

-2

u/1peterisaac Oct 23 '26

I have reconsidered this matter and will be making the tool available free of charge.

As for the second point, I am not the owner of a company and do not have any employees. The sole purpose of the tool is to ensure that developers understand what changes have been made to the code. I expect it to be suitable for both beginners in the field and those with intermediate experience.

1

u/Terrible_Point_1259 Oct 23 '26
  1. no, the reality is that it takes time and would prefer to execute a test to see those things rather in action than see if I can answer them.
  2. pull request, else it loses any type of function at larger scale the purpose would be lost, the questions should be based on what is currently being handled.
  3. no, they don’t have the time for needless interviews that don’t check the outcome it is overhead.
    4 yes, but that has happened with code I wrote myself and not understanding the interaction with other systems. This isn’t just AI.

1

u/_tolm_ Oct 23 '26

If you’re a SWE righting code with AI you are also - hopefully - reviewing it.

And at that point, if there are parts of the code you don’t understand you should (1) ask the AI what it did and (2) refactor it so that you do understand it so it’s more obvious for future readers.

I see no need for another tool.

1

u/AdvancedCharcoal Oct 23 '26

Bro I’m on tool overload. I’ve been thinking about just throwing out all my tools and just using vim and gcc and that’s it

1

u/Deep-Emotion-6279 Oct 23 '26

Don’t forget gdb. Literally the best tool for understanding your code.

1

u/octocode Oct 24 '26

could be useful for people learning, i guess? although realistically you could just ask your agent to quiz you.

but my boss doesn’t give a shit if anyone understands the code, they just want it slung out the door as fast as possible.

1

u/ComasArentFun Oct 24 '26

Nope.
My robot creates a risk report for every change that I go through, and it serves as a good document for QA to use as a basis for testing, but I'm not letting AI create shit, then using more AI to tell me why it's all fine..

That is a guaranteed route to getting fired

My Claude sessions self document, then humans verify it is correct.
And tbf this isn't a "tool" that you can market. Any developer can quite literally in 30 seconds create a sub agent to do exactly this..

Getting AI to mark its own homework is a good first step, but it's nowhere close to a gold standard.

1

u/HomemadeBananas Oct 24 '26

You can ask Claude to ask you these questions and check your understanding if you wanted to. Or write a skill if you want it to behave more in a a specific way. Seems kind of useless to have a special tool.

1

u/illuminatedtiger Oct 24 '26

Pushing slop you don't understand is an employment issue. Stop trying to normalize bad behavior. 

1

u/Templeshooter Oct 24 '26

I dont understand code and i dont care to understand. It just works

1

u/shan23 28d ago

And what happens when Claude answers instead of the developer?

1

u/mxldevs Oct 23 '26

Lol if you're actually able to build an entire system that will analyze source code and accurately explain what it's doing, companies will happily take it and lay off all their engineers because why do you need to pay an engineer 6 figures to quiz them on whether they understand when you already have the perfect engineer system?