Show HN: Freeact – A Lightweight Library for Code-Action Based Agents

Hello! We just released freeact (https://github.com/gradion-ai/freeact), a lightweight agent library that empowers language models to act as autonomous agents through executable code actions.

By enabling agents to express their actions directly in code rather than through constrained formats like JSON, freeact provides a flexible and powerful approach to solving complex, open-ended problems that require dynamic solution paths.

* Supports dynamic installation and utilization of Python packages at runtime

* Agents learn from feedback and store successful code actions as reusable skills in long-term memory

* Skills can be interactively developed and refined in collaboration with freeact agents

* Agents compose skills and any other Python modules to build increasingly sophisticated capabilities

* Code actions are executed in ipybox (https://github.com/gradion-ai/ipybox), a secure Docker + IPython sandbox that runs locally or remotely

GitHub repo: https://github.com/gradion-ai/freeact

Evaluation: https://gradion-ai.github.io/freeact/evaluation/

See it in action: https://github.com/user-attachments/assets/83cec179-54dc-456...

We'd love to hear your feedback!

github.com

120 points

cstub

14 hours ago


3 comments

hyelloweyed 13 hours ago

You achieved equal (and from the looks of it also better) results with freeact zero-shot prompting than smolagents with few-shot prompting? If thats true - then nice :D

thetrickster 13 hours ago

Great addition to the current frameworks and libraries out there - will give it a try on the weekend,but looks promising from you evaluation.

  • cstub 9 hours ago

    Thanks for checking it out! Hope you have fun, and we’d love to hear your feedback!