Agentic AI Engineering

What AI architecture should I use — and why? Learn to choose between plain code, a single model call, tool calling, RAG, workflows, agents and multi-agent systems; then build, measure, secure and operate them.

Your path through Agentic AI Engineering

0 of 31 Foundation lessons done
0 of 77 lessons done overall
Start: What Is Agentic AI? →

Then follow the stages in order

Each stage builds on the ones before it. Labs and simulators sit right after the lessons they exercise. Open a stage to see its lessons. Full roadmap with goals →

  1. Software EngineeringBackend roadmap →
  2. Python / TypeScriptDSA roadmap →
  3. APIs & Async ProgrammingAPI Design roadmap →
  4. LLM Fundamentals0 of 3 lessons done
    1. What Is Agentic AI?Foundation≈ 10 min
    2. Choosing the Right AbstractionFoundation≈ 5 min
    3. AI AssistantsFoundation≈ 5 min
  5. Prompt & Context Engineering0 of 5 lessons done
    1. Context EngineeringFoundation≈ 5 min
    2. Context Selection & CompressionFoundation≈ 5 min
    3. Context Ordering & Lost in the MiddleFoundation≈ 5 min
    4. Token BudgetsFoundation≈ 5 min
    5. Dynamic Context AssemblyFoundation≈ 5 min
  6. Structured Outputs0 of 2 lessons done
    1. Structured OutputsFoundation≈ 5 min
    2. Argument ValidationFoundation≈ 5 min
  7. Tool Calling0 of 6 lessons done
    1. Tool Calling BasicsFoundation≈ 10 min
    2. Tool SchemasFoundation≈ 5 min
    3. Tool Errors, Retries and TimeoutsFoundation≈ 5 min
    4. IdempotencyFoundation≈ 5 min
    5. Parallel vs Sequential Tool CallsFoundation≈ 5 min
    6. Tool Permissions and Least PrivilegeFoundation≈ 5 min
  8. RAG0 of 10 lessons done
    1. RAG OverviewFoundation≈ 10 min
    2. Ingestion: Parsing & ChunkingFoundation≈ 5 min
    3. EmbeddingsFoundation≈ 5 min
    4. Vector StorageFoundation≈ 5 min
    5. Dense, Sparse & Hybrid RetrievalFoundation≈ 5 min
    6. Metadata FilteringFoundation≈ 5 min
    7. RerankingFoundation≈ 5 min
    8. RAG EvaluationFoundation≈ 5 min
    9. Context Construction & GroundingFoundation≈ 5 min
    10. CitationsFoundation≈ 5 min
  9. Agent Loops0 of 5 lessons done
    1. The Agent LoopFoundation≈ 10 min
    2. Single AgentFoundation≈ 5 min
    3. Agent + RAGFoundation≈ 5 min
    4. Planning StrategiesFoundation≈ 10 min
    5. When Planning HelpsFoundation≈ 5 min
  10. State & Memory0 of 3 lessons done
    1. Memory TypesIntermediate≈ 5 min
    2. Memory ArchitecturesIntermediate≈ 5 min
    3. Memory PitfallsIntermediate≈ 5 min
  11. MCP0 of 4 lessons done
    1. MCP OverviewIntermediate≈ 5 min
    2. MCP Primitives: Tools, Resources, PromptsIntermediate≈ 5 min
    3. MCP Lifecycle: Init, Discovery, InvocationIntermediate≈ 5 min
    4. MCP vs Direct Integration vs Function CallingIntermediate≈ 5 min
  12. Workflow Orchestration0 of 4 lessons done
    1. Workflow State GraphIntermediate≈ 5 min
    2. Router ArchitectureIntermediate≈ 5 min
    3. Architecture TradeoffsIntermediate≈ 5 min
    4. What Agentic Engineers BuildIntermediate≈ 5 min
  13. Multi-Agent Systems0 of 8 lessons done
    1. Multi-Agent Systems OverviewIntermediate≈ 5 min
    2. Supervisor ArchitectureIntermediate≈ 5 min
    3. Supervisor PatternIntermediate≈ 5 min
    4. Pipeline PatternIntermediate≈ 5 min
    5. Hierarchical PatternIntermediate≈ 5 min
    6. Swarm / Peer PatternIntermediate≈ 5 min
    7. Agent-to-Agent CommunicationIntermediate≈ 5 min
    8. When Not to Use Multi-AgentIntermediate≈ 5 min
  14. Evaluation0 of 6 lessons done
    1. Evaluating Agents: Testing Probabilistic SystemsIntermediate≈ 10 min
    2. Eval Metrics: What to Measure and HowIntermediate≈ 5 min
    3. Golden DatasetsIntermediate≈ 5 min
    4. LLM-as-JudgeIntermediate≈ 5 min
    5. Deterministic EvaluatorsIntermediate≈ 5 min
    6. Regression Gates and Online EvaluationIntermediate≈ 5 min
  15. Observability0 of 3 lessons done
    1. Tracing AgentsAdvanced≈ 10 min
    2. Trace Inspection: Debugging from a TraceAdvanced≈ 5 min
    3. Logging, Metrics and AlertsAdvanced≈ 5 min
  16. Guardrails & Security0 of 7 lessons done
    1. Security Overview: Guardrails and the Threat ModelAdvanced≈ 5 min
    2. Prompt InjectionAdvanced≈ 5 min
    3. Indirect Prompt InjectionAdvanced≈ 5 min
    4. Tool Misuse and Data ExfiltrationAdvanced≈ 5 min
    5. Permissions, Authentication and AuthorisationAdvanced≈ 5 min
    6. Input and Output GuardrailsAdvanced≈ 5 min
    7. Secrets and Untrusted OutputAdvanced≈ 5 min
  17. Human-in-the-Loop0 of 4 lessons done
    1. Human-in-the-Loop OverviewAdvanced≈ 5 min
    2. Approval Gates and Risk ClassesAdvanced≈ 5 min
    3. In-the-Loop vs On-the-Loop and EscalationAdvanced≈ 5 min
    4. Confidence ThresholdsAdvanced≈ 5 min
  18. Reliability0 of 4 lessons done
    1. Reliability Overview: The Seven Failure ScenariosAdvanced≈ 5 min
    2. Failure Scenarios: Detection and RunbooksAdvanced≈ 5 min
    3. Budgets, Limits and TerminationAdvanced≈ 5 min
    4. Fallbacks, Caching and Model RoutingAdvanced≈ 5 min
  19. Production Agent Systems0 of 3 lessons done
    1. Business Process AutomationAdvanced≈ 5 min
    2. Frameworks: What They Abstract and What It CostsAdvanced≈ 5 min
    3. Option 0: No FrameworkAdvanced≈ 5 min
From deterministic software to agentic systems
Each step hands the model more decisions — and hands you more engineering responsibility. Click a stage.
→→→→
InputCode (if / loops / functions)Output

Deterministic instructions: the same input always produces the same output.

Who decides what

The programmer decides every branch in advance.

Example

Validate a form, compute an invoice, route an HTTP request.

Reach for it when

Whenever the rules can be written down. This is most software — and the correct default.

Determinism
Model decides wording
+ your data
+ model decides actions
+ limits, memory, evals, approvals
Read this before the first lesson

If you're nothing without the LLM, then you shouldn't have it.

This is not an argument against AI-assisted engineering. It is an argument for understanding the systems AI helps you build.

The strongest engineer is not the one who refuses AI. It is the one who can use AI aggressively while remaining capable of evaluating, debugging, correcting and replacing its output.

The distinction is not how much AI you use. It is whether you could tell if it were wrong.

Amplified engineer
Engineer+
Knowledge+
Judgment+
LLM↓
Leverage
Blind dependency
No understanding+
LLM↓
Production
Bad

“I don't need to understand this because the AI can do it.”

Good

“I understand the system well enough to use AI to work much faster.”

AI should amplify engineering ability, not replace the understanding underneath it. Everything in this domain assumes you will use LLMs and agents aggressively — and stays able to evaluate, debug, correct and replace what they produce.

The judgment we teach

Mirror of the DSA chain. The core skill is picking the right abstraction, not memorizing frameworks.

  1. Problem→
  2. Requirements→
  3. Risk→
  4. Context→
  5. Architecture→
  6. Model→
  7. Tools→
  8. State→
  9. Evaluation→
  10. Production
The rule that matters most
Do not build an agent when deterministic software is sufficient. Escalate only when the previous rung cannot do the job reliably: code → LLM call → structured output → tool calling → RAG → workflow → agent → multi-agent.
What "done" means here
Measured with evals, observable with traces, bounded by budgets and step limits, guarded against injection, gated by humans for risky actions. A demo is not a system.

Start here

Modules

0/77 lessons mastered
Fundamentals0/6
What makes a system agentic, the agent loop, and what agentic engineers actually build.
Agent Architecture0/6
Single agent, agent + RAG, supervisor, workflow graphs — and the tradeoffs between them.
Tool Calling0/8
Schemas, structured arguments, validation, errors, retries, permissions.
RAG Engineering0/10
Ingestion, embeddings, storage, retrieval, reranking, grounding, evaluation.
Context Engineering0/5
Constructing the information an agent sees: selection, compression, ordering, budgets.
Memory & State0/3
Context vs short-term vs long-term; semantic, episodic, procedural; why more is not better.
Planning0/2
Direct execution, plan-then-execute, replanning, ReAct — and when planning only adds cost.
MCP — Model Context Protocol0/4
Clients, servers, tools, resources, prompts, discovery, auth; MCP vs direct integration.
Multi-Agent Systems0/7
Supervisor, pipeline, hierarchical, swarm; agent-to-agent communication; when it is unnecessary complexity.
Human-in-the-Loop0/4
Approval gates, risk assessment, escalation, confidence thresholds.
Evaluation & Testing0/6
Testing probabilistic systems: golden datasets, judges, deterministic evaluators, regression.
Observability0/3
Traces, spans, tokens, cost, latency, errors, state changes.
Guardrails & Security0/7
Prompt injection, tool misuse, exfiltration, least privilege, input/output guardrails.
Reliability Engineering0/4
Failure scenarios and their mitigations: retries, fallbacks, limits, budgets, caching.
Frameworks0/2
What each framework solves, its abstraction level, weaknesses — and Option 0: no framework.

Four domains, one question

A learner who finishes all four can answer: