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?

  1. Short options despite long-form rule1 person
  2. Unverified search claims stated1 person
  3. Writes temp files against rule1 person

Original reports2, newest first

  1. Ran claude -p inside a script fed on standard input; print-mode agents took the script as instructions, ran copies of it, and started more agents#101389
  2. Ran claude --bg with no prompt inside a script fed on standard input, so a background agent took the script as its instructions#101388

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.