Pairs with Part 4 · Building and governing
Open-source frameworks for building AI agents
Pick one, learn it well, and keep the agent’s boundary in your own design, not the framework’s.
- langchain-ai/langgraph(opens GitHub in a new tab)Build agents as explicit graphs of steps, with state, checkpoints and human-in-the-loop.Makes control points and approvals visible in the code.
- openai/openai-agents-python(opens GitHub in a new tab)A lightweight Python SDK for agents, handoffs, guardrails and tracing.Small surface area, with guardrails and tracing built in.
- google/adk-python(opens GitHub in a new tab)Google’s Agent Development Kit for building, evaluating and deploying agents.Treats evaluation as part of the build, not an afterthought.
- pydantic/pydantic-ai(opens GitHub in a new tab)A Python agent framework built around typed, validated inputs and outputs.Typed outputs make agent decisions easier to check.
- microsoft/autogen(opens GitHub in a new tab)A framework for multi-agent systems where agents work together on a task.Useful when one bounded agent really does need to hand off to another.
- crewAIInc/crewAI(opens GitHub in a new tab)Orchestrates role-based teams of agents with tasks and processes.A quick way to prototype work split across several roles.
- huggingface/smolagents(opens GitHub in a new tab)A minimal library for agents that think in code.Small enough to read end to end and understand.
- vercel/ai(opens GitHub in a new tab)A TypeScript toolkit for AI apps and agents, with tool calling and streaming.The quickest route to an agent with a web front end.
- run-llama/llama_index(opens GitHub in a new tab)A framework for connecting agents to your documents and data.The evidence layer: grounding decisions in the right sources.
We are not affiliated with any of these projects. Open-source projects change quickly, so check each repository's licence, maintenance activity and security posture before you use it in production.
Get the book
The best agent is not the most autonomous one.
It is the one whose value, boundary, controls and evidence are clear.

New · Available now
The paperback
The desk copy for design reviews. Keep it open beside the work, mark up the canvases and checklists, and pass it round the team.
For organisations
Team copies and talks
Bulk copies for your team, or a talk or workshop on applying the method to your own agents.
Message Anuj on LinkedIn