A Simple Framework for Building AI Agents
A lightweight open-source agent framework from Hugging Face. Simple, focused on code-generating agents and tool use. Pythonic and minimal.
Hugging Face's minimal agent library: code-writing agents (actions as Python code instead of JSON blobs) in ~1,000 lines of core. Lightweight, model-agnostic, with an open honestly-simple design that makes agent mechanics legible. The educational-yet-practical entry in the Python agent space.
Who it's for
Developers who want a minimal HF-native library for code-writing AI agents in about a thousand lines.
Official links
Keep exploring
1 in catalog
Smolagents is written in
3 in catalog