← All posts
LinkedIn
  • #AI & Agents

AI writing code isn't the problem. AI approving its own code is

AI writing code isn't the problem. AI approving its own code is.

I've been working with AI agents daily (Cursor, code gen, reviews), and the biggest improvement didn't come from better models — it came from role separation.

This repo documents a simple but effective approach:

  • One agent writes
  • Others review, break, test, and judge

Confidence doesn't come from trusting AI more. It comes from designing a process that expects it to be wrong.

Repo 👉 https://github.com/vanderleisilva/ai-agent-prompts

Curious how others are handling AI-assisted development 👇

Slides

  1. AI can write code. But should it also review it? Speed is easy. Confidence is the hard part.
  2. Most AI setups treat code as one task. But software development isn't one task: - Writing code - Reviewing decisions - Stress-testing assumptions - Proving behavior When one agent does everything, judgment disappears.
  3. Most setups use one AI agent to: Write the code, Judge the code, Approve the code That's like approving your own PR at 2am.
  4. Instead of one smart agent, I built a role-based AI pipeline. Each agent has one job. No self-approval. No shortcuts.
  5. AI Confidence Pipeline: 1. Code Generator 2. Senior Reviewer 3. Adversarial / Breaker 4. Test Generator 5. Confidence Summary Each step is a confidence gate.
  6. - Creation ≠ judgment - Risks are explicit - Tests prove behavior - Confidence is earned, not assumed - AI becomes a team, not an oracle.
  7. - Faster iteration - Better reviews - Fewer surprises in production - More trust in AI-assisted code Not because AI is smarter — but because the process is.
  8. I open-sourced the exact prompts I use: 👉 AI Agent Prompts for Code Confidence 🔗 https://github.com/vanderleisilva/ai-agent-prompts Feel free to steal, adapt, and improve.
See more on LinkedIn ↗