System Design Foundations: Why Architecture Matters More in the Age of AI Coding

AI coding tools can generate entire features in seconds — but speed isn't quality. The faster AI writes code, the more critical it becomes for engineers to understand whether that code will survive production. This video builds the foundational thinking every developer needs before letting AI agents build their systems. In this video, you'll learn: AGENTIC ENGINEERING • The shift from "vibe coding" (prompt and ship) to agentic engineering (specify, generate, review, validate) • Why engineering skill moves from writing code to designing systems and reviewing AI output • The CLAUDE.md pattern for persisting architectural constraints across agent sessions AI FAILURE MODES • Four predictable failure patterns: scalability issues (N+1 queries), security vulnerabilities (IDOR, hardcoded secrets), technical debt (inconsistent patterns), and monolithic tendencies (3,000+ line god files) SPEC-DRIVEN DEVELOPMENT • How to define scope, inputs/outputs, performance budgets, naming conventions, and security invariants before prompting • Structuring codebases for AI agents: modular files under 500 lines, explicit types, co-located tests PERFORMANCE & SCALE • Latency vs. throughput: when to optimize for each, and how to tell AI agents which to prioritize • Back-of-envelope estimation: from 1M DAU to instance count in 5 steps • Token cost math: how reducing output by 200 tokens saves $180K/month at scale DISTRIBUTED SYSTEMS • CAP theorem applied: why AI defaults to PostgreSQL and when you need AP (DynamoDB, Cassandra) or CP (Zookeeper) instead • The question to ask before accepting any AI-generated data layer NON-FUNCTIONAL REQUIREMENTS • The NFR checklist AI consistently misses: scalability, performance, reliability, security, maintainability • IDOR vulnerabilities — the authorization gap AI routinely leaves open FEEDBACK LOOPS • Tests, type checking, linting, fast builds, and observability as agent guardrails • Pre-commit hooks that make it impossible to ship broken type contracts This is Part 1 of the System Design series. Next up: Building Blocks — starting with the application layer, where we explore load balancing, caching, databases, and the components that make up production systems. #SystemDesign #AICoding #AgenticEngineering #SoftwareArchitecture #VibeCoding #SpecDrivenDevelopment #CAPTheorem #BackOfEnvelope #NFR #N1Query #LLMCosts #TokenOptimization #CodeReview #AIFailureModes #ProductionReady #ScalableArchitecture #TechDebt #IDOR #FeedbackLoops #SoftwareEngineering

API Design: REST, GraphQL, or gRPC — Which One to Use? (And What to Tell Your AI Coding Agent)
▶︎

API Design: REST, GraphQL, or gRPC — Which One to Use? (And What to Tell Your AI Coding Agent)

Why The Best Software Engineers Focus On System Design
▶︎

Why The Best Software Engineers Focus On System Design

Full Walkthrough: Workflow for AI Coding — Matt Pocock
▶︎

Full Walkthrough: Workflow for AI Coding — Matt Pocock

Inside Claude Fable 5's System Prompt — What You Can Steal for Your Own AI Apps
▶︎

Inside Claude Fable 5's System Prompt — What You Can Steal for Your Own AI Apps

AlphaEvolve: The Loop That Turns LLMs From Code Generators Into Code Optimizers
▶︎

AlphaEvolve: The Loop That Turns LLMs From Code Generators Into Code Optimizers

Ryan Lopopolo - Harness Engineering: How to Build Software When Humans Steer and Agents Execute
▶︎

Ryan Lopopolo - Harness Engineering: How to Build Software When Humans Steer and Agents Execute

How I Code With AI Agents (Spec-Driven Development)
▶︎

How I Code With AI Agents (Spec-Driven Development)

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan
▶︎

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan

"Software Fundamentals Matter More Than Ever" — Matt Pocock
▶︎

"Software Fundamentals Matter More Than Ever" — Matt Pocock

System Design was HARD until I Learned these 30 Concepts
▶︎

System Design was HARD until I Learned these 30 Concepts

Application Layer: Monolith vs Microservices — When to Split and What It Actually Costs
▶︎

Application Layer: Monolith vs Microservices — When to Split and What It Actually Costs

How To Think SO CLEARLY People Assume You're A Genius
▶︎

How To Think SO CLEARLY People Assume You're A Genius

Harness Engineering: How to Build Software When Humans Steer, Agents Execute — Ryan Lopopolo, OpenAI
▶︎

Harness Engineering: How to Build Software When Humans Steer, Agents Execute — Ryan Lopopolo, OpenAI

Claude Architect: Multi-Agent Orchestration
▶︎

Claude Architect: Multi-Agent Orchestration

Designing Data-intensive Applications with Martin Kleppmann
▶︎

Designing Data-intensive Applications with Martin Kleppmann

Loop Engineering: Designing Systems That Prompt Your AI Agents For You
▶︎

Loop Engineering: Designing Systems That Prompt Your AI Agents For You

System Design Concepts Course and Interview Prep
▶︎

System Design Concepts Course and Interview Prep

Stop Prompting Claude. Use Karpathy's Method Instead.
▶︎

Stop Prompting Claude. Use Karpathy's Method Instead.

Complete Agentic AI Course - AI Agents, RAG, Embeddings, Architectures, Framework, VectorDB & Memory
▶︎

Complete Agentic AI Course - AI Agents, RAG, Embeddings, Architectures, Framework, VectorDB & Memory

AI Security 3.3: System Prompt Leakage - Protecting Your AI's Hidden Instructions
▶︎

AI Security 3.3: System Prompt Leakage - Protecting Your AI's Hidden Instructions