Run tool calls from code with Code Mode changedcode-mode
Nearest release: v2.1.332, published 2 hours before 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 25 Nov 2026 00:20 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 25 Nov 2026 00:37 UTC.
Upstream edited
Recorded here
Lines+8added
Lines−0removed
From line
122
where the diff opens
First seen
13 Nov 2026
this site's first read of the page
Recorded edits12to this page, all time
### Use Code Mode in subagents
The whole hunk
from line 122, old and new numbered
/
from line 122
122122>
123123> To resume a Code Mode session later, keep `CLAUDE_CODE_EXPERIMENTAL_CODE_MODE` set to `1` when you run `claude --continue` or `claude --resume`. With Code Mode off, Claude Code refuses to resume the session. Sessions that you started without Code Mode resume without Code Mode, even with the variable set.
124124
125### Use Code Mode in subagents
126
127If your [subagent](https://code.claude.com/docs/en/sub-agents.md) has a `tools` list, add [`REPL`](https://code.claude.com/docs/en/tools-reference) to the list so that the subagent uses Code Mode:
128
129```yaml theme={null}
130tools: Read, Bash, REPL
131```
132
125133### Turn off Code Mode
126134
127135Remove `CLAUDE_CODE_EXPERIMENTAL_CODE_MODE` from your shell, `~/.claude/settings.json`, and any `--settings` file, then start a new session. You can also keep the variable and change its value to `0` in any of them. With a `0` in one place, Code Mode stays off even if you set `1` in another.
No line in this hunk matches that.