DEV Community

AI Agents Writing All Your Code: Comfort or Loss of Control?

Anthony Leignel on April 24, 2026

The new reflex: delegate everything Over the past few months, we’ve seen the rise of AI agents capable of: generating full codebases...
Collapse
 
bhupeshchandrajoshi profile image
Bhupesh Chandra Joshi

It's not true for everyone , I understand what ai is generating , if you don't know anything,that anything is pronounced vive. If a person don't know coding is vive coding. Even you understand the code ,still Ai does mistake ai.

Collapse
 
palks_studio profile image
Anthony Leignel

I think my point was misunderstood a bit.

I wasn’t talking about “AI helping developers write code”.
I was talking about autonomous AI agents controlling large parts of a system without visibility or understanding of what is actually happening underneath.

Also, saying “people who can’t code depend on AI” feels a bit simplistic.
Developers already depend on operating systems, frameworks, IDEs, compilers, Git, libraries, servers, documentation, StackOverflow, etc.

AI is still a tool.

The important part is not whether a tool is used or not, but whether the person using it understands, verifies and controls what is being built.

Collapse
 
albernaz_ profile image
Beatriz Albernaz

The risk isn't AI as a tool, it's the gap between what a system appears to be doing and what it's actually doing underneath.

That gap is exactly where security vulnerabilities live too. Autonomous agents making API calls, handling auth flows, or processing sensitive data often without the team fully understanding the attack surface they've just created.

At Faultline Security we see this a lot in AI-powered SaaS products: the code looks clean, the product works, but the actual security behaviour under the hood hasn't been tested by anyone. A human finds the things that neither the developer nor the AI model thought to check.

_Understanding, verifying and controlling _what's being built that applies to security posture just like the product itself.

Thread Thread
 
palks_studio profile image
Anthony Leignel

Exactly. The loss of visibility and deterministic control is the part that concerns me the most too.

Thread Thread
 
albernaz_ profile image
Beatriz Albernaz • Edited

Reliance on agents is increasing fast, and so are the attacks targeting them (prompt injection, tool misuse, etc). But somehow security still gets treated as an afterthought.
Agents are genuinely powerful, great servants, great coworkers. But right now, the builders deploying them still need to deeply understand what they're putting into production. You can't secure what you don't understand.

Collapse
 
kornel_maraz_5e66a3e4e27d profile image
Kornel Maraz

For me, this all comes down to one principle: an agent can be an excellent servant, but a terrible master. Delegation is fine, but only if a human expert remains in the middle, reviewing, understanding, and taking responsibility for the outcome. Code without ownership is just a black box waiting to fail. Even with guardrails, an autonomous agent can drift in ways no one anticipates. That’s why the final accountability must always stay with the human, not the automation.

Collapse
 
palks_studio profile image
Anthony Leignel

Exactly.
Automation is not the problem, loss of ownership is.
A system that no one fully understands becomes fragile very quickly, especially when it evolves over time.

That’s why I prefer systems where logic stays readable and controlled, even after deployment.

Collapse
 
mortylen profile image
mortylen

It's like cloning a repository from an unknown source and using it in production without checking it first. 🧐

Collapse
 
palks_studio profile image
Anthony Leignel

A repository is static. You review it once.

An agent is dynamic. It keeps modifying, retrying and acting over time.

That’s a very different risk surface.

Collapse
 
mortylen profile image
mortylen

That's true, the risk is much greater here.

Collapse
 
bhupeshchandrajoshi profile image
Bhupesh Chandra Joshi

if you are leveraging the clone command- git clone , it should be trusted source and you should't copy ,you should type by your hand.

Collapse
 
cwilkins507 profile image
Collin Wilkins

No but if you do, each loop needs guardrails -> no commits until all tests pass.

Collapse
 
palks_studio profile image
Anthony Leignel

Guardrails don’t equal control.

When an agent can read, modify, retry and loop on a codebase, this is no longer a simple script.

Tests only validate what you anticipated.

They don’t guarantee that what’s running is still understood.