Hacker ApprovedDepartments

Pydantic AI

Hacker Approved

Ranked 6 of 28 agent frameworks by recommenders

Developers like it for handling the tool-call loop, structured outputs and typed LLM calls with little to learn. Caveat: good observability requires the paid SaaS.

Developers like it for handling the tool-call loop, structured outputs and typed LLM calls with little to learn. Caveat: good observability requires the paid SaaS.

33 people gave an opinion

recommend it
27
criticize it
6
approval share
82%
Each figure is one person. RecommendsCriticizes

Recommended in 9 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 27 people recommend itNeeds 10 or more, met.
  • 4.5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 9 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Handles tool-call loop and composition

    “Yes, Pydantic ai successfully abstracts the tool call loop, and makes it easy to test out different models.”

    Comment from 27 Dec 2025 in “All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)”

    “We're using pydantic AI where the entire Agent loop is taken care of by the framework. Highly recommend.”

    Comment from 3 Nov 2025 on Hacker News

    “had good luck with using PydanticAI which does these core operations well”

    Comment from 22 Nov 2025 in “Agent design is still hard”
  • Typed structured LLM outputs

    “They allow you to structure LLM calls within the broader control flow of the program, with typed inputs and outputs.”

    Comment from 7 May 2026 in “Agents need control flow, not more prompts”

    “I found Pydantic AI particularly helpful for handling the structured outputs”

    Comment from 29 Dec 2025 in “Architecture of an autonomous startup-idea generator”
  • Easy switching between LLM providers

    “Yes, Pydantic ai successfully abstracts the tool call loop, and makes it easy to test out different models.”

    Comment from 27 Dec 2025 in “All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)”

    “has a great set of abstractions over LLM providers”

    Comment from 21 Oct 2026 in “Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor”
  • Lightweight, stays out of the way

    “If you are looking for lightweight frameworks, consider smolagents or Pydantic AI.”

    Comment from 18 Dec 2025 in “Getting a Gemini API key is an exercise in frustration”

    “seems more lightweight and gets out of the way”

    Comment from 27 Dec 2025 in “All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)”

What people warn about

Each mark is one comment

  • Observability pushes paid cloud SaaS

    “Pydantic is a VC backed business now trying to funnel people into using their paid cloud services.”

    Comment from 24 Feb 2026 in “Build your own custom AI CLI with Pydantic AI”

    “out of the box it doesn't have good observability, you would have to use their proprietary SaaS”

    Comment from 22 Nov 2025 in “Agent design is still hard”

Other agent frameworks people recommend

The four most recommended other agent frameworks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Pydantic AI compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Claude Agent SDK362559%11——
LangChain327929%101 yr3 owners—
Mastra32391%10—Approved
LangGraph312357%12——
Pydantic AIThis page27682%9—Approved
See all 28 agent frameworks, ranked

What people said

28 of the 33 comments that mention it, newest first. Each links to the original comment.

“has a great set of abstractions over LLM providers”

RecommendsComment from 21 Oct 2026 in “Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor”

“it's been doing pretty well for my use cases”

RecommendsComment from 23 Sep 2026 in “Stripe's Knowledge AI Platform”

“I've replaced OpenCode with a thin wrapper around Pydantic-AI”

RecommendsComment from 17 Sep 2026 in “HarnessTax: How Much Does the Harness Matter for Coding Agents?”

“Getting those agent systems to behave reliably was often annoying and tricky.”

CriticizesComment from 11 Jul 2026 on Hacker News

“pydantic-ai has been a superb addition to the AI engineering toolkit”

RecommendsComment from 14 May 2026 in “Pythons new httpx fork: httpx2”

“I think this is a good usecase for temporal + pydantic-ai”

RecommendsComment from 7 May 2026 in “Agents need control flow, not more prompts”

“They allow you to structure LLM calls within the broader control flow of the program, with typed inputs and outputs.”

RecommendsComment from 7 May 2026 in “Agents need control flow, not more prompts”

“to get off claude API pricing”

RecommendsComment from 22 Apr 2026 in “Claude Code removed from Anthropic's Pro plan”

“I'm going to stick with pydantic ai”

RecommendsComment from 8 Apr 2026 in “Claude Managed Agents”

“You don't build composition logic anymore -- the framework handles it.”

RecommendsComment from 30 Mar 2026 on Hacker News

“I would rather use something like Pydantic AI when I already use Pydantic for so much of the rest.”

RecommendsComment from 23 Mar 2026 in “If Dspy is so great, why isn't anyone using it?”

“it's night and day when trying to get something done with pydantic-ai”

RecommendsComment from 23 Mar 2026 in “If Dspy is so great, why isn't anyone using it?”

“Pydantic is a VC backed business now trying to funnel people into using their paid cloud services.”

CriticizesComment from 24 Feb 2026 in “Build your own custom AI CLI with Pydantic AI”

“A great looking framework for building an interactive development experience on top of the already awesome Pydantic AI.”

RecommendsComment from 24 Feb 2026 in “Build your own custom AI CLI with Pydantic AI”

“I think the PydanticAI framework has the right approach of encouraging Agent Delegation & sequential workflow first”

RecommendsComment from 21 Feb 2026 in “Cord: Coordinating Trees of AI Agents”

“The framework is great for defining agents”

RecommendsComment from 8 Jan 2026 in “Show HN: Pydantic-AI-stream – Structured event streaming for pydantic-AI agents”

“I found Pydantic AI particularly helpful for handling the structured outputs”

RecommendsComment from 29 Dec 2025 in “Architecture of an autonomous startup-idea generator”

“Yes, Pydantic ai successfully abstracts the tool call loop, and makes it easy to test out different models.”

RecommendsComment from 27 Dec 2025 in “All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)”

“seems more lightweight and gets out of the way”

RecommendsComment from 27 Dec 2025 in “All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)”

“If you are looking for lightweight frameworks, consider smolagents or Pydantic AI.”

RecommendsComment from 18 Dec 2025 in “Getting a Gemini API key is an exercise in frustration”

“one of the fastest growing agent frameworks”

RecommendsComment from 1 Dec 2025 in “Ask HN: Who is hiring? (December 2025)”

“out of the box it doesn't have good observability, you would have to use their proprietary SaaS”

CriticizesComment from 22 Nov 2025 in “Agent design is still hard”

“had good luck with using PydanticAI which does these core operations well”

RecommendsComment from 22 Nov 2025 in “Agent design is still hard”

“I like Pydantic AI framework and got myself a decent working solution”

RecommendsComment from 22 Nov 2025 in “Agent design is still hard”

“but using cc is the first that has felt magic”

CriticizesComment from 22 Nov 2025 in “Agent design is still hard”

“it builds on existing developer knowledge and there is not much to learn in the framework itself”

RecommendsComment from 21 Nov 2025 in “Ask HN: Best solution to build AI agents?”

“it just can't match the productivity of typescript.”

CriticizesComment from 3 Nov 2025 in “Why we migrated from Python to Node.js”

“We're using pydantic AI where the entire Agent loop is taken care of by the framework. Highly recommend.”

RecommendsComment from 3 Nov 2025 on Hacker News

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.