Agentic AI Course
A hands-on, code-first course on building agents with the Claude API — going from a single stateless API call to a tool-using, memory-equipped, specialized agent with production safety guardrails, multi-agent orchestration, streaming, retrieval, automated evaluation, cost optimization, standardized tool protocols, long-running context management, deep reasoning, and deployment as a real service.
Each module is a self-contained folder with its own README.md, code, and requirements.txt — pushable to GitHub individually or together as one repo.
There’s also a companion learning website in website/ that walks through the concepts and code from every module in the browser — live at khaledturk.github.io/agentic-ai-course.
Modules
- Getting Started — creating an Anthropic account, generating an API key, and setting it as an environment variable safely
- Your First Agent — a plain API call, and why Claude has no memory between calls
- Tools & Function Calling — the agent loop: tool_use → run tool → tool_result → repeat
- Persistent Memory — remembering facts across separate runs via a JSON file and dedicated tools
- Skills & Specialization — loading an entire persona from a Markdown file
- Production Guardrails — approval flows, loop detection, write budgets, and retries for an agent that can take real destructive actions
- Multi-Agent Orchestration — an orchestrator that delegates sub-tasks to specialist agents and combines their results
- Streaming Responses — printing Claude’s reply token-by-token instead of waiting for the full response
- Retrieval-Augmented Generation — grounding answers in a searchable knowledge base, with citations
- Evaluation & Testing Agents — deterministic checks and LLM-as-judge checks for catching regressions before they ship
- Prompt Caching & Cost Optimization — reusing Claude’s processing of large, repeated context instead of paying for it every call
- MCP (Model Context Protocol) — connecting an agent to external tool servers instead of hand-rolling every tool
- Context Management for Long-Running Agents — summarizing older turns to keep a growing conversation bounded
- Extended Thinking — giving Claude explicit room to reason through hard problems before answering
- Deploying an Agent as a Service — wrapping an agent in a FastAPI server with session state, instead of a CLI loop
Modules 6–14 each ship an exercise.py (starter with TODOs) alongside solution.py (completed reference) — attempt the exercise first, then compare.
Prerequisites
- Python 3.10+
- An Anthropic API key — no account yet? Module 0 walks through creating one, step by step
pip install -r requirements.txt inside whichever module you’re running (most modules only need anthropic; Module 11 also needs mcp, and Module 14 also needs fastapi and uvicorn — each module’s own requirements.txt is authoritative)
Each module’s README.md has exact run instructions.
How the modules connect
Every module keeps the agent loop from Module 2 intact and adds exactly one new concept on top of it — memory, then specialization, then safety, then orchestration, streaming, retrieval, evaluation, cost optimization, standardized tooling, context management, deep reasoning, and deployment — so you can see each idea in isolation before combining them into something closer to a real deployed agent.
License
MIT — free to use, share, and adapt.