34 Core Concepts That Take You From LLM Basics to Production Agent Systems
Agent development has moved past demo stage into production engineering, and the vocabulary has exploded with it. A developer who confuses ReAct with Reflexion, or skips hybrid search in their RAG pipeline, will ship a system that breaks in ways that are expensive to debug and hard to explain to users.
Building a production AI agent demands fluency across a sprawling stack of concepts that didn't exist three years ago. This reference walks through 34 of them, organized from the ground up: how LLMs consume tokens and context windows, why chain-of-thought prompting improves accuracy at a cost, and what separates a single-shot LLM call from an autonomous agent running a ReAct loop.
Memory and retrieval get their own deep treatment, distinguishing short-term from long-term memory along both temporal and content axes, and laying out the full RAG pipeline from chunking and embedding to hybrid search and reranking. The guide also maps the emerging protocol layer—MCP for tool connection, A2A for agent-to-agent communication—and the Claude Code ecosystem of skills, hooks, and subagents.
Production concerns round out the picture: evaluation frameworks, observability, prompt caching economics, and the security risks of prompt injection and the lethal trifecta. The final section frames the whole discipline as a three-layer engineering problem—prompt engineering, context engineering, and harness engineering—where the model itself is just one component in a larger control system.
The guide's framing of LLMs as pure functions is a useful corrective to anthropomorphic thinking that leads engineers to over-trust model outputs or assume persistence that doesn't exist.
Positioning Self-Refine as a sibling pattern to ReAct rather than a separate category clarifies why many coding tools can implement reflection-like behavior without a full Reflexion memory store.
The distinction between Contextual Retrieval (Anthropic's chunk-level summarization) and standard RAG is subtle but important—it addresses the 'lost meaning' problem that chunking creates, and is still under-adopted in practice.
Simon Willison's lethal trifecta is a concrete security model that gives teams a clear checklist: if your agent has all three capabilities, you have a data exfiltration vector that prompt injection can exploit.
The three-layer engineering model (prompt, context, harness) reframes agent development as a systems engineering discipline rather than a prompting art, which matches where production teams actually spend their time.