In this tutorial, you’ll learn how to use Build in Potpie to generate code that matches your codebase’s exact patterns and review every change as a diff before it reaches the repository. To understand how Build works, see the Build mode page.Documentation Index
Fetch the complete documentation index at: https://docs.potpie.ai/llms.txt
Use this file to discover all available pages before exploring further.
Workflow
Clarifying questions
Potpie surfaces a set of clarifying questions as multiple choice options. Answers lock in the scope and requirements before the specification begins.

Specification
Potpie parses the codebase against the confirmed requirements and generates a specification covering every file to create or modify, implementation details for each change, and dependency relationships between affected components.

Plan
Once the spec is confirmed, Potpie generates a plan.
- Summary
- Architecture
- Plan items
An explanation of what changes, which parts of the codebase are in scope, and how the new code fits the existing system.

Code generation
Potpie generates the code and presents every change as a diff. Changes match the existing code style and conventions identified during specification.






