Skip to content

Claude Code v2.1.335

Released · Anthropic

Changes hooks, MCP server config

What the release notes say

What's changed

  • Added claude mcp add --web to add a remote MCP server as a claude.ai connector from your terminal, on paid plans
  • Added Tab completion for /model, /effort, /mcp, /advisor, /tui and /color arguments; in these and the /plugin and /config menus, Enter runs what you typed unless you arrow to a row
  • Added click to view: in fullscreen outside VS Code, in a git repository and a window 110 columns or wider, click a file path in a reply or tool row to see the file beside the chat, at the line named
  • Added support for cloud sessions loading the plugins and mods in a repository's .claude/skills; a hook that reaches out of its plugin's folder with ../ fails there and can block shell commands
  • Added a way to finish signing in to your organization's gateway through its identity provider from /login, over SSH or on Linux with no display
  • Linux: Added /desktop and claude --desktop on Linux desktops
  • Added /claude-api harness-audit to find agent harness code written for older models (loop limits, sub-agents, context management, injected reminders, session-start code) and propose fixes as a diff
  • Added support for mods calling on() inside their session.start hook, so hooks can be registered based on a fetch or MCP call
  • Added source and via to the session.stop mod event, saying who sent the Stop and how it arrived
  • Added requiredByOrganization to claude plugin list --json for plugins your organization requires
  • Added an Interrupt hook event that fires when a turn is interrupted and says whether a person, another session or the system stopped it
  • Added /access to view the verification programs your claude.ai account is in, such as the Cyber Verification Program
  • Windows: Added the disableWindowsBashCommandSplit managed setting: on Pro and Max, true keeps Bash commands in one argument for tools matching command lines; long ones may fail (v2.1.319 or later)
  • Fixed the model button in the Claude mobile apps keeping the old model after /model in a cloud session
  • Fixed self-hosted runners reporting a session as failed after the service had archived it or taken it from them; post-session hooks now usually get completed or interrupted there
  • Fixed /schedule not listing your organization's self-hosted environments, and creating a cloud environment where one of those could be used
  • Fixed charts misreading some cells: (7 drawn as a negative number, $1.2bn without its multiple, 1e-400 and malformed durations as zero, and a first row lost from a table with no header
  • Fixed the result of a running command missing from the session transcript when claude -p is stopped with SIGTERM
  • Fixed TaskUpdate reporting a dependency as added when the other task does not exist
  • Fixed starting several worktree-isolated agents at once sometimes failing with "failed to read commondir"
  • Fixed forceLoginOrgUUID in managed settings refusing its own organization when the ID is written in capital letters
  • Fixed the Artifact tool blaming the owner's organization when Claude can't reach the stored data of an artifact shared from another organization
  • Fixed the Artifact tool dropping your edits to most pages' built-in styles or body tag on the next publish, after it restored the page's missing source file
  • Fixed code display: syntax highlighting breaking a line before ${ in some CSS template literals, and inline code losing its formatting or turning into a link after a ~ right before a backtick
  • Fixed "nice(5) failed: operation not permitted" printed for each background job of a zsh command in the macOS sandbox
  • Fixed a reply stopped at a permission prompt running again after a cloud, self-hosted runner or Remote Control session restarted
  • Fixed claude stop and claude rm sometimes exiting with no output and no effect right after the background service died
  • Fixed Claude in Chrome not connecting on Windows when the path to Claude Code contains non-ASCII characters
  • Fixed the report URL from /insights not opening on Windows or when the path contains spaces
  • Fixed the /setup-vertex wizard on Windows not finding a service account key given as ~\keys\key.json
  • Fixed /terminal-setup refusing to update a VS Code settings.json that has trailing commas
  • Fixed /import destroying an existing CLAUDE.md that isn't saved as UTF-8
  • Fixed dropping an image whose file name has an apostrophe pasting its path instead of attaching it, in terminals that quote dropped paths
  • Fixed /keybindings and /plan open reporting a file as opened, and Ctrl+G doing nothing, when no editor is installed
  • Fixed ~/.claude.json being replaced with default settings at startup when the drive returned an I/O error or timed out
  • Fixed /model listing no gateway models when the gateway returned "display_name": null for one of them
  • Fixed claude --resume <name> and /resume <name> not finding a session whose name has zero-width characters, as in Persian and Hindi words and some emoji
  • Fixed MCP forms that couldn't be accepted after an optional text field was filled in and emptied again
  • Fixed /config not saying so when "Show tips" or "Reduce motion" could not be saved
  • Fixed claude plugin list and VS Code's Manage plugins showing the wrong on or off state for a plugin that managed settings decide
  • Fixed messages in IDE extensions and the Desktop app waiting up to a minute behind a plugin's unanswered question or a pane waiting for an answer
  • Fixed a retried or edited message coming back into a cloud session's context after a failed request and a restart
  • Fixed /diff leaving out blank lines and showing wrong line numbers when git's diff.suppressBlankEmpty is on
  • Fixed terminal color codes in the git status Claude sees at the start of a conversation when git's color.ui is set to always
  • Fixed added and removed line counts in cloud and Remote Control sessions leaving out changed lines that begin with ++ or --