# Pydantic AI 2.0: The New Best Way to Build AI Agents is Composing Capabilities <!-- ref: @content/youtube/cole-medin/pydantic-ai-2-0-the-new-best-way-to-build-ai-agents-is-composing-capabilities tags: [Pydantic AI, agent frameworks, capabilities, composability, MCP, hooks, progressive disclosure, code mode] version: 2 updated_at: 2026-11-24T05:24:02.016Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=PY7xIxybYNc)** # Pydantic AI 2.0: The New Best Way to Build AI Agents is Composing Capabilities *Synthesized from Cole Medin, 2026-07-10.* Cole presents alone and reviews the Pydantic AI 2.0.0 release. He says he has covered the framework since January of the previous year and is not sponsored for this video. ## Core Thesis Cole argues that Pydantic AI 2.0 makes the capability the single primitive for building agents. A capability bundles instructions, tools, lifecycle interceptors (hooks) and model settings into one composable unit, so agents can be assembled from reusable parts. He sees this as a simplification that keeps the framework's control for production agents, and as a response to coding-agent SDKs, which are easy to use but slower and more token-heavy for production work. ## Key Insights - **Capability as the unit.** An agent is defined by a model plus a set of capabilities. Guardrails, skills and MCP servers can all be packaged inside a capability. He describes capabilities as a layer above MCP servers, since MCP is only the tools part. - **Reuse across agents.** His example pairs a support agent with a knowledge-base capability and an escalation capability. A front-end FAQ agent reuses only the knowledge-base capability, so improvements to that capability reach both agents. - **Gradual disclosure.** Each capability offers a short description in a catalog, and the agent loads its full instructions only when it decides to use it. He says this lets an agent hold dozens or hundreds of capabilities without overloading the model. - **Hooks.** His example is a hook that runs before a tool call, used for deterministic safety or guidance. - **Two tiers.** Core capabilities such as web search, a progressive-disclosure search tool and thinking are imported directly from Pydantic AI. Supported but non-critical capabilities live in a "harness" layer, with code mode (sandboxed code execution) as the example. He notes Pydantic is building Monty, a lightweight open-source sandbox. - **Trade-off he states.** Coding-agent SDKs such as the Claude Agent SDK and Codex SDK make personal agents easy to build, but he says they are slower and use more tokens than a framework, so frameworks remain the choice for agents that other people use in production. - **Demo.** He shows a Pydantic AI 2.0 agent in a CLI answering a product question from the knowledge base, using the thinking tool and the knowledge-base tool, and not loading the escalation capability. He then shows the escalation capability used for a billing question. ## Actionable Takeaways 1. Package each recurring responsibility (instructions, tools, hooks, guardrails) as one capability and reuse it across agents. 2. Use short capability descriptions for a catalog, so the full instructions load only when needed. 3. Put deterministic checks in hooks that run before tool calls. 4. Start from the core capabilities (web search, progressive-disclosure search, thinking) before writing custom ones. 5. Use a framework rather than a coding-agent SDK for agents that serve other users in production. ## Notable Quotes > "the capability combines agent instructions, tools, lifecycle interceptors, and model settings into a single" — Cole Medin > "It's very easy to add everything an agent needs by bundling it into this capability." — Cole Medin --- *Related: `@content/web/github/2026-11-25-claude-code-v2-1-332` · `@content/youtube/yifan-bth/we-are-missing-the-point-of-mcp-its-not-just-about-tools` · `@content/youtube/wes-mcdowell/how-to-use-chatgpt-for-content-creation-itll-sound-like-you` · `@content/youtube/tiago-forte/i-connected-claude-to-everything-then-i-saw-the-gap` · `@content/youtube/steph-france/i-build-ai-agents-for-4-businesses-none-of-them-use-teams`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*