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/

Stop watching · start building
Matched to AI Agents

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional £25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

◆ Fri 13 Nov 2026 ◆ KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 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.