#74 · Primary category: AI Agents & Automation
smolagents
🤗 smolagents: a barebones library for agents that think in code.
Project last updated:08/25/26
GitHub Stars
29.0K
Forks
2.9K
Contributors
207
License
Apache-2.0
Why we included this project
smolagents keeps the agent loop small enough to read: the core logic fits in roughly a thousand lines of code, so you can trace what your agent does instead of trusting a black box. Its main idea is a CodeAgent that writes its next step as a Python snippet rather than emitting JSON tool calls, which makes multi-step reasoning easier to follow and debug. The library stays model-agnostic, working with local transformers or Ollama models, Hugging Face inference providers, or OpenAI and Anthropic endpoints through LiteLLM, and it can pull in tools from MCP servers, LangChain, or Hub Spaces. Code-running agents can be sandboxed with Docker, E2B, Modal, or Blaxel, and the CLI plus Hub sharing make it easy to prototype and pass work along. If you want a small, readable agent library you can extend yourself, this is a practical place to start.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
hermes-agent
The agent that grows with you
n8n
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
deepseek-harness
DeepSeek Harness: Everything is a Plugin.
AutoGPT
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.