Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Run tool calls from code with Code Mode changedcode-mode

Nearest release: v2.1.334, published 3 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 1 Dec 2026 15:25 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 1 Dec 2026 15:37 UTC.

Upstream edited
Recorded here
Lines+9added
Lines−2removed
From line 51 where the diff opens
First seen 13 Nov 2026 this site's first read of the page
Recorded edits19to this page, all time

#### Trace calls from code

The whole hunk

from line 51, old and new numbered
/
lines
from line 51
5151* **Surface**: an interactive `claude` session in a terminal. Code Mode doesn't work with the VS Code panel, the Desktop app, or cloud sessions
5252* **Agent teams**: to use Code Mode with [agent teams](https://code.claude.com/docs/en/agent-teams.md) on, you need v2.1.326 or later. Teammates run in Code Mode in the default [in-process display mode](https://code.claude.com/docs/en/agent-teams.md#choose-a-display-mode), and start without it in split panes
5353* **Mods**: to use Code Mode with a [mod](https://code.claude.com/docs/en/plugins/mods/overview.md) that hooks tool calls, you need v2.1.327 or later. If you're on the `stable` channel and an update doesn't reach that version, [switch to `latest`](https://code.claude.com/docs/en/setup#configure-release-channel)
54* **Telemetry settings**: to use Code Mode with [feature-flag fetching off](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching) or [OpenTelemetry](https://code.claude.com/docs/en/monitoring-usage.md) events and metrics on, you need v2.1.329 or later. Keep [tracing](https://code.claude.com/docs/en/monitoring-usage.md#traces-beta) off on any version
54* **Telemetry settings**: to use Code Mode with [feature-flag fetching off](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching) or [OpenTelemetry](https://code.claude.com/docs/en/monitoring-usage.md) events and metrics on, you need v2.1.329 or later. With [tracing](https://code.claude.com/docs/en/monitoring-usage.md#traces-beta) on, you need v2.1.333 or later
5555* **Installation**: the [native build](https://code.claude.com/docs/en/setup.md) of Claude Code
5656* **Windows**: [Git for Windows](https://git-scm.com/downloads/win) is installed
5757 
from line 174
174174* **Read classifier verdicts**: in auto mode, a call that the classifier's [review of the code](#permission-checks) covers has no `classifier_verdict`. Look for the verdict on the `REPL` tool's `tool_decision` events that have that call's `request_id`. If you find more than one, the events don't show which piece of code made the call
175175* **Keep secrets out of your backend**: code can read a value, such as a token in a file, and pass it to another call. Leave `OTEL_LOG_TOOL_DETAILS` unset if your backend shouldn't receive those values
176176 
177#### Trace calls from code
178 
179On v2.1.333 or later, look for calls from code under the `claude_code.tool.execution` span of the `REPL` call that ran the code. Expect the same [span types](https://code.claude.com/docs/en/monitoring-usage.md#span-hierarchy) as for a call that Claude makes directly. Before your users turn on Code Mode, decide what you export and what you audit from:
180 
181* **Keep tool output out of your backend**: code can read far more than it shows Claude. Leave `OTEL_LOG_TOOL_CONTENT` unset if your backend shouldn't receive what calls from code return. In that case, also leave `OTEL_LOG_TOOL_DETAILS`, `OTEL_LOG_RAW_API_BODIES`, `OTEL_LOG_ASSISTANT_RESPONSES`, and `OTEL_LOG_USER_PROMPTS` unset, because each can send parts of that output
182* **Audit from events**: after code makes many calls, you can lose spans if Claude Code exits right away or your collector falls behind. Export [events](https://code.claude.com/docs/en/monitoring-usage.md#events) too and audit from those. To avoid losing events as well, run a collector that responds quickly and accepts large requests
183 
177184## Permissions and long-running code
178185 
179186Your permission mode decides how the code that Claude writes is checked and whether you can talk to Claude while the code runs.
from line 343
336343| `it only works with Opus 5.5, Sonnet 5.5 and later models` | Pass the full name of a [supported model](#requirements) that your account can use, for example `--model claude-opus-5-5`, or on Microsoft Foundry the name of your deployment of one. Avoid aliases such as `sonnet`, which [select older models on some providers](https://code.claude.com/docs/en/model-config.md#model-aliases) |
337344| `it doesn't work in background jobs` | Start in the foreground, without `--remote-control`. If the reason shows in a teammate's split pane, use the [in-process display mode](https://code.claude.com/docs/en/agent-teams.md#choose-a-display-mode) to run teammates in Code Mode |
338345| `it needs settings that Claude Code downloads from Anthropic` | [Update Claude Code](https://code.claude.com/docs/en/setup.md#update-claude-code) to meet the [telemetry settings requirement](#requirements). To stay on your version, unset the variable that [turns off feature-flag fetching](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching), such as `DISABLE_TELEMETRY` |
339| `OpenTelemetry tracing is on` | Unset `CLAUDE_CODE_ENHANCED_TELEMETRY_BETA`, `ENABLE_ENHANCED_TELEMETRY_BETA`, and `ENABLE_BETA_TRACING_DETAILED` if you can work without [traces](https://code.claude.com/docs/en/monitoring-usage.md#traces-beta) |
346| `OpenTelemetry tracing is on` | To keep [traces](https://code.claude.com/docs/en/monitoring-usage.md#traces-beta) on, [update Claude Code](https://code.claude.com/docs/en/setup.md#update-claude-code) to meet the [telemetry settings requirement](#requirements). To stay on your version, unset `CLAUDE_CODE_ENHANCED_TELEMETRY_BETA`, `ENABLE_ENHANCED_TELEMETRY_BETA`, and `ENABLE_BETA_TRACING_DETAILED` if you can work without traces |
340347| `OpenTelemetry is on` | To keep events and metrics on, [update Claude Code](https://code.claude.com/docs/en/setup.md#update-claude-code) and meet the [telemetry settings requirement](#requirements). To stay on your version, unset `CLAUDE_CODE_ENABLE_TELEMETRY` and `ENABLE_BETA_TRACING_DETAILED` if you can work without [OpenTelemetry export](https://code.claude.com/docs/en/monitoring-usage.md) |
341348| `it doesn't yet work with the plugin` | [Update Claude Code](https://code.claude.com/docs/en/setup.md#update-claude-code) to meet the [mods requirement](#requirements). To stay on your version, run `/plugin` and disable each plugin that the reason names. If your organization turned one on, ask your administrator to turn it off |
342349| `it doesn't yet work with an installed mod` | [Update Claude Code](https://code.claude.com/docs/en/setup.md#update-claude-code) to meet the [mods requirement](#requirements). To stay on your version, run `/plugin` and disable each mod you installed |
Feedback