⌨️--include-partial-messages Flag
Also known as claude --include-partial-messages, Partial messages
It streams the answer in small pieces as Claude writes it.
Think of it like
It is like you watch a friend write, word by word. You do not wait for the whole note.
Example
Lucy's web app shows Claude's reply in a chat bubble. With --include-partial-messages, the words show up as Claude writes them.
Why it matters
Users trust a reply they can see coming more than a long wait for a block of text.
Definition
Example code
bash
claude -p --output-format stream-json --verbose --include-partial-messages "Explain recursion"Common mistake
Key takeaways
- 1Small pieces. As they are written.
- 2Needs stream-json. And -p.
- 3Whole message. Still comes at the end.