PI Architecture EXPLAINED | Agent Loop, Tools, TUI and More

From the creator

How Pi Works: Agent Architecture, Tools, TUI, and Skills In this video, we walk through the architecture of Pi from the inside out: the core agent loop, session/context management, tool execution, extensions, system prompts, the interactive terminal UI, compaction, and skills. The goal is to understand how a minimalist coding agent is put together so you can reason about Pi itself or borrow the same architecture for your own agent projects. --- 🔗 *Links* - Written version: https://alejandro-ao.com/pi-architecture/ - Pi coding agent: https://www.npmjs.com/package/@earendil-works/pi-coding-agent - Pi source/docs: https://github.com/earendil-works/pi-coding-agent - My channel: https://www.youtube.com/@alejandro_ao --- 🤓 *Topics Covered* - Pi agent architecture - Agent loops, tools, and context - TUI, compaction, and skills --- ⏱️ *Timestamps* 0:00 intro 1:14 Agent loop 6:51 Sessions 14:56 Tools 17:19 Extensions 20:12 System prompt 22:52 Interactive entry point 25:20 Terminal UI 27:00 Compaction 33:00 Skills --- 👋 *Connect with me* - YouTube: https://www.youtube.com/@alejandro_ao - Website: https://alejandro-ao.com - X/Twitter: https://x.com/alejandro_ao - LinkedIn: https://www.linkedin.com/in/alejandro-ao/

Choose to Build with AI
Matched to AI Agents

AI Maker Residence 3

The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code. Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.

◆ Fri 09 Oct 2026 ◆ KOKO Cafe, London ◆ With Nick Sarafa
AI Maker Residence 3
Live event
AI Maker Residence 3
Fri 09 Oct 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.