返回列表
🧠 阿头学 · 💬 讨论题

Claude Code 拆解告诉我们:AI Agent 的护城河不在循环,而在治理系统

这篇论文最有价值的判断是:成熟 AI Agent 的核心并不在“更聪明的模型循环”,而在权限、上下文、扩展、隔离与审计这些重系统工程;但它试图用两个案例定义整个设计空间,外推明显过头。
打开原文 ↗

2026-04-19 原文链接 ↗
阅读简报
双语对照
完整翻译
原文
讨论归档

核心观点

  • 护城河在外围系统,不在 agent loop 论文把 Claude Code 的核心概括为一个简单的 while 循环,这个判断大概率是对的;真正难复制的是围绕循环搭起来的权限系统、五层上下文压缩、子 agent 委派、append-only 会话存储和多种扩展机制,这才是产品可用性的决定因素。
  • 部署语境会重写架构答案 作者拿 Claude Code 和 OpenClaw 对比,指出同样是 Agent,CLI 编程助手与网关型个人助理会走向完全不同的安全和运行时设计;这个判断很扎实,说明“最佳 Agent 架构”不是普适模板,而是场景约束下的局部最优。
  • 安全不是附属功能,而是系统骨架 文中强调七种模式加 ML 分类器的权限系统,这说明工业级 Agent 不是先让它会做事,再补安全;相反,权限边界、动作审批、执行隔离从一开始就是主结构,否则工具调用能力越强,系统越危险。
  • 上下文管理已经从“塞更多 token”转向“主动压缩治理” 五层压缩流水线的描述很关键,因为它意味着长上下文不是万能药;能不能稳定完成任务,越来越取决于系统如何筛选、压缩和重组信息,而不是单纯依赖更大的上下文窗口。
  • 论文的解释框架有启发,但理论雄心过大 五类价值、十三项原则、六个未来方向听起来完整,但主要证据来自静态代码分析和两个案例对比;这更像高质量架构评论,不足以支撑“Agent 系统设计空间”的通用理论。

跟我们的关联

  • 对 ATou 意味着什么、下一步怎么用 ATou 如果在做任何 AI 工具或自动化产品,不该继续把主要精力押在 prompt 和模型切换上;下一步应先画出“权限-上下文-执行-回滚-审计”的系统图,再判断产品是否真的能进入高频工作流。
  • 对 Neta 意味着什么、下一步怎么用 Neta 可以把这篇文章当作 Agent 产品拆解模板,而不是当成理论圣经;下一步适合用“核心循环极简,外围治理复杂”这套框架去评估市面上的 Agent 项目,筛掉那些只有 demo、没有 runtime 治理的伪产品。
  • 对 Uota 意味着什么、下一步怎么用 Uota 若关注“人类决策权”和系统边界,这篇文章提供了一个清晰抓手:真正值得讨论的不是 AI 会不会替代人,而是哪一层决策必须保留人工否决权;下一步可以把“哪些动作自动,哪些动作必须升级给人”做成讨论题。
  • 对投资判断意味着什么、下一步怎么用 对投资者而言,能跑通 agent loop 已经不稀缺,能把权限、记忆、扩展、隔离做成平台能力才稀缺;下一步看项目时要重点追问失败恢复、工具权限、上下文衰减和多 agent 协作机制,而不是只看 benchmark 和任务演示。

讨论引子

1. 如果 Agent 的核心循环已经商品化,未来最有价值的公司会是“模型公司”还是“Agent runtime / 治理层公司”? 2. 对于高风险任务,逐动作安全分类和边界级访问控制,哪一种更适合企业环境,代价分别是什么? 3. 五层上下文压缩这类机制会不会成为新的隐性瓶颈,即看起来更高效,实际上引入信息丢失和不可解释性?

标题:深入 Claude Code:当下与未来 AI Agent 系统的设计空间

作者:Jiacheng LiuXiaohan ZhaoXinyi ShangZhiqiang Shen

查看论文《深入 Claude Code:当下与未来 AI Agent 系统的设计空间》的 PDF,作者为 Jiacheng Liu、Xiaohan Zhao、Xinyi Shang 和 Zhiqiang Shen

查看 PDF HTML(实验版) 摘要:Claude Code 是一种 agentic 编程工具,可以代表用户运行 shell 命令、编辑文件,并调用外部服务。本研究通过分析公开可用的 TypeScript 源代码,描述了它的完整架构,并进一步将其与 OpenClaw 进行比较。OpenClaw 是一个独立的开源 AI Agent 系统,它在不同的部署语境下回答了许多相同的设计问题。我们的分析识别出推动该架构形成的五类人类价值、理念与需求,即人类决策权、安全与安全性、可靠执行、能力放大、上下文适应性,并沿着十三项设计原则追踪这些价值如何落实到具体实现选择中。系统的核心是一个简单的 while 循环,它调用模型、运行工具,然后重复执行。然而,大部分代码都存在于围绕这一循环构建的系统之中:一个包含七种模式和基于机器学习的分类器的权限系统,一个用于上下文管理的五层压缩流水线,四种扩展机制,即 MCP、插件、技能和 hooks,一个带有工作树隔离的子 agent 委派机制,以及面向追加的会话存储。与作为多通道个人助理网关的 OpenClaw 进行比较后可以看到,当部署语境发生变化时,相同的反复出现的设计问题会产生不同的架构答案:从逐动作安全分类转向边界层面的访问控制,从单一 CLI 循环转向嵌入在网关控制平面中的运行时,从上下文窗口扩展转向网关范围内的能力注册。最后,我们基于近期的实证、架构与政策文献,识别出未来 Agent 系统的六个开放设计方向。

评论:技术报告。代码位于:this https URL 主题:软件工程 (cs.SE);人工智能 (cs.AI);计算与语言 (cs.CL);机器学习 (cs.LG) 引用为:arXiv:2604.14228 [cs.SE] (或本版本引用为 arXiv:2604.14228v1 [cs.SE])https://doi.org/10.48550/arXiv.2604.14228

arXiv 通过 DataCite 发布的 DOI(待注册)

提交历史

来自:Zhiqiang Shen [查看邮箱] [v1] 2026 年 4 月 14 日,星期二,17:59:37 UTC(573 KB)

全文链接:

访问论文:

查看论文《深入 Claude Code:当下与未来 AI Agent 系统的设计空间》的 PDF,作者为 Jiacheng Liu、Xiaohan Zhao、Xinyi Shang 和 Zhiqiang Shen

查看许可

当前浏览上下文:

cs.SE

上一项 | 下一项

最新 | 近期 | 2026-04

切换浏览方式:

cs cs.AI cs.CL cs.LG

参考文献 引用

导出 BibTeX 引用 正在加载...

BibTeX 格式引用

正在加载...

数据提供方:

书签

书目工具

书目与引用工具

书目浏览器开关

书目浏览器(什么是浏览器?

Connected Papers 开关

Connected Papers(什么是 Connected Papers?

Litmaps 开关

Litmaps(什么是 Litmaps?

scite.ai 开关

scite Smart Citations(什么是 Smart Citations?

代码、数据、媒体

与本文相关的代码、数据和媒体

alphaXiv 开关

alphaXiv(什么是 alphaXiv?

代码链接开关

CatalyzeX 论文代码查找器(什么是 CatalyzeX?

DagsHub 开关

DagsHub(什么是 DagsHub?

GotitPub 开关

Gotit.pub(什么是 GotitPub?

Huggingface 开关

Hugging Face(什么是 Huggingface?

ScienceCast 开关

ScienceCast(什么是 ScienceCast?

演示

演示

Replicate 开关

Replicate(什么是 Replicate?

Spaces 开关

Hugging Face Spaces(什么是 Spaces?

Spaces 开关

TXYZ.AI(什么是 TXYZ.AI?

相关论文

推荐与搜索工具

链接到 Influence Flower

Influence Flower(什么是 Influence Flowers?

CORE 推荐器开关

CORE Recommender(什么是 CORE?

  • 作者

  • 会场

  • 机构

  • 主题

关于 arXivLabs

arXivLabs:与社区合作者共同开展的实验性项目

arXivLabs 是一个框架,让合作者可以直接在我们的网站上开发并分享新的 arXiv 功能。

与 arXivLabs 合作的个人和组织都已经接受并认同我们的价值观:开放、社区、卓越,以及用户数据隐私。arXiv 致力于这些价值观,并且只与遵循这些价值观的伙伴合作。

有一个能为 arXiv 社区增加价值的项目想法?了解更多关于 arXivLabs 的信息

这篇论文的哪些作者是 endorsers? | 禁用 MathJax什么是 MathJax?

[2604.14228] Dive into Claude Code: The Design Space of Todays and Future AI Agent Systems

标题:深入 Claude Code:当下与未来 AI Agent 系统的设计空间

We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate

查看论文《深入 Claude Code:当下与未来 AI Agent 系统的设计空间》的 PDF,作者为 Jiacheng Liu、Xiaohan Zhao、Xinyi Shang 和 Zhiqiang Shen

cs arXiv:2604.14228

查看 PDF HTML(实验版) 摘要:Claude Code 是一种 agentic 编程工具,可以代表用户运行 shell 命令、编辑文件,并调用外部服务。本研究通过分析公开可用的 TypeScript 源代码,描述了它的完整架构,并进一步将其与 OpenClaw 进行比较。OpenClaw 是一个独立的开源 AI Agent 系统,它在不同的部署语境下回答了许多相同的设计问题。我们的分析识别出推动该架构形成的五类人类价值、理念与需求,即人类决策权、安全与安全性、可靠执行、能力放大、上下文适应性,并沿着十三项设计原则追踪这些价值如何落实到具体实现选择中。系统的核心是一个简单的 while 循环,它调用模型、运行工具,然后重复执行。然而,大部分代码都存在于围绕这一循环构建的系统之中:一个包含七种模式和基于机器学习的分类器的权限系统,一个用于上下文管理的五层压缩流水线,四种扩展机制,即 MCP、插件、技能和 hooks,一个带有工作树隔离的子 agent 委派机制,以及面向追加的会话存储。与作为多通道个人助理网关的 OpenClaw 进行比较后可以看到,当部署语境发生变化时,相同的反复出现的设计问题会产生不同的架构答案:从逐动作安全分类转向边界层面的访问控制,从单一 CLI 循环转向嵌入在网关控制平面中的运行时,从上下文窗口扩展转向网关范围内的能力注册。最后,我们基于近期的实证、架构与政策文献,识别出未来 Agent 系统的六个开放设计方向。

评论:技术报告。代码位于:this https URL 主题:软件工程 (cs.SE);人工智能 (cs.AI);计算与语言 (cs.CL);机器学习 (cs.LG) 引用为:arXiv:2604.14228 [cs.SE] (或本版本引用为 arXiv:2604.14228v1 [cs.SE])https://doi.org/10.48550/arXiv.2604.14228

All fields Title Author Abstract Comments Journal reference ACM classification MSC classification Report number arXiv identifier DOI ORCID arXiv author ID Help pages Full text

arXiv 通过 DataCite 发布的 DOI(待注册)

Search

提交历史

GO

来自:Zhiqiang Shen [查看邮箱] [v1] 2026 年 4 月 14 日,星期二,17:59:37 UTC(573 KB)

quick links

全文链接:

访问论文:

查看论文《深入 Claude Code:当下与未来 AI Agent 系统的设计空间》的 PDF,作者为 Jiacheng Liu、Xiaohan Zhao、Xinyi Shang 和 Zhiqiang Shen

Computer Science > Software Engineering

arXiv:2604.14228 (cs)

[Submitted on 14 Apr 2026]

Title:Dive into Claude Code: The Design Space of Todays and Future AI Agent Systems

当前浏览上下文:

View a PDF of the paper titled Dive into Claude Code: The Design Space of Todays and Future AI Agent Systems, by Jiacheng Liu and Xiaohan Zhao and Xinyi Shang and Zhiqiang Shen

cs.SE

View PDF HTML (experimental) Abstract:Claude Code is an agentic coding tool that can run shell commands, edit files, and call external services on behalf of the user. This study describes its comprehensive architecture by analyzing the publicly available TypeScript source code and further comparing it with OpenClaw, an independent open-source AI agent system that answers many of the same design questions from a different deployment context. Our analysis identifies five human values, philosophies, and needs that motivate the architecture (human decision authority, safety and security, reliable execution, capability amplification, and contextual adaptability) and traces them through thirteen design principles to specific implementation choices. The core of the system is a simple while-loop that calls the model, runs tools, and repeats. Most of the code, however, lives in the systems around this loop: a permission system with seven modes and an ML-based classifier, a five-layer compaction pipeline for context management, four extensibility mechanisms (MCP, plugins, skills, and hooks), a subagent delegation mechanism with worktree isolation, and append-oriented session storage. A comparison with OpenClaw, a multi-channel personal assistant gateway, shows that the same recurring design questions produce different architectural answers when the deployment context changes: from per-action safety classification to perimeter-level access control, from a single CLI loop to an embedded runtime within a gateway control plane, and from context-window extensions to gateway-wide capability registration. We finally identify six open design directions for future agent systems, grounded in recent empirical, architectural, and policy literature.

Comments: Tech report. Code at: this https URL Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Machine Learning (cs.LG) Cite as: arXiv:2604.14228 [cs.SE] (or arXiv:2604.14228v1 [cs.SE] for this version) https://doi.org/10.48550/arXiv.2604.14228

Focus to learn more

切换浏览方式:

arXiv-issued DOI via DataCite (pending registration)

Submission history

参考文献 引用

From: Zhiqiang Shen [view email] [v1] Tue, 14 Apr 2026 17:59:37 UTC (573 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled Dive into Claude Code: The Design Space of Todays and Future AI Agent Systems, by Jiacheng Liu and Xiaohan Zhao and Xinyi Shang and Zhiqiang Shen

导出 BibTeX 引用 正在加载...

BibTeX 格式引用

正在加载...

数据提供方:

Current browse context:

书目工具

cs.SE

书目与引用工具

书目浏览器开关

书目浏览器(什么是浏览器?

Change to browse by:

Connected Papers 开关

References Citations

Litmaps 开关

scite.ai 开关

export BibTeX citation Loading...

代码、数据、媒体

BibTeX formatted citation

与本文相关的代码、数据和媒体

loading...

alphaXiv 开关

Data provided by:

alphaXiv(什么是 alphaXiv?

Bookmark

代码链接开关

Bibliographic Tools

CatalyzeX 论文代码查找器(什么是 CatalyzeX?

Bibliographic and Citation Tools

DagsHub 开关

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

GotitPub 开关

Connected Papers Toggle

Gotit.pub(什么是 GotitPub?

Connected Papers (What is Connected Papers?)

Huggingface 开关

Litmaps Toggle

Hugging Face(什么是 Huggingface?

ScienceCast 开关

scite.ai Toggle

ScienceCast(什么是 ScienceCast?

scite Smart Citations (What are Smart Citations?)

演示

Code, Data, Media

演示

Code, Data and Media Associated with this Article

Replicate 开关

alphaXiv Toggle

Replicate(什么是 Replicate?

Spaces 开关

Links to Code Toggle

Hugging Face Spaces(什么是 Spaces?

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

Spaces 开关

DagsHub Toggle

相关论文

GotitPub Toggle

推荐与搜索工具

Gotit.pub (What is GotitPub?)

链接到 Influence Flower

Huggingface Toggle

Influence Flower(什么是 Influence Flowers?

Hugging Face (What is Huggingface?)

CORE 推荐器开关

ScienceCast Toggle

CORE Recommender(什么是 CORE?

ScienceCast (What is ScienceCast?)

  • 作者

Demos

  • 会场

Demos

  • 机构

Replicate Toggle

  • 主题

Replicate (What is Replicate?)

关于 arXivLabs

Spaces Toggle

arXivLabs:与社区合作者共同开展的实验性项目

Hugging Face Spaces (What is Spaces?)

arXivLabs 是一个框架,让合作者可以直接在我们的网站上开发并分享新的 arXiv 功能。

Spaces Toggle

与 arXivLabs 合作的个人和组织都已经接受并认同我们的价值观:开放、社区、卓越,以及用户数据隐私。arXiv 致力于这些价值观,并且只与遵循这些价值观的伙伴合作。

有一个能为 arXiv 社区增加价值的项目想法?了解更多关于 arXivLabs 的信息

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

  • 联系 arXiv点击此处联系 arXiv 联系

Core recommender toggle

  • 订阅 arXiv 邮件列表点击此处订阅 订阅

CORE Recommender (What is CORE?)

  • Author
  • Venue
  • Institution
  • Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe

[2604.14228] Dive into Claude Code: The Design Space of Todays and Future AI Agent Systems

Learn about arXiv becoming an independent nonprofit.

We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate

cs arXiv:2604.14228

Help | Advanced Search

All fields Title Author Abstract Comments Journal reference ACM classification MSC classification Report number arXiv identifier DOI ORCID arXiv author ID Help pages Full text

Search

GO

quick links

Computer Science > Software Engineering

arXiv:2604.14228 (cs)

[Submitted on 14 Apr 2026]

Title:Dive into Claude Code: The Design Space of Todays and Future AI Agent Systems

Authors:Jiacheng Liu, Xiaohan Zhao, Xinyi Shang, Zhiqiang Shen

View a PDF of the paper titled Dive into Claude Code: The Design Space of Todays and Future AI Agent Systems, by Jiacheng Liu and Xiaohan Zhao and Xinyi Shang and Zhiqiang Shen

View PDF HTML (experimental) Abstract:Claude Code is an agentic coding tool that can run shell commands, edit files, and call external services on behalf of the user. This study describes its comprehensive architecture by analyzing the publicly available TypeScript source code and further comparing it with OpenClaw, an independent open-source AI agent system that answers many of the same design questions from a different deployment context. Our analysis identifies five human values, philosophies, and needs that motivate the architecture (human decision authority, safety and security, reliable execution, capability amplification, and contextual adaptability) and traces them through thirteen design principles to specific implementation choices. The core of the system is a simple while-loop that calls the model, runs tools, and repeats. Most of the code, however, lives in the systems around this loop: a permission system with seven modes and an ML-based classifier, a five-layer compaction pipeline for context management, four extensibility mechanisms (MCP, plugins, skills, and hooks), a subagent delegation mechanism with worktree isolation, and append-oriented session storage. A comparison with OpenClaw, a multi-channel personal assistant gateway, shows that the same recurring design questions produce different architectural answers when the deployment context changes: from per-action safety classification to perimeter-level access control, from a single CLI loop to an embedded runtime within a gateway control plane, and from context-window extensions to gateway-wide capability registration. We finally identify six open design directions for future agent systems, grounded in recent empirical, architectural, and policy literature.

Comments: Tech report. Code at: this https URL Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Machine Learning (cs.LG) Cite as: arXiv:2604.14228 [cs.SE] (or arXiv:2604.14228v1 [cs.SE] for this version) https://doi.org/10.48550/arXiv.2604.14228

Focus to learn more

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Zhiqiang Shen [view email] [v1] Tue, 14 Apr 2026 17:59:37 UTC (573 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled Dive into Claude Code: The Design Space of Todays and Future AI Agent Systems, by Jiacheng Liu and Xiaohan Zhao and Xinyi Shang and Zhiqiang Shen

view license

Current browse context:

cs.SE

prev | next

new | recent | 2026-04

Change to browse by:

cs cs.AI cs.CL cs.LG

References Citations

export BibTeX citation Loading...

BibTeX formatted citation

loading...

Data provided by:

Bookmark

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

  • Author

  • Venue

  • Institution

  • Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

📋 讨论归档

讨论进行中…