← Back to essays

Put AI on Defense, Not Just Offense

·2 min read·By Ry Walker

The conversation around AI-generated code has become predictable. Someone posts about shipping faster with AI. The replies pile up: what about security, what about debt, what about quality. These are legitimate concerns. They are also, almost universally, arguments against the wrong target. The problem is not that we are using AI to write code. The problem is that we are using AI on offense only — and the asymmetry is what creates the risk everyone is right to worry about. Put at least as much effort into testing and security as into writing code.

Loading tweet...

I broke this argument into five atomic posts. Read them in any order:

I expect teams using agents for both writing and reviewing code to ship faster and catch more problems. Automated checks can run on every change without waiting for someone to make time for a review.

The alternative — humans moving slowly as the only answer to quality — does not scale. Deep down, everyone knows it does not scale. The companies still pretending otherwise are buying eighteen months of comfort against five years of competitive pressure. Build the defensive infrastructure now, while the patterns are loose enough that you can shape them.

If you are building this, Tembo is free for light use. I'd love to see what defensive agents you stand up.

— Ry

Key takeaways

  • Use AI for defensive work: reviews, tests, security checks.
  • Adversarial or multi-agent review surfaces more issues.
  • Guardrails are required to avoid noisy AI output.

FAQ

What does 'AI on defense' mean?

Applying AI to find problems, not just generate features. Think reviews, tests, and security checks first.

Does AI defense replace human review?

No—use it to augment and triage before human judgment. Treat it as a noisy scout, not a final gate.