Open SourceLibraryFree
smolagents
Hugging Face's minimal agent library (~1k lines). Its distinctive move is code-agents: the agent writes Python to act instead of emitting JSON tool calls, often more expressive and fewer tokens for multi-step work. Model-agnostic via LiteLLM. Run the model-written code sandboxed (E2B/Docker/Modal). Apache-2.0.