Course outline
Agentic Engineering: the hands-on course · Module 3: Planning & task design
Plan first: reviewing and steering the agent's plan
The cheapest moment to change direction is before any code exists. Ask for a plan, spot the red flags, and steer in a few precise lines.
Lesson 11 / 24 · ⏱ 7 min
A wrong direction costs a sentence to fix in a plan and an hour to fix in a diff. That’s the whole argument for planning first.
For any task bigger than a quick fix, I ask the agent to read the code and propose a plan before it touches a file. Then I review the plan the way I’d review a colleague’s approach at a whiteboard.
The plan-first loop
- BriefGoal and acceptance criteria
- PlanAgent reads code, proposes steps, no edits
- ReviewYou check the approach and the red flags
- SteerShort, precise corrections
- ExecuteAgent builds against the approved plan
↺ Re-plan when reality disagrees with the plan
Some agents have a dedicated read-only planning mode. If yours doesn’t, just ask for it in plain words.
Read the brief below. Before changing any file, explore the relevant code
and reply with a plan:
1. What you found: the files and patterns that matter, in 3-6 bullets
2. Your approach, as numbered steps small enough to commit one by one
3. Files you'll create or change
4. Assumptions you're making and questions for me
5. How you'll verify each acceptance criterion
Don't write code yet. Wait for my go.
[brief]
The “assumptions and questions” part is the most valuable. It’s where the agent tells you what it had to guess.
Red flags in a plan
Flip the cards. Each front is something I regularly see in agent plans, each back is what I do about it.
🃏 Plan red flags
Tap a card to flip it
Steer in a few lines
When the plan is 80% right, don’t rewrite it. Answer its questions and correct the specific points, then approve.
✕ Vague steering
- –“Hmm, not sure about this, try again”
- –“Make it simpler”
- –Rewriting the entire plan yourself
- –Approving without reading the assumptions
✓ Precise steering
- +“Step 2: reuse the existing CSV helper, don’t write a new one”
- +“Q1: yes, empty ranges return a header-only file”
- +“Drop step 5, the UI is out of scope”
- +“Rest looks good. Go, and commit after each step.”
Once execution starts, the plan isn’t sacred. If the agent hits something the plan didn’t anticipate, I want it to stop and say so, not quietly improvise. I add that as a line in the brief: “If the plan stops making sense, stop and tell me.”
Before you move on
✅ Key takeaways
0 / 5 completed