Claude Code

Claude Code 2.1.335: MCP Servers as claude.ai Connectors and an Audit for Old Agent Code

2 min read AI-generated

When the drive returned a read error at startup, Claude Code replaced its own config file with default settings. That's fixed now.

Featured image for "Claude Code 2.1.335: MCP Servers as claude.ai Connectors and an Audit for Old Agent Code"

Claude Code 2.1.335 has been out since December 2 at 21:54 UTC, according to npm. Version 2.1.334 from the day before was mostly bug fixes, and I wrote about 2.1.333 on Tuesday. This time there are a few features you’ll notice day to day.

New in the terminal

claude mcp add --web adds a remote MCP server as a claude.ai connector, straight from your terminal. It works on paid plans.

/claude-api harness-audit looks for agent harness code written for older models: loop limits, sub-agents, context management, injected reminders and session-start code. It proposes fixes as a diff.

There’s also Tab completion for the arguments of /model, /effort, /mcp and a few other commands. In fullscreen outside VS Code, you can click a file path in a reply and see the file next to the chat, at the line it names. That needs a git repository and a window at least 110 columns wide.

/desktop and claude --desktop now work on Linux desktops too. And /access shows which verification programs your account is in, such as the Cyber Verification Program.

For teams and mod authors

Cloud sessions now load plugins and mods from a repository’s .claude/skills folder. A hook that reaches out of its plugin’s folder with ../ fails there, though, and can block shell commands. Through /login, you can now finish signing in to your organization’s gateway over SSH or on Linux without a display. A new Interrupt hook event tells you who stopped a turn: a person, another session or the system.

Two bugs that hit your data

If the drive returned an I/O error or timed out at startup, Claude Code replaced ~/.claude.json with default settings. And /import destroyed an existing CLAUDE.md that wasn’t saved as UTF-8. Both are fixed.

On the desktop side, the December 2 changelog also announces an experimental “Code Mode” for the Code tab. It stays off unless someone turns it on. Admins can keep it off by setting CLAUDE_CODE_EXPERIMENTAL_CODE_MODE to 0 in managed settings before their machines update.

The audit is the interesting part

Most of these changes save you a few keystrokes. harness-audit instead goes looking for code you once wrote for earlier models: loop limits, reminders, homemade context management. That kind of thing tends to linger in an agent because it still works. If you run agents on the Claude API, run it once and read the diff, even if you end up taking little of it.

Sources

Claude CodeReleaseMCPLinux