huggingface/smolagents
🤗 smolagents: a barebones library for agents that think in code. observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 99
- Release rhythm 86
- Longevity 45
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 8
- age_days: 636
- days_rel: 96
- days_push: 8
- n_releases_24m: 36
Adoption not part of the score
29005 stars · 2895 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
smolagents is a lightweight Python library from Hugging Face for building LLM-powered agents in a few lines of code, with first-class support for Code Agents that write their actions as Python code. It is model-agnostic, supports tool-calling agents, Hub sharing of tools/agents, and sandboxed code execution via E2B, Modal, Blaxel, or Docker.
Use cases
- build an ai agent in python with a few lines of code
- run llm agents that write and execute code
- create tool-calling agents with any llm provider
- sandbox agent code execution securely
- share and reuse agent tools via the hugging face hub
- monitor and debug agent runs with opentelemetry
When to choose
- you want a minimal, simple agent framework with little abstraction
- you prefer code-writing agents over JSON tool calling for composability
- you need model-agnostic agent support across LLM providers
- you want to share or pull tools and agents from the Hugging Face Hub
When to avoid
- you need a full-featured multi-agent orchestration framework with heavy abstractions
- you cannot run generated code safely and lack a sandbox option
- your workflow is fully deterministic and doesn't need LLM agency
Facets
library · maturity active
agent-framework llm-inference sdk developer-tools large-language-models artificial-intelligence developer-tools python cloud cross-platform code-agents tool-calling hugging-face sandboxed-execution opentelemetry llm-agents ai-agents docker
10 sources
- readme: https://github.com/huggingface/smolagents · fetched 2026-08-28 · 6fd08c57e5ea
- homepage: https://huggingface.co/docs/smolagents · fetched 2026-08-29 · 2b30560b672d
- site_page: https://huggingface.co/docs/smolagents/guided_tour · fetched 2026-08-29 · ee07d8c229f8
- site_page: https://huggingface.co/docs/smolagents/tutorials/building_good_agents · fetched 2026-08-29 · ce46878a0f5d
- site_page: https://huggingface.co/docs/smolagents/tutorials/inspect_runs · fetched 2026-08-29 · 42f6f7f7e22d
- site_page: https://huggingface.co/docs/smolagents/tutorials/tools · fetched 2026-08-29 · 856048a0ced8
- site_page: https://huggingface.co/docs/smolagents/tutorials/secure_code_execution · fetched 2026-08-29 · fbb2a72d4753
- site_page: https://huggingface.co/docs · fetched 2026-08-29 · bdec26667b98
- site_page: https://huggingface.co/docs/smolagents/installation · fetched 2026-08-29 · 206a3c8ed60c
- site_page: https://huggingface.co/pricing · fetched 2026-08-29 · de6b7a178be5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| huggingface/smolagents | main | 84 |
For agents
markdown · JSON · MCP: product_card(name="huggingface/smolagents")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem