Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.122 Home All releases olderv2.1.121 v2.1.123newer
Claude Code v2.1.122

Remote Session Bash Command Event

What

Adds a new bash_command event type that allows remote clients (e.g. Claude Code Remote) to dispatch shell commands directly to a session without going through the model.

Details
  • The event schema includes a command string and optional cwd for the working directory
  • Executed via a one-shot /bin/sh -c (or pwsh on Windows) subprocess, bypassing the model entirely
  • Output includes stdout, stderr, and exit code wrapped in XML tags
  • This allows CCR clients that surface a dedicated terminal UI to run shell commands natively
Evidence

New Zod schema with type: "bash_command" (search for "bash_command") and handler function sendBashCommand (search for "[RemoteSessionManager] Sending bash_command to session")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.122 →