Repository navigation
docs: Claude Code v2.1.318 - Bash hooks now fire on Monitor commands, subagents fail instead of silently swapping models, SDK reloadPlugins() - #1439
Merged
Conversation
… subagents fail instead of silently swapping models, SDK reloadPlugins() Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Night shift report
WHY THIS MATTERS: The version is still 2.1.318, but its docs caught up with behavior changes that affect existing setups. A
PreToolUse/PermissionRequesthook with aBashmatcher now also runs on Monitor tool commands, but it can only deny or ask, never allow or rewrite. If your hook auto-approves Bash, it silently does nothing for Monitor unless you addBash|Monitor. Since v2.1.318, a subagent that hits a flagged request now fails under "Ask each time" instead of quietly re-running on the fallback model. Also since v2.1.318, startingclaudein an IDE terminal no longer installs the extension. If you've built tooling around hooks, subagents, or IDE setup, read this.HIGHLIGHTS:
hooks.md,agent-sdk/hooks.md, v2.1.314+). ABashmatcher catches Monitor calls with deny/ask only. UseBash|Monitoror.*andMonitor(tail *)inifto allow or rewrite them.auth_storage_failurenotification matcher (v2.1.288+).model-config.md). Under "Ask each time", subagents now fail withAgent terminated early due to an API error. Before, they re-ran on the fallback model.claudestartup (v2.1.318). Only/ideinstalls it now (autoInstallIdeExtension,CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL).Query.reloadPlugins()reloads plugins mid-session. Python users send/reload-pluginsas a prompt instead.SDKMessageOrigindocs:human,peer,unclassified, scheduled-trigger task notifications, andfromModefor cross-session peers. The SDK must setorigin: {kind: "human"}for theultracodekeyword check to accept the prompt.ignoreViolationsin both SDKs.Write(path),Glob(path)andGrep(path)rules are accepted but never match. AGrep(docs/**)deny does not stop Grep, so useEdit/Readrules instead.REVIEW.mdfiles. They're honored on protected branches, share a 150KB budget, and are ignored under test/example/vendor/generated directory names.fastModePerSessionOptInand saved-preference semantics are clarified. Only Opus 5.5 / 5 / 4.8 support it, and running/faston another model switches you to Opus.load_test_modeand Claude Desktop admin UI for spend limits.chat_cowork_unifiedproduct surface, plus per-surface DAU/WAU/MAU and skill/connector/plugin counts for Chat and Cowork unified.anthropic-beta: admin-user-sign-out-2026-10-08).rlg_group IDs).claude-plugins-official:champion-kit(adoption plays, hackathon and office-hours skills for Claude Code champions) andreceipts(a personal Claude Code impact report from your session transcripts). The LSP plugins also gained.claude-plugin/manifests.enabled/defer_loadingtool fields and advisor table reflow. Government and third-party desktop docs and about 20 support articles were refreshed.tombstones.jsonanddiscovery.jsononly changed their timestamps, so no new deaths, resurrections, or sources.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning