Rank, 14 days: 70 on the Claude Code sheet
2 people asked for

All time, since Nov 9.

Agent identity in Bash env

“A command run from a subagent's Bash tool has no way to tell which agent ran it.”

What gets counted gets built. Pile on.

Paste this into your agent. It files your request, with what you need it for.

I want this: rapsheet.dev/sheets/claude-code/issues/27093/file
Follow it to file my request. 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

Identify the calling agent from Bash tool processes. A subagent's shell only gets the parent's CLAUDE_CODE_SESSION_ID, so workers and tool calls look identical, while hooks receive agent_id and tool_use_id.

Is this your request?

File my request
Where
Bash tool
Versions
2.1.322

Original reports2, newest first

  1. Tell a subagent's shell which agent it is, so a script can find that agent's own transcript#108869
  2. Expose agent_id and tool_use_id to Bash tool processes (CLAUDE_CODE_AGENT_ID, CLAUDE_CODE_TOOL_USE_ID)#108524

Do you work on Claude Code?

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