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.227 Home All releases olderv2.1.226 v2.1.228newer
Claude Code v2.1.227

device_bash refuses on any machine whose sandbox is not fully confining

Not switched on
Useful3 Signal4
Cloud Sessions

The local-command tool refuses to run unless your sandbox is strict and fully confining.

Sandbox preconditions for the local command bridge are enforced, but the bridge itself is flag-gated.

What

Before running anything, the local-command tool checks the device's sandbox and refuses with a specific reason if sandboxing is off or unsupported on the platform, failed to start, is not in strict mode, allows all Unix sockets, or is set to inject real credentials into network requests. Each refusal returns an error saying what to change on that device.

Details
  • successful runs emit tengu_device_bash_served with whether the exit code was zero, duration, whether output was truncated, and whether the session matched
  • separate events cover timeouts, output limits, cancellation and failures
  • refusals carry distinct reason codes, so a device that never runs commands can be told apart from one that ran and failed
Evidence

tengu_device_bash_served

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.227 →