Run tool calls from code with Code Mode changedcode-mode
Upstream edited this page at 28 Nov 2026 18:45 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 28 Nov 2026 19:07 UTC.
Upstream edited
Recorded here
Lines+11added
Lines−1removed
From line
98
where the diff opens
First seen
13 Nov 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 98, old and new numbered
/
from line 98
9898
9999**3. Confirm that you want Code Mode**
100100
101Claude Code asks you to confirm before your first Code Mode session. Select **Yes, turn on Code Mode**. Claude Code restarts and shows this line near the top of the session:
101Claude Code asks you to confirm before your first Code Mode session. Select **Yes, turn on Code Mode**.
102102
103This line near the top of the session means that Code Mode is on:
104
103105```text theme={null}
104106Code Mode (experimental) is on · this session can be resumed only with Code Mode on
105107```
108
109If you see this line instead, Code Mode is off in this session:
110
111```text theme={null}
112Code Mode (experimental) will be on after you quit and start Claude Code again the same way. This session uses the ordinary tools.
113```
114
115To turn on Code Mode, exit Claude Code and start it again as you did in the previous step. Then look for the `is on` line.
106116
107117If you see a different line or none, see [Code Mode doesn't start](#code-mode-doesnt-start).
108118
No line in this hunk matches that.