common-workflows.md +29 −1
221 221
222## Use Plan Mode for safe code analysis222## Use Plan Mode for safe code analysis
223 223
224224Plan Mode instructs Claude to create a plan by analyzing the codebase with read-only operations, perfect for exploring codebases, planning complex changes, or reviewing code safely.Plan Mode instructs Claude to create a plan by analyzing the codebase with read-only operations, perfect for exploring codebases, planning complex changes, or reviewing code safely. In Plan Mode, Claude uses [`AskUserQuestion`](/en/settings#tools-available-to-claude) to gather requirements and clarify your goals before proposing a plan.
225 225
226### When to use Plan Mode226### When to use Plan Mode
227 227
283 283
284See [settings documentation](/en/settings#available-settings) for more configuration options.284See [settings documentation](/en/settings#available-settings) for more configuration options.
285 285
286## Let Claude interview you
287
288For large features, start with a minimal spec and let Claude interview you to fill in the details:
289
290```
291> Interview me about this feature before you start: user notification system
292```
293
294```
295> Help me think through the requirements for authentication by asking questions
296```
297
298```
299> Ask me clarifying questions to build out this spec: payment processing
300```
301
302Claude uses the [`AskUserQuestion`](/en/settings#tools-available-to-claude) tool to ask you multiple-choice questions for gathering requirements, clarifying ambiguity, and understanding your preferences before writing any code. This collaborative approach produces better specs than trying to anticipate every requirement upfront.
303
304This behavior is most active in Plan Mode. To encourage it in other modes, add guidance to your `CLAUDE.md` file:
305
306```markdown theme={null}
307Always ask clarifying questions when there are multiple valid approaches to a task.
308```
309
310<Note>
311 If you're building applications with the Agent SDK and want to surface clarifying questions to your users programmatically, see [Handle approvals and user input](https://platform.claude.com/docs/en/agent-sdk/user-input#handle-clarifying-questions).
312</Note>
313
286***314***
287 315
288## Work with tests316## Work with tests