Claude Code v2.1.337: install a plugin by git address, run a skill in the background, and a wide fix set#
Published by Alex Sorokoletov
Part of the Claude Code Version Tracker series. | Official Env Vars | Official Changelog
Claude Code 2.1.337, the release after 2.1.336, lets you install a plugin straight from a git address in the terminal and send a running skill to the background in Desktop, cloud, and Remote Control sessions. Around those two additions sits a broad set of fixes, from a git branch lost after compaction to launches stopped by an old tool name in --allowedTools.
Installing a plugin and backgrounding a skill#
/plugin install <git address> is new in the terminal: type or paste a git@, https://, or owner/repo address to install a plugin and use it right away.[1] Alongside it, a running skill now has a "Run in background" action in Desktop, cloud, and Remote Control sessions, except on third-party providers; a skill with background: false in its frontmatter stays in the conversation instead.[1]
Hooks now receive a built_in field in the MCP server details they are handed. Claude Desktop sets it on its own servers, some of which run commands or control the computer.[1] The mod surface also grows: a mod's pane can take overflowY="scroll", ui.key can hold unbound chords, a running Progress shows a spinner, file paths in a mod's Markdown are clickable, and a Button can hold Box and Image elements as one picture card.[1]
Fixes#
Several fixes keep a session's state intact across a restart, a fork, or a compaction. Claude no longer loses the git branch and status after a compaction in folders where git status is slow.[1] Worktree sessions and subagents stop refusing commands that name a path or branch such as tests/eval or x/source.[1] /loop and other session-only scheduled tasks no longer run twice after forking a session that is still open, and cloud and self-hosted sessions stop telling Claude a workflow was lost after a restart when it can be resumed without rerunning its finished agents.[1] Background sessions are no longer restarted with "Session not responding" when they were only slow to start.[1]
A regression from 2.1.333 is gone: launches stopped when --allowedTools or --tools held an old tool name or a bare *, and the resume command printed at exit was refused for some lists.[1] The terminal gets several paste and diff repairs: multi-line commands copied from Claude's replies run correctly in shell mode, a long pasted ! command no longer runs twice when pasted again to expand it, a long diff with tabs or thousands of small hunks no longer freezes with syntax highlighting off, and /diff shows file changes instead of "No diff content" when git's color.ui or color.diff is always.[1]
Further down the list: voice dictation stops staying on while the external editor (Ctrl+G) is open or Claude Code is suspended (Ctrl+Z), computer use on macOS can type multi-line text that ends in a newline, cloud sessions at a usage limit stop sending a refused request for every new notification, and signing in to an MCP server from VS Code, Claude Desktop, or Remote Control no longer deletes a still-working sign-in that another session had stored.[1]
New Environment Variables#
| Variable | What It Does |
|---|---|
CLAUDE_CODE_DISABLE_STREAM_DAMAGE_CHECK | Set to 1 to turn off the check that fails a model response when its stream looks damaged. The in-product warning notes that with the check off, a tool could then run on incomplete input. |
CLAUDE_CODE_STOP_HOLD_SECONDS | In remote sessions, sets the number of seconds the session holds at stop while notifications are still pending. A value of 0 turns the hold off. |
CLAUDE_CODE_ENDPOINT_SERVES_WEB_SEARCH | Marks the configured endpoint as one that serves the Web Search tool, keeping the tool enabled on endpoints that otherwise would not run it. It is forwarded to the agent proxy environment. |
CLAUDE_CODE_SESSION_IDENTITY_TOKEN | Supplies the session identity token to the claude self-hosted-runner decode-token command, which decodes and can verify it against the endpoint's session-identity-jwks.json. |
State that survives the next restart#
The widest thread through 2.1.337 is continuity. A git branch held through compaction, a workflow resumed without rerunning finished agents, a scheduled task that does not double after a fork, an MCP sign-in that one surface no longer clobbers for another: each keeps work in place that an earlier build could drop between one session and the next. The self-hosted-runner decode-token path and the stop-hold control extend that same continuity to the cloud and runner surfaces, where a session's identity and its pending notifications have to outlive a handoff that a local terminal never makes.
This analysis is conducted for educational and research purposes under fair use principles. All trademarks and software referenced belong to their respective owners.
Sources#
- Claude Code Official Changelog, v2.1.337 release notes
Related Versions#
- Claude Code v2.1.336: large edits stop freezing, Enterprise managed hooks, and two timeout controls
- Claude Code v2.1.335: add a claude.ai MCP connector from the terminal, /access, and an MCP-only remote host
- Claude Code v2.1.334: a /model search box, an editable auto-compact window, and a resend when thinking-off is refused
- Claude Code v2.1.333: /code-review follows a repo's REVIEW.md, and stopping one workflow agent
- Claude Code v2.1.332: skills from MCP servers, a PreSkillShellCommand hook, and freeze fixes
Previous Claude Code analysis: v2.1.336 (December 3, 2026)
All 98 Claude Code analyses: Claude Code Version Tracker · Official Claude Code changelog