Claude Code 2.1.330 Refuses Risky rm

Claude Code 2.1.330 makes more rm commands aimed at root, home, a top-level folder, or the working folder ask for approval; where nobody can answer, they are refused. That is the sharpest change in Anthropic’s official changelog for this release, even though the same release also touches Enterprise sign-in, self-hosted runner metrics, VS Code workflows, and Claude Code MCP behavior.
| Question | Answer |
|---|---|
| Who must act | Self-hosted runner operators and admins using Enterprise Admin Console have new behavior to check. |
| What changes for them | More risky rm commands ask for approval, and unattended sessions refuse them. |
| Who can skip | Users who do not run recurring scheduled tasks can ignore the new 30-day task window. |
Read the safety change first
The rm change matters because it changes what happens at the shell boundary. Claude Code now asks for approval for more removal commands aimed at sensitive places, including the root directory or home directory.
The important limit is in the second half of the note: where nobody can answer, the command is refused. That can break an unattended cleanup path, but it is the right failure mode for a session that can delete too much.
The release also restores the automatic retry removed in 2.1.329 when max_tokens exceeds a model or gateway limit. If a gateway setup became noisier for that reason, this release is meant to take that edge off.
Rolling this out in your team?
We train engineering teams on their own codebase in two days. Claude Code setup, shared rules and review included.
Sign in now carries organization settings
The Enterprise sign-in change is straightforward. After claude auth login, Claude Code applies the organization’s settings and uses its cloud provider or gateway when the organization is managed in Anthropic’s Enterprise Admin Console.
That makes sign-in more than identity. It now decides which managed settings and provider path the session should use, so local habits should not assume the same runtime after a managed login.
There is also a small but useful escape hatch for authentication automation. If the shorter sign-in link shows an error, or a script reads values from it, set CLAUDE_CODE_FULL_SIGN_IN_LINK=1 to print the full sign-in link.
Keep repo practice separate from account policy. Team conventions still belong in the repository and its scoped instructions, while this release moves more organization behavior into the authenticated session.
Decide what to check first
The changelog is broad, so read it by setup. The release changes local terminal behavior and managed sign-in, with updates to self-hosted runners and plugins.
| Setup | Release item | First check |
|---|---|---|
| Local terminal sessions | Riskier rm commands now ask for approval or are refused when unattended. |
Check cleanup scripts and prompts that touch the working folder. |
| Enterprise Admin Console | claude auth login applies organization settings and provider routing. |
Confirm the session starts with the expected gateway or cloud provider. |
| Self-hosted runners | --start-dir and SELF_HOSTED_RUNNER_START_DIR start Claude in a repository subfolder while settings and hooks load as before. |
Start one runner in a nested folder and confirm hooks still load. |
| VS Code | /fork, /workflows, and several settings were added or fixed. |
Open the agent map with /workflows when workflows are running. |
The self-hosted runner metrics are also more precise. The release adds claude_code_self_hosted_runner_order_to_registered_seconds and claude_code_self_hosted_runner_order_to_first_session_seconds under /metrics, which gives operators a way to see time from work order to runner registration and first session handoff.
Try the MCP path in one repo
The Claude Code MCP work in 2.1.330 is less about one big new switch and more about fewer confusing edges. The changelog mentions MCP metrics results for Easel, fixed attachment of MCP resources from claude.ai connectors and plugin servers when @-mentioned, and a fix for MCP servers declared by subagents being shut down while other subagents or the session still use them.
Easel is the visible new piece. It is a built-in mod that draws charts when asked and under MCP metrics results on Pro, Max, and, where available, Team and Enterprise on macOS and Linux. Automatic charts can be turned off in /config.
This is a good Review step in our methodology: inspect what the agent connected to and what it changed before trusting the next run. If you have been following MCP-related releases, the previous Claude Code 2.1.329 Shows MCP Errors note is the closest companion to this one.
What to try first in one repository
- Run
claude auth loginin a managed organization and confirm the session uses the expected organization settings and provider path. - If the short sign-in link fails, rerun with
CLAUDE_CODE_FULL_SIGN_IN_LINK=1and capture the full link path your script expects. - Review hooks or scripts that can remove the working folder, and run the session where an approval prompt can be answered.
Do not run a destructive command just to see the new prompt. Inspect the path first, especially if the session is remote or unattended.
Further reading
Check one path today
Update Claude Code and run the three checks above in a session where approval prompts can be answered.
Train your team on Claude Code
Two days on your team's own repository, onsite or remote, with a written proposal before you commit.
Book a callPrefer to measure first? Take the free team check.