Hugging Face · Minimal Code-First Agent Library
A barebones Python library where agents think and act by writing code, built by Hugging Face.
Best for
Minimal code-first agents with Hugging Face ecosystem
Not ideal for
Complex multi-agent orchestration or teams needing visual tooling
Who it's for
Python developers who want a lightweight, transparent agent library with minimal abstraction
Smolagents is a deliberately minimal agent library by Hugging Face. Its core agent logic is approximately 1,000 lines of code. Instead of generating JSON tool calls, agents write and execute Python code directly — which makes their reasoning transparent and debuggable. The library supports multiple sandboxed execution environments (Docker, E2B, WebAssembly), vision and multimodal inputs, and any LLM provider. Agents and tools can be shared through the Hugging Face Hub. Smolagents is Apache 2.0 licensed and intended for developers who want a lightweight, unopinionated starting point for agent development rather than a heavy orchestration framework.
Are you the founder? Claim this listing →