Skip to content

Commit f0cc7d0

Browse files
committed
Update lesson-3-high-level-methodology.md
1 parent b4ab175 commit f0cc7d0

File tree

1 file changed

+70
-41
lines changed

1 file changed

+70
-41
lines changed

website/docs/methodology/lesson-3-high-level-methodology.md

Lines changed: 70 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -116,65 +116,94 @@ As you plan, you're refining your mental model of the system. You're not memoriz
116116

117117
This mental model is what allows you to validate generated code quickly. When the agent completes, you don't read every line. You check: "Does this fit my mental model of how this system works?" If yes, it's probably correct. If no, either your model is wrong (update it) or the code is wrong (regenerate).
118118

119-
## Phase 3: Execute (Precise Prompting)
119+
:::tip Plan Mode Across Different Tools
120120

121-
With your plan complete, you craft a prompt. The quality of this prompt determines whether the agent generates correct code on the first try or requires multiple iterations.
121+
**Claude Code:** Press `Shift+Tab` to enter dedicated plan mode for strategic discussion before execution.
122122

123-
### Anatomy of a High-Quality Prompt
123+
**Other tools (Copilot CLI, Codex, Cursor, etc.):** Most AI coding assistants lack built-in plan mode. Use this baseline prompt template to simulate it:
124124

125-
A good prompt has four components:
125+
<details>
126+
<summary>Click to expand: Generic Plan Mode Prompt Template</summary>
126127

127-
**1. Task Definition** - What specifically needs to be done
128+
```markdown
129+
# PLANNING MODE - READ ONLY
128130

129-
```
130-
Add rate limiting middleware to the Express API for /api/* routes
131-
```
131+
You are in planning mode. DO NOT make any code edits or modifications.
132132

133-
**2. Context** - Relevant patterns, files, and examples
133+
## Your Task
134134

135-
```
136-
Context:
137-
- Middleware pattern: src/middleware/auth.ts (structure to follow)
138-
- Redis client: src/cache/client.ts (connection already configured)
139-
- Apply in: src/app.ts (before route handlers)
140-
```
135+
Analyze the following request and create a comprehensive execution plan:
141136

142-
**3. Constraints** - Requirements, patterns, and boundaries
137+
[USER REQUEST HERE]
143138

144-
```
145-
Requirements:
146-
- Authenticated users: 1000 req/hour
147-
- Anonymous users: 100 req/hour
148-
- Admin role: no limit
149-
- Return 429 with { error, retryAfter } and Retry-After header
150-
- Log rate limit hits (pattern: src/middleware/logging.ts)
151-
- Allowlist from process.env.RATE_LIMIT_ALLOWLIST
152-
```
139+
## Instructions
153140

154-
**4. Edge Cases** - Security, errors, and failure modes
141+
1. **Think deeply** about the problem before responding. Consider:
142+
- What is the actual goal vs. stated request?
143+
- What are potential edge cases or complications?
144+
- What assumptions am I making?
155145

156-
```
157-
Edge cases:
158-
- Redis connection failure: allow request through, log error
159-
- X-Forwarded-For: use leftmost IP (original client, not proxy)
160-
- Sliding window algorithm (not fixed window)
146+
2. **Ask clarifying questions** if ANY of these are unclear:
147+
- Requirements or expected behavior
148+
- Scope boundaries (what's in/out of scope)
149+
- Success criteria
150+
- Technical constraints or preferences
151+
- Existing architecture or patterns to follow
152+
153+
3. **Draft a structured execution plan** with:
154+
155+
**SCOPE**
156+
- What will be changed
157+
- What will NOT be changed
158+
- Affected components/files
159+
160+
**REQUIREMENTS**
161+
- Functional requirements
162+
- Non-functional requirements (performance, security, etc.)
163+
- Dependencies or prerequisites
164+
165+
**IMPLEMENTATION PLAN**
166+
- Step-by-step breakdown
167+
- For each step, specify:
168+
- File(s) to modify
169+
- Type of change (add/modify/delete)
170+
- Key logic or patterns to implement
171+
172+
**VALIDATION**
173+
- How to verify success
174+
- Test cases or scenarios to cover
175+
- Potential risks or rollback plan
176+
177+
## Output Format
178+
179+
- Use clear headers and bullet points
180+
- Be specific about file paths and function names
181+
- Flag any uncertainties or assumptions
182+
183+
Ask your clarifying questions first, then provide the plan.
161184
```
162185

163-
### The Execute Checklist
186+
</details>
164187

165-
Before you submit the prompt, verify:
188+
This template provides a solid baseline for any planning task. In [Lesson 4: Prompting 101](./lesson-4-prompting-101.md), you'll learn the prompt engineering principles behind this structure so you can construct your own custom planning prompts rather than relying on templates.
166189

167-
- [ ] Task is clearly scoped (one feature, one change)
168-
- [ ] You've provided relevant file paths and patterns
169-
- [ ] Constraints are explicit (what to do, what not to touch)
170-
- [ ] Edge cases and security considerations are included
171-
- [ ] Success criteria are clear
190+
:::
191+
192+
## Phase 3: Execute (Two Execution Modes)
193+
194+
With your plan complete, you execute—but how you interact with the agent during execution fundamentally changes your productivity. There are two modes: supervised (actively watching and steering) and autonomous (fire-and-forget). Most engineers start with supervised mode to build trust, then gradually shift to autonomous mode as they develop stronger grounding and planning skills. Here's the counterintuitive truth: the real productivity gain isn't about finishing individual tasks faster. It's about working on multiple projects simultaneously and maintaining extremely long work stretches. That's where 10x productivity actually hides.
172195

173-
Then let the agent work. Don't interrupt mid-stream unless it's clearly stuck in a loop. Trust the process.
196+
### Supervised Mode ("Babysitting")
174197

175-
**Time investment:** 2-5 minutes to craft the prompt.
198+
In supervised mode, you actively monitor the agent as it works. You watch each action, review intermediate outputs, steer when it drifts, and intervene when it makes mistakes. This gives you maximum control and precision—you catch issues immediately and guide the agent toward the right solution in real time. The cost is massive: your throughput tanks because you're blocked while the agent works. You can't context-switch to another task, you can't step away, and you're burning your most valuable resource (attention) on implementation details. Use this mode when you're learning how agents behave, when working on critical security-sensitive code, or when tackling complex problems where you need to build your mental model as the agent explores. This is your training ground for developing the trust and intuition that eventually allows you to let go.
176199

177-
**Payoff:** Agent completes correctly in 5-15 minutes instead of generating broken code that takes 30 minutes to fix manually.
200+
### Autonomous Mode ("Autopilot" / "YOLO")
201+
202+
In autonomous mode, you give the agent a well-defined task from your plan, let it run, and check the results when it's done. You're not watching it work. You're doing other things—working on a different project, attending a meeting, cooking dinner, running errands. You might check your phone occasionally to see if it's blocked or needs clarification, but mostly you're away. This is where the real productivity transformation happens, and it's not what most people think. Yes, sometimes the agent finishes a task faster than you would manually. But that's not the point. The point is **parallel work** and **continuous output**. You can have three agents running simultaneously on different projects. You can maintain 8-hour stretches of productive output while only spending 2 hours at your keyboard. You can genuinely multitask in software development for the first time in history. Even if you could hand-code something in 20 minutes and the agent takes 30, autonomous mode wins if it means you're cooking dinner instead of being blocked. This mode depends entirely on excellent grounding (Phase 1) and planning (Phase 2). If you skip those phases, the agent will drift, hallucinate, and produce garbage. If you do them well, you can trust the agent to execute correctly without supervision. Your goal is to maximize time in autonomous mode—that's where you become genuinely more productive, not just slightly faster.
203+
204+
:::tip The Real 10x Productivity Gain
205+
Autonomous mode isn't about speed per task. It's about working on multiple tasks simultaneously while living your life. A senior engineer running three autonomous agents in parallel while attending meetings and cooking dinner ships more code than the same engineer babysitting one agent through a single task. That's the actual game changer.
206+
:::
178207

179208
## Phase 4: Validate (Architectural Verification)
180209

0 commit comments

Comments
 (0)