5 ms·
-p
by scottmf 8mo ago
-p
- ryandrake 8mo agoOh wow, nice. Does it remember context from run to run?
- scottmf 7mo agoJust tested and yes, but it's a little tricky so your `c` script will have to manage session IDs: 1. Start a new session and provide a random UUID: claude -p "The secret word is potato" --session-id 550e8400-e29b-41d4-a716-446655440000 > I see you've shared a secret word. I'll keep that in mind — the secret word is **potato**. > Is there something I can help you with today? 2. Use the -r/--resume flag with the same UUID for follow up messages: claude -p "What is the secret word?" -r 550e8400-e29b-41d4-a716-446655440000 > The secret word is **potato**.