You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/blog/context-engineering.md
+30-13Lines changed: 30 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,15 +39,18 @@ Its mission is simple: to provide a structured, repeatable workflow for building
39
39
40
40
## How It Works: The Two-Step Workflow
41
41
42
-
The framework's power lies in its simple but effective two-step process, which separates planning from implementation.
42
+
The framework's power lies in its two-step process, which separates high-level planning from automated implementation.
43
43
44
44
**Step 1: The Blueprint (Generation)**
45
-
First, you don't just ask the AI to write code. You start by running the `generate-prp.sh` script with a simple feature request. This script asks Gemini to act as a senior engineer and create a detailed technical plan, or a **Product Requirements Prompt (PRP)**. This plan includes a proposed file structure, a task breakdown, and even a validation plan. The AI is forced to think through the entire problem *before* writing a single line of code.
45
+
First, you don't just ask the AI to write code. You start by creating a feature request and running the `generate-prp.sh` script. This script sends your request to Gemini and asks it to act as a senior engineer, creating a detailed technical plan, or a **Product Requirements Prompt (PRP)**. This forces the AI to think through the entire problem before writing a single line of code.
46
+
**Step 2: The Build (The AI Agent)**
47
+
This is where the magic happens. Once you have the PRP, you kick off the `execute-prp.sh script`. This script is a true **AI agent** that manages the entire development process for you:
46
48
47
-
**Step 2: The Build (Execution)**
48
-
Once you have this detailed blueprint, you kick off the `execute-prp.sh` script. This takes the comprehensive PRP and gives it back to Gemini with a clear instruction: "Build this." Because all the research, planning, and context gathering is already done, the AI can focus entirely on executing the plan and writing clean, correct code that fits perfectly into your project.
49
+
1. It sends the detailed PRP to Gemini to get a step-by-step implementation plan.
50
+
2. It **parses** the AI's response, identifying shell commands to run and code files to create.
51
+
3. It then executes this plan step-by-step, **pausing to ask for your confirmation** before running any command or writing any file.
49
52
50
-
This separation of planning from implementation is the key. It prevents the AI from making "good guesses" and ensures it follows a pre-approved, context-aware plan every time.
53
+
This allows you to sit back and supervise as the AI builds the entire feature for you, right in your local terminal, with you in complete control.
51
54
52
55
## Why This is a Game-Changer for Gemini Users
53
56
@@ -66,18 +69,32 @@ You can find the complete open-source project on GitHub.
0 commit comments