# smolagents

5 Hacker News commenters recommended smolagents and 2 criticized it, November 2025 to November 2026. It was recommended in 2 of 13 months.

**Verdict:** A lightweight Python framework for building AI agents, recommended as a simpler alternative to larger frameworks. Critics note that standard tool calling often beats its code-agent approach.

## Why people recommend it

- Lightweight framework option (1 comments): "If you are looking for lightweight frameworks, consider smolagents or Pydantic AI." ([source](https://news.ycombinator.com/item?id=46308757))
- Supports MCP structured output (1 comments): "They added support for the output schema and structured output provided by the latest MCP spec." ([source](https://news.ycombinator.com/item?id=46039738))
- Easy mixing of models (1 comments): "You can easily mix and match their models in your agents." ([source](https://news.ycombinator.com/item?id=46016038))

## What people warn about

- Tool calling often beats code agents (1 comments): "For the most cases, modern models tool call outperforms code agent." ([source](https://news.ycombinator.com/item?id=46675615))
- Small tool sets outperform single tool (1 comments): "a year later having a small subset (<10) of flexible tools is outperforming the single-tool approach" ([source](https://news.ycombinator.com/item?id=46677762))

## Alternatives hackers recommend

- [Haystack](https://hackerapproved.com/p/haystack.md): 5 recommend

## Cite as

Hacker Approved, "smolagents", https://hackerapproved.com/p/smolagents/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
