explainx.ai350K+ learn from us
TrendingAI News TodayPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • Highlights at a glance
  • /rewind: recover from /clear
  • Background agents: stops stick
  • Performance: 37% less CPU while streaming
  • Hooks: comma-separated matchers fixed
  • MCP improvements
  • Permissions, sandbox, and enterprise
  • Other fixes (selected)
  • New env vars and models (CLI surface)
  • How to update
  • Related reading
← Back to blog

explainx / blog

Claude Code 2.1.191: /rewind After /clear, Background Agent Fixes, MCP

Claude Code, Changelog, Developer Tools, MCP, Anthropic

Part of Claude Code

Claude Code CLI 2.1.191 adds /rewind to resume before /clear, permanent background agent stops, 37% lower streaming CPU, MCP OAuth retries, hook matcher fixes, and 20 CLI changes — full changelog.

Jun 25, 2026·4 min read·Yash Thakker
add explainx.ai
go deep
Claude Code 2.1.191: /rewind After /clear, Background Agent Fixes, MCP

TL;DR: Claude Code 2.1.191 dropped June 25, 2026 (@ClaudeCodeLog / @marc_krenn). Headline features: /rewind resumes context from before /clear, background agent stops are permanent, ~37% lower CPU during streaming (100ms coalescing), comma-separated hook matchers fixed, and a pile of MCP reliability improvements. Twenty CLI changes total.


Highlights at a glance

table · 2 cols
ChangeWhy it matters
/rewind after /clearUndo an accidental clear without losing the thread
Background agents stay stoppedKills from tasks panel no longer resurrect
Streaming coalescing (100ms)~37% CPU reduction; smoother long sessions
Hook matcher fix"Bash,PowerShell" matchers actually fire now
MCP retries + OAuthTransient network errors backoff; headless OAuth skips browser popup
Sandbox network memory"Yes" on host allow persists for the session
Permissions UI fixRecently-denied approvals persist on close
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.


/rewind: recover from /clear

The biggest workflow fix in 2.1.191:

Added /rewind support for resuming a conversation from before /clear was run.

Before: /clear (aliases /reset, /new) wiped context. If you cleared too aggressively, you relied on /resume for a saved session — not the in-flight thread.

After: /rewind rolls back to a checkpoint before the clear, restoring prior context so the session continues.

This sits alongside existing rollback tools:

table · 3 cols
MechanismTriggerScope
ESC × 2KeyboardCode and/or conversation checkpoints
/rewindSlash commandCheckpoints + pre-/clear restore (2.1.191+)
/resumeSlash commandSaved named sessions
/branchSlash commandFork conversation at a point

Deep dive: Claude Code commands reference · Checkpoint restore guide.


Background agents: stops stick

Fix: Background agents stopped from the tasks panel no longer restart — stopping is permanent.

If you run parallel work via /fork, /agents, or /tasks, a stop that silently undid itself was dangerous (duplicate edits, double bash). 2.1.191 closes that hole.

Related: claude agents no longer sends builtin slash commands like /usage to background sessions as raw prompt text — you get a hint instead.


Performance: 37% less CPU while streaming

Two related improvements:

  1. Coalesce text updates to 100ms → ~37% CPU reduction during streaming responses
  2. Reduced long-session memory growth from terminal output cache
  3. Scroll fix — reading earlier output no longer jumps you to the bottom mid-stream

For developers running sound and traffic-light hooks on long agent sessions, lower CPU and stable scroll make unattended monitoring less painful.


Hooks: comma-separated matchers fixed

Bug: Hooks with matchers like "Bash,PowerShell" silently never fired.

Fix in 2.1.191: Multi-tool matchers parse correctly.

If you copied hook recipes from forums and wondered why nothing ran, update first, then audit ~/.claude/settings.json:

json
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash,PowerShell",
        "hooks": [{ "type": "command", "command": "echo triggered" }]
      }
    ]
  }
}

MCP improvements

table · 2 cols
AreaChange
Capability discoverytools/list, prompts/list, resources/list retry transient errors with backoff
OAuthDiscovery/token requests retry once; headless skips browser popup → paste URL prompt
ErrorsHTTP 404 shows URL + pointer to MCP config
ReliabilityFewer flaky server dropouts on slow networks

Connect tools: Claude Code MCP guide.


Permissions, sandbox, and enterprise

  • /permissions Recently-denied tab — approving a denial now persists on close (was silently discarded)
  • Sandbox network dialog — hosts allowed with "Yes" are remembered for the session
  • /voice — when disabled by org policy, message explains the restriction (not generic "not available")
  • Managed settings — forceRemoteSettingsRefresh works via MDM/file policy; fetch sends Cache-Control: no-cache

Other fixes (selected)

  • /login URL — no longer truncated when wrapped in Windows Terminal
  • Cmd+click links — fixed in Ghostty over ssh/tmux fullscreen
  • Agent panel — no longer jumps one row when scrolling roster past overflow cap
  • Image placeholders — job rows show [Image #N] not full filesystem paths
  • Welcome splash — no longer overflows default 80×24 macOS Terminal
  • Vim / search — hints how to reach slash commands from NORMAL mode

New env vars and models (CLI surface)

Per @ClaudeCodeLog extended thread, 2.1.191 also adds:

Environment variables: BUF_BIGINT_DISABLE, CLAUDE_CODE_DD_ERROR_TRACKING_FLUSH_INTERVAL_MS, NODE_USE_ENV_PROXY, MINIMATCH_TESTING_PLATFORM

Model aliases (internal/flags): claude-bg-, claude-code-error-tracking, o5-qn, o5-u:, opus-on-pro-near-limit

Treat model slug additions as feature-flag plumbing unless documented on code.claude.com.


How to update

bash
# If installed via npm/homebrew — follow your usual upgrade path
claude --version   # confirm 2.1.191+

# Or use Claude Code's built-in update mechanism per official docs

Changelog source: @ClaudeCodeLog (unofficial, tolerated bot) · full history in linked GitHub repo.


Related reading

  • Claude Code desktop flexible panes + persistent /diff (Sept 2026) — multi-session layouts that match parallel/background agent work
  • screenpipe — desktop work memory via MCP (Jul 2026)
  • Claude Code commands — full reference
  • /rewind on slash commands registry
  • Restore checkpoints (ESC × 2)
  • Hooks automation guide
  • Sound + traffic-light approval alerts
  • /goal long-running agents

Changelog items sourced from @ClaudeCodeLog posts on June 25, 2026. Verify behavior on your installed version — patch details may vary by platform.

Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Related posts

Jul 16, 2026

Claude Code Artifacts + MCP: Live Dashboards With Viewer-Scoped Auth

Anthropic's ClaudeDevs account announced artifact MCP connectors: build a dashboard once, and each viewer pulls live data through their own connectors. explainx.ai explains viewer-scoped auth, plan limits, admin toggles, and how this extends Thariq's thick-artifacts framework.

Oct 29, 2026

Claude Code agent_summary: Does a 3-Word Status Line Really Burn 16% of Your Tokens?

A Flamerix AI gist claims Claude Code spends up to a fifth of its requests on a 3-5 word status line for background agents. A GitHub issue from August and Hacker News testers give a more nuanced picture: real, but it depends on how many subagents you run.

Oct 24, 2026

Thariq Shihipar Leaves Anthropic: What Is Claimed vs. Verified

Reports say Thariq Shihipar, one of the most visible Claude Code engineers, has left Anthropic after more than a year. Here is what is claimed, what we could and could not verify, and what changes for people who use his guides.