For the curious
How to talk to Claude · lesson 8 of 8
Two extra things, for anyone who wants to know more.
What’s the first one?
claude -p is called headless mode (without an interface): it answers once and that’s it, without a conversation.
$ cat reviews.txt | claude -p "what are the three things customers praise most often?"
It’s used in automation. You’ll see it in detail in module 10.
And the second one?
When Claude repeats the same mistake, the conversation is already full of failed attempts.
So what do I do?
/clear with a better prompt helps more than one more correction:
- One more correction: Claude starts from all the failed attempts - /clear and a better prompt: it starts clean, with what you learned from them
Now you write that better prompt.