
smolagentsHugging Faceov minimalistni Pythonov biblioteka za gradnju code-first AI agenata u nekoliko redaka
Pregled
Ključne značajke
- Kodni Agent koji piše i izvodi Python za rješavanje zadataka
- Podrška Hugging Faceu, OpenAI-u, Anthropic-u i lokalnim modelima
- Zamračeni izvođač koda sa E2B i Docker backend-ovima
- Integracija s Hub, LangChain i prilagođenim Pythonovim funkcijama
- Sadržana podrška za kodovni Agenata s tradicionalnim JSON-ovim sustavom korištenja
- Lehki dizajn sa minimalnom potrebnom za ovisnosti
Cijene
- Model
- Free
- Kategorija
- Okvirji za agenčki AI
- Ocjena
- 5.0 / 5 (4)
Slučajevi uporabe
Budi kod-first agenata brzo
Programeri mogu stvarati agenata koji rješavaju zadaće pišući i izvodeći Python kôd, što reducira broj LLM koraka u poređenu sa JSON sustavom korištenja alata.
Pokreni agenat korištenjem bilo kog LLM pruvara
Ispiši agenata prototipom korištenjem Hugging Face modela, lokalnog servera za iniciju ili API-ja poput OpenAI-a i Anthropic-a bez mijenjanja framework-a.
Sigurno pokretni generirani kôd
Pojavite se E2B ili Docker-ov zamračeni backend u izvršenju agenata pokretanog Python kôd u izolovanim okruženjima, koje smanjuje rizik pri automatizirano izvršavanju zadataka.
Integriraj postojeće sustave alata
Kombiniraj prilagođene Pythonove funkcije s Hub prostorcima i LangChain alatima za proširenje agenske mogućnosti uz zahtjev koji ostaje minimalan i lako čitljiv.
Prednosti i nedostaci
Prednosti
- Veoma malen, prečitan kôd koji se lako može proširiti
- Kod baziranih akcija smanjuje korake i povećava izražajnost agenata
- Rad sa mnogim LLM pruvarima i lokalnim modelima
- Zamračen izvođač koda preko E2B ili Docker-a za sigurniji kôd izvršavanja
- Slobodan i potpuno otvoren kod
Nedostaci
- Potreban je Pythonov znanje za efikasnije korištenje
- Manje integracija u izgrađenim sustavima agena nego u većim framework-ovima
- Izvršavanje koda predstavlja sigurnosne rizike koje treba upravitis.
- Manje prilagođeno za kompleksnu orkestraciju agena izvan standardnog koda.
Rekord bitaka
U 1 bitki u Panteonu.
Last battle
Recenzije
Prosjek iz 4 ocjena.
Prijavi se za ostavljanje recenzije.
Use it every day
Honestly didn't expect to like it this much. Tool integration with Hub, LangChain, and custom Python functions is exactly what I needed, and code-based actions reduce steps and boost agent expressiveness. I do wish requires Python knowledge to use effectively, but I reach for it almost every day now and it just clicks.
Does the job
Pretty happy overall. Tool integration with Hub, LangChain, and custom Python functions just works and very small, readable codebase that is easy to extend. Code execution introduces security considerations to manage can be annoying, but no dealbreakers — I'd recommend it to a friend without hesitating.
Does the job
Pretty happy overall. Sandboxed code execution with E2B and Docker backends just works and sandboxed execution via E2B or Docker for safer code running. but no dealbreakers — I'd recommend it to a friend without hesitating.
Skeptical, then convinced
I went in skeptical — most tools in this space overpromise. It actually delivers on codeAgent that writes and executes Python to solve tasks, and code-based actions reduce steps and boost agent expressiveness caught me off guard. still, I'd recommend giving it a real trial.
Pitanja
How strong are open models for agentic workflows?
We've created CodeAgent instances with some leading models, and compared them on this benchmark that gathers questions from a few different benchmarks to propose a varied blend of challenges. Find the benchmarking code here for more detail on the agentic setup used, and see a comparison of using LLMs code agents compared to vanilla (spoilers: code agents works better). This comparison shows that open-source models can now take on the best closed models!
Asked by Diego Fernández · Feb 16, 2026
How smol is this library?
We strived to keep abstractions to a strict minimum: the main code in agents.py has <1,000 lines of code. Still, we implement several types of agents: CodeAgent writes its actions as Python code snippets, and the more classic ToolCallingAgent leverages built-in tool calling methods. We also have multi-agent hierarchies, import from tool collections, remote code execution, vision models... By the way, why use a framework at all? Well, because a big part of this stuff is non-trivial. For instance, the code agent has to keep a consistent format for code throughout its system prompt, its parser, the execution. So our framework handles this complexity for you. But of course we still encourage you to hack into the source code and use only the bits that you need, to the exclusion of everything else!
Asked by Ludovic Girard · Nov 27, 2025
How do Code agents work?
Our CodeAgent works mostly like classical ReAct agents - the exception being that the LLM engine writes its actions as Python code snippets. Actions are now Python code snippets. Hence, tool calls will be performed as Python function calls. For instance, here is how the agent can perform web search over several websites in one single action: Writing actions as code snippets is demonstrated to work better than the current industry practice of letting the LLM output a dictionary of the tools it wants to call: uses 30% fewer steps (thus 30% fewer LLM calls) and reaches higher performance on difficult benchmarks. Head to our high-level intro to agents to learn more on that. Since code execution can be a serious security concern (arbitrary code execution!), you should run agent code in a sandbox. We support several options: E2B, Blaxel, Modal — managed cloud sandboxes, simplest to set up Docker — self-hosted container isolation The built-in LocalPythonExecutor is not a security sandbox. It applies some restrictions but can be bypassed and must not be used as a security boundary. Alongside CodeAgent, we also provide the standard ToolCallingAgent which writes actions as JSON/text blobs. You can pick whichever style best suits your use case.
Asked by Greta Nowak · Oct 31, 2025
Postavi pitanje
Alternative za Okvirji za agenčki AI
Mini LLM Flow
Okvirji za agenčki AI
Minimalističko 100-člani sustav za LLM za gradnju samoadaptivnih agent radnog tokova
upsonicAI
Okvirji za agenčki AI
Otvoren-kôdnarama za gradnju zadaci-fokaliziranih digitalnih radnika i vertikalnih AI agenata.
AI-Powered RAG Workflow for n8n
Okvirji za agenčki AI
Pitaj pitanja i dobij odgovore temeljene na vašim Google Drive datotekama koristeći n8n.
ControlFlow
Okvirji za agenčki AI
Python frameworkski okvir za izradu agencijenskih radnih tokova sa zasnivom na zadatačkim projektima.
roboneo art
Okvirji za agenčki AI
AI generacija umjetničkih slika koja pretvara tekstualne zapetke u visokokvalitetne slike u sekunde.
Agent Genesis
Okvirji za agenčki AI
Otvoreno-kodna platforma za brzo gradnju agenata AI
Eclat Institute
Okvirji za agenčki AI
Nastavni plan i JC usmjereni na izgradnju trajne vladanje predmetom
Remove Watermark
Okvirji za agenčki AI
Bazački besplatan AI alat za brzo uklanjanje vodenog znaka i logotipa s fotografija
Trending now
Reducto AI
Platforme za razvoj inteligentnih agenata AI
API za inteligenciju dokumenata koji parsira, dijeli, OCR-uje i iskreće strukturirane podatke iz složnih PDF-a, dijaloga i tablica s podacima.
Biology AI
Odjeljak za obuku inteligentnih sustava
Točno pomoć pri domaćem radu s potpunim objašnjima
AdCrier
Marketing i Oglašavanje
Sponzirani odgovori, plaća po klik
Pin AI
Automatizacija radnog protoka
Recruiterski agent koji automatisira pristupanje kandidatima, ekraniranje i outreach kako bi ubrzao proces zaposljavanja.












