1 person reported
All time, since Oct 11.
Nested agents read piped script stdin
“Each print-mode session read the rest of the script as part of its prompt and, in the owner's auto permission mode, treated it as instructions.”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/claude-code/issues/11398/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Nested agents take piped script as instructions via stdin. Happens when claude -p or claude --bg runs inside a script fed to bash on standard input, stdin left attached.
Is this your bug?
File my report- Where
- print and background modes
- Versions
- 2.1.296
- How bad
- Security risk: something exposed, or done without permission.
Not quite your bug?
- Short options despite long-form rule1 person
- Unverified search claims stated1 person
- Writes temp files against rule1 person