[FEATURE] Support prompt with `-` prefix
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
~/ claude --verbose --print 'You are Claude, please say hello to me'
Hello! How can I help you today?
~/ claude --verbose --print '- You are Claude, please say hello to me'
error: unknown option '- You are Claude, please say hello to me'
Why we need allow prompt with - prefix? See terminal-bench-2/pytorch-model-recovery/instruction.md. The instruction start with -.
Proposed Solution
claude --verbose --print --prompt='- You are Claude, please say hello to me'
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
We can't change it to
echo '- You are Claude, please say hello to me' | claude --verbose --print
Because this will improve the terminal bench score.
For example:
claude --verbose --print 'Configure a git server so, ....'
If the model run BASH tool with pkill git, it may kill theclaude --verbose --print 'Configure a git server so, ....' process. This is a bad pattern in the model, and it should have received a score of 0. If we change it into echo with pipe, then pkill git will not kill the claude process. This is a breaking change for agent benchmark.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗