Dev shares an agent prompt that forces AI to question your architecture from scratch

kevinkern · x · 2026-11-28

kevinkern notes that agents get used to following your instructions even when you're heading in the wrong direction. His fix: spawn a second agent (gemini 4 neon) with a fixed prompt asking it to redesign the product from scratch today, using the current codebase plus web research. The prompt separates product requirements from historical implementation decisions, identifies what to keep/simplify/remove/redesign, demands evidence and trade-off justification for each call, and weighs maintainability, security, performance and complexity to decide between keeping, refactoring or rebuilding. A copy-paste workflow for architecture reviews when you suspect your project has drifted.

Original post →

More from coding & agent

coding & agent channel →