code-mode
The tracked changes tagged code-mode, newest release first. Every sentence is an item's summary.
Goes with
Changes
Claude Code v2.1.332
-
Fixed Code Mode silently skipping a tool call whose input has a list over 4,096 items; very large typed array inputs are now refused instead of freezing.
-
Fixed Code Mode leaving a message unanswered when typed during a command and Esc was pressed before Claude replied; the message now starts a new turn.
-
Fixed Code Mode not telling Claude when a slow command moved to the background with empty output, or about the time limit on background commands in claude -p and the Agent SDK.
-
Fixed Code Mode sometimes waiting for minutes on a command that had already been stopped.
-
Fixed a typed slash command's inline shell commands not running in Code Mode after a background script's output arrived.
+6 more
-
Fixed Code Mode sessions in the Agent SDK and claude -p sometimes losing Claude's last reply on resume after being stopped while a script ran.
-
Fixed resuming a paused workflow in Code Mode waiting for minutes while other background work ran.
-
Fixed subagents in Code Mode failing with Agent stalled and losing their command when a script ran over 10 minutes.
-
Improved resuming a Code Mode session so Claude is told up front that earlier script variables are gone.
-
Improved Claude in Code Mode to confirm before discarding worktree changes, read artifact files before publishing, and update an existing artifact instead of creating a second one.
-
Improved Code Mode tool search to show long MCP tool descriptions whole where they fit.
Codex 0.172.0
-
Code Mode uses gRPC for all host connections, and the code_mode_host_grpc setting is deprecated.
Claude Code v2.1.331
-
Code Mode is now supported in terminal sessions on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS.
-
Fixed Code Mode sessions resumed with --resume or --continue in another permission mode losing thinking and the prompt cache.
-
Fixed a session begun in an asking permission mode keeping that mode's limits on scripts after resume.
-
Fixed Code Mode sending a request about every second when a ! or slash command was typed while a script ran.
-
Fixed Code Mode losing the middle of long script output; Claude now gets a path to the uncut text (#111373).
Claude Code v2.1.330
-
Fixed a long pause in Code Mode after reading hundreds of files in projects with path-scoped rules or Read deny rules.
-
Fixed the built-in chart tool failing when Claude called it in Code Mode.
-
Fixed Code Mode ignoring an MCP tool's request to end the turn from a script in auto and bypass permissions modes.
-
Fixed Code Mode in auto mode dropping earlier thinking and rewriting the prompt cache when a mod added a note after a script loaded a skill.
-
Fixed Code Mode not restoring a file a script had read after Esc and /compact.
+4 more
-
Fixed /context undercounting system tools in Code Mode before Claude's first reply.
-
Improved Code Mode by telling Claude how to look at images and PDFs.
-
Improved Code Mode so after Esc, Interrupted appears under the stopped command instead of a red error.
-
Improved Code Mode so the terminal freezes for far less time after a subagent's script makes thousands of tool calls.
Claude Code v2.1.329
-
Fixed mods listing only some tools silently turning Code Mode off; such a mod no longer disables it, so administrators should use managed settings to turn it off.
-
Code Mode: a PreToolUse hook that errors no longer refuses a script's tool call; hooks that must refuse need onFailure set to block on command, HTTP or MCP tool hooks.
-
Code Mode can be enabled while OpenTelemetry events and metrics are on, with each tool call from the code sending its events; tracing still keeps it off.
-
Fixed Code Mode hiding a script's finished edits and the stopped command after Esc, and losing them on exit.
-
Fixed a runaway loop in Code Mode filling machine memory; it is now stopped at a limit.
+12 more
-
Fixed Code Mode keeping every large text file read in memory, and memory growing each time a background subagent was woken.
-
Fixed Code Mode stopping a script at its ten-minute limit while an MCP form, MCP link prompt or always-asking prompt awaited an answer.
-
Fixed Code Mode scripts receiving a moved to the background message as data from most MCP calls over two minutes; scripts now wait up to ten minutes before getting an error.
-
Fixed Code Mode ignoring an MCP tool's request to end the turn when the tool was called from a script Claude waits for.
-
Fixed a Code Mode script's let x; keeping the value an earlier script gave x.
-
Fixed a Code Mode script calling a tool with no argument failing with a missing-parameter error on tools that need none.
-
Fixed Code Mode scripts losing access to tools through tools in sessions with more than 4,096 tools.
-
Code Mode terminal freezes for far less time after a script makes thousands of tool calls.
-
Code Mode gives Claude the same guidance on waiting after starting a subagent as outside Code Mode.
-
Code Mode refuses a script's read of a line range over 256 MiB, and reads of very long lines no longer time out.
-
Code Mode now also starts when telemetry, nonessential traffic or feature flags are turned off; administrators can keep it off in managed settings.
-
Code Mode now runs scripts that declare their own log, preview or sleep, which it previously refused.
Claude Code v2.1.328
-
Code Mode no longer runs UserPromptSubmit hooks, managed ones included, on scripts' output; to redact that output, use a PostToolUse hook with updatedToolOutput.
-
Code Mode no longer stops a script when a permission prompt, plan approval or question outside auto or bypass mode stays open for ten minutes.
-
Code Mode scripts in auto and bypass-permissions modes can call an MCP server that connected while the previous script was running.
-
Code Mode scripts run in the background in auto or bypass permissions mode for a session chosen in the claude --resume picker.
-
Code Mode keeps a loaded skill, hook context or note typed with a permission approval when resuming a session in which one reply ran several scripts.
+17 more
-
Claude is told that a Code Mode script was cut off when the session is resumed from the picker or in a mode that asks for permission.
-
Code Mode no longer silently uses undefined for top-level variables that an earlier failed script never set.
-
Code Mode scripts are told when a failing command's long output was cut.
-
Code Mode no longer refuses valid scripts that start with a { block.
-
Code Mode no longer refuses scripts that use both a top-level await and a top-level return.
-
An @-mentioned small file is attached in Code Mode after a script has read or written it.
-
Code Mode no longer offers write() and edit() to read-only subagents that cannot call them.
-
Claude no longer starts a turn by itself in Code Mode when Esc is followed by a command such as /model.
-
Claude in Code Mode is told to run workflows only when asked and to respect the workflow size set in /config.
-
Code Mode scripts run faster in auto and bypass-permissions modes because a 0.75 second pause after most scripts is removed.
-
Prompt caching works for new Code Mode sessions that have MCP servers, and Claude is told when a server is still connecting and when the server list changes.
-
Code Mode uses fewer tokens because its tool descriptions are shorter.
-
Code Mode shows the command a script is running, and its output, while it runs.
-
In Code Mode, an edit that changes nothing no longer stops a script, and Claude is told where a failed edit matches or comes closest.
-
In Code Mode, Claude is told which tool calls were still running when a script failed.
-
In Code Mode auto and bypass modes, Claude is told to run dev servers as background tasks that show in /tasks.
-
On Windows, Code Mode tells Claude that script shell commands run in Git Bash and that PowerShell aliases run instead of same-named functions.
Claude Code v2.1.327
-
Fixed a running Code Mode script in auto mode getting permission prompts and denials once Claude started a second script that auto mode also allowed.
-
Changed Code Mode to no longer refuse to start when an installed mod hooks tool calls; an administrator can still keep Code Mode off in managed settings.
Claude Code v2.1.326
-
Code Mode can be turned on while agent teams are enabled, and sessions with teams on start in Code Mode if it was already turned on.
-
Skills and slash commands load in Code Mode under auto mode when an inline ! command needs approval; Claude is asked to run it.
-
Background subagents in Code Mode no longer fail when they preload a skill with an inline ! command.
-
Mods can use Bash, Read and other tools through $.tool.call and $.tool.check in Code Mode.
-
Permission checks in Code Mode now ask or refuse more sandboxed commands.
Claude Code v2.1.325
-
Fixed Code Mode scripts ignoring a worktree entered with EnterWorktree, writing ~ paths into the project, and leaving /mcp showing a server connected after its sign-in expired.
-
Fixed words typed with Yes at a permission dialog or plan approval not reaching Claude in Code Mode.
-
Fixed Claude starting work by itself when a session that ended during a Code Mode script was resumed; it now waits for the next prompt.
Claude Code v2.1.323
-
Added Code Mode, an experimental opt-in in which Claude writes JavaScript to call its tools, and can be turned off for an organization.
Codex 0.167.0
-
Code Mode collects and renders output with bounds, and the runtime uses this bounded collection.
-
Code Mode sessions get server-side output truncation, which clients can negotiate.
-
Code Mode host output truncation is behind a feature flag.
Codex 0.166.0
-
Enabled zstd compression for code-mode gRPC responses.
-
Simplified code-mode cell completion delivery.
-
Added code-mode output truncation protocol contracts.
-
Always put Code Mode tool descriptions before namespace descriptions.
-
Restricted code-mode host replacement to session admission.
Codex 0.163.0
-
Sending a follow-up while Codex is responding steers it immediately, and interrupting a turn also stops active Code Mode cells and their nested tool calls.