Building agents
Picks checked November 2026.An agent is a model calling tools in a loop until the job is done. That's really all it is. These picks cover when you need one, how to write the loop yourself in Python, and how to tell whether it actually works.
Where I'd go
Building effective agents, Anthropic
Read this before you write any code. It separates fixed workflows from real agents and says to start with the simplest thing that works. Most network jobs I see are workflows. It's patterns, not a walkthrough, so there's no code to run.
Build an MCP client, Model Context Protocol
You've used someone else's MCP client. This is the other side: about 100 lines of Python that list a server's tools, hand them to the model, run what it picks, and send the result back. It only does one round of tool calls, so wrapping it in a loop is your first real exercise.
Demystifying evals for AI agents, Anthropic
How to know your agent works instead of hoping it does. Start with 20 to 50 tasks taken from real failures, check results with plain code where you can, and read the transcripts. It's written for teams shipping products, so skip the coding and computer-use sections.
Left out on purpose
- The Hugging Face Agents Course. It's free and solid, but it moves into three frameworks fast. I'd rather you write the loop by hand first so you know what a framework is hiding.
- Framework docs like the OpenAI Agents SDK and Google ADK. They're fine once you've built one without them. Before that they add layers you don't need.
- Cisco DevNet's Build Your Own AI Agent lab. It's network-focused and current, but it runs on a Node agent and needs a Cisco account. Worth a look after you've written your own.
None of these are network-specific. That's on purpose: the loop is the same whether the tool reads a router or a weather API, and the network part is what my labs are for.Garrett