Claude Code v2.1.143: Plugin Deps & Background Agents
Claude Code has been shipping fast. v2.1.143 landed on May 15 with two features that signal where the ecosystem is heading: plugin dependency management and background agent polish. Neither is flashy. Both matter more than most people realize.
I’ve been using Claude Code as my primary coding agent since April. I’ve also used Codex CLI and OpenCode extensively. This release fixes several pain points I’ve hit firsthand.
Plugin dependency enforcement
The headline feature is plugin dependency management. Two new behaviors:
claude plugin disablenow refuses to disable a plugin if another enabled plugin depends on it. You get a message showing the dependency chain, including the exact command to disable everything in order.claude plugin enablenow force-enables any transitive dependencies automatically. No more “plugin X requires plugin Y” errors after installation.
This sounds bureaucratic. It’s actually a quality-of-life improvement that prevents a common failure mode: you disable a plugin you think you don’t need, break three other plugins, and spend 20 minutes debugging why your MCP tools stopped working.
The dependency chain hint is the smart part. Instead of saying “can’t disable: plugin Y depends on it” and leaving you to figure out the disable order, it gives you a copy-pasteable command that disables everything in the right sequence. Small touch, saves real time.
What this signals: the plugin ecosystem is growing to the point where dependency graphs are non-trivial. When plugins were standalone tools, dependencies didn’t matter. Now that plugins are building on each other, the infrastructure needs to handle it. Anthropic is investing in this before it becomes a user-facing mess, which is the right call.
Projected token costs in the plugin marketplace
/plugin marketplace now shows projected context cost for each plugin: per-turn token estimates and per-invocation token estimates.
This matters because context is the hidden cost of plugins. A plugin that adds 5,000 tokens of system context to every turn isn’t expensive at install time. It’s expensive at inference time, every time, forever. Multiply by the number of plugins you have enabled, and you can easily blow past Claude’s context window without realizing why your sessions degrade faster.
The per-invocation estimate is even more useful. Some plugins add minimal context but trigger heavy tool calls. Others add large system prompts but run rarely. The distinction matters for deciding which plugins to keep enabled.
I’d like to see this data factored into some kind of “context budget” indicator — a running total of how much of Claude’s context window your plugins are consuming. The estimates are a good start, but they’re raw numbers. Most developers don’t have an intuitive sense of whether 2,000 tokens of plugin context is a lot or a little.
Background agent improvements
Three changes to background sessions (claude --bg):
worktree.bgIsolation: “none”. Background sessions normally operate in git worktrees for isolation. This setting lets them edit the working copy directly. Useful when your repo can’t use worktrees — monorepos with symlink-heavy build systems, for example. Previously you had to accept worktree overhead or skip background sessions entirely.
Model and effort level preservation. This one fixes a real annoyance. Previously, background sessions that woke from idle would reset to default model and effort settings. Now they remember what you set. If you had a session running with Opus at high effort, it stays that way after waking.
Shift+Tab includes auto mode. Small fix, but if you use claude agents with attached sessions and cycle through modes, this saves a keystroke.
The background agent story is getting better with each release. When I first tried it in April, background sessions felt fragile — they’d lose context, reset settings, or silently fail. The May releases (v2.1.141 through v2.1.143) have systematically addressed the reliability issues. It’s not perfect yet, but it’s crossed the threshold from “cool demo” to “I actually use this daily.”
Windows improvements
PowerShell tool is now enabled by default on Windows for Bedrock, Vertex, and Foundry users. It also passes -ExecutionPolicy Bypass by default (opt out with CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1).
This mostly affects enterprise users on Windows who are using Claude Code through cloud providers rather than the direct Anthropic API. Previously, PowerShell tool configuration was a manual step that many users missed, leading to “Claude can’t run commands” confusion.
Right-click paste in claude agents on Windows Terminal and WSL is also fixed. Minor, but anyone who’s tried to paste a multi-line prompt into a Windows Terminal session knows the pain.
The bug fixes that actually matter
Most releases have a long tail of bug fixes that sound obscure but fix real crashes. The ones that matter in this release:
Corrupt .credentials.json hangs the CLI. Previously, a corrupted credentials file with a non-array scopes value would either hang the CLI on startup or silently fail OAuth token refresh. Now it’s handled. If you’ve ever had Claude Code mysteriously refuse to start after a crash, this was probably the cause.
Stop hooks looping forever. If a stop hook blocked repeatedly (8+ consecutive blocks), the turn would previously loop indefinitely. Now it ends with a warning after 8 blocks. Configurable via CLAUDE_CODE_STOP_HOOK_BLOCK_CAP.
Esc/Ctrl+C not canceling /loop wakeup. When Claude was idle between /loop iterations, Esc and Ctrl+C were ignored. You had to kill the process. Fixed.
/goal evaluator firing while subagents still running. The goal evaluator would sometimes trigger before background shells or delegated subagents finished, leading to premature “goal complete” or “goal failed” signals. Fixed.
Background agents false-positive stall detection after macOS sleep. When your Mac woke from sleep or App Nap, background agents would sometimes trigger stall detection storms — thinking every agent had frozen. Fixed.
5xx errors pointing at status.claude.com. When the API returned errors from Bedrock or Vertex, the error message would blame status.claude.com instead of naming the actual cloud provider. Now it correctly identifies the configured gateway.
These might seem like “who cares” fixes. But they add up. A coding agent that hangs, loops, or gives misleading error messages erodes trust. Each fix reduces the friction that makes you close the terminal and go back to manual coding.
How Claude Code compares to alternatives
I’ve been rotating between Claude Code, Codex CLI, and OpenCode for the past few months. Here’s where things stand:
| Feature | Claude Code v2.1.143 | Codex CLI | OpenCode | Cursor Agent |
|---|---|---|---|---|
| Plugin ecosystem | Growing, with dependency mgmt | Limited | Plugin system (hooks) | Extension marketplace |
| Background agents | Yes, with worktree isolation | Yes (bg flag) | No built-in | No |
| Multi-provider | Anthropic + Bedrock/Vertex | OpenAI only | Multiple providers | Multiple |
| Terminal-first | Yes | Yes | Yes | No (IDE) |
| Agent dashboard | claude agents TUI | Basic | None | N/A |
| Plugin cost visibility | Yes (per-turn/per-invocation) | No | No | N/A |
| MCP support | Native | Via plugin | Native | Via extension |
Claude Code’s differentiator is the agent orchestration layer. Codex CLI has better code generation quality in some benchmarks (OpenAI’s models are strong on code). OpenCode is more hackable and provider-agnostic. Cursor is the best IDE-integrated experience.
But Claude Code is the only one with a first-class background agent system, plugin dependency management, and cost visibility for plugins. If you’re running multiple coding agents in parallel — one for tests, one for refactoring, one reviewing PRs — Claude Code’s tooling is ahead.
What I want to see next
Plugin context budget. A running total in /plugin showing how much of Claude’s context window your enabled plugins consume. Bonus: a warning when you’re approaching 80% of the window.
Background agent queue. If I kick off five background tasks, I want a queue with FIFO ordering, parallel slots, and the ability to reorder. Right now, I manage this manually with terminal windows.
Plugin output diffing. When a plugin update changes its system prompt, show me the diff. Most plugin updates are invisible — I have no idea what changed unless I read the changelog.
Session export. Let me export a Claude Code session (full transcript, tool calls, context) to a format I can share with teammates. Right now, the transcript files are usable but not designed for sharing.
Limitations and caveats
The release cadence is aggressive. v2.1.143 shipped days after v2.1.141. Rapid releases are good for bug fixes but can introduce regressions. If you’re using Claude Code in CI/CD, pin your version and test upgrades.
Upgrading safely. Here’s the upgrade pattern I use:
# Check current version
claude --version
# Upgrade
npm install -g @anthropic-ai/claude-code@latest
# Verify and test
claude --version
claude -p "Run a quick sanity check: echo hello" --dangerously-skip-permissions
If anything breaks, downgrade to your previous version:
npm install -g @anthropic-ai/claude-code@2.1.141
Plugin dependency enforcement is new. There may be edge cases where the dependency graph isn’t resolved correctly, especially with plugins from different sources (local, npm, GitHub).
PowerShell changes may break existing workflows. If you have PowerShell execution policies configured for security, the default -ExecutionPolicy Bypass may conflict. Opt out with the environment variable.
Background agent reliability is improved but not perfect. I still occasionally see background sessions lose context after extended macOS sleep. The fix in this release addresses the false-positive detection storm but may not address the underlying context issue. If you rely on long-running background agents, keep an eye on session health after your machine wakes.
The bottom line
Claude Code v2.1.143 is a polish release that signals where the product is heading. Plugin dependencies, cost visibility, and background agent reliability aren’t flashy features. They’re infrastructure for a plugin ecosystem that’s growing beyond what any single team can maintain.
If you’re using Claude Code daily, upgrade. The bug fixes alone are worth it — especially the credentials hang fix and the stop hook loop fix. If you’re evaluating coding agents, Claude Code’s agent orchestration and plugin system differentiate it from the pack. If you’re on Codex CLI or OpenCode and happy, this release probably doesn’t change your calculus.
The one feature worth paying attention to even if you don’t use Claude Code: projected context costs for plugins. As AI coding tools add more plugins and integrations, context window management becomes the limiting factor. Claude Code is the first to make costs visible. Every other coding agent will need to follow.