Lesson 00.01 · Phase 00 · Setup & Tooling
Your agent dev environment
Agents fail in ways that look like model problems but are really setup problems. Check your machine once, properly, and you'll stop debugging the wrong thing.
Learning objectives
- Set up an environment where every lesson in this course runs: Python, a virtual environment, git, and optionally Node.
- Run a model locally with Ollama, or connect a hosted API, and know which one each lesson uses.
- Handle API keys so they never land in your code, your git history, or your terminal output.
- Build agent-doctor, a script that checks all of the above and tells you exactly what to fix.
Your first agent will fail. When it does, you need to know whether the fault is in your loop, the model, or your machine. "Connection refused" might mean Ollama isn't running. A tool call that does nothing might mean you pulled an embedding model instead of a chat model. A 401 means your key isn't exported in this shell. A SyntaxError on int | str means you're on Python 3.9.
Loading the full lesson…