Skip to content
Quest Current QC markQCquestcurrent
Anthropic releases Claude Code v2.1.335 with harness-audit and Linux desktop support
Language models

Anthropic releases Claude Code v2.1.335 with harness-audit and Linux desktop support

The latest Claude Code update introduces a command to audit agent harness code for legacy patterns, adds Linux desktop integration and fixes several session handling bugs.

Depth
1 outlet · newest source 19h ago

Key points

  • New /claude-api harness-audit command identifies agent code written for older models and proposes fixes.
  • Linux users gain access to /desktop and claude --desktop commands for desktop integration.
  • Remote MCP servers can now be added as connectors via the terminal on paid plans.

The update also adds desktop support for Linux environments and improves remote server connectivity for paid plan users.

The announcement

The release adds `claude mcp add --web` to allow users to add a remote MCP server as a connector from the terminal, available on paid plans. Tab completion was added for arguments including `/model`, `/effort`, `/mcp`, `/advisor`, `/tui` and `/color`. In menus for `/plugin` and `/config`, pressing Enter executes the typed command unless the user arrows to a specific row.

A new "click to view" feature allows users in fullscreen outside VS Code, within a git repository and in windows 110 columns or wider, to click a file path in a reply to see the file beside the chat at the named line. Cloud sessions now load plugins and mods in a repository's `.claude/skills` directory, though hooks reaching outside the plugin folder with `../` fail and can block shell commands.

Evidence: reportedv2.1.335

aifleet-claude-code

Users can finish signing in to their organization's gateway through its identity provider from `/login`, over SSH or on Linux with no display. Linux desktops receive `/desktop` and `claude --desktop` commands. The `/claude-api harness-audit` command finds agent harness code written for older models, covering loop limits, sub-agents, context management, injected reminders and session-start code, and proposes fixes as a diff.

Mods can now call `on()` inside their `session.start` hook, allowing hooks to be registered based on a fetch or MCP call. The `session.stop` mod event now includes `source` and `via` fields, indicating who sent the stop command and how it arrived. An Interrupt hook event fires when a turn is interrupted, specifying whether a person, another session or the system stopped it.

The `claude plugin list --json` command now includes `requiredByOrganization` for plugins required by the user's organization. The `/access` command lets users view verification programs their account is in, such as the Cyber Verification Program. On Windows, the `disableWindowsBashCommandSplit` managed setting keeps Bash commands in one argument for tools matching command lines on Pro and Max plans, though long commands may fail.

The context

This release addresses several bugs affecting session management and tool behavior. The model button in Claude mobile apps no longer retains the old model after `/model` is used in a cloud session. Self-hosted runners no longer report a session as failed after the service archives it or removes it, and post-session hooks now usually complete or interrupt properly.

The `/schedule` command now correctly lists an organization's self-hosted environments instead of creating a cloud environment where one could be used. Chart rendering issues were fixed, including cells drawn as negative numbers, missing multiples for large numbers, malformed durations showing as zero and lost rows in tables without headers.

The practical upshot

Developers using `claude -p` will see the result of a running command in the session transcript even if stopped with SIGTERM. TaskUpdate no longer reports a dependency as added when the other task does not exist. Starting several worktree-isolated agents at once no longer fails with "failed to read commondir".

Evidence: reportedv2.1.335

aifleet-claude-code

The `forceLoginOrgUUID` managed setting no longer refuses its own organization when the ID is written in capital letters. The Artifact tool no longer blames the owner's organization when it cannot reach stored data for an artifact shared from another organization. It also stops dropping edits to built-in styles or the body tag on the next publish after restoring a missing source file.

Code display fixes include syntax highlighting breaking before `${` in CSS template literals and inline code losing formatting after a tilde before a backtick. macOS sandbox jobs no longer print "nice(5) failed: operation not permitted" for each background job of a zsh command. Replies stopped at a permission prompt no longer run again after a session restarts.

Evidence: reportedv2.1.335

aifleet-claude-code

Commands `claude stop` and `claude rm` no longer exit with no output or effect right after the background service dies. Claude in Chrome now connects on Windows even if the path to Claude Code contains non-ASCII characters.

Methods and limits

The `/claude-api harness-audit` command specifically targets agent harness code written for older models, identifying issues in loop limits, sub-agents, context management, injected reminders and session-start code. It proposes fixes as a diff, allowing developers to review changes before applying them. The audit is limited to these specific legacy patterns and does not cover general code quality or security vulnerabilities.

Remote MCP server addition via `claude mcp add --web` is restricted to paid plans. The new cloud session support for `.claude/skills` plugins fails if a hook attempts to access files outside its plugin folder using `../`, which can block shell commands. This limitation ensures plugin isolation but requires developers to structure their plugins accordingly.

Why it matters

  • The harness-audit command helps developers migrate agent code from older model constraints to current best practices.
  • Linux desktop support expands Claude Code's usability for developers working in Linux environments.
  • Remote MCP server integration via terminal streamlines connector setup for paid plan users.
  • Fixes to session management and artifact handling improve reliability for complex development workflows.

Topics: tools, Anthropic, Claude Code, agent development, Linux

Updated

The strongest doubt

Counterpoint from the sources

The harness-audit command is limited to specific legacy patterns and does not provide comprehensive code analysis. Remote MCP server addition is restricted to paid plans.

Try it

/claude-api harness-audit

Good result: Identifies agent harness code written for older models and proposes fixes as a diff

Ask the article

Local keyword search of this article; no generated answers.

Did this article give you the evidence you needed?

No vote saved on this device.
Your choice stays on this device. No public tally.

Terms in this story

MCP server

Model Context Protocol server that provides tools or data to AI agents

Harness code

Code that manages agent execution, including loop limits and context management

SIGTERM

Signal used to terminate a process gracefully

Worktree

Git feature allowing multiple working directories for a single repository

Questions readers ask

What does the harness-audit command check for?

It checks for agent harness code written for older models, including loop limits, sub-agents, context management, injected reminders and session-start code.

Is remote MCP server addition available on free plans?

No, the `claude mcp add --web` command is available only on paid plans.

What happens if a hook tries to access files outside its plugin folder?

Hooks that reach out of their plugin's folder with `../` fail and can block shell commands in cloud sessions.

Connected stories

This storyAnthropic restricts game cloning and reverse engineering in Opus 5.5Anthropic restricts game cloningClaude Code v2.1.325 fixes zstd vulnerability and stops subagent model misroutingClaude Code v2.1.325 fixes zstd Anthropic Posts $23B Loss Amid Compute Spending Before IPOAnthropic Posts $23B Loss Amid COpenAI validates 948 Linux patches via upcoming cyber model for $1.2MOpenAI validates 948 Linux patch

Reading receipt

  • New /claude-api harness-audit command identifies agent code written for older models and proposes fixes.
  • Linux users gain access to /desktop and claude --desktop commands for desktop integration.
  • Remote MCP servers can now be added as connectors via the terminal on paid plans.

Still open: How comprehensive is the harness-audit command in detecting all legacy code patterns?

Still open: Will remote MCP server addition become available on free plans in future updates?

Time spent: 0:00 · Depth: Full

Sources

  1. Claude Code releases

Related stories

Background reading