Applied AI Engineering
Building agents and automation. A path from how LLMs actually work up to shipping safe, evaluated agentic systems, written for working programmers, with no machine-learning math.

01Foundations: How LLMs Work
- 01
Inside a Language Model
What an LLM actually is: next-token prediction, why "just autocomplete" is true but misleading, and the three things a frozen model cannot do for you.
5 min read - 02
How Models Generate Text
Logits to probabilities, temperature and sampling, the prefill/decode phases, and why models hallucinate.
8 min read - 03
What Models Take In
Multimodal input: how an image becomes patches then tokens, why images cost money, and when OCR still beats native vision.
6 min read - 04
Reasoning and Test-Time Compute
Thinking tokens, buying accuracy at inference, and deciding per task when the latency and the bill are worth it.
6 min read
02Communicating with Models
- 05
Prompt Engineering
Message roles, few-shot examples, chain of thought, and decomposing a job into reusable prompts.
7 min read - 06
Structured Outputs & Function Calling
Forcing machine-readable output, JSON Schema validation, and the function-calling seed every agent grows from.
Covered in Prompt Engineering Is Software Engineering
03Giving Models Knowledge (RAG)
04Giving Models Tools
- 09
Tool Use & the Agentic Loop
Tool schemas, the call to result to continue loop, routing, and orchestrating many tools.
6 min read - 10
MCP & Connectors
What an MCP server actually exposes, the two ways to reach it, the handshake that discovers its tools, and the four things MCP leaves you to solve.
7 min read
05Building Single Agents
06Multi-Agent Systems
07Reliability & Safety
- 14
Guardrails & Security
Input and output filtering, prompt injection, jailbreaking, least privilege, and sandboxing.
8 min read - 15
Reliability & Error Handling
Human-in-the-loop approval, retries, fallbacks, circuit breakers, and mid-run recovery.
Covered in Agents You Can Trust Are Built From Guardrails - 16
What You Must Not Send
What leaves your machine on every call: controller duty, data residency, training opt-out, and the copies you create yourself.
6 min read
08Evaluation
09Production & Capstone
- 18
Caching Is the Cheapest Win
Prompt caching, why a stable prefix is the whole trick, and the four ordinary habits that silently destroy a hit rate.
5 min read - 19
Running Your Own Model
Open weights, llama.cpp and Ollama, what self-hosting really costs, and the licence that decides whether you may ship it.
7 min read - 20
Serving & Performance
What a serving engine does, how it scales under load, and keeping cost under control.
Covered in Shipping Agents Is a Level of Its Own - 21
Observability & Deployment
Tracing an agent run, monitoring quality over time, and surviving long failure-prone runs.
8 min read - 22
Frameworks & Capstone
The major toolkits and when to reach for each, then assembling everything into one shipped agent.
Covered in Shipping Agents Is a Level of Its Own