Tool Deep DivesClaude Code 2.1.149

Claude Code v2.1.149 & Gemini CLI v0.43.0 Same-Day Update Explained for General Readers — "Cost Visibility" Meets "Surgical Edits"

On 2026-05-22 the two terminal-AI giants updated the same day. Claude Code v2.1.149 makes cost breakdowns visible via /usage; Gemini CLI v0.43.0 steers the AI to fix only what is needed via surgical edits. Written for non-expert readers: the "explainable / non-destructive" direction, a 5-minute setup, and remaining risks.

中澤 圭志

中澤 圭志

@keishi_nakazawa

Sales Claw maintainer

·13 min
Claude Code v2.1.149 & Gemini CLI v0.43.0 Same-Day Update Explained for General Readers — "Cost Visibility" Meets "Surgical Edits"
This English article is a concise version of the original. For the full Japanese deep-dive, see the Japanese original.

Key Facts

Release date

2026-05-22 (UTC, both tools same day)

Main releases

Claude Code v2.1.149 + Gemini CLI v0.43.0

Claude Code role

/usage shows per-category cost breakdown (skills/subagents/plugins/MCP)

Gemini CLI role

Steers edit tool preference to make AI edits surgical

In one sentence

On 2026-05-22, the two giants of terminal-based AI coding tools shipped major updates on the same day: Anthropic's Claude Code v2.1.149 and Google's Gemini CLI v0.43.0. Claude Code made it possible to see exactly what your AI spending broke down into, while Gemini CLI started steering the AI to fix only the lines that need fixing, rather than rewriting the whole file. This article explains, for readers not deep in AI coding, why these two changes happened on the same day and what they mean for regular users, using a hospital metaphor (a medical chart and surgical precision).

Bottom line up front: The fact that both updates landed in the same week is not a coincidence — it's a signal that AI coding tools have entered the era of "explainable" and "non-destructive". For regular users, Claude Code's /usage is a tool to know in advance whether next month's AI bill will explode, and Gemini CLI's surgical edits is a safeguard that reduces the "blast radius" when you ask AI to fix something small. Both updates are worth installing today.

"I'm letting AI write code for me, but I have no idea how much I'm spending each month." "I asked the AI to make one small fix, and it ended up rewriting files that had nothing to do with the task." — This article addresses those two pain points by explaining how Claude Code v2.1.149 and Gemini CLI v0.43.0, both released on 2026-05-22, answered them. We cite official GitHub Releases as primary sources, and analyze them from the perspective of a Sales Claw maintainer.

This was an unusually busy 24-hour window for the AI coding industry. Anthropic's Claude Code shipped v2.1.149 (a major update on 5/22) followed by v2.1.150 (an internal fix on 5/23 early morning), while Google's Gemini CLI shipped v0.43.0 stable and v0.44.0-preview.0 on the same 5/22. This article focuses on the "/usage per-category breakdown" feature of v2.1.149, and the "surgical edits via the edit tool" behavior change in v0.43.0, explained for non-expert readers.

For context, see also: the previous Claude Code release write-up Claude Code v2.1.147 / 148 — /code-review and pinned background sessions, the previous Gemini CLI write-up Gemini CLI v0.42 / v0.43-preview dual release, and the broader picture in Claude Code harness design optimization.

Primary sources for this article: GitHub Releases — Claude Code v2.1.149 / Gemini CLI v0.43.0 / Claude Code Docs Changelog / Gemini CLI Release Notes. The free download for Sales Claw is also available.

1. What happened on 2026-05-22 — two terminal AI giants updated the same day

Let's start with the timeline. [Official] Per Anthropic's official GitHub Releases, Claude Code v2.1.149 shipped on 2026-05-22 (UTC), followed about six hours later by v2.1.150 at 2026-05-23 04:03 UTC, an internal-only fix. On the Google side, Gemini CLI v0.43.0 stable also shipped on 2026-05-22, along with its preview v0.44.0-preview.0 on the same date.

For readers not deeply familiar with AI coding tools, let me first introduce the cast. "Claude Code" is Anthropic's terminal-based AI coding tool — it runs in the "black screen" (terminal) on your computer. You can ask it to write code, fix errors, and delegate complex multi-step tasks. "Gemini CLI" is Google's near-equivalent competitor. Both are installed with a single command, and unlike chat-based products like ChatGPT, they run in the terminal that developers already use day-to-day, with the AI directly editing files on your machine.

What makes the same-day shipping interesting is that the two companies did not coincidentally land updates on the same date by accident — the problems they're trying to solve are converging. [Author's view] For the last six months, the AI coding industry has been shifting from a "speed and intelligence" competition (model release wars) to a "trust and predictability" competition (cost transparency and safety). From the position of building a production AI tool like Sales Claw, the two releases look like a joint declaration that "explainable" and "non-destructive" are about to become table stakes.

Let's look at the 24-hour timeline in a table first.

Datetime (UTC)ProductVersionMain change
5/21 20:39Claude Codev2.1.147/code-review, pinned background sessions
5/22 01:16Claude Codev2.1.148Bash exit 127 hotfix
5/22 (day)Claude Codev2.1.149/usage per-category breakdown, Windows security fixes
5/22Gemini CLIv0.43.0surgical edits, context management improvements, OAuth fixes
5/22Gemini CLIv0.44.0-preview.0Preview (Auto-mode merge, auth fixes)
5/23 04:03Claude Codev2.1.150Internal infrastructure only (no user-facing changes)

This article focuses on the two highlighted entries: v2.1.149 and v0.43.0. For a recap of the immediate predecessors, see our previous Claude Code write-up.

2. Glossary — Terminal AI / cost breakdown / surgical edits

Key term map for the 2026-05-22 same-day update. On the left, 'Terminal AI (Claude Code / Gemini CLI / Codex)'. In the center, 'Cost breakdown (/usage per-category)'. On the right, 'Surgical edits'. Arrows connect them to show their relationship in a whiteboard illustration.
Figure: Three key terms and how they relate. Cost breakdown and surgical edits illuminate the same 'visible / non-destructive' direction from different angles.

First, some context:When most people hear "use AI to write code", they imagine the ChatGPT chat window — "please write this code for me". But what engineers actually use day-to-day are CLI-based tools in the black screen (the terminal). Both Claude Code and Gemini CLI are this kind of tool. You ask in plain text, and the AI directly reads and writes files in your local filesystem.

Below, the three frequently used jargon terms are translated step-by-step into plain English.

JargonPlain EnglishEveryday analogy
Terminal AI coding toolAI tool that lives in the black screen and edits your files directlyA secretary robot that organizes papers on your own desk
Cost breakdown (per-category usage)A monthly bill that shows what consumed your AI quotaAn electricity bill: "fridge $X, AC $Y, lights $Z"
Surgical editsAI fixes only the specific lines it needs to, not the whole fileDrilling only one cavity, not pulling the whole tooth
MCP (Model Context Protocol)A common standard for AI to use external services (GitHub / Slack / DB, etc.)Power-plug shapes becoming standardized worldwide
skills / subagents / pluginsMechanisms to give the AI roles or extra abilities (like extensions)Adding apps to your phone to expand what it can do

3. Claude Code v2.1.149: /usage now shows cost breakdown

[Official] The first line of Anthropic's v2.1.149 release notes reads: "/usage now shows a per-category breakdown (skills, subagents, plugins, per-MCP-server costs) to help identify what's driving limits usage." Plainly, this means the /usage command will now show how your weekly quota is distributed across skills, subagents, plugins, and per-MCP-server costs, helping you pinpoint what's squeezing your limit.

The word "limits" here refers to the weekly quota assigned to your Claude Code paid plan (Pro / Max, etc.). Once you exceed it, you either pay overage or service stops for that week. Until now, /usage only showed the aggregate consumption, leaving users in the dark about what was driving the burn. The new breakdown shows the inside of that aggregate.

# In the Claude Code terminal
> /usage

# Before v2.1.148 (aggregate only)
This week: 65% of weekly limit used.

# After v2.1.149 (per-category breakdown)
This week: 65% of weekly limit used.
  Skills:        38% (mainly grant-rewrite, blog-write)
  Subagents:     14% (code-reviewer x12, planner x8)
  Plugins:        9% (anthropic-skills / xlsx)
  MCP servers:    4% (notion: 3.2%, slack: 0.8%)

The essential value of this feature is the shift from "panic when the bill arrives" to "decide what to cut while it's still actionable". [Author's view] Through building Sales Claw, I've found that AI cost explosions usually come from one of two causes: (a) a heavy skill being invoked habitually without realizing it, or (b) too many subagents being spawned. The per-category view in /usage is exactly the surface needed to catch both in flight.

Beyond the /usage upgrade, v2.1.149 includes multiple improvements. The /diff detail view now supports keyboard scrolling (arrow keys, vim-style j/k, PgUp/PgDn, Space, Home/End), and Markdown checkboxes (- [ ] todo) finally render correctly. For enterprise, a new managed setting allowAllClaudeAiMcps lets admins load claude.ai cloud MCP connectors in bulk instead of allow-listing each one.

On the security side, Windows / PowerShell users get a particularly welcome set of fixes. PowerShell built-in shortcuts like cd.. and cd\\ previously could change the working directory undetected, allowing subsequent commands to read outside the workspace — this vulnerability is now patched. The git worktree sandbox write allowlist was also tightened from "entire repository root" to "only the shared .git directory (with hooks/ and configdenied)".

4. Gemini CLI v0.43.0: surgical edits + Sublime/Emacs support

Illustration of Gemini CLI v0.43.0 surgical edits. On the left, 'Before: AI rewrites the entire file, pulling unrelated code into the change'. On the right, 'After: AI surgically replaces only the few lines that need fixing'. A whiteboard-style explanation diagram.
Figure: What surgical edits is. Instead of rewriting the whole file, AI swaps only the lines that need to change.

[Official] Gemini CLI v0.43.0 release notes include the change "steer model to use edit tool for surgical edits". Paraphrased: at the model-steering level, the AI is now nudged to use the dedicated edit tool that replaces only specific lines, rather than the write tool that rewrites the whole file.

Let me explain the problem this was solving in more concrete terms. When you asked the AI to "fix this bug", prior Gemini CLI often chose the write tool — which rewrites the entire file. From the AI's perspective this is the easy path (just write the new whole), but from the user's perspective it triggers collateral damage: irrelevant comments vanish, formatting rules shift, and a teammate's recent edits get clobbered.

v0.43.0 changes the model's preference to prioritize the edit tool (which performs targeted line-range replacements). [Author's view] This sounds like a tiny adjustment, but it's actually a significant design pivot. The principle shifts from "let the AI cleverly rewrite everything" to "let the AI narrow down what it touches" — the locus of responsibility moves.

Beyond the surgical edits improvement, v0.43.0 contains many stability fixes:

  • Resolved parallel tool call streaming ID collisions: bug fix for concurrent tool execution
  • Prevented silent hang during OAuth on headless Linux: addressed the "screen freezes during auth" issue
  • Disabled nextSpeakerCheck in ACP mode to prevent infinite thought loops: the AI no longer endlessly debates "whose turn is it"
  • Redirection allowed in YOLO / AUTO_EDIT modes without sandboxing: improved automation usability
  • Adaptive token calculator: more accurate context size estimation for predictable billing
  • JSON output for AgentExecutionStopped in non-interactive mode: easier script integration

Additionally, the same-day v0.44.0-preview.0 released the Sublime Text and Emacs client integrations first introduced in earlier nightlies, now elevated to preview status. Gemini CLI integrations were previously VS Code-centric; Sublime Text and Emacs users are now first-class citizens.

項目Up to v0.42.x (old)From v0.43.0 (new)
Edit unitWhole file (write tool)Targeted lines (edit tool preferred)
Collateral damageCommonStructurally reduced
Editor integrationVS Code-centricSublime / Emacs clients added (preview)
OAuth authenticationHeadless Linux freezes reportedSilent hang fixed
ACP modeInfinite thought loop incidentsnextSpeakerCheck disabled to avoid

In a world where you can ask AI to 'fix without breaking', design your AI sales workflow the same way: 'send without misfiring'.

無料・MIT ライセンス。インストールせずにライブデモも試せます。

5. What the two updates point to — "explainable AI" and "non-destructive AI"

Bar chart comparing Claude Code v2.1.149 and Gemini CLI v0.43.0 across capability axes (cost visibility / edit precision / safety / OS support / editor integration). A Python-generated figure highlighting each tool's strengths.
Figure: Improvement vectors: Claude Code (in the 'explainable' direction) vs Gemini CLI (in the 'non-destructive' direction).

Placing the two updates side-by-side reveals something interesting. [Author's view] Claude Code pushes in the direction of "/usage breakdown = make AI's actions explainable after the fact"; Gemini CLI pushes in the direction of "surgical edits = limit the AI's blast radius before the fact". The former strengthens after-the-fact accountability; the latter strengthens before-the-fact scope containment.

In Japan-based AI sales workflows — especially for "AI, not humans, contacting unfamiliar companies" patterns like Sales Claw — both directions are simultaneously required. Only when "auditable in hindsight" and "structurally low blast-radius" are both present does policy-controlled autonomous operation become production-ready.

6. How a general reader can experience this in 5 minutes

A 4-step flow diagram for trying Claude Code and Gemini CLI on Windows / macOS in 5 minutes: 1) npm install, 2) log in, 3) verify, 4) try the new features. Whiteboard hand-drawn style.
Figure: 5-minute setup flow: install → log in → verify → try new features.
Python line chart showing the May 2026 release timeline for Claude Code (v2.1.140 through v2.1.150) and Gemini CLI (v0.42 through v0.44-preview).
Figure: May 2026 terminal AI release timeline.

Below are common Windows / macOS steps for first-timers. Prerequisite: Node.js 18 or higher installed (available free from nodejs.org).

Step 1: Install Claude Code and try /usage

# 1) Install via npm
npm install -g @anthropic-ai/claude-code

# 2) Verify version (should be v2.1.149 or higher)
claude --version

# 3) Log in (browser opens for Anthropic account auth)
claude login

# 4) Move to any project directory and launch
cd ~/path/to/your/project
claude

# 5) Inside Claude Code, run /usage
> /usage

# 6) If "Skills", "Subagents", "Plugins", and "MCP servers" sections appear, you're good

Step 2: Install Gemini CLI and feel surgical edits

# 1) Install via npm
npm install -g @google/gemini-cli

# 2) Verify version (should be v0.43.0 or higher)
gemini --version

# 3) Log in (Google account)
gemini

# 4) From a project directory, ask the AI for a fix
# (Try on a sample file from this article to see the difference clearly)

# 5) Check whether the AI chose "edit tool" by watching the bottom of the screen
#   for output like "Using edit tool to modify file.ts at lines 42-48"
#   (edit tool, not write tool, indicates a successful surgical edit)

Which to try first

  • Already using Claude Code: Run claude update/usage first. Five minutes tells you what's driving your bill — highest priority
  • Cursor / VS Code-centric: Add Gemini CLI as a "second tool". Use surgical edits for "pinpoint fixes via Gemini, complex implementations via Cursor"
  • Sublime Text / Emacs users: Install v0.44.0-preview.0 clients to drive Gemini CLI from your editor of choice
  • First-time AI coding users: Start with Claude Code. Prioritize building cost intuition via /usage. Gemini CLI is fine for the next step

7. Caveats, limits, and remaining risks

Sample bar chart of Claude Code per-category cost composition. Skills, Subagents, Plugins, and MCP servers shown as percentages of weekly quota. A Python-generated figure.
Figure: /usage per-category sample. Skills and Subagents commonly dominate.

Both releases are directionally important, but neither is a silver bullet. Be aware of the following limits:

Limits on Claude Code /usage

  • [Official] Currently a snapshot aggregator, not a live in-flight counter, so it cannot be used as a "real-time stop" for a runaway subagent
  • [Author's view] Categories are fixed at four (skills / subagents / plugins / MCP) — it doesn't drill down to individual skills. Identifying a heavy skill still requires log analysis
  • [Unverified] Integration with enterprise audit logging (SOC2, etc.) has not been officially announced as of 2026-05-24

Limits on Gemini CLI surgical edits

  • [Official] "Steering the model to prefer the edit tool" does not mean "100% always edit tool". Complex changes and new-file creation will still use the write tool
  • [Author's view] Even when the AI picks the edit tool, the chosen line range may not match the user's intent. The gap between "just here" and what the AI infers can remain
  • [Speculation] Scripts or custom integrations that assume write-tool behavior may behave unexpectedly after the steering change. Validate in a small project before team rollout

Common remaining risks

  • Handling API keys and credentials: Terminal AI tools are powerful. Always check .gitignore / .env before launching in directories that contain secrets
  • Running directly in production: Both tools assume development use. For direct production-server use, add hard read-only mode and other safeguards
  • Industry-specific regulations: For medical / financial / public-sector use, verify AI coding tool policies with your internal compliance team before adoption

8. Sales Claw context and conclusion — what to do next

Sales Claw is an OSS tool designed to lower the risk of misfires and policy violations through policy control, pre-send automated inspection, sales-NG detection, CAPTCHA stop-on-detect, rate limiting, audit logging, and automatic stop conditions. The directions of "explainable AI" and "non-destructive AI" described in this article align almost perfectly with the design principles Sales Claw has emphasized since its inception.

In AI sales automation, the risk that "AI sends messages to unfamiliar companies on its own" cannot be avoided. One option is to require "mandatory human review", but Sales Claw chose the other path: "structurally lower the risk via automated pre-send policy inspection and audit logs". The Claude Code / Gemini CLI updates strengthen the developer-side "explainability / scope containment of the implementation tool", which converges with the operations-side "explainability / scope containment of the send policy" Sales Claw has pursued.

Next action: Run claude update to v2.1.149 or higher, then execute /usage to inspect your cost breakdown. Install Gemini CLI v0.43.0 and ask it to handle one of your routine fixes. To operate AI sales workflows "structurally safe without relying on human review", start with the Sales Claw free download. Details in the Quick Start Guide.

After reading, take action. Type /usage and see your own AI cost first.

無料・MIT ライセンス。インストールせずにライブデモも試せます。

Japanese-language original: 日本語版はこちら

よくある質問

In one paragraph, what is the Claude Code v2.1.149 /usage breakdown?
Released 2026-05-22, Claude Code v2.1.149 made /usage show a per-category breakdown across four buckets: skills (extensions), subagents (child agents), plugins, and per-MCP-server costs. Previously, /usage only showed the aggregate weekly consumption. Now you can see in advance which category is inflating next month's bill, and where to dial back if you keep tripping limits. The everyday analogy is an electricity bill that itemizes "fridge $X, AC $Y, lights $Z" instead of one lump sum. This is the moment AI coding tools moved from "panic when the bill arrives" to "decide what to cut while still in flight". The same-day v2.1.150 is internal-infrastructure-only and has no user-facing changes. Pro / Max plan users should run claude update to v2.1.149 or higher, then execute /usage.
What is Gemini CLI v0.43.0 surgical edits?
Released 2026-05-22, Gemini CLI v0.43.0 added the change "steer model to use edit tool for surgical edits". Paraphrased: at the model-steering layer, the AI is nudged to prefer the dedicated edit tool that replaces specific lines, instead of the write tool that rewrites the entire file. Previously, when you asked the AI for a small fix, it often chose the write tool (the easy path for the AI), which would erase unrelated comments, shift formatting rules, or wipe a teammate's recent edits — a "collateral damage" problem. v0.43.0 addresses this at the model preference level. The analogy: a doctor choosing to "drill one cavity" rather than "pull the whole tooth". Caveat: "prefer the edit tool" is not "always edit tool" — for complex changes or new-file creation, the write tool is still selected.
Why did Claude Code and Gemini CLI ship updates on the same day?
[Author's view] This is not a coincidence — it's a sign that the AI coding industry has shifted its competitive front from a "speed and intelligence race" to a "long-term-business-trust race". Claude Code strengthens after-the-fact accountability with /usage ("can explain what the cost went to"). Gemini CLI strengthens before-the-fact scope containment with surgical edits ("limits the AI's blast radius"). Both illuminate the same "explainable / non-destructive" direction from different angles. [Speculation] The likely backdrop is enterprise complaints around "unpredictable bills" and "code keeps getting rewritten without consent — audit fails", though neither Anthropic nor Google has formally said so. For AI sales automation patterns like Sales Claw — where "AI, not humans, contact unfamiliar companies" — both directions are simultaneously required.
How many minutes does it take a general reader to try? Does it cost money?
Prerequisite: Node.js 18+ installed (free at nodejs.org). Claude Code: npm install -g @anthropic-ai/claude-code → claude login → claude → /usage, about 5 minutes. Gemini CLI: npm install -g @google/gemini-cli → gemini → ask it to do one fix, about 5 minutes. Together: 10-15 minutes. On cost: Claude Code lets you try /usage even on the free tier (note that heavy skill use burns through the quota faster). Gemini CLI has a Google free tier and surgical edits is observable there. For real business use, both tools are realistic to consider at roughly $20/month paid plans. Pricing and bundled features change, so always confirm current values on the official sites (anthropic.com, ai.google.dev) before signing up.
How does this relate to AI sales automation or Sales Claw?
Sales Claw is an OSS tool designed to lower the risk of misfires and policy violations through policy control, pre-send automated inspection, sales-NG detection, CAPTCHA stop-on-detect, rate limiting, audit logging, and automatic stop conditions. The "explainable AI" and "non-destructive AI" directions covered in this article align almost perfectly with the design principles Sales Claw has emphasized since day one. The Claude Code / Gemini CLI updates strengthen the developer-side "explainability and scope containment of the implementation tool", which is convergent with the operations-side "explainability and scope containment of the send policy" Sales Claw pursues. [Author's view] At the operating field, production-side safety must be designed as a separate layer independent of terminal AI tool updates: pre-send inspection, sales-NG detection, CAPTCHA stop, rate limiting, and audit logging policies are decided independently of tool choice.
What are the remaining risks and limits?
Claude Code /usage limits: [Official] currently a snapshot aggregator, not a live counter, so it cannot serve as a real-time stop for a runaway subagent. Categories are fixed at four (skills/subagents/plugins/MCP) and do not drill down to individual skills. [Unverified] Integration with enterprise audit logging (SOC2, etc.) has not been officially announced as of 2026-05-24. Gemini CLI surgical edits limits: [Official] "preferring edit tool" is not "100% edit tool" — complex changes still use write tool. [Author's view] Even when the AI picks edit tool, the line range it chose may not match user intent (the gap between "just here" and the AI's inference). [Speculation] Scripts and custom integrations that assume write-tool behavior may behave unexpectedly after the steering change, so validate in a small project before team rollout. Common remaining risks: handling of API keys and credentials, direct production execution, and industry-specific regulations (medical / financial / public sector).

参考文献

本記事は X 公式アカウントと公式ドキュメントを一次情報として参照しています。

  1. [01]
  2. [02]
  3. [03]
  4. [04]
  5. [05]
  6. [06]
  7. [07]
  8. [08]
  9. [09]
  10. [10]

この記事の著者

中澤 圭志

中澤 圭志

Sales Claw maintainer

Designs and develops Sales Claw. Writes from the field on B2B sales automation and applied AI.

Share this article