Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Asking for a plan before any edits
card 3 of 6
How to ask for a plan
builds on: Describing a task: goal, context, constraints, check
**Option A:** switch on your tool's plan mode or read-only mode. Names vary, so check its docs. The tool itself then blocks edits.
**Option B:** use a plain instruction: *"Don't change any files yet. Explore, then propose a plan."* The tool doesn't enforce this, so watch for `⚙ Edit` lines.
Ask the plan to list: the files to change, the steps, its assumptions, its open questions, and how it will check the result.
Then correct the plan, or reply *"go ahead"*.
Terms on this card
- plan mode
- A setting in some agent tools where the agent can read and explore but is blocked from changing files. The exact name varies by tool.
- read-only mode
- A tool setting that lets the agent look at files but not edit them or make changes.
- ⚙ Edit
- Notation used in this course for a tool action where the agent changes a file, as opposed to just reading it.
- read-only
- An action that only looks at things, such as listing or reading files, and changes nothing.
Lesson goal: Ask the agent to explore and propose a plan without changing files, using a plan or read-only mode or a plain instruction. Explain why this reveals misunderstandings before they become code. ·
the whole lesson