piagent_
← ~/map

$ cat ~/map/learn-pi-agent.md

learn-pi-agent

A chapter-by-chapter rebuild of Pi's agent harness, from one LLM call to a working coding agent.

tutorials✓ Sep 4

Facts

repository
github.com/yiz-hhh/learn-pi-agent ↗
GitHub Stars
★ 4
Forks
0
license
MIT
npm / mo
—
last push
Sep 4, 2026

## TL;DR

A bilingual study project that rebuilds the Pi agent harness in ordered chapters — from a minimal LLM call through tool calling, sessions, compaction, skills, and extensions to an assembled coding agent.

## Key points

## FAQ

Q Is this an official Pi tutorial?

No — it is an independent study project that reads Pi's Agent Core and Coding Agent implementations as its reference.

Q What does the final chapter cover?

Chapter 12 assembles the coding agent from the coding tools built so far; chapter 11 just before it composes permission gates, plan mode, and subagents on the extension runtime.

## References

## Related entries

## Guides

Last updated: Sep 4, 2026