pi-book

by antinomie-labVerified

Source-backed architecture notes on building an agent

366
Stars
11
Forks
Vue
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/antinomie-lab/pi-book

Getting Started

Guides for using skills like pi-book.

Security Report

Verified

Last scanned: —

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

README.md

English · 简体中文 · Español

Pi Agent

一本中文架构书的工作区。对象是 pi 仓库的 packages/agent

一个 agent 循环,被做成一个库。

这本书从代码出发,讲清楚 @earendil-works/pi-agent-core 是怎么搭起来的:它承诺什么、拒绝什么、支点在哪里。全书对应 pi 仓库 main 分支的 commit cd20a8d2e。代码引用写成 文件:行号,每个引用就地附上引文——读者不需要打开编辑器,就能核对书里任何一处论断。

多语言: 中文原稿在 agent/(唯一内容源头)。英文与西班牙文译本在 agent/en/agent/es/。Web 阅读器右上角可切换语言。

阅读方式

方式入口适合场景
🌐 Web 在线版books.antinomie.org/pi沉浸式阅读,代码引文高亮;可切换中 / EN / ES
📥 Markdown 版agent/ · en · es下载到本地,配合 AI(Claude / Cursor 等)边读边问、对照源码

读者假设

你会读 TypeScript,知道 LLM API 的基本概念(messages、tool calls、streaming),不需要事先了解 pi 仓库。

组织方式

整体 → 局部 → 横切。

  • 第一部分 · 整体(已发布两章):建立对整个系统的正确认知,不碰实现细节。读完这部分,你应该能凭记忆把这个系统画出来。
  • 第二部分 · 局部:逐个部件展开,顺序是依赖顺序——每章只依赖它前面的章。
  • 第三部分 · 横切:处理那些不属于任何单一部件的问题。

目录只列已发布的章节,后续章节随写随添。

工作区布局

  • agent/ —— 书的原稿(中文),唯一的内容源头。译本在 agent/en/agent/es/。可见 agent/README.mdagent/TRANSLATION.md

  • web/ —— 阅读器(Vite + Vue)。渲染 agent/ 下的中文原稿与译本,不存放正文内容。

    cd web && npm install && npm run dev
    

体例

引文规则、三种卡片组件(插叙 / 岔路 / 为什么不去),范围之外,都写在 agent/README.md 的「体例」一节。

Star History

Star History Chart

Frequently Asked Questions

What is pi-book?

pi-book is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by antinomie-lab. Source-backed architecture notes on building an agent. It has 366 GitHub stars.

Is pi-book safe to use?

Yes. pi-book passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install pi-book?

Clone the repository with "git clone https://github.com/antinomie-lab/pi-book" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is pi-book written in?

pi-book is primarily written in Vue. It is open-source under antinomie-lab on GitHub, so you can review or fork the full source.

Are there alternatives to pi-book?

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 pi-book against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

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 Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

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 Agentsai-agentsanthropicclaude-code
View details

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 Agentsclaude-codeai-tools
View details

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 Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this 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 Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

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 Serversapisai-tools
View details

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 Agentsai-agentsanthropicclaude-code
View details

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 Agentsclaude-codeai-tools
View details