Based on analyzing the code, here is a high-level overview of the main prompts used in this project and how they fit into the overall flow:
The core prompts are defined in the model/prompts package:
-
SysCreate (create.go) - This is the main system prompt that defines the AI's identity as Plandex, an AI programming assistant. It provides detailed instructions on how to collaboratively create a 'plan' with the user to complete a programming task. The prompt covers things like assessing if there is a clear task, breaking down large tasks into subtasks, generating code blocks, using open source libraries, and ending responses.
-
ListReplacementsFn (build.go) - Used when building code files from a plan. It analyzes proposed code updates and produces a structured list of changes to make.
-
SysDescribe (describe.go) - Used to generate a commit message summarizing the changes made in a plan.