Why I switched to Pi...
In a Nutshell
Pi Agent's core advantage is its fully customizable extension system that lets you modify every part of the harness—tools, hooks, UI, session management—unlike Cloud Code or Codex which lock down their internals. This enables building agent systems like Post AI by extending the SDK with MCP, memory, permission gates, and custom workflows, while token-optimizing packages like Pi Hyper can cut token usage 80-90% by pre-processing tool results. The five packages (AI, agent loop, coding agent, TUI, up trader) provide the building blocks to scaffold both local and web-hosted AI products from scratch.
These notes were generated by AI and may contain inaccuracies.
Thanks HubSpot for sponsoring this video. If you're into AI agents, you've probably heard about this Pi agent quite a lot recently. Most people know Pi agent because it was what powering Open Claw. The goal is to give a breakdown of what's special about Pi agent, why it is one of the best option for building agent systems, and how to use Pi to build some agentic system like Post AI from scratch, which is an agent designed to launch and run a business.
Before diving into Pi, many users are already using coding agents like Cloud Code or Codec everyday. However, there's probably a 10 or even 100X difference between someone who just opens terminal, sends a prompt, and hopes for the best versus someone who fully utilizes every aspect of what this modern harness provides. Things like what type of Cloud or MD or agent.md actually works, how to structure code base that is agent ready, what hooks are set up, how to keep long running work on track with task state, and how to run more post sessions without creating a complete mess.
If you want to be on the right side of the gap, then the free Cloud Code Playbook created with HubSpot will get you there. This is a playbook that covers prompting patterns, how to set up Cloud or MD and project context, which hooks and guardrails to use, and how to manage task state for longer work. The favorite part is probably the parallel sessions setup that enables running not just one or two sessions, but 10 to 15 different agent sessions safely at the same time.
Sign in to read the full notes
Get access to AI-generated notes, topic timestamps, and more.