pi-from-scratch

by SaladDay · Agent Tool · ★ 1.1k

About pi-from-scratch

PI from Scratch 从零手写一个能读文件、改代码、执行命令的 TypeScript coding agent。 项目沿着 pi 的数据流拆解,需要什么、我们造什么,所有组件都是符合直觉的。 删除 pi 的工程细节,留下 pi 的核心思想。 放轻松,这是一篇文章,不是一本书,你会很容易看懂。 网站把文章和源码放在一起。阅读推进时,右侧编辑器会逐步补全代码,当你看完的时候,nano-pi 的代码也会全部呈现在编辑器中。 同时设计了一个 Trace 跟踪,可以打断点逐行过代码,希望能帮助大家理解代码执行流。 在线阅读 PI from Scratch 文章保留古法手敲,尽可能没有ai味,希望大家读的开心。 运行 nano-pi 需要 Node.js 22 或更高版本,以及一个 OpenAI 兼容 API。 可选环境变量: :模型名 :OpenAI 兼容接口地址,默认 线上 trace 是预先生成的静态数据,浏览网站不会发起模型请求。 本地运行教学网站 Star History Thanks LINUX DO 社区 pi-book License MIT

agent-loopai-agentcoding-agentllmllm-agentpipi-agenttool-callingtypescripttypescript-tutorial

Quick Facts

Stars1,051
Forks74
LanguageTypeScript
CategoryAgent Tool
LicenseMIT
Quality Score58.8233861144192/100
Last Updated2026-08-18
Created2026-08-09
Platformsnode
Est. Tokens~14k

Compatible Skills

These tools work well together with pi-from-scratch for enhanced workflows:

  • PI-Desktop — semantic(0.48)+complementary+rare_topics+same_lang+similar_pop+shared_platform (71%)
  • pi-elixir — semantic(0.43)+complementary+rare_topics+same_lang+similar_pop+shared_platform (69%)
  • pi — semantic(0.41)+complementary+rare_topics+same_lang+similar_pop+shared_platform (69%)

More Agent Tool Tools

Explore other popular agent tool tools:

View all Agent Tool tools →

Popular TypeScript Agent Tools

  • openclaw ⭐ 387.2k · Codex Skill
  • n8n ⭐ 202.1k · MCP Server
  • dify ⭐ 153.3k · MCP Server
  • gstack ⭐ 129.2k · Agent Tool
  • gemini-cli ⭐ 106.6k · MCP Server

Frequently Asked Questions

What is pi-from-scratch?

pi-from-scratch is 600 行 TypeScript 写成的超级迷你版 pi,让你轻松从 0 写出属于你的 pi-agent. It is categorized as a Agent Tool with 1.1k GitHub stars.

What programming language is pi-from-scratch written in?

pi-from-scratch is primarily written in TypeScript. It covers topics such as agent-loop, ai-agent, coding-agent.

How do I install or use pi-from-scratch?

You can find installation instructions and usage details in the pi-from-scratch GitHub repository at github.com/SaladDay/pi-from-scratch. The project has 1.1k stars and 74 forks, indicating an active community.

What license does pi-from-scratch use?

pi-from-scratch is released under the MIT license, making it free to use and modify according to the license terms.

View on GitHub → Browse Agent Tool tools