Index live · v1.7.0 · SEP 12 2026

smolagents

Minimal agents that act by writing Python, from Hugging Face.

Overview

smolagents takes the position that an agent's action space should be code. Instead of emitting a JSON tool call, the model writes a Python snippet that is executed — which composes and loops natively, and uses markedly fewer tokens than equivalent chained tool calls. The library is deliberately small enough to read end to end.

Why it's indexed

The clearest working demonstration that code-as-action beats JSON tool calls on token efficiency.

Editorial judgement, not a measurement — see our methodology. Listing is never paid for.

At a glance

License
Apache-2.0
Deployment
Self-hosted
Languages
Python
Pricing model
Open source

Pricing is shown as a model, not a rate. Published rates change without notice — check the vendor's own page before budgeting.

Tags

code-agentsminimalopen-modelshuggingface

Also in Agent Frameworks

Newsletter

Stay ahead of the AI skills curve

Every issue: what we added to the directory, what we rejected and why, and one workflow worth stealing. Nothing you'd get from an AI news roundup.

Free forever. Unsubscribe anytime. No spam. Read a past issue.