build-ai-agent-platform

《如何从零构建 7×24 小时 AI Agent》—— 拆解 30 万行真实 AI Agent 平台的技术书

64
Stars
7
Forks
TypeScript
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/openkursar-flynn/build-ai-agent-platform

快速入门

使用 build-ai-agent-platform 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

如何从零构建 7×24 小时 AI Agent

一本讲 AI Agent 系统设计思想的技术书。从问题出发,教设计原则,用 30 万行真实代码做案例。

🌐 在线阅读https://book.imwangfu.com · 💬 反馈与讨论Issues · Discussions


这本书讲什么

本书像《设计模式》一样,用一个真实项目(30 万行 TypeScript,开源 AI Agent 平台)作为贯穿全书的案例,讲 AI Agent 系统从引擎到调度到浏览器自动化的设计思想。每一节从一个具体问题开始——“上下文窗口塞满了怎么压缩才不丢关键信息”“一个 7×24 运行的数字员工,凭什么会越用越聪明而不是越来越笨”——引出设计原则,再用真实代码验证。

你读完能拿走的不是“代码怎么写的”,而是“我的项目遇到类似问题时该怎么想”。

Halo AI 工作站 不是完美的参考实现——书里既展示做得好的设计决策,也展示务实的妥协和它们的代价。后者往往比前者更有教学价值。

覆盖范围

13 章 + 前言 + 附录,从工程地基到 AI 引擎到浏览器自动化:

  • 设计基础:运行时 Adapter、声明式能力边界、分层与依赖方向、性能预算、命名空间迁移
  • AI 引擎:Agent 循环、上下文压缩、多供应商协议归一化、前缀缓存
  • 数字员工平台:App Spec、持久化调度、Escalation 机制、事件路由
  • AI 浏览器:Accessibility Tree、反检测、模块化工具体系
  • 工程实践:流式渲染、远程访问、稳定性保障、AI 编程方法论

适合谁

想理解 AI Agent 系统设计的开发者。 你有 1-3 年经验,能写业务代码,但没机会接触大型系统的架构决策——不是因为你学不会,是因为工作环境没有这个机会。你想知道:一个真正跑在生产环境的 Agent 系统,从引擎到调度到浏览器自动化,每一层是怎么设计的、为什么这样设计、放弃了什么方案。这本书从问题出发讲设计思想,用真实代码做案例,你读完能把这些思路用在自己的项目里。

正在构建 AI 工具但卡在“从能用到好用”的独立开发者。 你的原型能用了,但启动越来越慢、模块之间依赖混乱、多平台维护成本越来越高。这些不是 AI 特有的问题——它们是任何达到一定规模的系统都会遇到的工程问题。本书每一章讲的设计思想(运行时 Adapter、性能预算、分层隔离、命名空间迁移……)都可以直接应用到你的项目里,不依赖 Halo AI 工作站的具体技术栈。

好奇“一个人加 AI 能做到什么程度”的人。 第十三章专门回答这个问题。不是鸡汤,是方法论:需求澄清的三步螺旋、AI 律法的三层抽象、交叉审查工作流——这些方法是我用来构建整个 Halo AI 工作站的,也是用来写这本书的。

这本书和市面上大多数 AI Agent 书籍的主要区别在于:它是打开引擎盖讲的,不是在引擎盖外面讲的。每章从一个真实的工程问题出发,讲方案怎么来的、备选是什么、放弃了什么。

完整目录

#章节标题状态
序言为什么写这本书
第一章全景 — AI 数字员工是什么
第二章地基 — 三端统一的应用架构
第三章大脑 — AI 引擎的工程化
第四章兼容层 — 让大脑听懂所有语言
第五章灵魂 — 数字员工的定义与管理
第六章心脏 — 自主执行引擎
第七章记忆 — 让数字员工越来越聪明
第八章双手 — AI 浏览器的构建
第九章嘴巴 — 通信与通知体系
第十章面孔 — 前端交互工程
第十一章盔甲 — 生产环境的稳定性保障
第十二章市场 — App Store 与生态
第十三章造物 — 一个人 + AI 如何构建 30 万行代码
附录关键术语 / 源码导览

✅ 已发布 · ⏳ 待发布。Star + Watch 本仓库可订阅更新。


作者

Flynn,人工智能 & 前端 & 后台,前腾讯文档核心工程师,擅长大型软件架构(文档 / IDE / AI 桌面);2024 年率先在金融领域试点国产通用 Agent——全流程自动化编码和研发,持有多项 AI 专利(Agent Loop、压缩、记忆等);首个可视化 & 远程 AI Agent 桌面(2025 年 10 月)——Halo AI 工作站 项目作者。


提交反馈

类型入口
📝 错别字 / 技术错误提交勘误
💡 章节建议 / 内容补充提交建议
🤔 对内容有疑问提出问题
💬 自由讨论Discussions

本仓库结构

build-ai-agent-platform/
├── book/                  ← 已发布章节的 Markdown 源
│   ├── index.md
│   ├── 00-preface.md
│   ├── about.md
│   └── public/
├── .vitepress/            ← VitePress 配置 + 自定义主题
│   ├── config.ts
│   └── theme/
├── .github/
│   └── ISSUE_TEMPLATE/    ← 反馈模板
├── package.json
├── vercel.json
└── LICENSE

本地预览

npm install
npm run dev          # 本地预览,默认 http://localhost:5173
npm run build        # 构建静态站
npm run preview      # 预览构建产物

部署

已配置 GitHub Pages + Actions 自动部署。

每次推送 main 分支,会自动触发 .github/workflows/deploy.yml,构建并发布到 GitHub Pages,通常 1-2 分钟内上线。

无需任何手动配置。

若未来需要迁移到 Vercel,仓库根目录保留了 vercel.json 作为预设配置。


协议

  • 书稿内容book/ 下的所有 Markdown):CC BY-NC-ND 4.0
    • ✅ 共享、署名
    • ❌ 商业使用、禁止演绎
  • 代码部分.vitepress/ 配置、主题、构建脚本):MIT

完整许可见 LICENSE

参考源码

本书拆解的项目 Halo AI 工作站已完整开源:

https://github.com/openkursar/hello-halo

书中所有源码引用、架构讨论、设计决策均可在该仓库中验证。

常见问题

What is build-ai-agent-platform?

build-ai-agent-platform is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by openkursar-flynn. 《如何从零构建 7×24 小时 AI Agent》—— 拆解 30 万行真实 AI Agent 平台的技术书. It has 64 GitHub stars.

Is build-ai-agent-platform safe to use?

build-ai-agent-platform returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install build-ai-agent-platform?

Clone the repository with "git clone https://github.com/openkursar-flynn/build-ai-agent-platform" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is build-ai-agent-platform written in?

build-ai-agent-platform is primarily written in TypeScript. It is open-source under openkursar-flynn on GitHub, so you can review or fork the full source.

Are there alternatives to build-ai-agent-platform?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh build-ai-agent-platform against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情