Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.268 ·

Local slash-command results can now surface a localCommand field

Both the SDK's final result event and local slash-command dispatch can now include a localCommand field in their output.

Group of 2 Use it now New Features
JSON All of v2.1.268
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.268,
What probably matters to youSection of the release

Unclear What triggers the condition for including local_command, and what value it carries, is not specified in the evidence.

What

  • The final "success" result event emitted at the end of an SDK/print-mode query can now optionally include a local_command field, built from a helper call, alongside its existing fields.
  • The command-dispatch return object also gained a conditional localCommand field, included only when the engine did not defer the slash command to the model (i.e. engineDeferredSlash is false).

Why This surfaces which local slash command handled a request directly in the result output, useful for SDK consumers and tooling that need to know a command was resolved locally rather than by the model.

Read from
Names in the bundlelocal_command
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up local_command, on Agent SDK reference - TypeScript. local_command?: string; agent-sdk/typescript see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat triggers the condition for including local_command, and what value it carries, is not specified in the evidence.
Anthropic's documentation agreesAnthropic's documentation has since written up local_command, on Agent SDK reference - TypeScript.

See this entry in the whole of v2.1.268 →

Feedback