Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
《御舆:解码 Agent Harness》42万字拆解 AI Agent 的Harness骨架与神经 —— Claude Code 架构深度剖析,15 章从对话循环到构建你自己的 Agent Harness。在线阅读网站:
| Date | Stars |
|---|---|
| 2026-07-31 | 4026 |
| 2026-08-02 | 4039 |
| 2026-08-03 | 4039 |
| 2026-08-06 | 4039 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
<div align="center"> **[English](en/README.md)** | **中文** # 御舆:解码 Agent Harness ### Claude Code 架构深度剖析 <br/> > *"一器而工聚焉者,车为多。"* ——《考工记》 > > 两千年前,造一辆马车是最复杂的系统工程:**舆**承载乘者,辕定方向,辐传动力,軎辖为约束——每个构件各司其职,合而为一,车方能行。 > > 今天,构建一个 AI Agent 亦是如此:对话循环为**辕**,工具系统为**辐**,权限管线为**軎辖**,而将这一切承载于其上、使智能体真正运转的运行时框架—— Agent Harness——正是那个**舆**。 > > 古人御舆,驾驭的是天地之间最精密的机械;今人御舆,驾驭的是硅基时代最复杂的智能体系统。 > > 本书因此得名 **舆书**。 <br/> 当所有人都在教你怎么 **用** AI Agent——**这本书带你拆开它。** <br/> [](https://lintsinghua.github.io/) [](https://github.com/lintsinghua/claude-code-book/stargazers) [](https://github.com/lintsinghua/claude-code-book/network/members) [](LICENSE) [](./) [](en/README.md) [](https://github.com/lintsinghua/claude-code-book/commits/main) <br/> <img width="480" src="cover.png" alt="御舆:解码 Agent Harness — Claude Code 架构深度剖析" /> <img width="2880" height="1558" alt="Decoding Agent Harness — A Deep Architectural Analysis of Claude Code" src="https://github.com/user-attachments/assets/39efa7d4-4521-444e-a222-fd0acb756e51" /> </div> --- > **对话循环如何驱动?工具权限为何是四阶段管线?上下文压缩怎样在 token 预算内运转?子智能体如何通过 Fork 继承父级上下文?** > > 读懂 Claude Code 的设计决策,你就拥有了一套**可迁移到任何 Agent 框架**的心智模型。 --- ## 这本书有什么不同 **不做使用教程,不列 Prompt 技巧。** 市面上充斥着"如何写好 Prompt"和"如何调用 Agent API"的指南。但如果你想知道一个生产级 Agent 系统的**骨架**是怎么搭的——几乎没有资料可查。这本书填补了这个空白。 | | 特色 | 说明 | |:-:|------|------| | | **架构分析而非 API 文档** | 不讲"怎么调用",讲"为什么这样设计"——追溯动机、分析权衡、指出反模式 | | | **设计哲学而非使用教程** | 从异步生成器到断路器模式,每章提炼可迁移的设计原则 | | | **可迁移的认知模型** | 无论你用 LangChain、AutoGen、CrewAI 还是从零构建,书中 139 张架构图直接复用 | <details> <summary><b>书中的数据一览</b></summary> | 指标 | 数量 | |------|------| | 全书字数 | 42 万字(中文)/ 75K+ words(English) | | 正文章节 | 15 章 + 4 篇附录 | | Mermaid 架构图/流程图/状态机 | 139 张 | | 覆盖核心子系统 | 工具系统、权限管线、上下文压缩、记忆系统、钩子系统、子智能体调度、MCP 集成、技能插件、流式架构、Plan 模式 | | 分析的设计决策 | 50+ 个"为什么这样设计" | | 术语条目(中英对照) | 100 条 | | 功能标志 | 89 个 | | 注册工具 | 50+ 个 | </details> > **声明:** 本书基于对 Claude Code 公开文档和产品行为的架构分析编写,未引用、未使用任何未公开或未授权的源码。Claude Code 为 Anthropic PBC 产品,本书不隶属于、未获授权于、也不代表 Anthropic。 --- ## 快速导航 > **时间紧张?** 01 → 02 → 04 → 15,拿到核心认知和动手能力就够用 > > **有经验?** 直接读 Part 2 + Part 3,遇到概念缺口回溯 Part 1 > > **系统学习?** 从头到尾,每章做练习,最后 Ch15 构建自己的 Harness(约 2–3 周) > > **查资料?** 直接翻 [附录 A](#appendix--参考资料速查)(模块定位)/ [B](#appendix--参考资料速查)(工具)/ [C](#appendix--参考资料速查)(功能标志)/ [D](#appendix--参考资料速查)(术语) --- ## 目录 ### Part 1. 基础篇 — 建立心智模型 > 理解 Agent 编程的范式转移,建立对 Agent Harness 的整体认知框架。 | # | 章节 | 核心内容 | |:-:|------|---------| | 01 | [智能体编程的新范式](第一部分-基础篇/01-智能体编程的新范式.md) | Copilot → Claude Code 演进;Agent Harness 五大设计原则;Bun + React/Ink + Zod v4 技术栈 | | 02 | [对话循环 — Agent 的心跳](第一部分-基础篇/02-对话循环-Agent的心跳.md) | `while(true)` 异步生成器主循环;五种 yield 事件;十种终止原因;`QueryDeps` 依赖注入 | | 03 | [工具系统 — Agent 的双手](第一部分-基础篇/03-工具系统-Agent的双手.md) | `Tool<I,O,P>` 五要素协议;`buildTool` 故障安全工厂;45+ 工具 × 12 类;并发分区贪心算法 | | 04 | [权限管线 — Agent 的护栏](第一部分-基础篇/04-权限管线-Agent的护栏.md) | 四阶段管线;五种权限模式谱系;Bash 规则匹配;推测性分类器 2 秒 Promise.race | ### Part 2. 核心系统篇 — 深入子系统 > 拆解 Agent Harness 的四大核心子系统——配置、记忆、上下文、钩子。 | # | 章节 | 核心内容 | |:-:|------|---------| | 05 | [设置与配置 — Agent 的基因](第二部分-核心系统篇/05-设置与配置-Agent的基因.md) | 六层配置优先级链;合并规则;安全边界与供应链攻击防御;双层功能门控 | | 06 | [记忆系统 — Agent 的长期记忆](第二部分-核心系统篇/06-记忆系统-Agent的长期记忆.md) | 四种封闭式记忆类型;"只保存无法推导的信息";MEMORY.md 索引;Fork 记忆机制 | | 07 | [上下文管理 — Agent 的工作记忆](第二部分-核心系统篇/07-上下文管理-Agent的工作记忆.md) | 有效窗口公式;四级渐进压缩(Snip→MicroCompact→Collapse→AutoCompac
Excerpt of 6,407 characters
Read on GitHublintsinghua · China
34
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:1d59043f6cd10216, topic:ai-agent, desc:ai agent
matched fp:1d59043f6cd10216, topic:llm
matched fp:1d59043f6cd10216, topic:mcp
matched fp:1d59043f6cd10216, topic:book