underlay

course 001 · concepts-first

Vibe Coder Engineering

The stack under the vibes.

A concepts-first course for people who ship software with AI agents but want to understand what's underneath. Eleven modules — Python, JS/TS, Rust, HTTP & APIs, backend, deployment, how LLMs work, running LLMs, agents, and a shipped capstone — built on real tools, real configs, real commands, and real numbers. No prerequisites. The AI is both the subject and the tutor.

11 modules

3 tracks

30+ real checks

1 shipped capstone

curriculum

11 modules. 11 real checks. Zero prerequisites.

Open a module to see its concepts, the real check that stamps it, and the payoff for your daily vibe-coding life.

  • What a program actually is: CPU, RAM, disk, processes
  • Linux filesystem, permissions, ssh, tmux, env vars
  • Git: branches, merges, rebase — the AI writes code, YOU manage history
  • Reading errors: stack traces, exit codes, journalctl

the real check

Break a service on purpose. Find it in journalctl. Fix it. curl -I returns 200.

payoff — Every agent failure is a file, process, permission, or log line. After this module, they're all readable.

Open module
  • Types, collections, comprehensions, functions, decorators
  • venv, pip, pyproject.toml — environments done right
  • try/except, tracebacks, file/JSON/env handling
  • asyncio basics, pytest, and enough regex to read AI-written code
  • Hands-on from minute one: the real tiktoken tokenizer demo

the real check

A pytest suite goes green. A script runs as a cron job on your VPS.

payoff — The whole AI ecosystem is Python. If you can read it, you can steer it.

Open module
  • The event loop: callbacks → promises → async/await
  • DOM, devtools, and debugger-driven development
  • npm, package.json, lockfiles
  • TypeScript types — the AI's best friend
  • Node servers (Express 5) and React/Next reading literacy

the real check

Add a typed feature to a real codebase and run its tests.

payoff — Reading JS/TS fluently is the difference between 'hope it works' and 'I reviewed it'.

Open module
  • Ownership and borrowing — the one idea everything else follows
  • Memory safety vs garbage collection: what Python and JS pay for you
  • cargo, crates, Result and the ? operator
  • Where Rust lives: llama.cpp, vLLM kernels, Tauri, routers, wasm

the real check

A Rust CLI processes a large file ≥10× faster than your Python version — and you can explain why.

payoff — Every serious LLM runtime is Rust or C++. Under the hood, it's everywhere.

Open module
  • Methods, the 15 status codes you'll actually see, headers, CORS
  • JWT anatomy: header.payload.signature — not encrypted, never trust it blindly
  • API keys vs OAuth2 vs sessions: who uses what and why
  • Webhook security: HMAC signature verification (the Stripe pattern)
  • curl workflows, Bruno collections in git, pytest + respx mocking
  • OpenAPI: docs that can't drift — and the fastest way to brief an agent

the real check

bru run passes in CI. A mocked test proves no live network in your test suite.

payoff — 80% of vibe coding is wiring APIs together. This removes the magic.

Open module
  • FastAPI vs Express 5: the same CRUD app in both
  • SQL essentials: CREATE, JOIN, INDEX, EXPLAIN ANALYZE
  • Postgres vs MySQL vs SQLite — the decision guide
  • Alembic migrations with a CI gate
  • Redis cache-aside, background jobs (Celery/RQ, BullMQ)
  • Secrets, logging (structlog/pino), Sentry, cookie security flags

the real check

alembic check passes in CI. EXPLAIN ANALYZE shows an Index Scan on the hot query. A background job survives an app restart.

payoff — Agents build backends fast — you must know which parts are dangerous (auth, money, data loss) and which are plumbing.

Open module
  • Docker: images, Compose, volumes, healthchecks
  • nginx reverse proxy + Let's Encrypt (certbot)
  • GitHub Actions: test on push, deploy on merge
  • systemd, cron, journalctl
  • Monitoring (UptimeRobot, Sentry) and backups with a restore drill
  • Zero-downtime: rolling deploys and blue-green via nginx
  • VPS vs managed pricing — what things actually cost

the real check

certbot renew --dry-run passes. A merge deploys your app. A restore drill proves your backups work.

payoff — 'Works on my machine' ends here. This module separates hobbies from businesses.

Open module
  • BPE tokenizers: why 'strawberry' hides its double r inside one token
  • The transformer: attention, layers, parameters, context windows
  • Next-token prediction and sampling (temperature, top-p)
  • The training pipeline: pretraining (15T tokens, a $5.6M DeepSeek) → SFT → RLHF/DPO/GRPO → reasoning RL
  • Fine-tune vs RAG vs prompt — the three tools and when to use each
  • Embeddings and why similar text lands in similar vectors

the real check

Your nanoGPT's loss goes down as it trains. You explain the strawberry lie from first principles.

payoff — Every confusing AI behavior — hallucination, context loss, 'it forgot' — is explained here. Mechanism kills superstition.

Open module
  • The OpenAI-compatible API as the universal interface, SSE streaming
  • Structured output: JSON mode and function calling
  • VRAM math: weights, quantization (Q4_K_M), KV cache sizing
  • Ollama, llama.cpp/GGUF, vLLM — local and production serving
  • The 2026 model landscape with real $/M token pricing
  • Routers, fallbacks, retries — and cost governance (budgets, caching, tiering)

the real check

A quantized model serves OpenAI-shaped JSON on your VPS. Your cost sheet for 1,000 conversations matches published prices.

payoff — Every agent tool you use is this stack in a trench coat. Build it once by hand and nothing is magic anymore.

Open module
  • The agent loop: perceive → reason → act → observe (ReAct)
  • Tools and function calling; MCP servers you build yourself
  • RAG: chunking, embeddings, vector DBs, retrieval, reranking
  • Memory, evals in CI (promptfoo, DeepEval, RAGAS), observability (Langfuse)
  • Guardrails: prompt injection, sandboxing, human-in-loop for money paths
  • Context engineering, spec-driven development, review-before-merge
  • When NOT to use AI — and when not to vibe

the real check

An eval suite catches a regression on a prompt change. A prompt-injection test fails gracefully.

payoff — Tool competence is commoditizing. Context engineering and review discipline are the durable skills.

Open module
  • Real auth + database, LLM integration (API and/or self-hosted)
  • One tool-use / agent feature
  • Tests, CI/CD, backups with a restore drill, uptime monitoring
  • Cost tracing per query (Langfuse)
  • A written postmortem: what broke, why, how you fixed it

the real check

Scored by an automated eval, deployed behind SSL, restored from backup.

payoff — Everything above, on one real product you own.

Open module

three ways in

Pick your pace.

Same curriculum, three depths. The 1-Day Tour is one Saturday and ships a live URL. The Bootcamp is seven days to working competence. The Real Deal is the full course with a production capstone.

1-Day Tour

~9 hours · one Saturday

A live URL: a Dockerized FastAPI app calling a real LLM, behind nginx + SSL, with git history.

  1. H1 · FoundationsSSH into a VPS, read journalctl, git init + first commit
  2. H2 · DeploymentDocker Compose hello stack + certbot SSL on a real domain
  3. H3 · HTTPcurl real APIs, decode a real JWT, read status codes
  4. H4 · Pythonvenv + FastAPI hello world, open the auto-generated docs
  5. H5 · LLM APIcurl an OpenAI-compatible endpoint, exact JSON, see streaming
  6. H6 · Local LLMollama run on the VPS; call it through an OpenAI-compatible port
  7. H7 · Agent 101one function-calling round trip; a 30-line RAG sketch
  8. H8 · Ship itFastAPI behind nginx+SSL; the health check returns 200. Done.