Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pi-atelier: Making AI Coding Assistants Professional

Learn how to use the pi-atelier extension ecosystem to evolve your AI coding assistant from "can write code" to "can manage projects"

Who Is This Book For?

This book is for you if you’re doing any of the following:

  • Writing code with AI coding assistants (pi, Cursor, Copilot, etc.)
  • Feeling like your AI assistant is “almost” good enough
  • Wanting to evolve AI from a “Q&A tool” into a “project partner”

What Is pi-atelier?

pi-atelier is a set of pi extensions that give AI coding assistants project management capabilities.

A regular AI assistant can write code, but:

  • It forgets everything between sessions
  • It tends to go off-track on large tasks
  • It has no rules, making silly mistakes easily
  • It gets dumber as the conversation grows longer

pi-atelier extensions fill these gaps:

🧠 Memory

Let AI retain knowledge across sessions

📋 Planning

Manage three-tier roadmaps: Epic → Story → Task

🛡️ Shepherd

Set rules for AI to prevent mistakes

🔍 Diagnostics

Control context quality + token consumption analysis

📊 Analysis

Search and revisit historical sessions

🗜️ Compression

Keep AI sharp in long sessions

For a detailed comparison, see the table below:

CapabilityExtensionOne-Line Description
Memorypi-memoryLet AI retain knowledge across sessions
Planningpi-roadmapLet AI manage Epic → Story → Task
Shepherdpi-shepherdSet rules for AI to prevent mistakes
Context & Diagnosticspi-context-managerControl what AI sees + token consumption diagnostics
Journalpi-journalGenerate log reports (git activity + session events + memory changes)
Analysispi-session-analyzerSearch and revisit historical sessions
Compressionpi-smart-compactKeep AI smart in long sessions
Schedulingpi-schedulerTimed reminders and recurring tasks
Workflowpi-workflowSub-agent orchestration, parallel execution
Tool Librarypi-shared-utilsCommon utility functions for extension development

Reading Path

Quick Start Path (1 hour)

  1. Chapter 1: An AI’s Memory → Install pi-memory in 5 minutes
  2. Chapter 2: From Memory to Planning → Learn to manage tasks with roadmaps
  3. Chapter 7: Build Your Own Extension → Understand the extension mechanism

Comprehensive Path (3 hours)

Read all chapters in order. Each chapter includes:

  • Pain Point: Real problems you will definitely encounter
  • How It Works: How the extension works internally
  • Use Cases: Real-world scenarios
  • Best Practices: How to use it better

On-Demand Reference

When facing a specific problem, jump directly to the relevant chapter. Each chapter is self-contained.

Quick Install

Add the extensions you need to pi’s settings.json:

{
  "packages": [
    "pi-memory",
    "pi-roadmap",
    "pi-shepherd",
    "pi-context-manager",
    "pi-session-analyzer",
    "pi-smart-compact",
    "pi-scheduler"
  ]
}

Or install everything (pi-workflow and pi-shared-utils are development libraries; regular users don’t need to install them directly):

{
  "packages": [
    "pi-memory",
    "pi-roadmap",
    "pi-shepherd",
    "pi-context-manager",
    "pi-session-analyzer",
    "pi-smart-compact",
    "pi-scheduler",
    "pi-workflow",
    "pi-shared-utils"
  ]
}

Most extensions are ready to use out of the box — no additional configuration needed after installation (though you can customize as needed).

💡 Tip: pi-workflow and pi-shared-utils are development libraries used by other extensions; regular users generally don’t need to install them directly.

Important File Paths

Before you start, here are the key pi files you need to know:

FilePathDescription
Global Config~/.pi/agent/settings.jsonInstall extensions, configure providers
Project Config.pi/settings.json (project root)Project-level custom configuration (overrides global)
Project InstructionsAGENTS.md (project root or .pi/agent/)Project rules injected into the AI
Extension Install Dir~/.pi/agent/npm/node_modules/npm package installation location
Memory Directory.pi/memory/ (project-level)Project-level persistent memory
Global Memory~/.pi/agent/memory/Cross-project general memory

💡 Newcomer Tip: ~ refers to your home directory. On macOS/Linux it’s /home/your-username/, on Windows it’s C:\Users\your-username\.

Conventions

Examples in this book follow these conventions:

  • Code blocks: Commands, file paths, code snippets
  • Bold: Important concepts
  • 💡 Tip: Practical tips and notes

  • Tables: Quick comparisons and reference

Ready to get started? Flip to Chapter 1, and let’s begin with “memory.”

中文