huggingface/smolagents
๐ค smolagents: a barebones library for agents that think in code.
What it is
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.
When to use it
Reach for smolagents when you want an LLM to plan, call tools, browse, or coordinate with other agents instead of answering a single prompt โ it's written in Python and fits stacks tagged .