An illustrated guide to Pipal
The Pipal Book
How a small, durable AI harness works, from one message to the machine room.
Pipal is a chat workspace you run yourself. One Node.js server process, one SQLite file for conversations, and an assistant that can pick up a half-finished answer after a crash. This book takes it apart, slowly. Start with the pictures. Open the deep dives when you want the source.
The parts of the book
Full contentsPart I · Seed
Start here
Part II · Roots
Built on Pi
Part III · Trunk
The life of a message
Part IV · Leaves
The Svelte workspace
Part V · Branches
What the assistant can do
Part VI · Ground
Where the agent works
Part VII · Tending
Running Pipal
Appendix
Reference
How to read this book
Two depths
The tour is the main text. Deep dives stay folded until you want the mechanisms, file names, and quoted code. The control in the header opens or closes all of them.
One colour per place
A thing has the same colour in every figure in the book.
- Browser
- The Svelte workspace in your tab
- Server
- Hono and the host process: packages/server
- Core
- Pipal’s own rules: packages/core
- Pi
- The harness underneath: Pi Durable and Pi AI
- Disk
- SQLite files, uploads, tokens and keys
- Outside
- Model providers and the public internet
- Docker
- Containers and volumes
- Dev machine
- The persistent development machine reached over SSH
Every quote is checked
Each build checks code excerpts and citations against Pipal at 21b9686.
Keys
- ← →
- Go between chapters
- /
- Search the book
- d
- Switch depth
Four ways to read
I am new to all of this
The shortest route to a working mental model.
I build web apps
Hono, server-sent events and a Svelte 5 client, end to end.
I want the agent internals
Durability, admission, tools, MCP, delegation, approvals and workers.
I am going to run it
Where things live, how to configure and deploy them, and what to do when they break.