Pi, the AI agent that runs in your terminal: installing it, picking models, tools and context, session trees, settings and skills, extensions, automation and the SDK. In 20 lessons you get to the point where you can reshape Pi around your own work and hand it tasks safely. Every command output shown here was actually produced with Pi 1.6.1.
about 1.5 hours in total (estimate)
The 20 lessons are split into 5 chapters. We recommend going in order from chapter 1, but feel free to dip into whatever catches your interest. Note: Pi doesn't run inside the browser, so try the commands in a terminal on your own machine. Agent responses change every time, so they are not included. The content matches Pi 1.6.1 (November 2026).
Take this chapter's review quiz ›
Learn what Pi does and what it deliberately leaves out, then install it, connect a model, and choose one. You'll finish able to send requests in interactive mode and redirect Pi mid-task.
Take this chapter's review quiz ›
Choose which tools Pi gets, decide which instructions it reads every time and which projects you trust, and handle long conversations with the session tree and compaction. By the end you'll be able to explain exactly what is being sent to the model.
Take this chapter's review quiz ›
Tailor Pi to your own and your team's work with settings.json, prompt templates, and skills. You'll finish by setting up a complete .pi for your repository and confirming with a command that it loaded.
Take this chapter's review quiz ›
Add commands and tools with TypeScript extensions, and block risky calls before they run. You'll finish by building an extension that blocks dangerous commands and confirming it works with a scripted fake model.
Take this chapter's review quiz ›
Turn Pi from a tool you type into a component that scripts and other programs call. You'll learn the differences between print, JSON, and RPC modes and the SDK, draw the lines that keep it safe, and finish by automating diff reviews.
Once you finish all 20 lessons, firm up where to draw the line on delegation and how to read diffs in Hands-On AI Coding for Beginners, or build your extension-writing skills in TypeScript for Beginners. To put your automation into CI, try GitHub Actions Fundamentals. A membership unlocks every course.