
概览
主要功能
- 代码代理可以通过 Python 来解决任务
- 集成了 Hugging Face、OpenAI、Anthropic 和本地模型的支持
- 使用 E2B 和 Docker 后端的sandboxed 代码执行
- 对 Hub、LangChain 和自定义 Python 函数的工具集成
- 内置工具调用代理的传统 JSON 风格工具
- 轻量级,依赖较少的设计
价格
- 模型
- Free
- 评分
- 5.0 / 5 (4)
使用场景
快速创建代码代理
开发人员可以创建解决任务的代理,通过编写并执行 Python 代码来减少 LLM 步骤与 JSON 工具调用方法相比。
与任何 LLM 提供商一起运行代理
在不改变框架的情况下,使用 Hugging Face Hub 模型、本地 inference 服务或 OpenAI 和 Anthropic 等 API 来构造代理。
安全地执行生成的代码
使用 E2B 或 Dockersandbox 后端来在隔离环境中执行代理生成的 Python,从而减轻在自动任务执行期间的安全风险。
整合现有工具集
结合自定义 Python 函数和 Hub Spaces 和 LangChain 工具来扩展代理能力,同时保持轻量级、可读性好的代码库。
优点 & 缺点
优点
- 具有很小、可读性很好的代码库,并且易于扩展
- 基于代码的动作减少了步骤并提高了代理表现力
- 与许多 LLM 提供商和本地模型兼容
- 使用 E2B 或 Docker 进行sandboxed执行以提高安全性
- 免费且完全开源
缺点
- 需要 Python 知识才能有效地使用
- 较小的内置集成
- 使用 E2B 或 Docker 提升安全性的代码执行引入了安全考量
- 不适用于复杂的多agent协调
对决战绩
在万神殿中参与了 1 对决。
Last battle
评测
4 个评分的平均值。
登录以留下评测。
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.
问答
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
提问
本当常用服务的形嵻箥别 的替代品
Mini LLM Flow
本当常用服务的形嵻箥别
最小化的 100 行 LLM 框架,用于构建自我编程代理工作流程
upsonicAI
本当常用服务的形嵻箥别
开源的代理框架,用于创建任务特定数字工人和垂直AI代理
AI-Powered RAG Workflow for n8n
本当常用服务的形嵻箥别
使用 n8n,以 Google Drive 文件为基础回答您的问题
ControlFlow
本当常用服务的形嵻箥别
用于构建具有任务中心设计的自主AI工作流的Python框架。
roboneo art
本当常用服务的形嵻箥别
AI绘画生成器,秒级从文本提示转换为优质图像。
Agent Genesis
本当常用服务的形嵻箥别
开源,一键复制代码片段,快速构建AI智能体
Eclat Institute
本当常用服务的形嵻箥别
专注于 IP 与 JC 辅导,致力于打造持久的学科掌握
Remove Watermark
本当常用服务的形嵻箥别
免費 AI 工具,立即從圖片中移除水印和Logo












