docs: Claude Code v2.1.238 - classifierContext hooks, keybindingFlavor, cross-session safety - #1198
Merged
Conversation
…r, cross-session safety 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: Three new developer-facing features shipped with fresh documentation, plus behavioral clarifications for auto mode and cross-session messaging that change how agents handle edge cases. Developers embedding Claude Code via the Agent SDK, writing hooks, or customizing keyboard behavior need to know about these now.
HIGHLIGHTS:
classifierContextin PostToolUse hooks (v2.1.236+): hooks can now annotate a tool call's result for the auto mode permission classifier without touching what Claude sees. In-process TypeScript SDK callbacks get elevated trust — a user statement relayed in the note can satisfy a classifier consent check. Shell hooks get "application-provided context" trust. Hard limits: 2000 chars shared across all hooks on the same call, synchronous responses only, ignored for read-only tool calls. NewclassifierContextfield documented in hooks.md, hooks reference table, and agent-sdk/hooks.md and typescript.md.keybindingFlavorsetting (v2.1.238+): new~/.claude/settings.jsonoption switchesCtrl+Wfrom "delete previous word stopping at punctuation" (classic) to "delete back to whitespace" (readline/bash-style). Useful for path editing. Docs in interactive-mode.md.Monitorallow rules are now dropped in auto mode (restored on exit), fixing a gap where a broad Monitor rule could approve shell commands without classifier review. Pre-v2.1.236 behavior was to leave them in effect.git statusis injected automatically before destructive git commands, even whenstatus.showUntrackedFiles=no.additionalDirectoriesclarified: now documented that--add-diralso loads skills, commands, and subagents from each added directory when theprojectsetting source is active. Settings source table updated to reflect commands and subagents alongside skills.Ctrl+A/E/K/U/W/Y,Alt+Y,Alt+B/F, andCtrl+_with platform-specific notes (macOS iTerm2Cmd+Backspace, WindowsCtrl+Backspace).dialogExpirybehavior for consent prompts: new docs explain what happens when Fable 5 usage-credit consent goes unanswered in Remote Control, background, or agent team sessions — turn ends without sending, model unchanged, prompts again on next message.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning