⌨️--prompt-suggestions Flag
Also known as claude --prompt-suggestions, prompt_suggestion
It adds a guess at the next prompt to the stream.
Think of it like
It is like a friend who guesses what you will ask next and says it for you.
Example
Lucy's app shows one button under each reply. Its label comes from the prompt_suggestion message, so the user can go on with one tap.
Why it matters
A good next step on a button saves the user from thinking of what to type.
Definition
Example code
bash
claude -p --prompt-suggestions --output-format stream-json --verbose "Explain this file"Common mistake
Key takeaways
- 1After each turn. When there is one.
- 2prompt_suggestion. The message type.
- 3Needs --verbose. And stream-json.