smolagents
Build lightweight agents that act through Python code or tool calls.
- Stars
- 28,276
- Forks
- 2,753
- Updated
- Updated Jul 10, 2026
Build lightweight agents that act through Python code or tool calls.
smolagents offers a compact Python framework for code-writing agents, conventional tool-calling agents, and multi-agent hierarchies, with support for different model providers and Hub sharing. Its CodeAgent expresses actions as Python snippets. Since those snippets are executed, untrusted workloads should use a sandboxed backend; the local Python executor is explicitly not a security boundary.
Resource types
Use cases
Runtime
Add searchable long-term memory to AI assistants and agents.
Optimize reusable natural-language agent skills with trajectory-driven edits and validation gates.
Capabilities
Public GitHub facts last synced Jul 10, 2026.
Add Claude Code-inspired tools and skills to Spring AI applications.
Turns GitHub repositories into executable software-engineering tasks for training SWE agents.