smolagents

agent-frameworkStable

๐Ÿค— smolagents: a barebones library for agents that think in code.

Stars

28,432

ฮ” stars 7d

+115

ฮ” stars 30d

โ€”

Forks

2,794

Contributors

207

npm DL / wk

โ€”

PyPI DL / wk

155,176

Language

Python

Last push

2026-07-14

About smolagents

`smolagents` is a library that enables you to run powerful agents in a few lines of code. It offers: โœจ **Simplicity**: the logic for agents fits in ~1,000 lines of code (see agents.py). We kept abstractions to their minimal shape above raw code! ๐Ÿง‘โ€๐Ÿ’ป **First-class support for Code Agents**. Our `CodeAgent` writes its actions in code (as opposed to "agents being used to write code"). To make it secure, we support executing in sandboxed environments via Blaxel, E2B, Modal, or Docker.

Read the full README on GitHub โ†’

Install

pip install smolagents

smolagents growth signals this week

Growth score: 34/100 week of 2026-07-20

Acceleration (40%)48
Relative velocity (30%)8
Downloads (20%)23
Activity (10%)83

Signal history

WeekScoreฮ”โ˜…Signal
2026-07-2034+115Stable
2026-07-1327+115Stable
2026-07-0652+114Stable
2026-06-2935+114Stable
2026-06-2235+105Stable
2026-06-1517+99Stable
2026-06-0814+96Stable

smolagents alternatives

Projects in the same category, closest in size โ€” picked by data, not opinion.

ComposioStable29,285 โ˜…
go-microStable22,964 โ˜…
DSPyStable36,214 โ˜…
PostHog MCP ServerStable36,739 โ˜…

See all agent-framework projects ranked by growth โ†’

More from huggingface

Hugging Face MCP ServerStable262 โ˜…

Frequently asked questions

Is smolagents still maintained?
Yes โ€” actively maintained. The last push was on 2026-07-14, with 207 contributors.
Is smolagents growing?
It is stable this week, with a growth score of 34/100. See the weekly history above.
What are the best smolagents alternatives?
Closest by category and size in our data: Composio, go-micro, DSPy โ€” full list with live signals above.

Embed this badge

Show your project's live signal in your README โ€” it updates weekly with the data.

[![smolagents on What's Trending in AI](https://whatstrendinginai.com/badges/huggingface-smolagents-agent-framework.svg)](https://whatstrendinginai.com/projects/huggingface-smolagents-agent-framework/)

smolagents badge

Tracked since 2026-06-10 ยท data as of 2026-07-19 ยท 712 open issues ยท 36 releases