按年被提到
20242025 · 4 次2026
软件工程与 AI 编程›编程智能体与 AI 开发·arXiv:2402.01030 · cs.CL

Executable Code Actions Elicit Better LLM Agents

可执行代码动作能让 LLM 智能体更强
Xingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang, Yunzhu Li, Hao Peng, Heng Ji · 2024

用可执行 Python 代码统一 LLM 智能体的动作空间(CodeAct)

开始阅读 ↗PDFalphaXiv 讨论
被推荐 · 6 人首次 2024-05-30 · 最近 2026-08-11
6不同的人
5活跃月份
6讨论串
86被引(OpenAlex)

论文提出 CodeAct:让 LLM 智能体用可执行的 Python 代码作为统一的动作空间,结合解释器,可在多轮交互中根据新观察动态修改或发出新动作。在 API-Bank 和新构建基准上对 17 个 LLM 的分析显示,CodeAct 优于常用替代方案,成功率最高提升 20%。作者还构建了含 7k 条多轮交互的 CodeActInstruct 数据集,并基于 Llama2 与 Mistral 微调出 CodeActAgent。

HN 为什么提它

评论者反复用它来支持「智能体用写代码代替 JSON 调用工具效果更好」这一做法,并在讨论新智能体设计时拿它当先例,也有人强调它在 2024 年就已发表。

方法难度 3 / 5约 40 分钟经得起时间
读之前最好知道
1LLM 智能体(agent)与工具调用
2JSON 函数调用(function calling)
3Python 解释器与代码执行
4指令微调(instruction tuning)

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
推荐tucnak · 2025-08

“These guys should read this (CodeAct) paper Executable Code Actions Elicit Better LLM Agents”

建议对方读这篇 CodeAct 论文:用 Python 代码统一智能体动作,胜过 JSON 工具调用
Universal Tool Calling Protocol (UTCP)原评论 ↗
引用krasserm · 2025-01

“especially agents that write their actions in code (see CodeAct paper Executable Code Actions Elicit Better LLM Agents).”

引 CodeAct 为例,说明智能体用代码写出动作
Show HN: Gemini 2 with unrestricted code execution原评论 ↗
引用threecheese · 2025-12

“What the heck are they aiming for? CodeAct?”

反问对方的目标是不是 CodeAct,即用可执行代码作为智能体动作
Anthropic acquires Bun原评论 ↗
引用furisto · 2025-12

“The approach was inspired by the CodeAct paper that found that agents perform better when they call tools with code instead of JSON.”

说明做法受 CodeAct 启发:智能体用代码而非 JSON 调用工具表现更好
Show HN: Construct – API-first coding assistant with CodeAct tool calling原评论 ↗
引用ux266478 · 2026-08

“The "invention" was first published in 2024, by Chinese researchers:”

指出这种“发明”最早由中国研究者在 2024 年发表
Mistral Patent for "Code implemented tool calls"原评论 ↗
被提交为 story · 1 次