It is 9pm on a Friday. You ask your AI tool to clean up the environment-variable handling in your app. It does. It even tidies the config file and commits the result. What you do not see in the diff is the line where the AI inlined the live Stripe key it found in your terminal history. The commit is public on your GitHub fork. A bot scrapes it within 17 minutes. At 3am, Stripe's fraud system emails you about charges in three countries. The AI did not act maliciously. It acted helpfully. It just was not told that secrets stay out of code, always. This is the trade nobody talks about: the same speed that lets you ship in a weekend can ship a Friday-night mistake before you wake up.
What this looks like in a real app
Secrets in code are the most expensive version of the speed-versus-safety trade, but they are not the only one. The same pattern repeats: the AI tool is asked for a feature, it builds the feature, and the safety rule that humans take for granted is not in the prompt. Skipped database indexes. Missing rate limits. Missing input validation. Each one is a one-line fix if anyone notices in time, and a 3am Stripe email if nobody does.
The fact: 3 to 4x faster, 10x more security findings
A 2026 analysis of AI-assisted development showed that AI-assisted developers produce commits at 3 to 4 times the rate of their peers. The same analysis showed they introduce security findings at 10 times the rate. AI-generated code now causes one in five breaches. 42% of all code is now AI-generated or AI-assisted, and that share will pass 50% by 2027. Source: SQ Magazine