explainx.ainewsletter3.4k
trending🔥loopsskills
pricing
workshops ↗
explainx.ai

Learn to lead teams that combine humans and agents. Platform access, live workshops, bootcamps, and 50+ courses — plus skills, tools, and MCP to practice what you learn.

follow us

custom AI agents

[email protected]

get started

Join · $29/mo

learn

platform · $29/moworkshopsbootcampscoursescertificationscertification testsexplainx universitycorporate trainingfacilitatorshackathonslearn skills & mcp

discover

skillstoolsagentsmcp serversdesignsllmsagiranks

content

releasesvisionmissionaboutcommunityteamcareersresourcespromptsgenerators hubgenerator SEO hubprompt templatesprompt guidesblogfor LLMsdemo

Sister Products

Infloq

Infloq

Influencer marketing

BgBlur

BgBlur

Privacy-first blur

Olly Social

Olly Social

Social AI copilot

Ceptory

Ceptory

Video intelligence

BgRemover

BgRemover

Background removal

newsletter · weekly

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

contactsupportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

← Back to blog

explainx / blog

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

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
Claude CodeChangelogDeveloper ToolsMCPAnthropic
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

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
newsletter3.4k

Curated AI updates on agents, skills, and MCP — delivered to your inbox. 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:

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:

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

MCP improvements

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

# 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 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.

Related posts

Jun 22, 2026

Steering Claude Code: CLAUDE.md, Skills, Hooks, Subagents, and Rules Explained

CLAUDE.md loads at session start and stays forever. Skills load only when invoked. Hooks run deterministically outside the context window. Subagents return only a summary to the main thread. Anthropic's new guide maps all seven instruction methods — here is the practical breakdown with decision rules for each.

Jun 19, 2026

Claude Code Artifacts: Shareable AI Sessions vs Lovable, Codex Sites, and v0

Claude Code Artifacts lets teams deploy shareable HTML apps from inside a coding session—private by default, shared within your org. Here's how it compares to Lovable, v0, Bolt, and Codex Sites.

Jun 17, 2026

Anthropic Research: Domain Expertise Beats Coding Background in Agentic Programming (2026)

In 7 months of observing 235,000 users, Anthropic found that management occupations outperform software engineers on verified coding success, that "fixing broken code" dropped from 33% to 19% of sessions, and that the gap between technical and non-technical users has not widened. The implications for who can build software are profound.