Skip to content

Commit 849f8e3

Browse files
committed
Update Blog post
1 parent e1c8c40 commit 849f8e3

1 file changed

Lines changed: 30 additions & 13 deletions

File tree

src/blog/context-engineering.md

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,18 @@ Its mission is simple: to provide a structured, repeatable workflow for building
3939

4040
## How It Works: The Two-Step Workflow
4141

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.
4343

4444
**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:
4648

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.
4952

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.
5154

5255
## Why This is a Game-Changer for Gemini Users
5356

@@ -66,18 +69,32 @@ You can find the complete open-source project on GitHub.
6669
[Source code](https://github.com/Apoo711/context-engineering-gemini)
6770

6871
Getting started is simple:
69-
```bash
70-
# 1. Clone the repository
72+
73+
**1. Clone the repository and follow the setup instructions in the README.md to configure your API key.**
74+
```shell
7175
git clone https://github.com/Apoo711/context-engineering-gemini
76+
```
77+
78+
**2. Create a feature request by copying INITIAL.md to a new file named request.md and filling it out.**
7279

73-
# 2. Define your feature in INITIAL.md
74-
# ...
80+
**3. Generate the plan**
81+
```shell
82+
# On macOS/Linux
83+
chmod +x .gemini/scripts/generate-prp.sh
84+
./.gemini/scripts/generate-prp.sh request.md
85+
86+
# On Windows
87+
bash ./.gemini/scripts/generate-prp.sh request.md
88+
```
7589

76-
# 3. Generate the plan
77-
./.gemini/scripts/generate-prp.sh INITIAL.md
90+
**4. Execute the plan**
91+
```shell
92+
# On macOS/Linux
93+
chmod +x .gemini/scripts/execute-prp.sh
94+
./.gemini/scripts/execute-prp.sh PRPs/request_prp.md
7895

79-
# 4. Execute the plan
80-
./.gemini/scripts/execute-prp.sh PRPs/initial_prp.md
96+
# On Windows
97+
bash ./.gemini/scripts/execute-prp.sh PRPs/request_prp.md
8198
```
8299

83100
## Conclusion: Building with an AI Partner, Not Just a Tool

0 commit comments

Comments
 (0)