Skip to content

A visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.

docs: sync to Claude Code v2.1.300 (#193)

Luong NGUYENf24cc8084289
diff --git a/.claude/skills/lesson-quiz/SKILL.md b/.claude/skills/lesson-quiz/SKILL.md
index a525c60..58a12af 100644
--- a/.claude/skills/lesson-quiz/SKILL.md
+++ b/.claude/skills/lesson-quiz/SKILL.md
@@ -3,7 +3,7 @@ name: lesson-quiz
description: "Test a learner on a single Claude Code tutorial lesson (01-10) with 10 questions, scoring answers and flagging weak spots. Use before, during, or after a lesson. Don't use for whole-tutorial assessment or explaining a topic instead of testing it."
effort: high
metadata:
- version: 1.6.0
+ version: 1.6.1
author: Luong NGUYEN
---
diff --git a/.claude/skills/lesson-quiz/references/question-bank.md b/.claude/skills/lesson-quiz/references/question-bank.md
index 7c3e74d..6fc2b11 100644
--- a/.claude/skills/lesson-quiz/references/question-bank.md
+++ b/.claude/skills/lesson-quiz/references/question-bank.md
@@ -112,7 +112,7 @@
- **Options**: A) 3 levels deep | B) 4 levels deep | C) 10 levels deep | D) Unlimited
- **Correct**: B
- **Explanation**: The `@path` import syntax supports recursive imports up to a maximum depth of 4 hops to prevent infinite loops.
-- **Review**: Memory Architecture section
+- **Review**: The /memory Command section (Import features)
### Q4
- **Category**: practical
@@ -143,7 +143,7 @@
- **Question**: What does the `/init` command do?
- **Options**: A) Initializes a new Claude Code project from scratch | B) Generates a template CLAUDE.md based on your project structure | C) Resets all memory to defaults | D) Creates a new session
- **Correct**: B
-- **Explanation**: `/init` analyzes your project and generates a template CLAUDE.md with suggested rules and standards. It's a one-time bootstrapping tool.
+- **Explanation**: `/init` analyzes your project and generates a template CLAUDE.md with suggested rules and standards. Re-running it on an existing CLAUDE.md suggests improvements.
- **Review**: /init command section
### Q8
@@ -187,7 +187,7 @@
- **Question**: What is the most important factor for a skill to be auto-invoked by Claude?
- **Options**: A) The skill's file name | B) The `description` field in frontmatter with when-to-use keywords | C) The skill's directory location | D) The `auto-invoke: true` frontmatter field
- **Correct**: B
-- **Explanation**: Claude decides whether to auto-invoke a skill based solely on its `description` field. It must include specific trigger phrases and scenarios.
+- **Explanation**: Claude decides whether to auto-invoke a skill based on its `description` (plus optional `when_to_use`). It must include specific trigger phrases and scenarios.
- **Review**: Controlling Skill Invocation section
### Q3
@@ -211,7 +211,7 @@
- **Question**: What is the approximate context budget allocated to skill metadata (Level 1)?
- **Options**: A) 0.5% of context window | B) 1% of context window | C) 5% of context window | D) 10% of context window
- **Correct**: B
-- **Explanation**: Skill metadata occupies about 1% of the context window (fallback: 8,000 characters). This is configurable with `SLASH_COMMAND_TOOL_CHAR_BUDGET`.
+- **Explanation**: Skill metadata occupies about 1% of the context window (fallback: 8,000 characters). This is configurable with `SLASH_COMMAND_TOOL_CHAR_BUDGET` or the `skillListingBudgetFraction` setting.
- **Review**: the "Description budget" paragraph under Automatic Discovery
### Q6
@@ -232,10 +232,10 @@
### Q8
- **Category**: practical
-- **Question**: What characters are allowed in the `name` field of a skill's frontmatter?
+- **Question**: What characters are allowed in the `name` field of a skill's frontmatter for a skill you plan to share via claude.ai or the Skills API (Agent Skills spec)?
- **Options**: A) Any characters | B) Lowercase letters, numbers, and hyphens only (max 64 chars) | C) Letters and underscores | D) Alphanumeric only
- **Correct**: B
-- **Explanation**: The name must be kebab-case (lowercase, hyphens), max 64 characters. `name` is itself optional — if omitted it defaults to the skill's directory name — but when supplied it must follow these rules. In Claude Code, the `anthropic-skills` name and namespace are reserved for skills synced from claude.ai, so a skill with that name doesn't load; the broader ban on "anthropic" or "claude" applies to claude.ai skill uploads and the Skills API.
+- **Explanation**: The name must be kebab-case (lowercase, hyphens), max 64 characters. `name` is itself optional — if omitted it defaults to the skill's directory name — but when supplied it must follow these rules. In Claude Code, the `anthropic-skills` name and namespace are reserved for skills synced from claude.ai, so a skill with that name doesn't load; the broader ban on "anthropic" or "claude" applies to claude.ai skill uploads and the Skills API. Claude Code itself (v2.1.299) refuses only names that contain hidden, direction-changing or blank-like characters, `<` or `>`, or that are over 256 characters.
- **Review**: SKILL.md format section
### Q9
@@ -311,7 +311,7 @@
- **Question**: What does the `memory` field with scope `project` do for a subagent?
- **Options**: A) Gives read access to the project CLAUDE.md | B) Creates a persistent memory directory scoped to the current project | C) Shares the main agent's conversation history | D) Loads the project's git history
- **Correct**: B
-- **Explanation**: The `memory` field creates a persistent directory for the subagent. Scope `project` means the memory is tied to the current project. The first 200 lines of the agent's MEMORY.md auto-load.
+- **Explanation**: The `memory` field creates a persistent directory for the subagent. Scope `project` means the memory is tied to the current project. The first 200 lines or 25KB of the agent's MEMORY.md, whichever comes first, auto-load.
- **Review**: Persistent memory section
### Q8
@@ -363,7 +363,7 @@
- **Question**: With `ENABLE_TOOL_SEARCH=auto`, what happens when MCP tool definitions reach 10% of the context window?
- **Options**: A) They are truncated | B) Tool search kicks in: MCP tools are deferred and discovered on demand | C) Claude shows an error | D) Extra tools are disabled
- **Correct**: B
-- **Explanation**: By default (`ENABLE_TOOL_SEARCH` unset) tool search is already on and all MCP tools are deferred. `auto` is threshold mode: tools load upfront until their definitions reach 10% of the context window, then all are deferred (`auto:N` sets a custom percentage). Tool search needs a model that supports `tool_reference` blocks: Sonnet 4.5, Haiku 4.5, Opus 4.5 and later.
+- **Explanation**: By default (`ENABLE_TOOL_SEARCH` unset) tool search is already on and all MCP tools are deferred. `auto` is threshold mode: tools load upfront until their definitions reach 10% of the context window, then all are deferred (`auto:N` sets a custom percentage). Tool search needs a model that supports `tool_reference` blocks: Opus 4, Sonnet 4, Haiku 4.5 and later.
- **Review**: MCP Tool Search section
### Q4
@@ -371,7 +371,7 @@
- **Question**: How do you use environment variable fallbacks in MCP config?
- **Options**: A) `${VAR || "default"}` | B) `${VAR:-default}` | C) `${VAR:default}` | D) `${VAR ? "default"}`
- **Correct**: B
-- **Explanation**: `${VAR:-default}` provides a fallback value if the environment variable is not set. `${VAR}` without fallback will error if not set.
+- **Explanation**: `${VAR:-default}` provides a fallback value if the environment variable is not set. If `VAR` is unset and has no default, the server still loads with the literal `${VAR}` text, and `claude mcp list` and `/mcp` warn about the missing variable.
- **Review**: Environment variable expansion section
### Q5
@@ -403,7 +403,7 @@
- **Question**: What is the default maximum output size for MCP tools?
- **Options**: A) 5,000 tokens | B) 10,000 tokens | C) 25,000 tokens | D) 50,000 tokens
- **Correct**: C
-- **Explanation**: Default max is 25,000 tokens (`MAX_MCP_OUTPUT_TOKENS`). A warning appears at 10k tokens. Disk persistence caps at 50k characters.
+- **Explanation**: Default max is 25,000 tokens (`MAX_MCP_OUTPUT_TOKENS`). A warning appears at 10k tokens. Text results over 50,000 characters are saved to a file.
- **Review**: MCP Output Limits section
### Q9
@@ -455,7 +455,7 @@
- **Question**: How can a PreToolUse hook modify the tool's input parameters before execution?
- **Options**: A) Return modified JSON on stderr | B) Return JSON with `updatedInput` field on stdout (exit code 0) | C) Write to a temp file | D) Hooks cannot modify inputs
- **Correct**: B
-- **Explanation**: A PreToolUse hook can output JSON with `"updatedInput": {...}` on stdout (with exit 0) to modify the tool's parameters before Claude uses them.
+- **Explanation**: A PreToolUse hook can output JSON with `"updatedInput": {...}` on stdout (with exit 0) to modify the tool's parameters before Claude uses them. `updatedInput` goes under `hookSpecificOutput` and replaces the whole input object; since v2.1.300 it is validated like Claude's own input, so unknown keys are dropped and input the tool rejects denies the call.
- **Review**: PreToolUse section
### Q5
@@ -469,7 +469,7 @@
### Q6
- **Category**: practical
- **Question**: You want a hook that only runs once when a skill is first loaded, not on every tool call. What field do you add?
-- **Options**: A) `run-once: true` | B) `once: true` in the component hook definition | C) `single: true` | D) `max-runs: 1`
+- **Options**: A) `run-once: true` | B) `once: true` on a hook in the skill's frontmatter | C) `single: true` | D) `max-runs: 1`
- **Correct**: B
- **Explanation**: Hooks declared in a skill's frontmatter support `once: true` — Claude Code removes the hook after its first successful run (a run that fails, blocks, or times out leaves it in place). `once` is honored only in skill frontmatter.
- **Review**: Component-scoped hooks section
@@ -503,7 +503,7 @@
- **Question**: You want to debug why a hook isn't firing. What's the best approach?
- **Options**: A) Add print statements to the hook script | B) Use `--debug` flag and `Ctrl+O` for verbose mode | C) Check the system log | D) Hooks don't have debugging tools
- **Correct**: B
-- **Explanation**: The `--debug` flag and `Ctrl+O` verbose mode show hook execution details including which hooks fire, their inputs, and outputs.
+- **Explanation**: `claude --debug` (or `--debug-file <path>`, or `/debug` mid-session) logs hook runs to the debug log, including which hooks fire, their inputs, and outputs; `Ctrl+O` opens the transcript view to see hook outcomes.
- **Review**: Debugging section
---
@@ -515,7 +515,7 @@
- **Question**: What is the core manifest file for a plugin and where does it live?
- **Options**: A) `plugin.yaml` in the root directory | B) `.claude-plugin/plugin.json` | C) `package.json` with a "claude" key | D) `.claude/plugin.md`
- **Correct**: B
-- **Explanation**: The plugin manifest lives at `.claude-plugin/plugin.json`. Only `name` (kebab-case identifier) is required; `description`, `version`, `author`, `homepage`, `repository` and `license` are optional metadata.
+- **Explanation**: The plugin manifest lives at `.claude-plugin/plugin.json`. The manifest is optional; when present, `name` (kebab-case identifier) is its only required key; `description`, `version`, `author`, `homepage`, `repository` and `license` are optional metadata.
- **Review**: Plugin definition structure section
### Q2
@@ -631,7 +631,7 @@
- **Question**: How long are checkpoints retained?
- **Options**: A) Until session ends | B) 7 days | C) 30 days | D) Indefinitely
- **Correct**: C
-- **Explanation**: Checkpoints persist across sessions for up to 30 days, after which they are automatically cleaned up. Retention is also capped by count: only the 100 most recent checkpoints per session are kept, so older ones are dropped even inside the 30-day window. The window is governed by `cleanupPeriodDays`.
+- **Explanation**: Checkpoints are saved with the session, so `/rewind` works after you resume it; snapshots are deleted about 30 days after the session last saved one (`cleanupPeriodDays`); only the 100 most recent checkpoints keep file snapshots. The window is governed by `cleanupPeriodDays`.
- **Review**: Checkpoint Retention section
### Q6
@@ -844,8 +844,8 @@
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/skills
@@ -861,3 +861,8 @@
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/plugins/cli-reference
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/hooks#pretooluse-decision-control
+- https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json
+- https://code.claude.com/docs/en/mcp#configure-tool-search
+- https://code.claude.com/docs/en/skills#frontmatter-reference
+- https://code.claude.com/docs/en/checkpointing#automatic-tracking
diff --git a/.claude/skills/self-assessment/SKILL.md b/.claude/skills/self-assessment/SKILL.md
index 2f89415..db117c7 100644
--- a/.claude/skills/self-assessment/SKILL.md
+++ b/.claude/skills/self-assessment/SKILL.md
@@ -1,6 +1,6 @@
---
name: self-assessment
-version: 2.5.3
+version: 2.5.4
description: Comprehensive Claude Code self-assessment and learning path advisor. Runs a multi-category quiz covering 10 feature areas, produces a detailed skill profile with per-topic scores, identifies specific gaps, and generates a personalized learning path with prioritized next steps. Use when asked to "assess my level", "take the quiz", "find my level", "where should I start", "what should I learn next", "check my skills", "skill check", or "level up".
---
@@ -82,7 +82,7 @@ Options:
1. "Installed and used an auto-invoked skill" — A skill that triggers automatically based on its description, without manual /command invocation
2. "Controlled skill invocation behavior" — Used `disable-model-invocation`, `user-invocable`, or `context: fork` with agent field in SKILL.md frontmatter
3. "Set up a PreToolUse or PostToolUse hook" — Configured a hook that runs before/after tool execution (e.g., command validator, auto-formatter)
-4. "Used advanced hook features" — Configured prompt-type hooks, component-scoped hooks in SKILL.md, HTTP hooks, or hooks with custom JSON output (updatedInput, systemMessage)
+4. "Used advanced hook features" — Configured prompt-type hooks, skill-frontmatter hooks, HTTP hooks, or hooks with custom JSON output (updatedInput, systemMessage)
**Scoring for Round 2:**
- Options 1-2 map to **Skills** (0-2 points)
@@ -109,8 +109,8 @@ Options:
"Which of these have you done? Select all that apply."
Options:
-1. "Used checkpoints for safe experimentation" — Created checkpoints, used Esc+Esc or /rewind, restored code and/or conversation, or used either Summarize option (summarize from here / summarize up to here)
-2. "Used planning mode or extended thinking" — Activated planning via /plan, Shift+Tab, or --permission-mode plan; toggled extended thinking with Alt+T/Option+T
+1. "Used checkpoints for safe experimentation" — Rewound to a checkpoint with Esc+Esc or /rewind, restored code and/or conversation, or used either Summarize option (summarize from here / summarize up to here)
+2. "Used planning mode or extended thinking" — Activated planning via /plan, Shift+Tab, or --permission-mode plan; toggled extended thinking with Alt+T/Option+T on a model that allows it, or set reasoning depth with `/effort`
3. "Configured permission modes" — Used any of the six modes — manual (renamed from default in v2.1.200), acceptEdits, plan, auto, dontAsk, or bypassPermissions — via CLI flags, keyboard shortcuts, or settings (just starting in the built-in auto default doesn't count)
4. "Used remote/desktop/web features" — Used `claude --remote-control`, `claude --cloud`, `/teleport`, `/desktop`, or worktrees with `claude -w`
@@ -303,7 +303,7 @@ Use these specific recommendations when a topic is a gap:
**Skills (score 0)**:
- Tutorial: [03-skills/](../../../03-skills/)
- Focus on: SKILL.md format, auto-invocation via description field, progressive disclosure (3 loading levels)
-- Key exercise: Install the code-review skill and verify it auto-triggers
+- Key exercise: Install `03-skills/code-review-specialist` and verify it auto-triggers
- Done when: A skill automatically activates based on conversation context
**Skills (score 1 — review)**:
@@ -317,8 +317,8 @@ Use these specific recommendations when a topic is a gap:
- Done when: A hook blocks dangerous commands before execution
**Hooks (score 1 — review)**:
-- Focus on: All 33 hook events (including PostToolUseFailure, StopFailure, TaskCreated, CwdChanged, FileChanged, PostCompact, Elicitation, ElicitationResult, Setup, UserPromptExpansion, MessageDisplay, PreModelSwitch, PostModelSwitch — the last two added in v2.1.251), 5 hook types (command, http, mcp_tool, prompt, agent — agent hooks are experimental and may change), component-scoped hooks in SKILL.md frontmatter, HTTP hooks with allowedEnvVars, `onFailure: "block"` to block the action when a command or HTTP hook fails (v2.1.295+), `CLAUDE_ENV_FILE` for SessionStart/CwdChanged/FileChanged
-- Done when: You can create a prompt-based Stop hook and a component-scoped hook in a skill
+- Focus on: All 33 hook events (including PostToolUseFailure, StopFailure, TaskCreated, CwdChanged, FileChanged, PostCompact, Elicitation, ElicitationResult, Setup, UserPromptExpansion, MessageDisplay, PreModelSwitch, PostModelSwitch — the last two added in v2.1.251), 5 hook types (command, http, mcp_tool, prompt, agent — agent hooks are experimental and may change), hooks in SKILL.md frontmatter (they persist for the session after invocation; subagent-frontmatter hooks end with the subagent), HTTP hooks with allowedEnvVars, `onFailure: "block"` to block the action when a command or HTTP hook fails (v2.1.295+), `CLAUDE_ENV_FILE` for SessionStart, Setup, CwdChanged and FileChanged
+- Done when: You can create a prompt-based Stop hook and a hook in a skill's frontmatter (and you know it stays registered for the rest of the session)
**MCP (score 0)**:
- Tutorial: [05-mcp/](../../../05-mcp/)
@@ -327,8 +327,8 @@ Use these specific recommendations when a topic is a gap:
- Done when: You can query live data from an external service via MCP
**MCP (score 1 — review)**:
-- Focus on: Project-scope .mcp.json (requires team approval), OAuth 2.0 auth, MCP resources with `@server:resource` mentions, Tool Search (ENABLE_TOOL_SEARCH), `claude mcp serve`, output limits (10,000 tokens warning; 25,000 tokens default max via `MAX_MCP_OUTPUT_TOKENS`; 50,000 characters disk-persistence threshold)
-- Done when: You have a project .mcp.json and understand Tool Search auto mode
+- Focus on: Project-scope .mcp.json (each user approves it on first use; workspace trust applies), OAuth 2.0 auth, MCP resources with `@server:resource` mentions, Tool Search (ENABLE_TOOL_SEARCH), `claude mcp serve`, output limits (10,000 tokens warning; 25,000 tokens default max via `MAX_MCP_OUTPUT_TOKENS`; 50,000 characters disk-persistence threshold)
+- Done when: You have a project .mcp.json and understand how tool search defers MCP tools by default and what `ENABLE_TOOL_SEARCH=auto`/`false` change
**Subagents (score 0)**:
- Tutorial: [04-subagents/](../../../04-subagents/)
diff --git a/.claude/skills/self-assessment/references/deep-assessment-rounds.md b/.claude/skills/self-assessment/references/deep-assessment-rounds.md
index 52ac0b7..633157e 100644
--- a/.claude/skills/self-assessment/references/deep-assessment-rounds.md
+++ b/.claude/skills/self-assessment/references/deep-assessment-rounds.md
@@ -24,7 +24,7 @@ Options:
1. "Installed and used an auto-invoked skill" — A skill that triggers automatically based on its description, without manual /command invocation
2. "Controlled skill invocation behavior" — Used `disable-model-invocation`, `user-invocable`, or `context: fork` with agent field in SKILL.md frontmatter
3. "Set up a PreToolUse or PostToolUse hook" — Configured a hook that runs before/after tool execution (e.g., command validator, auto-formatter)
-4. "Used advanced hook features" — Configured prompt-type hooks, component-scoped hooks in SKILL.md, HTTP hooks, or hooks with custom JSON output (updatedInput, systemMessage)
+4. "Used advanced hook features" — Configured prompt-type hooks, skill-frontmatter hooks, HTTP hooks, or hooks with custom JSON output (updatedInput, systemMessage)
**Scoring:** Options 1-2 → **Skills** (0-2); Options 3-4 → **Hooks** (0-2)
@@ -47,8 +47,8 @@ Options:
"Which of these have you done? Select all that apply."
Options:
-1. "Used checkpoints for safe experimentation" — Created checkpoints, used Esc+Esc or /rewind, restored code and/or conversation, or used either Summarize option (summarize from here / summarize up to here)
-2. "Used planning mode or extended thinking" — Activated planning via /plan, Shift+Tab, or --permission-mode plan; toggled extended thinking with Alt+T/Option+T
+1. "Used checkpoints for safe experimentation" — Rewound to a checkpoint with Esc+Esc or /rewind, restored code and/or conversation, or used either Summarize option (summarize from here / summarize up to here)
+2. "Used planning mode or extended thinking" — Activated planning via /plan, Shift+Tab, or --permission-mode plan; toggled extended thinking with Alt+T/Option+T on a model that allows it, or set reasoning depth with `/effort`
3. "Configured permission modes" — Used any of the six modes — manual (renamed from default in v2.1.200), acceptEdits, plan, auto, dontAsk, or bypassPermissions — via CLI flags, keyboard shortcuts, or settings (just starting in the built-in auto default doesn't count)
4. "Used remote/desktop/web features" — Used `claude --remote-control`, `claude --cloud`, `/teleport`, `/desktop`, or worktrees with `claude -w`
@@ -69,8 +69,8 @@ Options:
---
-**Last Updated**: September 30, 2026
-**Claude Code Version**: 2.1.285
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/sub-agents
@@ -78,3 +78,5 @@ Options:
- https://code.claude.com/docs/en/checkpointing
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/model-config#extended-thinking
diff --git a/.claude/skills/self-assessment/references/topic-recommendations.md b/.claude/skills/self-assessment/references/topic-recommendations.md
index 2196634..7bad210 100644
--- a/.claude/skills/self-assessment/references/topic-recommendations.md
+++ b/.claude/skills/self-assessment/references/topic-recommendations.md
@@ -25,7 +25,7 @@ Use these specific recommendations when a topic is a gap. Paths are relative to
**Skills (score 0)**:
- Tutorial: [03-skills/](../../../../03-skills/)
- Focus on: SKILL.md format, auto-invocation via description field, progressive disclosure (3 loading levels)
-- Key exercise: Install the code-review skill and verify it auto-triggers
+- Key exercise: Install `03-skills/code-review-specialist` and verify it auto-triggers
- Done when: A skill automatically activates based on conversation context
**Skills (score 1 — review)**:
@@ -39,8 +39,8 @@ Use these specific recommendations when a topic is a gap. Paths are relative to
- Done when: A hook blocks dangerous commands before execution
**Hooks (score 1 — review)**:
-- Focus on: All 33 hook events (including PostToolUseFailure, StopFailure, TaskCreated, CwdChanged, FileChanged, PostCompact, Elicitation, ElicitationResult, Setup, UserPromptExpansion, MessageDisplay, PreModelSwitch, PostModelSwitch — the last two added in v2.1.251), 5 hook types (command, http, mcp_tool, prompt, agent — agent hooks are experimental and may change), component-scoped hooks in SKILL.md frontmatter, HTTP hooks with allowedEnvVars, `onFailure: "block"` to block the action when a command or HTTP hook fails (v2.1.295+), `CLAUDE_ENV_FILE` for SessionStart/CwdChanged/FileChanged
-- Done when: You can create a prompt-based Stop hook and a component-scoped hook in a skill
+- Focus on: All 33 hook events (including PostToolUseFailure, StopFailure, TaskCreated, CwdChanged, FileChanged, PostCompact, Elicitation, ElicitationResult, Setup, UserPromptExpansion, MessageDisplay, PreModelSwitch, PostModelSwitch — the last two added in v2.1.251), 5 hook types (command, http, mcp_tool, prompt, agent — agent hooks are experimental and may change), hooks in SKILL.md frontmatter (they persist for the session after invocation; subagent-frontmatter hooks end with the subagent), HTTP hooks with allowedEnvVars, `onFailure: "block"` to block the action when a command or HTTP hook fails (v2.1.295+), `CLAUDE_ENV_FILE` for SessionStart, Setup, CwdChanged and FileChanged
+- Done when: You can create a prompt-based Stop hook and a hook in a skill's frontmatter (and you know it stays registered for the rest of the session)
**MCP (score 0)**:
- Tutorial: [05-mcp/](../../../../05-mcp/)
@@ -49,8 +49,8 @@ Use these specific recommendations when a topic is a gap. Paths are relative to
- Done when: You can query live data from an external service via MCP
**MCP (score 1 — review)**:
-- Focus on: Project-scope .mcp.json (requires team approval), OAuth 2.0 auth, MCP resources with `@server:resource` mentions, Tool Search (ENABLE_TOOL_SEARCH), `claude mcp serve`, output limits (10,000 tokens warning; 25,000 tokens default max via `MAX_MCP_OUTPUT_TOKENS`; 50,000 characters disk-persistence threshold)
-- Done when: You have a project .mcp.json and understand Tool Search auto mode
+- Focus on: Project-scope .mcp.json (each user approves it on first use; workspace trust applies), OAuth 2.0 auth, MCP resources with `@server:resource` mentions, Tool Search (ENABLE_TOOL_SEARCH), `claude mcp serve`, output limits (10,000 tokens warning; 25,000 tokens default max via `MAX_MCP_OUTPUT_TOKENS`; 50,000 characters disk-persistence threshold)
+- Done when: You have a project .mcp.json and understand how tool search defers MCP tools by default and what `ENABLE_TOOL_SEARCH=auto`/`false` change
**Subagents (score 0)**:
- Tutorial: [04-subagents/](../../../../04-subagents/)
@@ -100,8 +100,8 @@ Use these specific recommendations when a topic is a gap. Paths are relative to
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/memory
@@ -117,3 +117,5 @@ Use these specific recommendations when a topic is a gap. Paths are relative to
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/plugins/mods/overview
- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/mcp#configure-tool-search
+- https://code.claude.com/docs/en/mcp#project-server-approvals-and-workspace-trust
diff --git a/01-slash-commands/README.md b/01-slash-commands/README.md
index 8b9caed..7ce7e60 100644
--- a/01-slash-commands/README.md
+++ b/01-slash-commands/README.md
@@ -18,7 +18,7 @@ Slash commands are shortcuts that control Claude's behavior during an interactiv
## Built-in Commands Reference
-Built-in commands are shortcuts for common actions. There are **60+ built-in commands** and **10 bundled skills** available. Type `/` in Claude Code to see the full list, or type `/` followed by any letters to filter.
+Built-in commands are shortcuts for common actions. There are **60+ built-in commands** and **about 20 bundled skills** (some feature-gated) available. Type `/` in Claude Code to see the full list, or type `/` followed by any letters to filter.
> **Note**: Since v2.1.236, pressing Enter on a mistyped slash command — or on a command that is not available in the current session — reports an error instead of silently running the closest fuzzy match. Unambiguous prefixes and defined aliases still run as before.
@@ -30,7 +30,7 @@ Built-in commands are shortcuts for common actions. There are **60+ built-in com
| `/branch [name]` | Switch into a copy of the conversation at this point, preserving the original (return to it with `/resume`) |
| `/fork [prompt]` | Copy the current conversation into a new **background session** and keep working here; the two are independent from that point on and the copy gets its own row in `claude agents` (v2.1.212+). Except when the copy edits in place, Claude Code instructs it to create a worktree of its own before making code changes (isolation instruction requires v2.1.221+) |
| `/subtask <task>` | Spawn a **forked subagent** that inherits the full conversation and works on the task while you keep going; its result returns to this conversation when it finishes (v2.1.212+) |
-| `/btw <question>` | Ask an ephemeral side question while Claude is working on the main task; doesn't pollute the main conversation context |
+| `/btw [question]` | Ask an ephemeral side question while Claude is working on the main task; doesn't pollute the main conversation context. Bare `/btw` reopens your last side question (v2.1.212+) |
| `/cd <path>` | Move the session to a new working directory without breaking the prompt cache (added v2.1.169) |
| `/chrome` | Configure Chrome browser integration |
| `/clear` | Clear conversation (aliases: `/reset`, `/new`) |
@@ -77,13 +77,13 @@ Built-in commands are shortcuts for common actions. There are **60+ built-in com
| `/release-notes` | View changelog |
| `/recap` | Show session recap / summary when returning to a session (added v2.1.108) |
| `/reload-plugins` | Reload active plugins. Since v2.1.221 most installs activate immediately, so this is only needed when the install summary says `Run /reload-plugins to activate.` Available in headless sessions as of v2.1.260, so it also appears in the Claude Code Desktop and SDK command lists |
-| `/reload-skills` | Re-scan skill directories without restarting the session (added v2.1.152) |
+| `/reload-skills` | Re-scan skill directories without restarting the session (added v2.1.152). Re-sends the full skill list to Claude, which restores skills after compaction (v2.1.299) |
| `/remote-control` | Remote control from claude.ai (alias: `/rc`) |
| `/remote-env` | Configure default remote environment |
| `/rename [name]` | Rename session |
| `/resume [session]` | Resume conversation (alias: `/continue`) |
| `/review [low\|medium\|high\|xhigh\|max\|ultra] [--fix] [--comment] [pr#\|branch\|path]` | Alias of `/code-review` (v2.1.223): reviews the current diff, or a PR number, branch, or path you pass — e.g. `/review 1234`. Takes the same effort levels and flags. With no level given, it reuses the last `low`–`max` level you typed |
-| `/rewind` | Rewind conversation and/or code (alias: `/checkpoint`) |
+| `/rewind` | Rewind conversation and/or code (aliases: `/checkpoint`, `/undo`) |
| `/sandbox` | Toggle sandbox mode |
| `/schedule [description]` | Create/manage Cloud scheduled tasks |
| `/scroll-speed <+N\|-N>` | Tune mouse-wheel scroll speed of the TUI live-preview pane with a live preview. Persists per-machine to `~/.claude/preferences.json` (added v2.1.139). |
@@ -102,7 +102,7 @@ Built-in commands are shortcuts for common actions. There are **60+ built-in com
| `/tui` | Toggle fullscreen TUI (text user interface) mode with flicker-free rendering (added v2.1.110) |
| `/ultrareview` | Comprehensive cloud-based multi-agent code review (added v2.1.111). The preferred invocation is now `/code-review ultra`; `/ultrareview` remains as an alias. Includes 3 free runs on Pro and Max, then requires usage credits |
| `/upgrade` | Open upgrade page for higher plan tier |
-| `/usage` | Canonical usage dashboard (v2.1.118) — combines plan usage limits, rate limits, cost, and daily session stats. `/cost` and `/stats` are typing-shortcut aliases that open specific tabs |
+| `/usage` | Canonical usage dashboard (v2.1.118) — combines plan usage limits, rate limits, cost, and daily session stats. `/cost` and `/stats` are typing-shortcut aliases that open specific tabs. Warns about max effort, workflows, always-on context and large tool results (v2.1.299) |
| `/voice` | Toggle push-to-talk voice dictation |
| `/workflows` | View running and completed dynamic workflow runs (added v2.1.154). See [Dynamic Workflows](../09-advanced-features/README.md#dynamic-workflows) |
@@ -120,7 +120,7 @@ These skills ship with Claude Code and are invoked like slash commands:
| `/debug [description]` | Enable debug logging |
| `/design [description]` | Create a **design canvas** — a multi-artboard visual design (UI mockups, screen flows, landing pages, posters) published as an artifact and refined visually rather than in code. Use it instead of hand-writing HTML when the layout is what you want to iterate on. Research preview; requires v2.1.233+ and a Pro, Max, Team, or Enterprise plan |
| `/loop [interval] <prompt>` | Run prompt repeatedly on interval |
-| `/code-review [low\|medium\|high\|xhigh\|max\|ultra] [--fix] [--comment] [--max-findings n\|all\|default] [pr#\|branch\|path]` | Review the current diff — or a PR number, branch, or path you pass — for correctness bugs. Pass `--fix` to apply findings, `--comment` to post them as inline GitHub PR comments, or `ultra` to run a deep cloud review; with `ultra` on a `github.com` PR target, `--post` preselects posting the findings to the PR. With no effort level given, the review reuses the last level you typed (v2.1.223). Originally absorbed `/simplify` in v2.1.146, but `/simplify` returned as a distinct command in v2.1.154. Pass `--max-findings <n>\|all` to report more or fewer findings than the usual limit; the choice is reused until you pass `--max-findings default` (v2.1.288) |
+| `/code-review [low\|medium\|high\|xhigh\|max\|ultra] [--fix] [--comment] [--max-findings n\|all\|default] [pr#\|branch\|path]` | Review the current diff — or a PR number, branch, or path you pass — for correctness bugs. Pass `--fix` to apply findings, `--comment` to post them as inline GitHub PR comments, or `ultra` to run a deep cloud review; with `ultra` on a `github.com` PR target, `--post` preselects posting the findings to the PR. With no effort level given, the review reuses the last level you typed (v2.1.223). Originally absorbed `/simplify` in v2.1.147, but `/simplify` returned as a distinct command in v2.1.154. Pass `--max-findings <n>\|all` to report more or fewer findings than the usual limit; the choice is reused until you pass `--max-findings default` (v2.1.288) |
| `/simplify` | Run a cleanup-only review (reuse / simplification / efficiency / altitude) and apply the fixes; does **not** hunt for bugs — use `/code-review` for that. Briefly an alias of `/code-review --fix` (v2.1.152), it became cleanup-only in v2.1.154 |
### Deprecated Commands
@@ -129,7 +129,6 @@ These skills ship with Claude Code and are invoked like slash commands:
|---------|--------|
| `/pr-comments` | Removed in v2.1.91 — ask Claude directly to view PR comments |
| `/vim` | Removed in v2.1.92 — use /config → Editor mode |
-| `/undo` | No longer listed in the official commands reference as of v2.1.245 (it was added as an alias for `/rewind` in v2.1.108) — use `/rewind` or press `Esc` twice |
### Recent Changes
@@ -154,7 +153,7 @@ These skills ship with Claude Code and are invoked like slash commands:
- `/tui` command added for flicker-free fullscreen TUI rendering (v2.1.110)
- `/focus` command added for focus view toggle; `Ctrl+O` now only toggles verbose transcript (v2.1.110)
- `/recap` command added to manually trigger session context recap (v2.1.108)
-- `/undo` added as alias for `/rewind` (v2.1.108); it no longer appears in the official commands reference as of v2.1.245 — use `/rewind` or `Esc Esc`
+- `/undo` added as alias for `/rewind` (v2.1.108); it remains an alias of `/rewind`, alongside `/checkpoint`
- `/proactive` added as alias for `/loop` (v2.1.105)
- `/effort` gained interactive arrow-key slider and new `xhigh` level between `high` and `max`; default effort raised to `xhigh` for Opus 4.7 plans (v2.1.111). On Opus 4.8 the default is `high` (v2.1.154); Opus 5 also defaults to `high` (v2.1.219)
- `/ultrareview` added for comprehensive cloud-based multi-agent code review (v2.1.111)
@@ -290,7 +289,7 @@ Instructions for Claude to follow when this command is invoked.
| `user-invocable` | If `false`, hide from `/` menu | `true` |
| `context` | Set to `fork` to run in isolated subagent | None |
| `agent` | Agent type when using `context: fork` | `general-purpose` |
-| `hooks` | Skill-scoped hooks (PreToolUse, PostToolUse, Stop) | None |
+| `hooks` | Hooks registered when the skill runs (any hook event; they stay active for the rest of the session) | None |
### Arguments
@@ -328,6 +327,8 @@ Usage: `/review-pr 456 high` → `$0`="456", `$1`="high"
Execute bash commands before the prompt using `` !`command` ``:
+> **Note (v2.1.299)**: `UserPromptSubmit` hooks run before the command expands, so a hook that blocks the prompt also stops these `!` commands from running.
+
```yaml
---
name: commit
@@ -395,6 +396,8 @@ Control MCP server access in permissions:
- `mcp__github__*` - Wildcard access to all tools
- `mcp__github__get_issue` - Specific tool access
+> **v2.1.299+:** A rule reaches only the server it names — `mcp__github` no longer matches a server named `github__x` or `github_`. For a server whose normalized name contains `__`, write `mcp__<whole normalized name>__*` (the same applies to subagent `tools:` lists).
+
## Command Architecture
```mermaid
@@ -651,8 +654,8 @@ If both exist with the same name, the **skill takes precedence**. Remove one or
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/output-styles
- https://code.claude.com/docs/en/skills
@@ -674,6 +677,10 @@ If both exist with the same name, the **skill takes precedence**. Remove one or
- https://github.com/anthropics/claude-code/releases/tag/v2.1.283
- https://code.claude.com/docs/en/workflows#let-claude-decide-with-ultracode
- https://github.com/anthropics/claude-code/releases/tag/v2.1.285
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/permissions#mcp
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
*Part of the [Claude How To](../) guide series*
diff --git a/02-memory/README.md b/02-memory/README.md
index 3d753df..22827ce 100644
--- a/02-memory/README.md
+++ b/02-memory/README.md
@@ -582,15 +582,15 @@ All worktrees and subdirectories within the same git repository share a single a
### Subagent Memory
-Subagents (spawned via tools like Task or parallel execution) can have their own memory context. Use the `memory` frontmatter field in the subagent definition to specify which memory scopes to load:
+Subagents (spawned via the Agent tool) can keep their own persistent memory. The `memory` frontmatter field in the subagent definition picks where that memory directory lives:
```yaml
-memory: user # Load user-level memory only
-memory: project # Load project-level memory only
-memory: local # Load local memory only
+memory: user # ~/.claude/agent-memory/<agent-name>/
+memory: project # .claude/agent-memory/<agent-name>/ (shareable via git)
+memory: local # .claude/agent-memory-local/<agent-name>/ (not checked in)
```
-This allows subagents to operate with focused context rather than inheriting the full memory hierarchy.
+The subagent reads the first 200 lines / 25KB of that directory's `MEMORY.md` at startup and gets Read/Write/Edit to maintain it. It has no effect when auto memory is disabled.
> **Note**: Subagents can also maintain their own auto memory. See the [official subagent memory documentation](https://code.claude.com/docs/en/sub-agents#enable-persistent-memory) for details.
@@ -1244,8 +1244,8 @@ Auto Memory is a separate mechanism (`~/.claude/projects/<project>/memory/`), no
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/memory#agents-md
@@ -1253,4 +1253,5 @@ Auto Memory is a separate mechanism (`~/.claude/projects/<project>/memory/`), no
- https://github.com/anthropics/claude-code/releases/tag/v2.1.284
- https://github.com/anthropics/claude-code/releases/tag/v2.1.288
- https://github.com/anthropics/claude-code/releases/tag/v2.1.293
+- https://code.claude.com/docs/en/sub-agents#enable-persistent-memory
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/03-skills/README.md b/03-skills/README.md
index 8969057..00ed8dd 100644
--- a/03-skills/README.md
+++ b/03-skills/README.md
@@ -93,7 +93,7 @@ sequenceDiagram
| **Project** | `.claude/skills/<skill-name>/SKILL.md` | Team | Yes (via git) | Team standards |
| **Plugin** | `<plugin>/skills/<skill-name>/SKILL.md` | Where enabled | Depends | Bundled with plugins |
-When skills share the same name across levels, higher-priority locations win: **enterprise > personal > project**. Personal skills override project ones by default; the `skillOverrides` setting (v2.1.129+) tunes that behavior — see [Controlling Skill Override Behavior](#controlling-skill-override-behavior-skilloverrides). Plugin skills use a `plugin-name:skill-name` namespace, so they cannot conflict.
+When skills share the same name across levels, higher-priority locations win: **enterprise > personal > project**. With the same name in `~/.claude/skills/` and `.claude/skills/`, the personal one runs. To change a skill's visibility (not its precedence), use the `skillOverrides` setting (v2.1.129+) — see [Controlling Skill Override Behavior](#controlling-skill-override-behavior-skilloverrides). Plugin skills use a `plugin-name:skill-name` namespace, so they cannot conflict.
> **Subagent skill discovery (v2.1.133+)**: Subagents now discover project, user, and plugin skills via the Skill tool the same way the main session does. Earlier versions limited subagents to their own embedded set, which meant skill+subagent workflows quietly degraded; from v2.1.133 the same skill catalog is visible to both.
@@ -141,7 +141,7 @@ Show concrete examples of using this Skill.
### Recommended Fields
- **description** (recommended): what the Skill does AND when to use it. If omitted, Claude Code uses the first paragraph of markdown content. The combined `description` + `when_to_use` text is truncated at **1,536 characters** in the skill listing (configurable via `skillListingMaxDescChars`). This is what Claude matches on to decide when to activate the skill.
-- **name** (optional): defaults to the skill's **directory name**. When supplied, it sets the display name — lowercase letters, numbers, hyphens only (max 64 characters). In Claude Code, `anthropic-skills` and `synced` are reserved and don't load outside a plugin; the stricter ban on "anthropic" or "claude" applies to skills uploaded to claude.ai or the Skills API. For plugin skills, `name` also sets the last segment of the command.
+- **name** (optional): defaults to the skill's **directory name**. When supplied, it sets the display name — lowercase letters, numbers, hyphens only (max 64 characters) is the recommended, portable form (required for claude.ai and the Skills API). Claude Code itself (v2.1.299+) skips a skill or command whose name contains hidden, direction-changing or blank-like characters, `<` or `>`, or exceeds 256 characters, until you rename it. In Claude Code, `anthropic-skills` and `synced` are reserved and don't load outside a plugin; the stricter ban on "anthropic" or "claude" applies to skills uploaded to claude.ai or the Skills API. For plugin skills, `name` also sets the last segment of the command.
All SKILL.md frontmatter fields are optional; `description` is the only one that is recommended.
@@ -154,7 +154,7 @@ description: What this skill does and when to use it
argument-hint: "[filename] [format]" # Hint for autocomplete
disable-model-invocation: true # Only user can invoke
user-invocable: false # Hide from slash menu
-allowed-tools: Read, Grep, Glob # Restrict tool access
+allowed-tools: Read, Grep, Glob # Pre-approve these tools (no permission prompts) while the skill runs
disallowed-tools: Write, Edit # Remove specific tools while active (v2.1.152)
model: opus # Specific model to use
effort: high # Effort level override (low, medium, high, xhigh, max)
@@ -162,7 +162,7 @@ context: fork # Run in isolated subagent
agent: Explore # Which agent type (with context: fork)
background: false # Fork skills run in background (default true); false = foreground
shell: bash # Shell for commands: bash (default) or powershell
-hooks: # Skill-scoped hooks
+hooks: # Hooks registered when the skill is invoked
PreToolUse:
- matcher: "Bash"
hooks:
@@ -174,7 +174,7 @@ paths: "src/api/**/*.ts" # Glob patterns limiting when skill activ
| Field | Description |
|-------|-------------|
-| `name` | Lowercase letters, numbers, hyphens only (max 64 chars). `anthropic-skills` and `synced` are reserved in Claude Code. |
+| `name` | Recommended (portable): lowercase letters, numbers, hyphens only (max 64 chars). `anthropic-skills` and `synced` are reserved in Claude Code. |
| `description` | What the Skill does AND when to use it. The combined `description` + `when_to_use` text is truncated at 1,536 chars in the skill listing (configurable via `skillListingMaxDescChars`). Critical for auto-invocation matching. |
| `when_to_use` | Additional context for when Claude should invoke the skill. Appended to `description` in the skill listing and counts toward the 1,536-character cap. |
| `argument-hint` | Hint shown in the `/` autocomplete menu (e.g., `"[filename] [format]"`). |
@@ -188,7 +188,7 @@ paths: "src/api/**/*.ts" # Glob patterns limiting when skill activ
| `agent` | Subagent type when `context: fork` (e.g., `Explore`, `Plan`, `general-purpose`). |
| `background` | Only meaningful with `context: fork`. Defaults to `true` for `context: fork` skills, so they run in the background; set `false` to run them in the foreground. Added v2.1.218. |
| `shell` | Shell used for `` !`command` `` substitutions and scripts: `bash` (default) or `powershell`. |
-| `hooks` | Hooks scoped to this skill's lifecycle (same format as global hooks). |
+| `hooks` | Hooks registered when the skill is invoked (same format as settings hooks; any event). They stay active for the rest of the session. |
| `paths` | Glob patterns that limit when the skill is auto-activated. Comma-separated string or YAML list. Same format as path-specific rules. |
| `arguments` | Declares the arguments the skill accepts, for autocomplete and argument substitution. |
| `metadata` | Free-form key/value map for your own bookkeeping (e.g. `version`, `author`). Claude Code passes it through. |
@@ -290,6 +290,8 @@ You can stack slash-skills in a single invocation, like `/code-review /fix-issue
The `` !`command` `` syntax runs shell commands before the skill content is sent to Claude:
+> **Note (v2.1.299)**: `UserPromptSubmit` hooks run before the command expands, so a hook that blocks the prompt also stops these `!` commands from running.
+
```yaml
---
name: pr-summary
@@ -520,11 +522,11 @@ description: Create or update CLAUDE.md files following best practices for optim
## Core Principles
-**LLMs are stateless**: CLAUDE.md is the only file automatically included in every conversation.
+**LLMs are stateless**: CLAUDE.md is the main project file loaded into every conversation (alongside auto memory and unscoped rules).
### The Golden Rules
-1. **Less is More**: Keep under 300 lines (ideally under 100)
+1. **Less is More**: Keep each CLAUDE.md under 200 lines
2. **Universal Applicability**: Only include information relevant to EVERY session
3. **Don't Use Claude as a Linter**: Use deterministic tools instead
4. **Never Auto-Generate**: Craft it manually with careful consideration
@@ -641,7 +643,7 @@ Can you help me review this code for security issues?
/code-review-specialist src/auth/login.ts
```
-> **Note**: This local skill is installed as `code-review-specialist` so it does **not** collide with the built-in `/code-review` command (the renamed `/simplify`, shipped in Claude Code v2.1.146). If you copy it to `~/.claude/skills/code-review/` instead, it will shadow the built-in — keep the `-specialist` suffix to avoid that.
+> **Note**: This local skill is installed as `code-review-specialist` so it does **not** collide with the bundled `/code-review` skill (bug-focused review, alias `/review`). If you copy it to `~/.claude/skills/code-review/` instead, it replaces the bundled `/code-review` (though `/review` still runs the bundled one) — keep the `-specialist` suffix to avoid that.
### Updating a Skill
@@ -679,11 +681,14 @@ Skill(deploy *)
### Controlling Skill Override Behavior (`skillOverrides`)
-When a project skill and a user skill share the same name, project wins by default. The `skillOverrides` setting (v2.1.129+) lets you tune this. Add it to `~/.claude/settings.json` or project `.claude/settings.json`:
+`skillOverrides` (v2.1.129+) is a per-skill visibility map, not a precedence switch: it sets how each skill is shown from settings, without editing its SKILL.md. Each key is a skill name; the `/skills` menu writes it for you (saved to `.claude/settings.local.json`). Precedence is unchanged — a personal skill still beats a project skill of the same name. Add it to `~/.claude/settings.json` or project `.claude/settings.json`:
```json
{
- "skillOverrides": "name-only"
+ "skillOverrides": {
+ "deploy": "off",
+ "legacy-helper": "name-only"
+ }
}
```
@@ -691,12 +696,12 @@ Accepted values:
| Value | Behavior |
|-------|----------|
-| `"on"` (default) | A repo skill can override a user skill of the same name. |
-| `"off"` | Disable overriding entirely — user skills always win. |
-| `"name-only"` | Match overrides only on skill name (ignore description / source). |
-| `"user-invocable-only"` | Only user-invocable skills can be overridden — model-invoked skills always come from their original location. |
+| `"on"` (default) | Name and description listed to Claude; shown in the `/` menu. |
+| `"name-only"` | Only the name is listed to Claude; shown in the `/` menu. |
+| `"user-invocable-only"` | Hidden from Claude; still shown in the `/` menu. |
+| `"off"` | Hidden from both Claude and the `/` menu. |
-Useful when team policy says "user-defined skills must always take precedence" (`"off"`) or "only allow narrow name-based overrides" (`"name-only"`).
+Plugin skills are not affected by `skillOverrides`; manage them through `/plugin`.
## Best Practices
@@ -899,8 +904,8 @@ Once you start building skills seriously, two things become essential: a library
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/slash-commands
@@ -909,4 +914,12 @@ Once you start building skills seriously, two things become essential: a library
- https://code.claude.com/docs/en/model-config#adjust-effort-level
- https://code.claude.com/docs/en/settings-reference
- https://github.com/anthropics/claude-code/releases/tag/v2.1.286
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/skills#characters-a-skill-name-cant-hold
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/skills#pre-approve-tools-for-a-skill
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/memory#write-effective-instructions
+- https://code.claude.com/docs/en/memory
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/03-skills/claude-md/SKILL.md b/03-skills/claude-md/SKILL.md
index caf17bd..ba72ea0 100644
--- a/03-skills/claude-md/SKILL.md
+++ b/03-skills/claude-md/SKILL.md
@@ -17,7 +17,7 @@ You **MUST** consider the user input before proceeding (if not empty). User may
## Core Principles
-**LLMs are stateless**: CLAUDE.md is the only file automatically included in every conversation. It serves as the primary onboarding document for AI agents into your codebase.
+**LLMs are stateless**: CLAUDE.md is the main project file loaded into every conversation (alongside auto memory and unscoped rules). It serves as the primary onboarding document for AI agents into your codebase.
### The Golden Rules
@@ -217,10 +217,11 @@ Apply similar principles:
---
-**Last Updated**: September 26, 2026
-**Claude Code Version**: 2.1.283
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/memory#agents-md
- https://code.claude.com/docs/en/memory#when-agents-md-support-is-unavailable
+- https://code.claude.com/docs/en/memory
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/04-subagents/README.md b/04-subagents/README.md
index 010e192..e5a7d15 100644
--- a/04-subagents/README.md
+++ b/04-subagents/README.md
@@ -129,14 +129,14 @@ to solving problems.
|-------|----------|-------------|
| `name` | Yes | Unique identifier (lowercase letters and hyphens). Lookup is normalized (case- and separator-insensitive — see below), but a name containing `:` is **rejected** as of v2.1.218: `:` is reserved for plugin namespacing |
| `description` | Yes | Natural language description of purpose. Include "use PROACTIVELY" to encourage automatic invocation |
-| `tools` | No | Comma-separated list of specific tools. Omit to inherit all tools. Supports `Agent(agent_name)` syntax to restrict spawnable subagents |
+| `tools` | No | Comma-separated list of specific tools. Omit to inherit all tools. Supports `Agent(agent_name)` syntax to restrict spawnable subagents. MCP: `mcp__<server>__*` grants a whole server (v2.1.299+: matches only that exact server name). |
| `disallowedTools` | No | Comma-separated list of tools the subagent must not use |
| `model` | No | Model to use: `sonnet`, `opus`, `haiku`, full model ID, or `inherit`. Defaults to configured subagent model |
-| `permissionMode` | No | `manual` (renamed from `default` in v2.1.200 — `default` is still accepted as the older name), `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, `auto`. As of v2.1.212, the Task tool's `mode` invocation parameter is deprecated and ignored — subagents inherit the parent session's permission mode by default unless overridden here |
+| `permissionMode` | No | `default` (Manual mode; `manual` accepted as an alias since v2.1.200), `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, `auto`. As of v2.1.212, the Task tool's `mode` invocation parameter is deprecated and ignored — subagents inherit the parent session's permission mode by default unless overridden here. When the parent runs in `bypassPermissions`, `acceptEdits` or `auto`, the subagent's `permissionMode` is ignored |
| `maxTurns` | No | Maximum number of agentic turns the subagent can take |
| `skills` | No | Comma-separated list of skills to preload. Injects full skill content into the subagent's context at startup. **v2.1.133+:** subagents also discover project, user, and plugin skills via the Skill tool — same catalog as the main session, no longer limited to their own embedded set. At most 32 skills are preloaded, each once; a subagent with the Skill tool can still invoke the rest (v2.1.295). |
| `mcpServers` | No | MCP servers to make available to the subagent |
-| `hooks` | No | Component-scoped hooks (PreToolUse, PostToolUse, Stop) |
+| `hooks` | No | Hooks that run only while this subagent is active. All hook events are supported; most common are `PreToolUse`, `PostToolUse`, `Stop` (runs as `SubagentStop`) |
| `memory` | No | Persistent memory directory scope: `user`, `project`, or `local` |
| `background` | No | Subagents already run in the background by default (v2.1.198). Set to `true` to *force* background always and prevent inline execution |
| `effort` | No | Reasoning effort level: `low`, `medium`, `high`, `xhigh`, or `max`. Overrides the session effort level; available levels depend on the model. Claude can also pass an `effort` value when it calls the Agent tool (v2.1.292). |
@@ -439,11 +439,7 @@ claude --agent code-reviewer
### Listing Available Agents
-Use the `claude agents` command to list all configured agents from all sources:
-
-```bash
-claude agents
-```
+To see which subagents are configured, ask Claude or browse `.claude/agents/` and `~/.claude/agents/`. (`claude agents` is unrelated: it opens agent view for background sessions — see [CLI](../10-cli/README.md#agent-view-claude-agents-v21139).)
---
@@ -666,16 +662,14 @@ In this example, the `coordinator` subagent can only spawn the `worker` and `res
## `claude agents` CLI Command
-The `claude agents` command lists all configured agents grouped by source (built-in, user-level, project-level):
+`claude agents` opens **agent view** (v2.1.139+): a full-screen list of your background sessions grouped by state. It does not list configured subagent definitions; use `claude agents --json` to script against session state.
```bash
claude agents
+claude agents --json
```
-This command:
-- Shows all available agents from all sources
-- Groups agents by their source location
-- Indicates **overrides** when an agent at a higher priority level shadows one at a lower level (e.g., a project-level agent with the same name as a user-level agent)
+Configured subagents live in `.claude/agents/` (project) and `~/.claude/agents/` (user).
---
@@ -1333,8 +1327,8 @@ See the OpenTelemetry section in [Advanced Features → Telemetry](../09-advance
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/sub-agents
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
@@ -1350,4 +1344,8 @@ See the OpenTelemetry section in [Advanced Features → Telemetry](../09-advance
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/interactive-mode
- https://github.com/anthropics/claude-code/releases/tag/v2.1.296
+- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/agent-view
+- https://code.claude.com/docs/en/sub-agents#permission-modes
+- https://code.claude.com/docs/en/sub-agents#available-tools
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/05-mcp/README.md b/05-mcp/README.md
index 786d6a7..a8fb34b 100644
--- a/05-mcp/README.md
+++ b/05-mcp/README.md
@@ -314,7 +314,7 @@ MCP servers can request structured input from the user via interactive dialogs (
## Tool Description and Instruction Cap
-As of v2.1.84, Claude Code enforces a **2 KB cap** on tool descriptions and instructions per MCP server. This prevents individual servers from consuming excessive context with overly verbose tool definitions, reducing context bloat and keeping interactions efficient. Since v2.1.280, you can change this 2,048-character cap with the `CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH` environment variable. As of v2.1.296 the default is **4,096 characters** for descriptions sent up front and for server instructions (v2.1.296), and descriptions Claude loads through tool search are cut at **16,384 characters** (v2.1.295).
+Claude Code truncates each MCP tool description and each server's instructions to keep verbose servers from bloating context. The default limits are **4,096 characters** for server instructions and for descriptions of tools that load up front (v2.1.296; 2,048 from v2.1.84 until then), and **16,384 characters** for descriptions Claude loads through tool search (v2.1.295). Since v2.1.280, `CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH` overrides them: the number you set replaces **both** limits (`8192` raises the shorter one and lowers the longer one). Since v2.1.299, descriptions and instructions from Anthropic's first-party MCP servers at `api.anthropic.com` reach Claude in full. Put critical details near the start of a description.
## MCP Prompts as Slash Commands
@@ -540,7 +540,7 @@ MCP configurations support environment variable expansion with fallback defaults
```
Variables are expanded at runtime:
-- `${VAR}` - Uses environment variable, error if not set
+- `${VAR}` - Uses environment variable; if it is unset (and has no default), the server still loads with the literal `${VAR}`, and `claude mcp list` and `/mcp` warn about the missing variable
- `${VAR:-default}` - Uses environment variable, falls back to default if not set
### Example 2: Database MCP Setup
@@ -1308,8 +1308,8 @@ export GITHUB_TOKEN="your_token"
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/managed-mcp
@@ -1322,4 +1322,6 @@ export GITHUB_TOKEN="your_token"
- https://code.claude.com/docs/en/env-vars
- https://github.com/anthropics/claude-code/releases/tag/v2.1.285
- https://github.com/anthropics/claude-code/releases/tag/v2.1.296
+- https://code.claude.com/docs/en/mcp#tool-search-for-mcp-server-authors
+- https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/06-hooks/README.md b/06-hooks/README.md
index 4635678..9856c09 100644
--- a/06-hooks/README.md
+++ b/06-hooks/README.md
@@ -58,7 +58,7 @@ Hooks are configured in settings files with a specific structure:
| `type` | Hook type: `"command"` (bash), `"prompt"` (LLM), `"http"` (webhook), `"mcp_tool"` (MCP tool invocation, v2.1.118+), or `"agent"` (subagent) | `"command"` |
| `command` | Shell command to execute | `"$CLAUDE_PROJECT_DIR/.claude/hooks/format.sh"` |
| `timeout` | Optional timeout in seconds. Defaults: 600 for command/http/mcp_tool, 30 for prompt, 60 for agent. | `30` |
-| `once` | If `true`, run the hook only once per session | `true` |
+| `once` | If `true`, the hook is removed after its first successful run (failed/blocked/timed-out runs keep it). Skill frontmatter only; ignored in settings and agent frontmatter | `true` |
| `async` | If `true`, runs in the background without blocking | `true` |
| `asyncRewake` | If `true`, runs in the background and wakes Claude on exit code 2. Implies `async`. | `true` |
| `shell` | Accepts `"bash"` or `"powershell"`. Defaults to `"bash"`, or to `"powershell"` on Windows when Git Bash isn't installed. | `"bash"` |
@@ -251,38 +251,38 @@ Claude Code supports **33 hook events**:
| Event | When Triggered | Matcher Input | Can Block | Common Use |
|-------|---------------|---------------|-----------|------------|
| **SessionStart** | Session begins/resumes/clear/compact | startup/resume/clear/compact/fork | No | Environment setup |
-| **Setup** | Initial environment setup (one-time per session) | (none) | No | Provision tooling, install deps |
-| **InstructionsLoaded** | After CLAUDE.md or rules file loaded | (none) | No | Modify/filter instructions |
+| **Setup** | `--init-only`, or `--init`/`--maintenance` with `-p` (CI/script prep) | `init`/`maintenance` | No | Provision tooling, install deps |
+| **InstructionsLoaded** | After CLAUDE.md or rules file loaded | Load reason (`session_start`/`nested_traversal`/`path_glob_match`/`include`/`compact`) | No | Audit/observability logging |
| **UserPromptSubmit** | User submits prompt | (none) | Yes | Validate prompts |
-| **UserPromptExpansion** | User prompt is expanded (e.g., `@` mentions, slash commands resolved) | (none) | Yes | Transform or inspect expanded prompt |
+| **UserPromptExpansion** | User-typed slash command or MCP prompt expands into a prompt | Command name | Yes | Transform or inspect expanded prompt |
| **PreToolUse** | Before tool execution | Tool name | Yes (allow/deny/ask/defer) | Validate, modify inputs |
| **PermissionRequest** | Permission dialog shown | Tool name | Yes | Auto-approve/deny |
-| **PermissionDenied** | User denies a permission prompt | Tool name | No | Logging, analytics, policy enforcement |
+| **PermissionDenied** | Auto mode denies a tool call | Tool name | No | Logging, analytics, policy enforcement |
| **PostToolUse** | After tool succeeds | Tool name | No | Add context, feedback |
| **PostToolUseFailure** | Tool execution fails | Tool name | No | Error handling, logging |
-| **PostToolBatch** | After a batch of tool uses completes | (none) | No | Aggregate reporting, batched validation |
+| **PostToolBatch** | After a batch of tool uses completes | (none) | Yes | Aggregate reporting, batched validation |
| **Notification** | Notification sent | Notification type | No | Custom notifications |
| **MessageDisplay** | While assistant message text is displayed | (none) | No | Transform or hide displayed message text (v2.1.152) |
| **SubagentStart** | Subagent spawned | Agent type name | No | Subagent setup |
| **SubagentStop** | Subagent finishes | Agent type name | Yes | Subagent validation |
| **Stop** | Claude finishes responding | (none) | Yes | Task completion check |
-| **StopFailure** | API error ends turn | (none) | No | Error recovery, logging |
+| **StopFailure** | API error ends turn | Error type (`rate_limit`, `overloaded`, `server_error`, …) | No | Error recovery, logging |
| **TeammateIdle** | Agent team teammate idle | (none) | Yes | Teammate coordination |
| **TaskCompleted** | Task marked complete | (none) | Yes | Post-task actions |
-| **TaskCreated** | Task created via TaskCreate | (none) | No | Task tracking, logging |
-| **ConfigChange** | Config file changes | (none) | Yes (except policy) | React to config updates |
+| **TaskCreated** | Task created via TaskCreate | (none) | Yes | Task tracking, logging |
+| **ConfigChange** | Config file changes | Config source (`user_settings`/`project_settings`/`local_settings`/`policy_settings`/`skills`) | Yes (except policy) | React to config updates |
| **CwdChanged** | Working directory changes | (none) | No | Directory-specific setup |
-| **DirectoryAdded** | New working directory registered mid-session via `/add-dir` or the SDK `register_repo_root` control request (v2.1.219) | (none) | No | Set up tooling for a newly added directory |
-| **FileChanged** | Watched file changes | (none) | No | File monitoring, rebuild |
-| **PreCompact** | Before context compaction | manual/auto | No | Pre-compact actions |
+| **DirectoryAdded** | New working directory registered mid-session via `/add-dir` or the SDK `register_repo_root` control request (v2.1.219) | `slash_command`/`register_repo_root` | No | Set up tooling for a newly added directory |
+| **FileChanged** | Watched file changes | Filenames to watch (e.g. `.envrc\|.env`) | No | File monitoring, rebuild |
+| **PreCompact** | Before context compaction | manual/auto | Yes | Pre-compact actions |
| **PostCompact** | After compaction completes | (none) | No | Post-compact actions |
| **PreModelSwitch** | Before Claude Code applies a requested model switch | Canonical name of the model being switched to (from `to_model`) | Yes | Gate or veto model changes |
| **PostModelSwitch** | After the session's model changes, including changes Claude Code makes itself (such as restoring the model on resume) | Canonical name of the model switched to (from `to_model`) | No | Log or react to model changes |
| **WorktreeCreate** | Worktree being created | (none) | Yes (path return) | Worktree initialization |
-| **WorktreeRemove** | Worktree being removed | (none) | No | Worktree cleanup |
-| **Elicitation** | MCP server requests user input | (none) | Yes | Input validation |
-| **ElicitationResult** | User responds to elicitation | (none) | Yes | Response processing |
-| **SessionEnd** | Session terminates | (none) | No | Cleanup, final logging |
+| **WorktreeRemove** | Worktree being removed | (none) | Yes (non-zero exit fails removal) | Worktree cleanup |
+| **Elicitation** | MCP server requests user input | MCP server name | Yes | Input validation |
+| **ElicitationResult** | User responds to elicitation | MCP server name | Yes | Response processing |
+| **SessionEnd** | Session terminates | End reason (`clear`/`resume`/`logout`/`prompt_input_exit`/`other`) | No | Cleanup, final logging |
`PreModelSwitch` and `PostModelSwitch` require v2.1.251 or later. Both receive `from_model` and `to_model`; the matcher is evaluated against the canonical name derived from `to_model` (e.g. `claude-opus-5`, `.*opus.*`). Their `command`, `http`, and `mcp_tool` timeout default is lowered to 30 seconds.
@@ -318,7 +318,7 @@ Runs after Claude creates tool parameters and before processing. Use this to val
}
```
-**Common matchers:** `Task`, `Bash`, `Glob`, `Grep`, `Read`, `Edit`, `Write`, `WebFetch`, `WebSearch`
+**Common matchers:** `Agent`, `Bash`, `Glob`, `Grep`, `Read`, `Edit`, `Write`, `WebFetch`, `WebSearch`
**Output control:**
- `permissionDecision`: `"allow"`, `"deny"`, `"ask"`, or `"defer"`
@@ -328,7 +328,7 @@ Runs after Claude creates tool parameters and before processing. Use this to val
- `"defer"` exits gracefully so the tool can be resumed later; `permissionDecisionReason`, `updatedInput` and `additionalContext` are all ignored for this value
- Deny and ask rules are still evaluated regardless of what the hook returns. When multiple `PreToolUse` hooks disagree, precedence is `deny` > `defer` > `ask` > `allow`
- `permissionDecisionReason`: Explanation for decision. Shown to the user (not Claude) for `"allow"` and `"ask"`; shown to Claude for `"deny"`; ignored for `"defer"`
-- `updatedInput`: Modified tool input parameters
+- `updatedInput`: Replacement tool input (replaces the whole input object). Since v2.1.300 it is validated like Claude's own input — unknown keys are dropped, and input the tool rejects denies the call.
### PostToolUse
@@ -390,7 +390,7 @@ Use this when the hook's `reason` is something Claude can act on (e.g., "this fi
### UserPromptSubmit
-Runs when user submits a prompt, before Claude processes it.
+Runs when user submits a prompt, before Claude processes it. Since v2.1.299 it runs before a skill or custom command expands, so blocking the prompt also stops that command's `!` shell lines; `UserPromptExpansion` fires after it.
**Configuration:**
```json
@@ -513,6 +513,7 @@ Runs when session ends to perform cleanup or final logging. Cannot block termina
**Reason field values:**
- `clear` - User cleared the session
+- `resume` - Session switched via interactive `/resume`
- `logout` - User logged out
- `prompt_input_exit` - User exited via prompt input
- `other` - Other reason
@@ -541,9 +542,13 @@ Updated matchers for notification events:
- `permission_prompt` - Permission request notification
- `idle_prompt` - Idle state notification
- `auth_success` - Authentication success
-- `elicitation_dialog` - Dialog shown to user
+- `elicitation_dialog` - MCP server opened an elicitation form
+- `elicitation_url_dialog` - MCP server asks you to open a browser URL
+- `elicitation_complete` - URL-mode elicitation reported complete
+- `elicitation_response` - Elicitation response sent back to the server
- `agent_needs_input` - Background agent needs input (v2.1.198)
- `agent_completed` - Background agent finished (v2.1.198)
+- `quota_auto_resume_fired` / `quota_auto_resume_stale` / `quota_auto_resume_disabled` - Usage-limit auto-resume outcomes (v2.1.234)
### PreModelSwitch
@@ -647,11 +652,11 @@ hooks:
hooks:
- type: command
command: "./scripts/check.sh"
- once: true # Only run once per session
+ once: true # Skill frontmatter only: removed after first successful run
---
```
-**Supported events for component hooks:** `PreToolUse`, `PostToolUse`, `Stop`
+**Supported events:** all hook events. Subagent hooks run only while the subagent is active (`Stop` → `SubagentStop`); skill hooks register when the skill is invoked and stay active for the rest of the session.
This allows defining hooks directly in the component that uses them, keeping related code together.
@@ -989,7 +994,7 @@ BLOCKED_PATTERNS = [
def main():
input_data = json.load(sys.stdin)
- prompt = input_data.get("user_prompt", "") or input_data.get("prompt", "")
+ prompt = input_data.get("prompt", "")
for pattern, message in BLOCKED_PATTERNS:
if re.search(pattern, prompt, re.IGNORECASE):
@@ -1050,7 +1055,7 @@ import sys
import tempfile
# Configuration
-CONTEXT_LIMIT = 128000 # Claude's context window (adjust for your model)
+CONTEXT_LIMIT = 1000000 # 1M on Opus 5, Sonnet 5, Opus 4.8, Sonnet 4.6; 200000 on Haiku 4.5 (adjust for your model)
USE_TIKTOKEN = False # Set True if tiktoken is installed for better accuracy
@@ -1204,7 +1209,7 @@ if __name__ == "__main__":
| Character estimation | ~80-90% | None | <1ms |
| tiktoken (p50k_base) | ~90-95% | `pip install tiktoken` | <10ms |
-> **Note:** Anthropic hasn't released an official offline tokenizer. Both methods are approximations. The transcript includes user prompts, Claude's responses, and tool outputs, but NOT system prompts or internal context.
+> **Note:** Anthropic hasn't released an official offline tokenizer. Both methods are approximations. The transcript includes user prompts, Claude's responses, and tool outputs; since v2.1.300 it also records each API request's system prompt, tools, and parameters.
### Example 7: Seed Auto-Mode Permissions (One-Time Setup Script)
@@ -1630,8 +1635,8 @@ Edit `~/.claude/settings.json` or `.claude/settings.json` with the hook configur
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/hooks
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
@@ -1640,4 +1645,10 @@ Edit `~/.claude/settings.json` or `.claude/settings.json` with the hook configur
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/plugins/manifest-reference#quoting-and-path-separators
- https://github.com/anthropics/claude-code/releases/tag/v2.1.295
+- https://code.claude.com/docs/en/hooks#pretooluse
+- https://code.claude.com/docs/en/hooks#pretooluse-decision-control
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/hooks#userpromptsubmit-input
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/changelog#2-1-300
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/06-hooks/notify-team.sh b/06-hooks/notify-team.sh
index 1894218..ff04d86 100644
--- a/06-hooks/notify-team.sh
+++ b/06-hooks/notify-team.sh
@@ -1,9 +1,15 @@
#!/bin/bash
# Send notifications on events
-# Hook: PostToolUse (matcher: Bash) — run after bash commands; filter for git push in script logic
+# Hook: PostToolUse (matcher: Bash) — runs after every Bash call; the script exits unless the command is a git push
# Note: Claude Code has no native PostPush event. To trigger on git push, check the bash command
# string for "git push" using a matcher or conditional logic within this script.
+# Read the hook input and exit unless the Bash command is a git push
+INPUT=$(cat)
+# Extract the command (escaped quotes like \"msg\" are kept) and match "git push" as a command word anywhere in it
+COMMAND=$(echo "$INPUT" | sed -nE 's/.*"command"[[:space:]]*:[[:space:]]*"(([^"\\]|\\.)*)".*/\1/p' | head -1)
+printf '%s\n' "$COMMAND" | grep -qE '(^|[^[:alnum:]_-]|\\n)git[[:space:]]+push([^[:alnum:]_-]|$)' || exit 0
+
REPO_NAME=$(basename $(git rev-parse --show-toplevel 2>/dev/null) 2>/dev/null)
COMMIT_MSG=$(git log -1 --pretty=%B 2>/dev/null)
AUTHOR=$(git log -1 --pretty=%an 2>/dev/null)
diff --git a/06-hooks/validate-prompt.sh b/06-hooks/validate-prompt.sh
index b2701f3..e0b9f21 100644
--- a/06-hooks/validate-prompt.sh
+++ b/06-hooks/validate-prompt.sh
@@ -10,11 +10,8 @@
INPUT=$(cat)
# Extract the prompt text from JSON input
-# Claude Code sends UserPromptSubmit with field "user_prompt" (falls back to "prompt")
-PROMPT=$(echo "$INPUT" | sed -n 's/.*"user_prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
-if [ -z "$PROMPT" ]; then
- PROMPT=$(echo "$INPUT" | sed -n 's/.*"prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
-fi
+# Claude Code sends the UserPromptSubmit text in the "prompt" field
+PROMPT=$(echo "$INPUT" | sed -n 's/.*"prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
if [ -z "$PROMPT" ]; then
exit 0
diff --git a/07-plugins/README.md b/07-plugins/README.md
index 1ec2c07..41d56c9 100644
--- a/07-plugins/README.md
+++ b/07-plugins/README.md
@@ -278,35 +278,47 @@ Plugins have access to a persistent state directory via the `${CLAUDE_PLUGIN_DAT
"hooks": {
"PostToolUse": [
{
- "command": "node ${CLAUDE_PLUGIN_DATA}/track-usage.js"
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}\"/scripts/track-usage.js \"${CLAUDE_PLUGIN_DATA}\"/usage.json"
+ }
+ ]
}
]
}
}
```
-The directory is created automatically when the plugin is installed. Files stored here persist until the plugin is uninstalled.
+The directory (`~/.claude/plugins/data/<id>/`) is created the first time it is referenced and kept across plugin updates. It is deleted when you uninstall the plugin from the last place it's installed (unless you pass `--keep-data`).
### Background Monitors (v2.1.105)
-Plugins can register background monitors that auto-arm when a session starts or when the plugin's skill is invoked. Add a top-level `monitors` key to your plugin manifest:
+Plugins can register background monitors that start when a session starts or the first time one of the plugin's skills runs. Declare them under `experimental.monitors` in `plugin.json` (or in `monitors/monitors.json`):
```json
{
"name": "my-plugin",
"version": "1.0.0",
- "monitors": [
- {
- "command": "tail -f /var/log/app.log",
- "trigger": "session_start"
- }
- ]
+ "experimental": {
+ "monitors": [
+ {
+ "name": "app-log",
+ "command": "tail -f /var/log/app.log",
+ "description": "Application log errors",
+ "when": "always"
+ }
+ ]
+ }
}
```
-The `trigger` field accepts:
-- `"session_start"` — arm the monitor automatically when a session begins
-- `"skill_invoke"` — arm the monitor when the plugin's skill is invoked
+`name`, `command`, and `description` are required. `when` accepts:
+- `"always"` (default) — start at session start and on plugin reload
+- `"on-skill-invoke:<skill>"` — start the first time that skill runs
+
+Unknown keys are rejected and the plugin doesn't load. A top-level `monitors` key still loads but `claude plugin validate` warns.
Monitors use the same Monitor tool under the hood, streaming stdout lines as events Claude can react to.
@@ -345,6 +357,8 @@ A mod is a plugin that changes how Claude Code looks and behaves. Its code is a
To create a mod, describe what you want in a Claude Code session: Claude works from the built-in `plugin-authoring` skill (or run `/plugin-authoring` yourself), writes the mod, and, once you enable hot reloading for the session, reloads it at the end of each turn that changes it; `claude plugin validate` checks a mod without running it. Administrators decide whether mods run, and which ones, through managed settings — for example, `allowManagedModsOnly` lets only your organization's mods and the mods built into Claude Code run their hooks.
+> **Note**: v2.1.299–2.1.300 add `Text` props `size`, `weight`, `mono`, `tabular`, `dir` (RTL) — `bold` is deprecated in favor of `weight` — `Box` spacing steps `xs`–`xl`, prompt `virtualText`, `$.ui.view({ agentId })`, and the `prompt.change` hook.
+
> **Note**: See the official [Mods overview](https://code.claude.com/docs/en/plugins/mods/overview), [Create a mod](https://code.claude.com/docs/en/plugins/mods/create), and [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference).
## Plugin Settings
@@ -459,13 +473,10 @@ devops-automation/
│ ├── incident-commander.md
│ └── alert-analyzer.md
├── mcp/
-│ ├── github-config.json
-│ ├── kubernetes-config.json
-│ └── prometheus-config.json
+│ └── kubernetes-config.json
├── hooks/
│ ├── pre-deploy.js
-│ ├── post-deploy.js
-│ └── on-error.js
+│ └── post-deploy.js
└── scripts/
├── deploy.sh
├── rollback.sh
@@ -488,8 +499,7 @@ documentation/
│ ├── code-commentator.md
│ └── example-generator.md
├── mcp/
-│ ├── github-docs-config.json
-│ └── slack-announce-config.json
+│ └── github-docs-config.json
└── templates/
├── api-endpoint.md
├── function-docs.md
@@ -872,6 +882,8 @@ claude plugin eval # Run the plugin's eval suite
claude plugin eval --help # Full option list
```
+`--disallow-tools <tools…>` and a per-case `disallowed_tools` field keep built-in tools such as Agent out of eval runs (v2.1.299).
+
### Machine-readable output with `--json` (v2.1.268+)
`--json` is accepted on `install`, `uninstall`, `update`, `enable`, and `disable`, which makes plugin management scriptable in CI. Each row of `claude plugin list --json` also carries `errorDetails` and `noteDetails`, so a failing plugin explains itself without a second command.
@@ -1327,8 +1339,8 @@ The following Claude Code features work together with plugins:
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
- https://code.claude.com/docs/en/plugins-reference
@@ -1359,4 +1371,7 @@ The following Claude Code features work together with plugins:
- https://code.claude.com/docs/en/plugins/mods/reference
- https://github.com/anthropics/claude-code/releases/tag/v2.1.287
- https://github.com/anthropics/claude-code/releases/tag/v2.1.292
+- https://code.claude.com/docs/en/plugins-reference#monitors
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/changelog#2-1-300
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/devops-automation/commands/deploy.md b/07-plugins/devops-automation/commands/deploy.md
index 31421e7..f2864e5 100644
--- a/07-plugins/devops-automation/commands/deploy.md
+++ b/07-plugins/devops-automation/commands/deploy.md
@@ -1,5 +1,4 @@
---
-name: Deploy
description: Deploy application to production or staging
---
@@ -16,8 +15,9 @@ Execute deployment workflow:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/devops-automation/commands/incident.md b/07-plugins/devops-automation/commands/incident.md
index 5b7b1c7..db97c8d 100644
--- a/07-plugins/devops-automation/commands/incident.md
+++ b/07-plugins/devops-automation/commands/incident.md
@@ -1,5 +1,4 @@
---
-name: Incident Response
description: Handle production incidents with structured response
---
@@ -17,8 +16,9 @@ Structured incident response workflow:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/devops-automation/commands/rollback.md b/07-plugins/devops-automation/commands/rollback.md
index 4d85e61..edbc7b2 100644
--- a/07-plugins/devops-automation/commands/rollback.md
+++ b/07-plugins/devops-automation/commands/rollback.md
@@ -1,5 +1,4 @@
---
-name: Rollback
description: Rollback to previous deployment
---
@@ -15,8 +14,9 @@ Rollback to previous stable version:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/devops-automation/commands/status.md b/07-plugins/devops-automation/commands/status.md
index 7a0d27b..c3bbc11 100644
--- a/07-plugins/devops-automation/commands/status.md
+++ b/07-plugins/devops-automation/commands/status.md
@@ -1,5 +1,4 @@
---
-name: System Status
description: Check overall system health and status
---
@@ -16,8 +15,9 @@ Check system health across all services:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/documentation/commands/generate-api-docs.md b/07-plugins/documentation/commands/generate-api-docs.md
index f597109..be727af 100644
--- a/07-plugins/documentation/commands/generate-api-docs.md
+++ b/07-plugins/documentation/commands/generate-api-docs.md
@@ -1,5 +1,4 @@
---
-name: Generate API Documentation
description: Generate comprehensive API documentation from source code
---
@@ -16,8 +15,9 @@ Generate complete API documentation:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/documentation/commands/generate-readme.md b/07-plugins/documentation/commands/generate-readme.md
index ddb68f4..36ea767 100644
--- a/07-plugins/documentation/commands/generate-readme.md
+++ b/07-plugins/documentation/commands/generate-readme.md
@@ -1,5 +1,4 @@
---
-name: Generate README
description: Create or update project README
---
@@ -16,8 +15,9 @@ Generate comprehensive README:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/documentation/commands/sync-docs.md b/07-plugins/documentation/commands/sync-docs.md
index 0868098..00f08ff 100644
--- a/07-plugins/documentation/commands/sync-docs.md
+++ b/07-plugins/documentation/commands/sync-docs.md
@@ -1,5 +1,4 @@
---
-name: Sync Documentation
description: Sync documentation with code changes
---
@@ -15,8 +14,9 @@ Synchronize documentation with codebase:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/documentation/commands/validate-docs.md b/07-plugins/documentation/commands/validate-docs.md
index e6c252b..33dcd2a 100644
--- a/07-plugins/documentation/commands/validate-docs.md
+++ b/07-plugins/documentation/commands/validate-docs.md
@@ -1,5 +1,4 @@
---
-name: Validate Documentation
description: Validate documentation for completeness and accuracy
---
@@ -15,8 +14,9 @@ Validate documentation quality:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/pr-review/commands/check-security.md b/07-plugins/pr-review/commands/check-security.md
index 5192201..bc73fd4 100644
--- a/07-plugins/pr-review/commands/check-security.md
+++ b/07-plugins/pr-review/commands/check-security.md
@@ -1,5 +1,4 @@
---
-name: Security Check
description: Run security-focused code review
---
@@ -15,8 +14,9 @@ Perform focused security analysis on code changes:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/pr-review/commands/check-tests.md b/07-plugins/pr-review/commands/check-tests.md
index d1027b5..feb72a2 100644
--- a/07-plugins/pr-review/commands/check-tests.md
+++ b/07-plugins/pr-review/commands/check-tests.md
@@ -1,5 +1,4 @@
---
-name: Test Coverage Check
description: Verify test coverage and quality
---
@@ -15,8 +14,9 @@ Analyze test coverage and quality:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/07-plugins/pr-review/commands/review-pr.md b/07-plugins/pr-review/commands/review-pr.md
index 79e6ea9..98d3fd6 100644
--- a/07-plugins/pr-review/commands/review-pr.md
+++ b/07-plugins/pr-review/commands/review-pr.md
@@ -1,5 +1,4 @@
---
-name: Review PR
description: Start comprehensive PR review with security and testing checks
---
@@ -15,8 +14,9 @@ This command initiates a complete pull request review including:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/08-checkpoints/README.md b/08-checkpoints/README.md
index 58f4b4d..40f43b9 100644
--- a/08-checkpoints/README.md
+++ b/08-checkpoints/README.md
@@ -33,7 +33,7 @@ You can access and manage checkpoints in two primary ways:
Press `Esc` twice (`Esc` + `Esc`) to open the checkpoint interface and browse saved checkpoints.
### Using Slash Command
-Use the `/rewind` command (alias: `/checkpoint`) for quick access:
+Use the `/rewind` command (aliases: `/checkpoint`, `/undo`) for quick access:
```bash
# Open rewind interface
@@ -63,7 +63,7 @@ When you rewind, you are presented with a menu of six options:
Claude Code automatically creates checkpoints for you:
- **Every user prompt** - A new checkpoint is created with each user input
-- **Persistent** - Checkpoints persist across sessions
+- **Persistent** - Checkpoints are saved with the conversation, so `/rewind` still works after you resume a session
- **Auto-cleaned** - Checkpoints are automatically cleaned up after 30 days
This means you can always rewind to any previous point in your conversation, from a few minutes ago to days before.
@@ -302,7 +302,7 @@ Use both together:
- **`Esc` + `Esc`** - Open checkpoint browser
- **`/rewind`** - Alternative way to access checkpoints
-- **`/checkpoint`** - Alias for `/rewind`
+- **`/checkpoint`**, **`/undo`** - Aliases for `/rewind`
## Knowing When to Rewind: Context Monitoring
@@ -337,11 +337,12 @@ Remember: checkpoints are not a replacement for git. Use checkpoints for rapid e
---
-**Last Updated**: September 19, 2026
-**Claude Code Version**: 2.1.278
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/checkpointing
- https://code.claude.com/docs/en/settings
- https://github.com/anthropics/claude-code/releases/tag/v2.1.117
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/commands
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/09-advanced-features/README.md b/09-advanced-features/README.md
index 6f32726..4eb68ef 100644
--- a/09-advanced-features/README.md
+++ b/09-advanced-features/README.md
@@ -593,10 +593,8 @@ User: Run tests in background
Claude: Started task bg-1234
-/task list # Show all tasks
-/task status bg-1234 # Check progress
-/task show bg-1234 # View output
-/task cancel bg-1234 # Cancel task
+/tasks # View and manage background work (shells and subagents); stop a task from here
+Ctrl+B # Move a running Bash command or agent to the background
```
### Starting Background Tasks
@@ -618,44 +616,19 @@ Claude: [Works on auth module while tests run in background]
Claude: 📢 Background task bg-1234 completed:
✅ 245 tests passed
❌ 3 tests failed
-View results: /task show bg-1234
+View results: /tasks
```
### Managing Background Tasks
-**List active tasks**:
-```
-User: /task list
-
-Active background tasks:
-1. [bg-1234] Running tests (50% complete, 2min remaining)
-2. [bg-1235] Building Docker image (25% complete, 8min remaining)
-3. [bg-1236] Deploying to staging (90% complete, 30sec remaining)
-```
-
-**Check task status**:
-```
-User: /task status bg-1234
-
-Task bg-1234: Running tests
-Status: In progress
-Progress: 120/245 tests (49%)
-Started: 2025-11-08 10:30:15
-Estimated completion: 2025-11-08 10:34:22
-```
-
-**View task output**:
-```
-User: /task show bg-1234
-
-[Shows live output from the test run]
-```
+Run `/tasks` (alias `/bashes`) to list running shells and subagents, open one to see its output, or stop it. There are no `/task` subcommands.
-**Cancel task**:
-```
-User: /task cancel bg-1234
+```text
+User: /tasks
-Cancelled background task bg-1234
+[Opens the background-work view: running shells and subagents,
+ including subagents that have finished. Select one to see its
+ output, or stop it from here.]
```
### Example: Parallel Development
@@ -1175,6 +1148,8 @@ When you return to a session after being away, Claude can show a brief recap of
> **OTEL telemetry — `assistant_response` log event (v2.1.193+)**: Claude Code emits a `claude_code.assistant_response` OpenTelemetry log event carrying the model's response text, letting OTEL pipelines capture what Claude said alongside the existing tool/event telemetry.
+> **OTEL telemetry — cache and GenAI attributes (v2.1.300)**: `api_request` events add `cache_creation_5m_tokens`/`cache_creation_1h_tokens`, and spans carry GenAI semantic-convention attributes such as `gen_ai.provider.name`.
+
**Control recap behavior:**
```bash
@@ -1835,8 +1810,8 @@ claude remote-control --name "Auth Refactor"
|------|-------------|
| `--name "title"` | Custom session title for easy identification |
| `--verbose` | Show detailed connection logs |
-| `--sandbox` | Enable filesystem and network isolation |
-| `--no-sandbox` | Disable sandboxing (default) |
+
+> **Note (v2.1.300)**: `claude remote-control` no longer accepts `--sandbox` or `--no-sandbox` (they never had an effect; passing either now exits with an error). To sandbox Remote Control sessions, set `sandbox.enabled` in a settings file.
### Connecting to a session
@@ -1863,9 +1838,9 @@ Three ways to connect from another device:
### Limitations
-- One remote session per Claude Code instance
+- One remote session per interactive Claude Code process — server mode (`claude remote-control`) serves several at once (`--capacity`, default 32)
- Terminal must stay open on the host machine
-- Session times out after ~10 minutes if the network is unreachable
+- If the network is unreachable, server mode exits after ~10 minutes; an interactive session keeps retrying and reconnects when the network returns
### Use cases
@@ -2164,17 +2139,20 @@ Sandboxing provides OS-level filesystem and network isolation for Bash commands
### Enabling Sandboxing
-**Slash command**:
-```
+**Slash command** (saves your choice to `.claude/settings.local.json` for this project):
+```text
/sandbox
```
-**CLI flags**:
+**Settings file** (all projects): set `"sandbox": { "enabled": true }` in `~/.claude/settings.json`.
+
+**Per session**, without writing a settings file:
```bash
-claude --sandbox # Enable sandboxing
-claude --no-sandbox # Disable sandboxing
+claude --settings '{"sandbox": {"enabled": true}}'
```
+> There is no `claude --sandbox` / `--no-sandbox` flag. Since v2.1.300, passing them to `claude remote-control` exits with an error.
+
### Configuration Settings
| Setting | Description |
@@ -2484,7 +2462,7 @@ export MAX_MCP_OUTPUT_TOKENS=50000
export ENABLE_TOOL_SEARCH=true
# Prompt caching
-export ENABLE_PROMPT_CACHING_1H=1 # Use 1-hour prompt cache TTL (default is 5 min)
+export ENABLE_PROMPT_CACHING_1H=1 # Request 1-hour cache TTL for all requests (default: 1h for the main conversation on a subscription, 5 min on API key / cloud providers)
# Task management
export CLAUDE_CODE_TASK_LIST_ID=my-project-tasks
@@ -2542,13 +2520,19 @@ export CLAUDE_CODE_MCP_STARTUP_WAIT_MS=5000 # (v2.1.274) How lon
export CLAUDE_CODE_WEBFETCH_DEADLINE_MS=300000 # (v2.1.268) Overrides WebFetch's new 300-second deadline. 0 disables the deadline.
export CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS=32 # (v2.1.269) Raises the Workflow tool's per-run concurrent agent limit. Accepts 1-256.
export CLAUDE_CODE_AUTO_MODE_SERVER=0 # (v2.1.278; direct Anthropic API since v2.1.281) Opt out of server-side auto-mode classifier review
+
+# Newer variables (v2.1.299-v2.1.300)
+export CLAUDE_CODE_DISABLE_FILE_MENTIONS=1 # (v2.1.299) Don't expand @ file/directory mentions; Claude gets the paths and reads them with its file tools. Ignored in project/local settings.
+export CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS=200000 # (v2.1.299, needs v2.1.290+) Context size at which idle compaction applies. Default 200000, minimum 100000. "idleCompaction": false turns it off.
+export CLAUDE_CODE_GZIP_REQUEST_BODIES=0 # (v2.1.300) Turn off gzip of large request bodies to api.anthropic.com (use if a TLS-inspecting proxy mishandles them).
+export CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS=0 # (v2.1.300) Edit artifact files with file tools, then publish as a separate step, instead of in-publish edits.
```
> **v2.1.223 — `CLAUDE_CODE_DISABLE_1M_CONTEXT` widened**: the variable now holds **every**
> Claude model with a native 1M-token window down to 200K via auto-compaction, rather than
> only a fixed list of model IDs.
-> **v2.1.108**: `ENABLE_PROMPT_CACHING_1H=1` — use a 1-hour prompt cache TTL instead of the default 5-minute TTL. Reduces cache misses in long, stable sessions. (v2.1.129 fixes a regression where the 1-hour TTL was silently downgraded to 5 minutes.)
+> **v2.1.108**: `ENABLE_PROMPT_CACHING_1H=1` — request the 1-hour prompt cache TTL for the main conversation and other requests. Without it, the main conversation gets 1 hour on a Claude subscription within plan usage and 5 minutes on an API key, usage credits, or a cloud provider; `FORCE_PROMPT_CACHING_5M=1` forces 5 minutes. (v2.1.129 fixes a regression where the 1-hour TTL was silently downgraded to 5 minutes.)
> **v2.1.129**: `CLAUDE_CODE_FORCE_SYNC_OUTPUT=1` forces synchronous output for terminals whose capability auto-detection fails (e.g., Emacs `eat`). `CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1` enables background upgrades on Homebrew/WinGet installs, which otherwise never auto-update.
@@ -2646,7 +2630,9 @@ Or add to your settings JSON:
```json
{
- "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
+ "env": {
+ "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
+ }
}
```
@@ -2744,8 +2730,8 @@ For more information about Claude Code and related features:
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/output-styles
- https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md
@@ -2781,4 +2767,11 @@ For more information about Claude Code and related features:
- https://github.com/anthropics/claude-code/releases/tag/v2.1.288
- https://github.com/anthropics/claude-code/releases/tag/v2.1.290
- https://github.com/anthropics/claude-code/releases/tag/v2.1.293
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/changelog#2-1-300
+- https://code.claude.com/docs/en/settings-reference#sandbox-enabled
+- https://code.claude.com/docs/en/prompt-caching
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/monitoring-usage
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/10-cli/README.md b/10-cli/README.md
index c5be847..4f80892 100644
--- a/10-cli/README.md
+++ b/10-cli/README.md
@@ -28,7 +28,7 @@ graph TD
Since **v2.1.113**, the Claude Code CLI launches a **native per-platform binary** (macOS, Linux, Windows) via optional npm dependencies. The binary is matched to your OS and architecture at install time — the older bundled-JavaScript runtime is no longer the default on macOS or Linux.
-The **user-facing install is unchanged**: `npm install -g @anthropic-ai/claude-code` still works and remains the recommended path. Behind the scenes npm fetches the correct native binary for your platform.
+The **recommended install** is the native installer (`curl -fsSL https://claude.ai/install.sh | bash`; on Windows `irm https://claude.ai/install.ps1 | iex`). `npm install -g @anthropic-ai/claude-code` still works (Node.js 22+) and installs the same native binary through a per-platform optional dependency.
**Download host** (v2.1.116+): native-binary artifacts are served from `https://downloads.claude.ai/claude-code-releases`.
@@ -54,7 +54,8 @@ The older JavaScript bundle is still produced for Windows and for environments t
| `claude agents` | Open the **Agent View** (Research Preview, v2.1.139+) — multi-session manager listing every Claude Code session with its status. See [Agent View](#agent-view-claude-agents-v21139) below. | `claude agents` |
| `claude auto-mode defaults` | Print auto mode default rules as JSON | `claude auto-mode defaults` |
| `claude auto-mode reset` | Restore default auto-mode configuration, with a confirmation prompt (`--yes` to skip) (v2.1.212) | `claude auto-mode reset --yes` |
-| `claude --remote-control [name]` | Start Remote Control (a flag, not a subcommand; alias `--rc`) | `claude --rc` |
+| `claude remote-control` | Start a Remote Control server (server mode, no local interactive session; serves several sessions, `--capacity` default 32) | `claude remote-control --name "My Project"` |
+| `claude --remote-control [name]` | Start an interactive session with Remote Control enabled (alias `--rc`) | `claude --rc` |
| `claude plugin` | Manage plugins (install, enable, disable) | `claude plugin install my-plugin` |
| `claude plugin init <name>` | Scaffold a new plugin at `~/.claude/skills/<name>/` (user-global) — auto-loads in the next session as `<name>@skills-dir`, no marketplace required (v2.1.157+) | `claude plugin init my-plugin` |
| `claude plugin tag [path]` | Create a `{name}--v{version}` release git tag for the plugin at `[path]`, validating that `plugin.json` and any enclosing marketplace entry agree (v2.1.118+) | `claude plugin tag ./my-plugin` |
@@ -62,7 +63,7 @@ The older JavaScript bundle is still produced for Windows and for environments t
| `claude purge [path]` | Delete all local Claude Code state for a project (transcripts, tasks, debug logs, file-edit history, prompt history, and `~/.claude.json` entry). Omit `[path]` for an interactive picker. Flags: `--dry-run` to preview, `-y/--yes` to skip confirmation, `-i/--interactive` to confirm each item, `--all` for every project (v2.1.126+) — renamed from `claude project purge` in v2.1.288; the old name still works and prints a notice | `claude purge ~/work/repo --dry-run` |
| `claude plugin prune` | Remove orphaned auto-installed plugin dependencies (parent plugin gone). `plugin uninstall --prune` does the same cascade after uninstalling a target (v2.1.121+) | `claude plugin prune` |
| `claude ultrareview [target]` | Run `/ultrareview` non-interactively. Prints findings to stdout, exits 0 on success / 1 on failure. Use `--json` for raw payload, `--timeout <minutes>` to override the 30-minute default, and `--post` / `--no-post` to control whether findings are posted back to the PR. **Requires Claude Code v2.1.227 or later** | `claude ultrareview 1234 --json --no-post` |
-| `claude self-hosted-runner <setup\|doctor\|orchestrator>` | Turn your own machine or container into a place Claude Code web, mobile, and desktop sessions can run. `setup` provisions the runner, `doctor` diagnoses it, `orchestrator` runs the coordinating process. **Team and Enterprise plans; requires Claude Code v2.1.224 or later.** On Windows, startup requires an explicit `--base-dir` (v2.1.229) | `claude self-hosted-runner setup` |
+| `claude self-hosted-runner [setup\|doctor\|orchestrator]` | Start a runner that hosts Claude Code cloud sessions on your own machine or container. `setup` is a guided operator walkthrough, `doctor` diagnoses a deployed runner, `orchestrator` spawns on-demand runners (its `--shutdown-drain-sec`, v2.1.299, lets the in-flight poll and spawn hooks finish on SIGTERM). **Team and Enterprise plans; requires Claude Code v2.1.224 or later.** On Windows, startup requires an explicit `--base-dir` (v2.1.229) | `claude self-hosted-runner setup` |
| `claude auth login` | Log in (supports `--email`, `--sso`). Since v2.1.126, accepts the OAuth code pasted into the terminal as a fallback when the browser callback can't reach localhost (WSL2, SSH, containers) | `claude auth login --email [email protected]` |
| `claude auth logout` | Log out of current account | `claude auth logout` |
| `claude auth status` | Check auth status (exit 0 if logged in, 1 if not) | `claude auth status` |
@@ -350,6 +351,8 @@ claude --resume feature-auth --fork-session "try alternative approach"
claude --session-id "550e8400-e29b-41d4-a716-446655440000" "continue"
```
+> **v2.1.299**: The resume command printed at exit names the session by its ID.
+
### Session Fork
Create a branch from an existing session for experimentation:
@@ -539,6 +542,8 @@ Sessions that finish their work but leave a background shell open move from "Wor
**Pin a session** — press `Ctrl+T` on a session in `claude agents` to pin it (v2.1.147). Pinned background sessions stay alive when idle, are restarted in place to apply Claude Code updates, and are shed under memory pressure only after non-pinned sessions. (This `Ctrl+T` is scoped to the Agent View; in the main session it toggles the task list view.)
+**Defaults for new sessions (v2.1.299)** — in agent view, `/effort` and `/fast` set what new sessions start with; a bare `/model`, `/effort` or `/fast` opens a picker.
+
---
## High-Value Use Cases
@@ -822,7 +827,7 @@ claude --model opusplan "design and implement the API"
> **Fable 5.1 and the `fable` alias (v2.1.257)**: Fable 5.1 (`claude-fable-5-1`) ships in **v2.1.257**, and the `fable` alias now resolves to it rather than to Fable 5. The official model-config page says Fable 5.1 "requires Claude Code v2.1.255 or later", but 2.1.255 was never published — v2.1.257 is the first release users can actually install it with. On a Claude apps gateway, `fable` and `best` still resolve to **Fable 5**; pick 5.1 explicitly in `/model` there.
-> **Fast Mode runs on Opus 5 and Opus 4.8 (v2.1.219)**: As of v2.1.219, `/fast` applies to **Opus 5 and Opus 4.8** — Opus 4.7 was removed from fast mode. Opus 5's fast mode is billed at $10/$50 per Mtok. Fast mode first moved to Opus 4.8 in v2.1.154 (about 2× the standard rate for ~2.5× the output speed), having flipped from Opus 4.6 to Opus 4.7 in v2.1.142. The `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE` env var was **deprecated in v2.1.154 and removed on 2026-06-01**; fast mode is no longer available on Opus 4.6 — select Opus 5 or Opus 4.8 instead. **Since v2.1.280, fast mode defaults to Opus 5.5** ($8/$40 per Mtok); Opus 5 and Opus 4.8 remain supported at $10/$50.
+> **Fast Mode runs on Opus 5.5, Opus 5, and Opus 4.8 (v2.1.280)**: As of v2.1.219, `/fast` applies to **Opus 5 and Opus 4.8** — Opus 4.7 was removed from fast mode. Opus 5's fast mode is billed at $10/$50 per Mtok. Fast mode first moved to Opus 4.8 in v2.1.154 (about 2× the standard rate for ~2.5× the output speed), having flipped from Opus 4.6 to Opus 4.7 in v2.1.142. The `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE` env var was **deprecated in v2.1.154 and removed on 2026-06-01**; fast mode is no longer available on Opus 4.6 — select Opus 5 or Opus 4.8 instead. **Since v2.1.280, fast mode defaults to Opus 5.5** ($8/$40 per Mtok); Opus 5 and Opus 4.8 remain supported at $10/$50.
### Effort Levels (Opus 5 / Sonnet 5 / Opus 4.8 / Opus 4.7)
@@ -910,7 +915,7 @@ The "ultrathink" keyword in prompts activates deep reasoning. The `/effort` slid
| `CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS` | Starting delay in milliseconds, in place of the default 500, of the exponential backoff between automatic retries of a request rejected with a `529` overloaded error. Whole milliseconds from 500 to 32000 in plain digits; no effect when `CLAUDE_CODE_RETRY_WATCHDOG=1` or in fast mode (v2.1.292) |
| `CLAUDE_ENABLE_STREAM_WATCHDOG` | Streaming idle watchdog (aborts/retries after 5 min with no stream events) is on by default for all providers; set to `0` to disable (v2.1.196). |
| `CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT` | Override the 5-minute idle abort for remote MCP tool calls that hang with no response (v2.1.187+). |
-| `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE` | **Removed (no-op as of v2.1.160).** Previously pinned Fast Mode (`/fast`) to Opus 4.6. As of v2.1.219, `/fast` applies to **Opus 5 and Opus 4.8** only — Opus 4.6 and Opus 4.7 are no longer fast-mode targets. |
+| `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE` | **Removed (no-op as of v2.1.160).** Previously pinned Fast Mode (`/fast`) to Opus 4.6. `/fast` applies to **Opus 5.5 (default since v2.1.280), Opus 5, and Opus 4.8** only — Opus 4.6 and Opus 4.7 are no longer fast-mode targets. |
| `CLAUDE_CODE_MCP_STARTUP_WAIT_MS` | Bounds how long the first non-interactive turn waits for MCP servers that are still connecting. Set `0` to not wait (v2.1.274), except that since v2.1.284 the first turn still waits up to 2 s for servers named by `--allowedTools` or an `mcp_tool` hook |
| `MCP_PROTOCOL_NEGOTIATION` | On the v2 MCP client runtime only, whether Claude Code probes servers for MCP protocol revision 2026-07-28: `auto` probes HTTP, claude.ai connector, and stdio servers; `legacy` probes none. Any other value is ignored with a warning in the debug log (v2.1.221) |
| `CLAUDE_CODE_DISABLE_WEB_FETCH` | Turns off the WebFetch tool (v2.1.285) |
@@ -919,6 +924,10 @@ The "ultrathink" keyword in prompts activates deep reasoning. The `/effort` slid
| `CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS` | Raises the Workflow tool's per-run concurrent agent limit. Accepts 1–256 (v2.1.269) |
| `CLAUDE_CODE_AUTO_MODE_SERVER` | Set to `0` to use Claude Code's own auto-mode classifier requests instead of server-side review — on Bedrock, Vertex, Foundry, and gateways since v2.1.278, and on a direct Anthropic API connection since v2.1.281 (there the local classifier then counts toward usage, and `1` opts in) |
| `CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT` | Set to `1` to turn off the 2-minute timeout on the dangerous `rm` prompt in `--dangerously-skip-permissions` and auto mode, which otherwise denies the command with a rewrite hint so unattended sessions keep going (v2.1.281) |
+| `CLAUDE_CODE_DISABLE_FILE_MENTIONS` | Set to `1` to stop expanding `@` mentions of files and directories; Claude gets the mentioned paths with a note to read them with its file tools. Ignored in project and local settings (v2.1.299) |
+| `CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS` | Context size, in tokens, at which idle compaction applies (default `200000`; values below `100000` are raised to `100000`). Turn idle compaction off with `"idleCompaction": false`. Added in v2.1.299; requires v2.1.290+ |
+| `CLAUDE_CODE_GZIP_REQUEST_BODIES` | Set to `0` to turn off gzip compression of large API, telemetry, and artifact-publish request bodies sent to `api.anthropic.com`. Compression is skipped automatically behind a proxy, with a client certificate, or with `NODE_EXTRA_CA_CERTS`; use `0` if a TLS-inspecting proxy Claude Code can't detect mishandles compressed requests. Since v2.1.300 compression applies even when telemetry is disabled (v2.1.300) |
+| `CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS` | Set to `0` to stop Claude from applying small changes to an artifact's file as part of publishing it; Claude then edits the file with its file tools and publishes as a separate step (v2.1.300) |
| `CLAUDE_CODE_ENABLE_TODO_TOOLS` | Set to `1` to restore the todo/task-tracking tools (`TaskCreate`/`Get`/`Update`/`List`, `TodoWrite`), which are available by default only on Claude 3.x models, Opus 4 through 4.7, Sonnet 4 through 4.6, and Haiku 4.5 (v2.1.268) |
| `CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS` | How long WebFetch caches a fetched URL. Default 15 minutes (v2.1.233) |
| `CLAUDE_CODE_TOOL_MEMORY_LIMIT` | Linux only: opt in to a memory cgroup applied to Bash commands (v2.1.233) |
@@ -968,6 +977,7 @@ These keys live in a `settings.json` file (`~/.claude/settings.json` for user sc
| `syncClaudeAiSkills` / `syncClaudeAiPlugins` | (v2.1.275) Set either to `false` to opt out of syncing the skills or plugins you have enabled on your claude.ai account into terminal sessions. |
| `attribution` | (v2.1.281) Set `"attribution": false` to hide all commit and PR attribution. Older CLI versions skip a settings file that holds it, so keep the object form in files shared across versions. |
| `maxProseWidth` | (v2.1.282) Caps the width of Claude's prose in wide terminals; tables and code blocks keep the full width. |
+| `idleCompaction` | (v2.1.290) Compacts a long conversation you've stepped away from shortly before its prompt cache expires, so your next message sends a summary instead of the whole conversation. On by default in interactive sessions on the one-hour cache TTL once context reaches 200K tokens (`CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS`) and ~54 minutes have passed. Set `false` to turn it off; `DISABLE_AUTO_COMPACT` also turns it off. |
```json
{
@@ -1023,9 +1033,9 @@ claude -p --output-format json "query"
**Problem:** `claude: command not found`
**Solutions:**
-- Install Claude Code: `npm install -g @anthropic-ai/claude-code`
-- Check PATH includes npm global bin directory
-- Try running with full path: `npx claude`
+- Install Claude Code: `curl -fsSL https://claude.ai/install.sh | bash` (native, recommended) or `npm install -g @anthropic-ai/claude-code`
+- Check PATH includes `~/.local/bin` (native install) or npm's global bin directory
+- Run `claude doctor`
### API Key Issues
@@ -1081,8 +1091,8 @@ claude -p --output-format json "query"
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md
- https://code.claude.com/docs/en/workflows#set-a-size-guideline
@@ -1122,4 +1132,14 @@ claude -p --output-format json "query"
- https://github.com/anthropics/claude-code/releases/tag/v2.1.288
- https://github.com/anthropics/claude-code/releases/tag/v2.1.290
- https://github.com/anthropics/claude-code/releases/tag/v2.1.293
+- https://code.claude.com/docs/en/cli-reference#cli-commands
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/setup
+- https://code.claude.com/docs/en/troubleshoot-install#command-not-found-claude-after-installation
+- https://code.claude.com/docs/en/self-hosted-environments-reference
+- https://code.claude.com/docs/en/settings-reference#idlecompaction
+- https://code.claude.com/docs/en/prompt-caching#compacting-the-conversation
+- https://code.claude.com/docs/en/agent-view
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/changelog#2-1-300
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/CATALOG.md b/CATALOG.md
index 2db423b..490d326 100644
--- a/CATALOG.md
+++ b/CATALOG.md
@@ -17,12 +17,12 @@
|---------|----------|----------|-------|-----------|
| **Slash Commands** | 60+ | 8 | 68+ | [01-slash-commands/](01-slash-commands/) |
| **Subagents** | 6 | 9 | 15 | [04-subagents/](04-subagents/) |
-| **Skills** | 10 bundled | 6 | 16 | [03-skills/](03-skills/) |
+| **Skills** | 20 bundled | 6 | 26 | [03-skills/](03-skills/) |
| **Plugins** | - | 3 | 3 | [07-plugins/](07-plugins/) |
-| **MCP Servers** | 1 | 4 | 5 | [05-mcp/](05-mcp/) |
+| **MCP Servers** | - | 4 | 4 | [05-mcp/](05-mcp/) |
| **Hooks** | 33 events | 11 | 44 | [06-hooks/](06-hooks/) |
| **Memory** | 7 types | 3 | 10 | [02-memory/](02-memory/) |
-| **Total** | **117** | **44** | **161** | |
+| **Total** | **126** | **44** | **170** | |
---
@@ -56,7 +56,7 @@ Commands are user-invoked shortcuts that execute specific actions.
| `/proactive` | Alias for `/loop` (v2.1.105) | Same as `/loop` |
| `/recap` | Show session recap when returning to a session | After being away, get context on what was done |
| `/rewind` | Rewind to checkpoint | Undo changes, explore alternatives |
-| `/checkpoint` | Manage checkpoints | Save/restore states |
+| `/checkpoint` | Alias for `/rewind` | Same as `/rewind` |
| `/cost` | Shortcut alias that opens the cost tab of `/usage` (v2.1.118+) | Monitor spending |
| `/context` | Show context window usage | Manage conversation length |
| `/export` | Export conversation | Save for reference |
@@ -72,10 +72,8 @@ Commands are user-invoked shortcuts that execute specific actions.
| `/release-notes` | Show release notes | Check new features |
| `/remote-control` | Enable remote control | Remote access |
| `/permissions` | Manage permissions | Control access |
-| `/session` | Manage sessions | Multi-session workflows |
| `/rename` | Rename current session | Organize sessions |
| `/resume` | Resume previous session | Continue work |
-| `/todo` | View/manage todo list | Track tasks |
| `/tui` | Toggle fullscreen TUI (text user interface) mode | Flicker-free rendering in fullscreen/tmux |
| `/tasks` | View background tasks | Monitor async operations |
| `/copy` | Copy last response to clipboard | Share output quickly |
@@ -91,7 +89,7 @@ Commands are user-invoked shortcuts that execute specific actions.
| `/stickers` | View session stickers | Fun rewards |
| `/fast` | Toggle fast output mode; applies to **Opus 5.5** (the default since v2.1.280), **Opus 5, and Opus 4.8** | Speed up responses |
| `/terminal-setup` | Configure terminal integration | Setup terminal features |
-| `/undo` | **No longer documented** — added as an alias for `/rewind` in v2.1.108, but it appears nowhere in the official commands reference | Use `/rewind` (or `Esc Esc`) instead |
+| `/undo` | Alias for `/rewind` (v2.1.108) | Same as `/rewind` |
| `/upgrade` | Check for updates | Version management |
| `/team-onboarding` | Generate a teammate ramp-up guide from this project's Claude Code usage | Onboarding new teammates (v2.1.101) |
| `/code-review ultra` | Run a cloud multi-agent code review over your current changes. `/ultrareview` remains as an alias; `/code-review ultra` is the preferred invocation. Includes 3 free runs on Pro and Max, then requires usage credits | Deep pre-merge review across multiple agents (v2.1.112) |
@@ -128,9 +126,9 @@ Claude Code supports 6 permission modes that control how tool use is authorized.
| Mode | Description | When to Use |
|------|-------------|-------------|
-| `manual` | Prompt for each tool call | Standard interactive use (renamed from `default` in v2.1.200; `default` still accepted) |
+| `manual` | Prompt for each tool call | Standard interactive use (shown as Manual since v2.1.200; config value is still `default`, `manual` is an alias) |
| `acceptEdits` | Auto-accept file edits, prompt for others | Trusted editing workflows |
-| `plan` | Read-only tools only, no writes | Planning and exploration |
+| `plan` | Research and propose a plan; no source edits until you approve it | Planning and exploration |
| `auto` | All actions, with background safety classifier checks | Long tasks, reducing prompt fatigue |
| `bypassPermissions` | Skip all permission checks | CI/CD, headless environments |
| `dontAsk` | Skip tools that would require permission | Non-interactive scripting |
@@ -164,10 +162,10 @@ Specialized AI assistants with isolated contexts for specific tasks.
|-------|------|-------------|
| `name` | string | Agent identifier |
| `description` | string | What the agent does |
-| `model` | string | Model override (e.g., `haiku-4.5`) |
+| `model` | string | Model override (`sonnet`, `opus`, `haiku`, `fable`, a full model ID, or `inherit`) |
| `tools` | array | Allowed tools list |
-| `effort` | string | Reasoning effort level (`low`, `medium`, `high`) |
-| `initialPrompt` | string | System prompt injected at agent start |
+| `effort` | string | Effort level (`low`, `medium`, `high`, `xhigh`, `max`; depends on model) |
+| `initialPrompt` | string | First user turn auto-submitted when the agent runs as the main session agent (`--agent`) |
| `disallowedTools` | array | Tools explicitly denied to this agent |
### Custom Subagents (Examples)
@@ -229,9 +227,9 @@ Skills support YAML frontmatter in `SKILL.md` for configuration:
|-------|------|-------------|
| `name` | string | Skill display name |
| `description` | string | What the skill does |
-| `autoInvoke` | array | Trigger phrases for auto-invocation |
-| `effort` | string | Reasoning effort level (`low`, `medium`, `high`) |
-| `shell` | string | Shell to use for scripts (`bash`, `zsh`, `sh`) |
+| `when_to_use` | string | Trigger phrases or example requests appended to `description` |
+| `effort` | string | Effort level (`low`, `medium`, `high`, `xhigh`, `max`; depends on model) |
+| `shell` | string | Shell for inline `` !`command` `` blocks (`bash` default, or `powershell`) |
**Reference**: [03-skills/](03-skills/) | [Official Docs](https://code.claude.com/docs/en/skills)
@@ -244,17 +242,26 @@ cp -r 03-skills/* ~/.claude/skills/
| Skill | Description | When Auto-Invoked |
|-------|-------------|-------------------|
+| `/artifact-capabilities` | Load the reference for the runtime capabilities a published artifact can use (connectors, file downloads) | Before building an artifact page that uses one |
+| `/artifact-diagramming` *(v2.1.221+)* | Load diagramming guidance for artifacts: when a diagram helps, what to draw, inline SVG legible in light and dark themes | Drawing a diagram in an artifact |
| `/batch` | Run prompts on multiple files | Batch operations |
| `/claude-api` | Build apps with Claude API | API development |
+| `/claude-in-chrome [task]` | Carry out a task in your browser (test a page, fill a form, read console logs) via Claude in Chrome. Available when Chrome integration is enabled | Browser tasks |
+| `/dataviz [request]` | Design guidance for charts, graphs, and dashboards: chart form, color by role, palette validation for colorblind safety and contrast | Building a chart or dashboard |
| `/debug` | Debug failing tests/errors | Debugging sessions |
| `/design` *(research preview, v2.1.233+)* | Create a multi-artboard design canvas — UI mockups, screen flows, landing pages, posters — refined visually instead of in code. Pro/Max/Team/Enterprise | Designing a screen or page you would rather tweak by hand than in HTML |
+| `/design-sync [hint]` | Convert your repo's React design system and upload it to Claude Design so its designs use your real components. Anthropic API only | Syncing a design system to Claude Design |
+| `/doctor [prompt-audit [path]]` | Setup checkup that diagnoses installation, settings, extension, and `CLAUDE.md` problems and proposes fixes. Alias: `/checkup` | Troubleshooting your setup |
| `/fewer-permission-prompts` | Scan transcripts and propose a prioritized allowlist | Reduce repeat permission prompts |
| `/loop` | Run prompts on interval | Recurring tasks |
| `/run` *(v2.1.145+)* | Launch this project's app to see a change running | Verifying a change in the real app |
| `/run-skill-generator` *(v2.1.145+)* | Teach `/run`/`/verify` how to handle a specific project | First-time project setup for `/run` |
| `/code-review [low\|medium\|high\|xhigh\|max\|ultra] [--fix] [--comment] [pr#\|branch\|path]` | Review the current diff — or a PR, branch, or path — for correctness bugs. `--fix` applies findings, `--comment` posts them as inline PR comments. With no level given it reuses the last one you typed (v2.1.223). Lower effort levels moved to a **background subagent** in v2.1.218; `high`, `xhigh`, and `max` followed in v2.1.232, so review output no longer fills the conversation | After writing code, before landing a PR |
+| `/slides [brief]` *(v2.1.265+)* | Make a new presentation as a Claude Slides artifact from your brief. Needs artifacts and the Slides template | Creating a slide deck |
| `/simplify` *(distinct again since v2.1.154)* | Cleanup-only review (reuse / simplification / efficiency / altitude) that applies the fixes; does not hunt bugs | Tidying code without a bug hunt |
+| `/update-config [request]` | Describe a settings change (allow a command, set an env var, add a hook) and Claude edits the matching `settings.json` | Changing settings without hand-editing JSON |
| `/verify` *(v2.1.145+)* | Build, run, and observe the app to confirm a fix works | Validating a fix end-to-end |
+| `/workflow-authoring` *(v2.1.248+)* | Load the reference for writing dynamic workflow scripts (script API, resume, quality patterns). Available when dynamic workflows are enabled | Writing or editing a workflow script |
---
@@ -313,7 +320,7 @@ Model Context Protocol servers for external tool and API access.
| **Asana** | Project management | Task tracking | Project | Configure in settings |
| **Stripe** | Payment data | Financial analysis | Project | Configure in settings |
| **Memory** | Persistent memory | Cross-session recall | User | Configure in settings |
-| **Context7** | Library documentation | Up-to-date docs lookup | Built-in | Built-in |
+| **Context7** | Library documentation | Up-to-date docs lookup | User | Configure in settings (third-party server) |
> **Scope**: `Project` = team (`.mcp.json`), `User` = personal (`~/.claude.json`), `Built-in` = pre-installed
@@ -351,10 +358,10 @@ Event-driven automation that executes shell commands on Claude Code events.
| Event | Description | When Triggered | Use Cases |
|-------|-------------|----------------|-----------|
| `SessionStart` | Session begins/resumes | Session initialization | Setup tasks |
-| `Setup` | Initial environment setup (one-time per session) | First-time session bootstrap | Provision tooling, install deps |
+| `Setup` | Repository setup or maintenance run | Only with `--init-only`, or `--init`/`--maintenance` with `-p` | Provision tooling, install deps |
| `InstructionsLoaded` | Instructions loaded | CLAUDE.md or rules file loaded | Custom instruction handling |
-| `UserPromptSubmit` | Before prompt processing | User sends message | Input validation |
-| `UserPromptExpansion` | User prompt expanded (@-mentions, slash commands resolved) | After expansion, before submit | Transform or inspect expanded prompt |
+| `UserPromptSubmit` | Before prompt processing (and, since v2.1.299, before a skill or custom command expands) | User sends message | Input validation |
+| `UserPromptExpansion` | A typed slash command (skill, custom command, or MCP prompt) expands into a prompt | After `UserPromptSubmit`, before the expanded prompt reaches Claude | Block direct `/command` use, add per-skill context, log commands |
| `PreToolUse` | Before tool execution | Before any tool runs | Validation, logging |
| `PermissionRequest` | Permission dialog shown | Before sensitive actions | Custom approval flows |
| `PermissionDenied` | User denies a permission prompt | After permission decline | Logging, analytics, policy enforcement |
@@ -468,14 +475,14 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **/proactive** | Alias for `/loop` — same recurring-task behavior (v2.1.105) | Use `/proactive` interchangeably with `/loop` |
| **/recap** | Show a session recap when returning to an existing session (v2.1.108) | Run `/recap` after being away to get context on what was done |
| **/tui** | Toggle fullscreen TUI (text user interface) mode for flicker-free rendering (v2.1.110) | Use `/tui` in fullscreen terminals or tmux |
-| **/undo** | **No longer documented** — added as an alias for `/rewind` in v2.1.108, but it appears nowhere in the official commands reference | Use `/rewind` (or `Esc Esc`) instead |
+| **/undo** | Alias for `/rewind` (v2.1.108) | Use `/undo`, `/checkpoint`, or `/rewind` interchangeably |
| **Monitor Tool** | Watch a background command's stdout stream and react to events instead of polling (v2.1.98+) | Use the Monitor tool via [Advanced Features](09-advanced-features/) |
| **Output Styles** | Change Claude's role, tone, and default response format via the system prompt. Built-ins: Default, Proactive, Explanatory, Learning, Concise | `/config` → Output style, set `outputStyle`, or run `/output-style` (re-added in v2.1.269 after removal in v2.1.91). See [Advanced Features](09-advanced-features/#output-styles) |
| **Status Line** | Render a custom status line from a command that receives session, model, cost, and context JSON on stdin | `/statusline` or the `statusLine` setting. See [Advanced Features](09-advanced-features/#status-line) |
| **Community Marketplace** | Third-party plugins that passed Anthropic's automated validation, each pinned to a commit SHA | `/plugin marketplace add anthropics/claude-plugins-community`, then `/plugin install <name>@claude-community` |
| **/team-onboarding** | Auto-generate a teammate ramp-up guide from the project's Claude Code setup (v2.1.101) | Run `/team-onboarding` in your project |
| **Remote Control** | Control Claude Code sessions remotely via API. **No longer a research preview** — any machine running `claude remote-control` shows up as a device card in the Claude app's Code tab, so a session can be started on it from a phone | Run `claude remote-control` on the machine, then pick its device card in the Claude app. See [Advanced Features](09-advanced-features/README.md) |
-| **Web Sessions** | Run Claude Code in a browser-based environment | Access via `claude web` or through the Anthropic Console |
+| **Web Sessions** | Run Claude Code in a cloud session | Start one with `claude --cloud "task"` or at claude.ai/code |
| **Desktop App** | Native desktop application for Claude Code | Use `/desktop` or download from Anthropic website |
| **Cross-Session Messaging** | Sessions can message each other — including your other machines and cloud sessions — discovered via `ListAgents` (v2.1.224+, macOS/Linux) | See [Advanced Features](09-advanced-features/README.md#cross-session-messaging); control inbound with `crossSessionInbound` |
| **Self-Hosted Runner** | Run Claude Code web, mobile, and desktop sessions on your own machines or containers (v2.1.224+, Team/Enterprise) | `claude self-hosted-runner setup`; see [CLI](10-cli/README.md) |
@@ -491,7 +498,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **MCP OAuth** | OAuth authentication for MCP servers | Configure OAuth credentials in MCP server settings for secure access |
| **MCP Tool Search** | Search and discover MCP tools dynamically | Use tool search to find available MCP tools across connected servers |
| **Scheduled Tasks** | Set up recurring tasks with `/loop` and cron tools | Use `/loop 5m /command` or CronCreate tool |
-| **Chrome Integration** | Browser automation with headless Chromium | Use `--chrome` flag or `/chrome` command |
+| **Chrome Integration** | Drive your own Chrome/Edge (visible window, your logins) via the Claude in Chrome extension | Use `--chrome` flag or `/chrome` command |
| **Keyboard Customization** | Customize keybindings including chord support | Use `/keybindings` or edit `~/.claude/keybindings.json` |
| **Auto Mode** | Fully autonomous operation with background safety classifier checks | `Shift+Tab` to cycle to it, or `--permission-mode auto` |
| **Channels** | Multi-channel communication (Telegram, Slack, etc.) (Research Preview) | Configure channel plugins; March 2026 |
@@ -512,7 +519,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **`/design`** | Design canvas — a multi-artboard visual design (UI mockups, screen flows, landing pages, posters) built on artifacts and refined visually rather than in code. Research preview; requires v2.1.233+; Pro/Max/Team/Enterprise | Run `/design` in the CLI or the Desktop app. See [Slash Commands](01-slash-commands/README.md) |
| **`notify_when_idle`** | Cross-session `SendMessage` input that asks another session on the same machine to send one notice when it next goes idle — opt-in, one-shot, no polling (v2.1.236). Related: `ListAgents` reports the session's own name and lists live teammates, and Windows gained cross-session messaging (v2.1.239) | Pass `notify_when_idle` to `SendMessage`. See [Advanced Features](09-advanced-features/README.md#cross-session-messaging) |
| **Plugin manifest fields** | `plugin.json` accepts `workflows`, `channels`, `dependencies` (semver), `outputStyles`, `keywords`, `metadata`, `lspServers`, and `experimental.themes` / `experimental.monitors`. CLI gained `claude plugin new`, `remove`/`rm`, `prune`/`autoremove`, and the flags `--with`, `-f`/`--force`, `--available`, `--push`, `--dry-run` | See [Plugins](07-plugins/README.md) |
-| **Restricted Mode** | Removes the built-in tools that run commands or code (Bash, PowerShell, REPL) and WebFetch unless `--tools` names them; ignores user, project, and local settings (managed settings and `--settings` still apply); confines file tools to the working directories; refuses `bypassPermissions`; and refuses to create cloud sessions (v2.1.248+) | `claude --restricted`, or `CLAUDE_CODE_RESTRICTED=1`. See [CLI](10-cli/README.md) |
+| **Restricted Mode** | Removes the built-in tools that run commands or code (such as Bash and PowerShell) and WebFetch unless `--tools` names them individually (not via the `default` preset); ignores user, project, and local settings (managed settings and `--settings` still apply); confines file tools to the working directories; refuses `bypassPermissions`; and refuses to create cloud sessions (v2.1.248+) | `claude --restricted`, or `CLAUDE_CODE_RESTRICTED=1`. See [CLI](10-cli/README.md) |
| **`/advisor` text form** | `/advisor`, `/advisor <model>`, and `/advisor off` work as text commands in the desktop app, Remote Control, and other headless (`-p` / Agent SDK) sessions, not just as a dialog (v2.1.260+) | Type `/advisor off` in a headless session. See [Slash Commands](01-slash-commands/README.md) |
---
@@ -573,8 +580,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/sub-agents
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
@@ -597,4 +604,7 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/slash-commands
- https://code.claude.com/docs/en/fast-mode
- https://code.claude.com/docs/en/permission-modes#eliminate-prompts-with-auto-mode
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/skills#bundled-skills
**Compatible Models**: Claude Fable 5.1, Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/INDEX.md b/INDEX.md
index 8b8d6a9..480c69d 100644
--- a/INDEX.md
+++ b/INDEX.md
@@ -378,7 +378,7 @@ Advanced capabilities for complex workflows.
| `setup-auto-mode-permissions.py` | Seed `permissions.allow` for auto mode | Idempotent, `--dry-run` and opt-in flags |
| Dynamic Workflows | Deterministic multi-agent orchestration via `/workflows` (v2.1.154) | Comprehensive audits, migrations, scale-out |
| Scheduled Tasks | Recurring tasks with `/loop` and cron tools | Automated recurring workflows |
-| Chrome Integration | Browser automation via headless Chromium | Web testing and scraping |
+| Chrome Integration | Browser automation in your own Chrome via the Claude in Chrome extension | Web testing and scraping |
| Remote Control (expanded) | Connection methods, security, comparison table, device cards | Remote session management (no longer a research preview) |
| Cross-Session Messaging | `SendMessage` / `ListAgents`, including `notify_when_idle` (v2.1.236) | Coordinating sessions on the same machine |
| Keyboard Customization | Custom keybindings, chord support, contexts | Personalized shortcuts |
@@ -409,7 +409,7 @@ Advanced capabilities for complex workflows.
- Default size guideline is medium (aim for fewer than 10 agents) as of v2.1.219 — change it with **Dynamic workflow size** in `/config`
### Permission Modes
-- **manual**: Ask for approval on risky actions (renamed from `default` in v2.1.200; `default` still accepted)
+- **manual**: Ask before anything beyond reads (shown as Manual since v2.1.200; config value is still `default`)
- **acceptEdits**: Auto-accept file edits, ask for others
- **plan**: Read-only analysis, no modifications
- **auto**: Everything, with background safety checks — a classifier reviews commands and protected-directory writes (configured via the `autoMode` settings object)
@@ -443,7 +443,7 @@ Advanced capabilities for complex workflows.
- Automated recurring workflows
### Chrome Integration
-- Browser automation via headless Chromium
+- Browser automation in your own Chrome via the Claude in Chrome extension
- Web testing and scraping capabilities
- Page interaction and data extraction
@@ -481,10 +481,10 @@ Command-line interface usage patterns and reference.
**Key CLI Features**:
- `claude` - Start interactive session
- `claude -p "prompt"` - Headless/non-interactive mode
-- `claude web` - Launch web session
+- `claude --cloud "task"` - Start a cloud (web) session
- `claude --model` - Select model (Opus 5.5, Sonnet 5.5, Opus 5, Sonnet 5, Sonnet 4.6, Opus 4.8, Haiku 5.5, Haiku 4.5)
- `claude --permission-mode` - Set permission mode
-- `claude --remote` - Enable remote control via WebSocket
+- `claude --remote-control` - Start a session you can also control from claude.ai or the Claude app
---
@@ -897,8 +897,8 @@ Want to add more examples? Follow the structure:
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/workflows#set-a-size-guideline
@@ -912,6 +912,9 @@ Want to add more examples? Follow the structure:
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/workflows#let-claude-decide-with-ultracode
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/chrome
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
**Total Examples**: 100+ files
**Categories**: 10 features
diff --git a/LEARNING-ROADMAP.md b/LEARNING-ROADMAP.md
index f5fe4a0..95a68f9 100644
--- a/LEARNING-ROADMAP.md
+++ b/LEARNING-ROADMAP.md
@@ -104,7 +104,7 @@ graph TD
| **5** | [Skills](03-skills/) | ⭐⭐ Intermediate | 1 hour | Level 2 | Slash Commands | Automatic expertise | Reusable capabilities, consistency |
| **6** | [Hooks](06-hooks/) | ⭐⭐ Intermediate | 1 hour | Level 2 | Tools, Commands | Workflow automation (33 events, 5 types) | Validation, quality gates |
| **7** | [MCP](05-mcp/) | ⭐⭐⭐ Intermediate+ | 1 hour | Level 2 | Configuration | Live data access | Real-time integration, APIs |
-| **8** | [Subagents](04-subagents/) | ⭐⭐⭐ Intermediate+ | 1.5 hours | Level 2 | Memory, Commands | Complex task handling (6 built-in including Bash) | Delegation, specialized expertise |
+| **8** | [Subagents](04-subagents/) | ⭐⭐⭐ Intermediate+ | 1.5 hours | Level 2 | Memory, Commands | Complex task handling (6 built-in, including Explore and Plan) | Delegation, specialized expertise |
| **9** | [Advanced Features](09-advanced-features/) | ⭐⭐⭐⭐⭐ Advanced | 2-3 hours | Level 3 | All previous | Power user tools | Planning, Auto Mode, Channels, Voice Dictation, permissions |
| **10** | [Plugins](07-plugins/) | ⭐⭐⭐⭐ Advanced | 2 hours | Level 3 | All previous | Complete solutions | Team onboarding, distribution |
| **11** | [CLI Mastery](10-cli/) | ⭐⭐⭐ Advanced | 1 hour | Level 3 | Recommended: All | Master command-line usage | Scripting, CI/CD, automation |
@@ -401,7 +401,7 @@ claude --permission-mode auto "implement the feature"
claude --permission-mode auto "implement user settings page"
# Exercise 6: Enable agent teams
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Ask Claude: "Implement feature X using a team approach"
# Exercise 7: Scheduled tasks
@@ -740,8 +740,8 @@ Once you've completed all milestones:
---
-**Last Updated**: September 2, 2026
-**Claude Code Version**: 2.1.257
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/hooks
@@ -749,6 +749,8 @@ Once you've completed all milestones:
- https://github.com/anthropics/claude-code/releases/tag/v2.1.144
- https://github.com/anthropics/claude-code/releases/tag/v2.1.145
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/sub-agents
**Compatible Models**: Claude Fable 5.1, Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
**Maintained by**: Claude How-To Contributors
**License**: Educational purposes, free to use and adapt
diff --git a/QUICK_REFERENCE.md b/QUICK_REFERENCE.md
index 36dcfeb..6a7dbb3 100644
--- a/QUICK_REFERENCE.md
+++ b/QUICK_REFERENCE.md
@@ -92,7 +92,7 @@ chmod +x ~/.claude/hooks/*.sh
/plan Task description
# Permission modes (use --permission-mode flag)
-# manual - Ask for approval on every action (formerly "default"; "default" still accepted as alias)
+# manual - Ask for approval on every action (config value "default"; "manual" is its alias since v2.1.200)
# acceptEdits - Auto-accept file edits, ask for others
# plan - Read-only analysis, no modifications
# auto - Background classifier decides permissions automatically
@@ -102,7 +102,8 @@ chmod +x ~/.claude/hooks/*.sh
# Session management
/resume # Resume a previous conversation (no args = picker of past sessions)
/rename "name" # Name the current session
-/fork <directive> # Spawn a background subagent that inherits the conversation
+/fork [prompt] # Copy the conversation into a new background session; keep working here
+/subtask <task> # Spawn a forked subagent that inherits the conversation and reports back
/branch [name] # Switch into a copy of the conversation, preserving the original
claude -c # Continue most recent conversation
claude -r "session" # Resume session by name/ID
@@ -124,13 +125,13 @@ claude -r "session" # Resume session by name/ID
| **Checkpoints** | Built-in | `Esc+Esc` or `/rewind` |
| **Planning Mode** | Built-in | `/plan <task>` |
| **Permission Modes (6)** | Built-in | `--allowedTools`, `--permission-mode` |
-| **Sessions** | Built-in | `/session <command>` |
+| **Sessions** | Built-in | `/resume`, `/rename`, `/branch`, `/fork` |
| **Background Tasks** | Built-in | Run in background |
-| **Remote Control** | Built-in | WebSocket API |
-| **Web Sessions** | Built-in | `claude web` |
-| **Git Worktrees** | Built-in | `/worktree` |
-| **Auto Memory** | Built-in | Auto-saves to CLAUDE.md |
-| **Task List** | Built-in | `/task list` |
+| **Remote Control** | Built-in | `claude --remote-control` or `/remote-control` |
+| **Web Sessions** | Built-in | `claude --cloud "task"` |
+| **Git Worktrees** | Built-in | `claude -w <name>` |
+| **Auto Memory** | Built-in | Auto-saves to `~/.claude/projects/<project>/memory/` |
+| **Task List** | Built-in | `Ctrl+T` (checklist), `/tasks` (background work) |
| **Bundled Skills (10)** | Built-in | `/batch`, `/claude-api`, `/code-review [low\|medium\|high\|xhigh\|max\|ultra] [--fix] [--comment] [pr#\|branch\|path]` *(explicit invocation only since v2.1.215 — Claude won't trigger this on its own; with no level given it reuses the last one you typed, v2.1.223)*, `/simplify` *(cleanup-only review; distinct from `/code-review` again since v2.1.154)*, `/debug`, `/fewer-permission-prompts`, `/loop`, `/run` *(v2.1.145+)*, `/run-skill-generator` *(v2.1.145+)*, `/verify` *(v2.1.145+; explicit invocation only since v2.1.215 — Claude won't trigger this on its own)* |
---
@@ -250,10 +251,10 @@ claude --permission-mode plan
### Agent Teams
```bash
# Enable agent teams
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Or in settings.json
-{ "agentTeams": { "enabled": true } }
+{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }
# Start with: "Implement feature X using a team approach"
```
@@ -395,15 +396,15 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **Hooks (33 events)** | Expanded hook system with 5 types | command, http, mcp_tool, prompt, agent hook types |
| **MCP Elicitation** | MCP servers can request user input at runtime | Auto-prompted when server needs clarification |
| **Plugin LSP** | Language Server Protocol support for plugins | `userConfig`, `${CLAUDE_PLUGIN_DATA}` variable |
-| **Remote Control** | Control Claude Code via WebSocket API | `claude --remote` for external integrations |
-| **Web Sessions** | Browser-based Claude Code interface | `claude web` to launch |
+| **Remote Control** | Drive a local session from claude.ai or the Claude app | `claude --remote-control` (or `/remote-control` in a session) |
+| **Web Sessions** | Cloud sessions at claude.ai/code | `claude --cloud "task"` to start one from the terminal |
| **Desktop App** | Native desktop application | Download from claude.ai/download |
-| **Task List** | Manage background tasks | `/task list`, `/task status <id>` |
-| **Auto Memory** | Automatic memory saving from conversations | Claude auto-saves key context to CLAUDE.md |
+| **Task List** | Manage background tasks | `/tasks` (alias `/bashes`) |
+| **Auto Memory** | Automatic memory saving from conversations | Claude saves notes to `~/.claude/projects/<project>/memory/MEMORY.md`; manage with `/memory` |
| **AGENTS.md** *(v2.1.277)* | Cross-tool project-context file, read as project instructions when no `CLAUDE.md` exists at or above the working directory | Switch modes with **Project instructions** in `/config`. See [AGENTS.md](02-memory/README.md#agentsmd) |
-| **Git Worktrees** | Isolated workspaces for parallel development | `/worktree` to create isolated workspace |
+| **Git Worktrees** | Isolated workspaces for parallel development | `claude --worktree <name>` (or `-w`) |
| **Model Selection** | Switch between Fable 5.1, Fable 5, Opus 5.5, Opus 5, Sonnet 5, Sonnet 4.6, Opus 4.8, Haiku 5.5, and Haiku 4.5 | `/model` — since v2.1.153 the choice is saved as the default for new sessions; press `s` for session-only |
-| **Agent Teams** | Coordinate multiple agents on tasks | Enable with `CLAUDE_AGENT_TEAMS=1` env var |
+| **Agent Teams** | Coordinate multiple agents on tasks | Enable with `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` env var (experimental) |
| **Dynamic Workflows** *(v2.1.154)* | Deterministic multi-agent orchestration; since v2.1.219 the default size guideline is medium (aim for fewer than 10 agents) | `/workflows` to view runs; ask Claude to create one; change the size via **Dynamic workflow size** in `/config` |
| **Scheduled Tasks** | Recurring tasks with `/loop` | `/loop 5m /command` or CronCreate tool |
| **Chrome Integration** | Browser automation | `--chrome` flag or `/chrome` command |
@@ -415,7 +416,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **Subagent Output Scanning** *(v2.1.210+)* | Scans subagent reports for prompt-injection patterns and neutralizes them | On by default, no opt-out |
| **WebSearch Cap and Subagent Fan-Out Limits** *(v2.1.212, extended v2.1.219)* | 200 WebSearch calls per session, refilling at 100 calls/hour in interactive sessions since v2.1.290; concurrent-subagent cap (default 20) added in v2.1.217; since v2.1.219 subagents can spawn nested subagents up to **depth 3 by default** (v2.1.217 had disabled nesting). The 200-subagent-per-session spawn cap was **removed in v2.1.224** — there is no longer any limit on total subagents per session | `CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION` (default 200; `/clear` resets), `CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR` (default 100 interactive, 0 with `-p`), `CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` (default 20), `CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH` (default 3; set 1 to disable) |
| **Screen Reader Mode** *(v2.1.208)* | Plain-text rendering mode for screen readers | `--ax-screen-reader` flag, `CLAUDE_AX_SCREEN_READER=1`, or `"axScreenReader": true` in settings |
-| **Restricted Mode** *(v2.1.248+)* | Drops the built-in tools that run commands or code (Bash, PowerShell, REPL) and WebFetch unless `--tools` names them; ignores user, project, and local settings (managed settings and `--settings` still apply); confines file tools to the working directories; refuses `bypassPermissions` and cloud sessions | `claude --restricted`, or `CLAUDE_CODE_RESTRICTED=1` |
+| **Restricted Mode** *(v2.1.248+)* | Drops the built-in tools that run commands or code (such as Bash and PowerShell) and WebFetch unless `--tools` names them individually (not via the `default` preset); ignores user, project, and local settings (managed settings and `--settings` still apply); confines file tools to the working directories; refuses `bypassPermissions` and cloud sessions | `claude --restricted`, or `CLAUDE_CODE_RESTRICTED=1` |
| **Subagent Cache TTL** *(v2.1.248+)* | `experimental.cacheTtl` agent-frontmatter field sets how long the subagent's prompt cache lives | Add `experimental:` with `cacheTtl: "5m"` (or `"1h"`) to the agent's frontmatter. See [Subagents](04-subagents/README.md) |
| **Forced Subagent Model** *(v2.1.257+)* | `CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1` makes `CLAUDE_CODE_SUBAGENT_MODEL` override agent frontmatter. Since v2.1.251 the env var no longer wins by default — frontmatter (including `model: inherit`) takes precedence unless this is set | `CLAUDE_CODE_SUBAGENT_MODEL=sonnet CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1 claude` |
@@ -520,8 +521,8 @@ Getting started checklist:
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/workflows#set-a-size-guideline
- https://code.claude.com/docs/en/memory#agents-md
@@ -533,4 +534,9 @@ Getting started checklist:
- https://code.claude.com/docs/en/settings
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/env-vars
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/memory#storage-location
+- https://code.claude.com/docs/en/permission-modes
**Compatible Models**: Claude Fable 5.1, Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/README.md b/README.md
index bb281c6..f561804 100644
--- a/README.md
+++ b/README.md
@@ -140,7 +140,7 @@ Take the self-assessment or pick your level:
## Get Started in 15 Minutes
-> **Installation note**: Starting in v2.1.113, Claude Code ships as a native per-platform binary (macOS/Linux/Windows). `npm install -g @anthropic-ai/claude-code` still works — the native binary is downloaded as an optional dep on first use. As of v2.1.116, downloads come from `https://downloads.claude.ai/claude-code-releases` — corporate proxies must allowlist this host.
+> **Installation note**: Starting in v2.1.113, Claude Code ships as a native per-platform binary (macOS/Linux/Windows). The recommended install is the native installer (`curl -fsSL https://claude.ai/install.sh | bash`); `npm install -g @anthropic-ai/claude-code` still works and pulls the same native binary through a per-platform optional dependency at install time. As of v2.1.116, downloads come from `https://downloads.claude.ai/claude-code-releases` — corporate proxies must allowlist this host.
```bash
# 1. Clone the guide
@@ -561,7 +561,7 @@ Configure hooks in `~/.claude/settings.json`:
- **Planning Mode** — Create detailed implementation plans before coding
- **Extended Thinking** — Deep reasoning for complex problems (toggle with `Alt+T` / `Option+T`)
- **Background Tasks** — Run long operations without blocking
-- **Permission Modes** — `manual` (formerly `default`; `default` still accepted), `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions`
+- **Permission Modes** — `manual` (config value `default`), `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions`
- **Headless Mode** — Run Claude Code in CI/CD: `claude -p "Run tests and generate report"`
- **Session Management** — `/resume`, `/rename`, `/fork`, `/branch`, `claude -c`, `claude -r`
- **Configuration** — Customize behavior in `~/.claude/settings.json`
@@ -873,8 +873,8 @@ MIT License - see [LICENSE](LICENSE). Free to use, modify, and distribute. The o
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
@@ -887,4 +887,5 @@ MIT License - see [LICENSE](LICENSE). Free to use, modify, and distribute. The o
- https://code.claude.com/docs/en/model-config
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
- https://github.com/anthropics/claude-code/releases/tag/v2.1.296
+- https://code.claude.com/docs/en/setup
**Compatible Models**: Claude Fable 5.1, Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/claude_concepts_guide.md b/claude_concepts_guide.md
index 0306108..31b26ee 100644
--- a/claude_concepts_guide.md
+++ b/claude_concepts_guide.md
@@ -170,8 +170,8 @@ sequenceDiagram
|---------------|------|---------|---------|
| `name` | String | Agent identifier | `code-reviewer` |
| `description` | String | Purpose & trigger terms | `Comprehensive code quality analysis` |
-| `tools` | List/String | Allowed capabilities | `read, grep, diff, lint_runner` |
-| `system_prompt` | Markdown | Behavioral instructions | Custom guidelines |
+| `tools` | List/String | Allowed tools | `Read, Grep, Glob, Bash` |
+| *(markdown body)* | Markdown | System prompt / behavioral instructions | Custom guidelines |
### Tool Access Hierarchy
@@ -1140,7 +1140,7 @@ Claude Code supports **33 hook events** across five hook types (command, http, m
| **Setup** | Initial environment setup (one-time per session) | Provision tooling, install deps |
| **InstructionsLoaded** | CLAUDE.md or rules file loaded | Validation, transformation, augmentation |
| **UserPromptSubmit** | User submits prompt | Input validation, prompt filtering |
-| **UserPromptExpansion** | User prompt expanded (@-mentions, slash commands resolved) | Transform or inspect expanded prompt |
+| **UserPromptExpansion** | Typed slash command (skill, custom command, MCP prompt) expands into a prompt; can block it | Block or log direct `/command` use, add per-skill context |
| **PreToolUse** | Before any tool runs | Validation, approval gates, logging |
| **PermissionRequest** | Permission dialog shown | Auto-approve/deny flows |
| **PermissionDenied** | User denies a permission prompt | Logging, analytics, policy enforcement |
@@ -1183,7 +1183,7 @@ Hooks are configured in `~/.claude/settings.json` (user-level) or `.claude/setti
"hooks": [
{
"type": "command",
- "command": "prettier --write $CLAUDE_FILE_PATH"
+ "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write"
}
]
}
@@ -1194,7 +1194,7 @@ Hooks are configured in `~/.claude/settings.json` (user-level) or `.claude/setti
"hooks": [
{
"type": "command",
- "command": "eslint $CLAUDE_FILE_PATH"
+ "command": "jq -r '.tool_input.file_path' | xargs npx eslint"
}
]
}
@@ -1205,9 +1205,8 @@ Hooks are configured in `~/.claude/settings.json` (user-level) or `.claude/setti
### Hook Environment Variables
-- `$CLAUDE_FILE_PATH` - Path to file being edited/written
-- `$CLAUDE_TOOL_NAME` - Name of tool being used
-- `$CLAUDE_SESSION_ID` - Current session identifier
+- Hook input arrives as JSON on stdin (`session_id`, `tool_name`, `tool_input.file_path`, …) — read it with `jq`
+- `$CLAUDE_CODE_SESSION_ID` - Current session identifier
- `$CLAUDE_PROJECT_DIR` - Project directory path
### Best Practices
@@ -1328,10 +1327,7 @@ User: Run tests in background
Claude: Started task bg-1234
-/task list # Show all tasks
-/task status bg-1234 # Check progress
-/task show bg-1234 # View output
-/task cancel bg-1234 # Cancel task
+/tasks # View and manage background work (alias: /bashes)
```
### Permission Modes
@@ -1340,11 +1336,11 @@ Control what Claude can do.
| Mode | Description | Use Case |
|------|-------------|----------|
-| **manual** | Standard permissions with prompts for sensitive actions (renamed from `default` in v2.1.200; `default` still works as an alias) | General development |
+| **manual** | Standard permissions with prompts for sensitive actions (shown as Manual since v2.1.200; config value is still `default`, which hooks and the SDK report) | General development |
| **acceptEdits** | Automatically accept file edits without confirmation | Trusted editing workflows |
| **plan** | Analysis and planning only, no file modifications | Code review, architecture planning |
| **auto** | Automatically approve safe actions, prompt only for risky ones | Balanced autonomy with safety |
-| **dontAsk** | Execute all actions without confirmation prompts | Experienced users, automation |
+| **dontAsk** | Auto-deny anything that would prompt; only pre-approved tools and reads run | Locked-down CI and scripts |
| **bypassPermissions** | Full unrestricted access, no safety checks | CI/CD pipelines, trusted scripts |
**Usage:**
@@ -1352,7 +1348,7 @@ Control what Claude can do.
claude --permission-mode plan # Read-only analysis
claude --permission-mode acceptEdits # Auto-accept edits
claude --permission-mode auto # Auto-approve safe actions
-claude --permission-mode dontAsk # No confirmation prompts
+claude --permission-mode dontAsk # Pre-approved tools only; deny the rest
```
### Headless Mode (Print Mode)
@@ -1477,8 +1473,8 @@ Claude Code supports the following models with adaptive reasoning effort:
- [Anthropic Cookbook](https://github.com/anthropics/anthropic-cookbook)
---
-**Last Updated**: October 10, 2026
-**Claude Code Version**: 2.1.296
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://www.anthropic.com/news/claude-sonnet-5
@@ -1488,4 +1484,7 @@ Claude Code supports the following models with adaptive reasoning effort:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/permission-modes
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/hooks#userpromptexpansion
**Compatible Models**: Claude Fable 5.1, Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/ja/01-slash-commands/README.md b/ja/01-slash-commands/README.md
index 7f2fc96..e5dcb52 100644
--- a/ja/01-slash-commands/README.md
+++ b/ja/01-slash-commands/README.md
@@ -22,7 +22,7 @@
## 組み込みコマンドリファレンス
-組み込みコマンドはよく使うアクションのショートカットである。**60 種類以上の組み込みコマンド**と **5 つの同梱スキル**が利用できる。Claude Code 上で `/` をタイプすると一覧が出る。`/` の後に文字を続けるとフィルタできる。
+組み込みコマンドはよく使うアクションのショートカットである。**60 種類以上の組み込みコマンド**と **約 20 の同梱スキル**が利用できる。Claude Code 上で `/` をタイプすると一覧が出る。`/` の後に文字を続けるとフィルタできる。
| コマンド | 用途 |
|---------|------|
@@ -79,7 +79,7 @@
| `/rename [name]` | セッションをリネーム |
| `/resume [session]` | 会話を再開(エイリアス: `/continue`) |
| `/review [low\|medium\|high\|xhigh\|max\|ultra] [--fix] [--comment] [pr#\|branch\|path]` | `/code-review` のエイリアス(v2.1.223)。現在の diff、または渡した PR 番号・ブランチ・パスをレビューする(例: `/review 1234`)。同じ effort レベルとフラグを受け付ける。レベルを省略すると、直前に入力した `low`〜`max` のレベルを再利用する |
-| `/rewind` | 会話やコードを巻き戻す(エイリアス: `/checkpoint`) |
+| `/rewind` | 会話やコードを巻き戻す(エイリアス: `/checkpoint`、`/undo`) |
| `/sandbox` | サンドボックスモードを切り替え |
| `/schedule [description]` | クラウドのスケジュールタスクを作成/管理 |
| `/security-review` | ブランチをセキュリティ脆弱性の観点で分析 |
@@ -117,7 +117,6 @@
| `/fork` | `/branch` に改名(エイリアスは引き続き有効、v2.1.77) |
| `/pr-comments` | v2.1.91 で削除 — Claude に直接 PR コメントを見るよう依頼する |
| `/vim` | v2.1.92 で削除 — /config → エディタモードを使う |
-| `/undo` | v2.1.245 時点で公式コマンドリファレンスに掲載されていない(v2.1.108 で `/rewind` のエイリアスとして追加された) — `/rewind` または `Esc` 二度押しを使う |
### 直近の変更点
@@ -140,7 +139,7 @@
- ちらつきのないフルスクリーン TUI 描画用に `/tui` コマンドを追加(v2.1.110)
- フォーカスビュー切替用に `/focus` コマンドを追加。`Ctrl+O` は詳細トランスクリプトの切替のみに(v2.1.110)
- セッションコンテキストのおさらいを手動で発火する `/recap` コマンドを追加(v2.1.108)
-- `/undo` を `/rewind` のエイリアスとして追加(v2.1.108)。v2.1.245 時点で公式コマンドリファレンスには掲載されていない — `/rewind` または `Esc` 二度押しを使う
+- `/undo` を `/rewind` のエイリアスとして追加(v2.1.108)。現在も `/checkpoint` と並ぶ `/rewind` のエイリアスである
- `/proactive` を `/loop` のエイリアスとして追加(v2.1.105)
- `/effort` がインタラクティブな矢印キースライダーを獲得し、`high` と `max` の間に新しい `xhigh` レベルを追加。Opus 4.7 プランではデフォルト思考量が `xhigh` に引き上げられた(v2.1.111)
- 包括的なクラウドベースのマルチエージェントコードレビュー用に `/ultrareview` を追加(v2.1.111)。v2.1.223 で `/code-review ultra` が推奨の呼び出しとなり、`/ultrareview` はエイリアスとして残った
@@ -244,7 +243,7 @@ Instructions for Claude to follow when this command is invoked.
| `user-invocable` | `false` なら `/` メニューから隠す | `true` |
| `context` | `fork` に設定すると隔離サブエージェントで実行 | なし |
| `agent` | `context: fork` 利用時のエージェント種別 | `general-purpose` |
-| `hooks` | スキルスコープのフック(PreToolUse、PostToolUse、Stop) | なし |
+| `hooks` | スキル実行時に登録されるフック(任意のフックイベント。登録後はセッションの残りの間ずっと有効) | なし |
### 引数
@@ -280,6 +279,8 @@ Review PR #$0 with priority $1
プロンプトの前に `` !`command` `` で bash コマンドを実行する:
+> **注記(v2.1.299)**: `UserPromptSubmit` フックはコマンドが展開される前に実行されるため、プロンプトをブロックするフックはこれらの `!` コマンドの実行も止める。
+
```yaml
---
name: commit
@@ -347,6 +348,8 @@ MCP サーバーはプロンプトをスラッシュコマンドとして公開
- `mcp__github__*` — すべてのツールにワイルドカードアクセス
- `mcp__github__get_issue` — 特定のツールにアクセス
+> **v2.1.299+:** ルールは名前を指定したサーバーにのみ適用される — `mcp__github` は `github__x` や `github_` という名前のサーバーにはもう一致しない。正規化後の名前に `__` を含むサーバーには `mcp__<正規化後の名前全体>__*` と書く(サブエージェントの `tools:` リストも同様)。
+
## コマンドアーキテクチャ
```mermaid
@@ -603,8 +606,8 @@ Deploy the application to production:
---
-**最終更新**: 2026 年 9 月 26 日
-**Claude Code バージョン**: 2.1.283
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/output-styles
@@ -613,6 +616,10 @@ Deploy the application to production:
- https://github.com/anthropics/claude-code/releases/tag/v2.1.118
- https://github.com/anthropics/claude-code/releases/tag/v2.1.116
- https://github.com/anthropics/claude-code/releases/tag/v2.1.281
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/permissions#mcp
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.7, Claude Haiku 4.5
*[Claude How To](../) ガイドシリーズの一部*
diff --git a/ja/02-memory/README.md b/ja/02-memory/README.md
index 8780794..5dfa661 100644
--- a/ja/02-memory/README.md
+++ b/ja/02-memory/README.md
@@ -534,15 +534,15 @@ npm install -g @anthropic-ai/claude-code@latest
### サブエージェントのメモリ
-サブエージェント(Task のようなツールや並列実行で起動されるもの)は、独自のメモリコンテキストを持てる。サブエージェント定義の `memory` フロントマターフィールドで、ロードするメモリスコープを指定する:
+サブエージェント(Agent ツールで起動されるもの)は、独自の永続メモリを保持できる。サブエージェント定義の `memory` フロントマターフィールドで、そのメモリディレクトリの置き場所を指定する:
```yaml
-memory: user # Load user-level memory only
-memory: project # Load project-level memory only
-memory: local # Load local memory only
+memory: user # ~/.claude/agent-memory/<agent-name>/
+memory: project # .claude/agent-memory/<agent-name>/ (git で共有可能)
+memory: local # .claude/agent-memory-local/<agent-name>/ (チェックインしない)
```
-これにより、サブエージェントはメモリ階層全体を継承するのではなく、絞られたコンテキストで動作できる。
+サブエージェントは起動時にそのディレクトリの `MEMORY.md` の先頭 200 行 / 25KB を読み込み、それを維持するための Read/Write/Edit を与えられる。自動メモリが無効な場合は効果がない。
> **注意**: サブエージェントは独自の自動メモリも保持できる。詳細は [公式サブエージェントメモリドキュメント](https://code.claude.com/docs/en/sub-agents#enable-persistent-memory) を参照。
@@ -1207,8 +1207,8 @@ Claude はどのメモリファイルを更新するかを尋ねる。
- [公式メモリドキュメント](https://code.claude.com/docs/en/memory) — Anthropic ドキュメント
---
-**最終更新**: 2026 年 10 月 10 日
-**Claude Code バージョン**: 2.1.296
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/memory#agents-md
@@ -1217,4 +1217,5 @@ Claude はどのメモリファイルを更新するかを尋ねる。
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
- https://github.com/anthropics/claude-code/releases/tag/v2.1.288
- https://github.com/anthropics/claude-code/releases/tag/v2.1.293
+- https://code.claude.com/docs/en/sub-agents#enable-persistent-memory
**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.7, Claude Haiku 4.5
diff --git a/ja/03-skills/README.md b/ja/03-skills/README.md
index 283ac1e..54d82ec 100644
--- a/ja/03-skills/README.md
+++ b/ja/03-skills/README.md
@@ -140,7 +140,7 @@ Show concrete examples of using this Skill.
### 推奨フィールド
- **description**(推奨): スキルが何をするかと、いつ使うか。省略した場合、Claude Code は markdown 本文の最初の段落を使用する。`description` と `when_to_use` を合わせたテキストはスキル一覧で **1,536 文字**で切り詰められる(`skillListingMaxDescChars` で変更可能)。Claude がスキルを発火させるべきタイミングを判断する際に照合するのはこのテキストである。
-- **name**(任意): 既定ではスキルの**ディレクトリ名**が使われる。指定した場合は表示名となり、小文字・数字・ハイフンのみ(最大 64 文字)。Claude Code では `anthropic-skills` と `synced` が予約されており、プラグイン外では読み込まれない。"anthropic" や "claude" を含められないというより厳しい制限は、claude.ai や Skills API にアップロードするスキルに適用される。プラグインのスキルでは、`name` はコマンドの最後のセグメントも決定する。
+- **name**(任意): 既定ではスキルの**ディレクトリ名**が使われる。指定した場合は表示名となり、小文字・数字・ハイフンのみ(最大 64 文字)が推奨される移植性のある形式である(claude.ai と Skills API では必須)。Claude Code 自体(v2.1.299+)は、名前に不可視文字・文字方向を変える文字・空白に見える文字、`<` や `>` を含むか、256 文字を超えるスキルやコマンドを、名前を変更するまでスキップする。Claude Code では `anthropic-skills` と `synced` が予約されており、プラグイン外では読み込まれない。"anthropic" や "claude" を含められないというより厳しい制限は、claude.ai や Skills API にアップロードするスキルに適用される。プラグインのスキルでは、`name` はコマンドの最後のセグメントも決定する。
SKILL.md のフロントマターのフィールドはすべて任意であり、推奨されるのは `description` だけである。
@@ -153,13 +153,13 @@ description: What this skill does and when to use it
argument-hint: "[filename] [format]" # 自動補完用ヒント
disable-model-invocation: true # ユーザーのみ呼び出し可
user-invocable: false # スラッシュメニューから非表示
-allowed-tools: Read, Grep, Glob # ツールアクセスの制限
+allowed-tools: Read, Grep, Glob # スキル実行中はこれらのツールを事前承認(許可プロンプトなし)
model: opus # 使用するモデルの指定
effort: high # 努力レベルの上書き(low, medium, high, max)
context: fork # 隔離されたサブエージェントで実行
agent: Explore # エージェントタイプ(context: fork と併用)
shell: bash # コマンドのシェル: bash(既定)または powershell
-hooks: # スキルスコープのフック
+hooks: # スキル呼び出し時に登録されるフック
PreToolUse:
- matcher: "Bash"
hooks:
@@ -171,7 +171,7 @@ paths: "src/api/**/*.ts" # スキルの発火を制限する glob
| フィールド | 説明 |
|-------|-------------|
-| `name` | 小文字、数字、ハイフンのみ(最大 64 文字)。Claude Code では `anthropic-skills` と `synced` が予約されている。 |
+| `name` | 推奨(移植性あり): 小文字、数字、ハイフンのみ(最大 64 文字)。Claude Code では `anthropic-skills` と `synced` が予約されている。 |
| `description` | スキルが何をするかと、いつ使うか。`description` と `when_to_use` を合わせたテキストはスキル一覧で 1,536 文字で切り詰められる(`skillListingMaxDescChars` で変更可能)。自動呼び出しのマッチングに重要。 |
| `when_to_use` | Claude がスキルを呼び出すべきタイミングに関する補足情報。スキル一覧では `description` の後ろに連結され、1,536 文字の上限に算入される。 |
| `argument-hint` | `/` の自動補完メニューに表示されるヒント(例: `"[filename] [format]"`)。 |
@@ -183,7 +183,7 @@ paths: "src/api/**/*.ts" # スキルの発火を制限する glob
| `context` | `fork` を指定するとスキルを独自のコンテキストウィンドウを持つフォーク済みサブエージェントコンテキストで実行する。 |
| `agent` | `context: fork` の際のサブエージェントタイプ(例: `Explore`, `Plan`, `general-purpose`)。 |
| `shell` | `` !`command` `` 置換とスクリプトに使うシェル: `bash`(既定)または `powershell`。 |
-| `hooks` | このスキルのライフサイクルにスコープされたフック(グローバルフックと同じ形式)。 |
+| `hooks` | スキル呼び出し時に登録されるフック(settings のフックと同じ形式。任意のイベント)。登録後はセッションの残りの間ずっと有効。 |
| `paths` | スキルが自動発火する条件を制限する glob パターン。カンマ区切り文字列または YAML リスト。パス固有ルールと同じ形式。 |
## スキルのコンテンツの種類
@@ -271,6 +271,8 @@ Fix GitHub issue $ARGUMENTS following our coding standards.
`` !`command` `` 構文は、スキルコンテンツが Claude に送信される前にシェルコマンドを実行する。
+> **注記(v2.1.299)**: `UserPromptSubmit` フックはコマンドが展開される前に実行されるため、プロンプトをブロックするフックはこれらの `!` コマンドの実行も止める。
+
```yaml
---
name: pr-summary
@@ -499,11 +501,11 @@ description: Create or update CLAUDE.md files following best practices for optim
## Core Principles
-**LLMs are stateless**: CLAUDE.md is the only file automatically included in every conversation.
+**LLMs are stateless**: CLAUDE.md is the main project file loaded into every conversation (alongside auto memory and unscoped rules).
### The Golden Rules
-1. **Less is More**: Keep under 300 lines (ideally under 100)
+1. **Less is More**: Keep each CLAUDE.md under 200 lines
2. **Universal Applicability**: Only include information relevant to EVERY session
3. **Don't Use Claude as a Linter**: Use deterministic tools instead
4. **Never Auto-Generate**: Craft it manually with careful consideration
@@ -826,11 +828,18 @@ chmod +x ~/.claude/skills/my-skill/scripts/*.py
- [フックガイド](../06-hooks/) - イベント駆動の自動化
---
-**最終更新**: 2026 年 10 月 10 日
-**Claude Code バージョン**: 2.1.296
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
**情報源**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/settings
- https://code.claude.com/docs/en/changelog
- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/skills#characters-a-skill-name-cant-hold
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/skills#pre-approve-tools-for-a-skill
+- https://code.claude.com/docs/en/memory#write-effective-instructions
+- https://code.claude.com/docs/en/memory
**対応モデル**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/ja/03-skills/claude-md/SKILL.md b/ja/03-skills/claude-md/SKILL.md
index 9e733ab..0b2c205 100644
--- a/ja/03-skills/claude-md/SKILL.md
+++ b/ja/03-skills/claude-md/SKILL.md
@@ -20,7 +20,7 @@ $ARGUMENTS
## 基本原則
-**LLM はステートレス**: CLAUDE.md は、すべての会話に自動的に含まれる唯一のファイルである。コードベースに対する AI エージェントの主要なオンボーディングドキュメントとして機能する。
+**LLM はステートレス**: CLAUDE.md は、すべての会話に読み込まれる主要なプロジェクトファイルである(自動メモリやスコープなしのルールと並んで読み込まれる)。コードベースに対する AI エージェントの主要なオンボーディングドキュメントとして機能する。
### ゴールデンルール
@@ -217,3 +217,10 @@ AGENTS.md はツール横断のプロジェクトコンテキストファイル
- システムリマインダーは Claude に対して CLAUDE.md は「関係があるかどうかわからない」と告げている。ノイズが多いほど無視されやすい
- モノレポは明確な WHAT/WHY/HOW 構造の恩恵が最も大きい
- ディレクトリ固有の CLAUDE.md ファイルはさらに焦点を絞るべきである
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**Sources**:
+- https://code.claude.com/docs/en/memory
diff --git a/ja/04-subagents/README.md b/ja/04-subagents/README.md
index 35e0245..a987e19 100644
--- a/ja/04-subagents/README.md
+++ b/ja/04-subagents/README.md
@@ -122,14 +122,14 @@ hooks: # オプション — コンポーネントスコープのフック
|-----------|-----|------|
| `name` | はい | 一意な識別子(小文字とハイフン) |
| `description` | はい | 用途の自然言語による説明。"use PROACTIVELY" を含めると自動呼び出しが促進される |
-| `tools` | いいえ | 特定ツールのカンマ区切りリスト。省略するとすべてのツールを継承。`Agent(agent_name)` 構文で生成可能なサブエージェントを制限できる |
+| `tools` | いいえ | 特定ツールのカンマ区切りリスト。省略するとすべてのツールを継承。`Agent(agent_name)` 構文で生成可能なサブエージェントを制限できる。MCP:`mcp__<server>__*` でサーバー全体を許可(v2.1.299+:その正確なサーバー名のみに一致) |
| `disallowedTools` | いいえ | サブエージェントが使用してはならないツールのカンマ区切りリスト |
| `model` | いいえ | 使用モデル:`sonnet`、`opus`、`haiku`、フルモデル ID、または `inherit`。デフォルトは設定済みのサブエージェントモデル |
-| `permissionMode` | いいえ | `manual`(v2.1.200 で `default` から改名 — 旧名の `default` も引き続き有効)、`acceptEdits`、`dontAsk`、`bypassPermissions`、`plan`、`auto` |
+| `permissionMode` | いいえ | `default`(Manual モード。v2.1.200 以降 `manual` もエイリアスとして有効)、`acceptEdits`、`dontAsk`、`bypassPermissions`、`plan`、`auto`。親が `bypassPermissions`、`acceptEdits`、`auto` で動作している場合、サブエージェントの `permissionMode` は無視される |
| `maxTurns` | いいえ | サブエージェントが取れるエージェント的ターンの最大数 |
| `skills` | いいえ | プリロードするスキルのカンマ区切りリスト。起動時にスキルの全内容をサブエージェントのコンテキストに注入する |
| `mcpServers` | いいえ | サブエージェントから利用可能にする MCP サーバー |
-| `hooks` | いいえ | コンポーネントスコープのフック(PreToolUse、PostToolUse、Stop) |
+| `hooks` | いいえ | このサブエージェントがアクティブな間だけ実行されるフック。すべてのフックイベントに対応。よく使うのは `PreToolUse`、`PostToolUse`、`Stop`(`SubagentStop` として実行) |
| `memory` | いいえ | 永続メモリディレクトリのスコープ:`user`、`project`、`local` |
| `background` | いいえ | `true` にすると常にこのサブエージェントをバックグラウンドタスクとして実行 |
| `effort` | いいえ | 推論努力レベル:`low`、`medium`、`high`、`max` |
@@ -417,11 +417,7 @@ claude --agent code-reviewer
### 利用可能なエージェントの一覧表示
-`claude agents` コマンドを使って、すべてのソースから設定済みエージェントを一覧表示する:
-
-```bash
-claude agents
-```
+設定済みのサブエージェントを確認するには、Claude に尋ねるか、`.claude/agents/` と `~/.claude/agents/` を参照する。(`claude agents` は別物で、バックグラウンドセッション用の agent view を開く。)
---
@@ -640,17 +636,14 @@ You are a coordinator agent. You can delegate work to the "worker" and
## `claude agents` CLI コマンド
-`claude agents` コマンドは、設定済みのすべてのエージェントをソース別(組み込み、ユーザーレベル、プロジェクトレベル)にグループ化して一覧表示する:
+`claude agents` は **agent view**(v2.1.139+)を開く。バックグラウンドセッションを状態別にまとめた全画面リストである。設定済みのサブエージェント定義は一覧表示しない。セッション状態をスクリプトで扱うには `claude agents --json` を使う。
```bash
claude agents
+claude agents --json
```
-このコマンドは:
-
-- すべてのソースから利用可能なエージェントを表示する
-- ソースの場所別にエージェントをグループ化する
-- 高い優先度レベルのエージェントが低い優先度のエージェントを覆い隠す場合(例:ユーザーレベルと同名のプロジェクトレベルエージェント)、**override** を表示する
+設定済みのサブエージェントは `.claude/agents/`(プロジェクト)と `~/.claude/agents/`(ユーザー)に置かれる。
---
@@ -1268,8 +1261,8 @@ graph TD
---
-**最終更新**:2026 年 9 月 26 日
-**Claude Code バージョン**:2.1.283
+**最終更新**:2026 年 10 月 15 日
+**Claude Code バージョン**:2.1.300
**ソース**:
- https://code.claude.com/docs/en/sub-agents
@@ -1278,5 +1271,10 @@ graph TD
- https://code.claude.com/docs/en/interactive-mode
- https://github.com/anthropics/claude-code/releases/tag/v2.1.117
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/agent-view
+- https://code.claude.com/docs/en/sub-agents#permission-modes
+- https://code.claude.com/docs/en/sub-agents#available-tools
**互換モデル**:Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/05-mcp/README.md b/ja/05-mcp/README.md
index 0974fd4..a6b1c73 100644
--- a/ja/05-mcp/README.md
+++ b/ja/05-mcp/README.md
@@ -248,7 +248,7 @@ MCP サーバーはインタラクティブダイアログを介してユーザ
## ツール説明と指示の上限
-v2.1.84 以降、Claude Code は MCP サーバーごとのツール説明と指示に **2 KB の上限** を強制する。これは個々のサーバーが冗長すぎるツール定義でコンテキストを過剰に消費するのを防ぎ、コンテキストの肥大化を抑え、対話を効率的に保つ。v2.1.296 以降、最初から送信される説明とサーバーの指示のデフォルト上限は **4,096 文字** になり (v2.1.296)、Claude が tool search 経由で読み込む説明は **16,384 文字** で切り詰められる (v2.1.295)。
+Claude Code は、冗長なサーバーがコンテキストを肥大化させないよう、MCP ツールの説明と各サーバーの指示を切り詰める。デフォルトの上限は、サーバーの指示と最初から読み込まれるツールの説明が **4,096 文字**(v2.1.296。それ以前は v2.1.84 から 2,048 文字)、Claude が tool search 経由で読み込む説明が **16,384 文字**(v2.1.295)である。v2.1.280 以降は `CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH` で上書きでき、設定した数値が **両方** の上限を置き換える(`8192` なら短い方の上限は上がり、長い方は下がる)。v2.1.299 以降、`api.anthropic.com` にある Anthropic のファーストパーティ MCP サーバーの説明と指示は切り詰めずに Claude に届く。重要な情報は説明の冒頭近くに置くこと。
## MCP プロンプトをスラッシュコマンドとして利用
@@ -452,7 +452,7 @@ MCP 設定は環境変数の展開とフォールバックデフォルトをサ
```
変数は実行時に展開される。
-- `${VAR}` - 環境変数を使用、未設定ならエラー
+- `${VAR}` - 環境変数を使用。未設定(かつデフォルトなし)の場合もサーバーはリテラルの `${VAR}` のまま読み込まれ、`claude mcp list` と `/mcp` が変数の欠落を警告する
- `${VAR:-default}` - 環境変数を使用、未設定なら default にフォールバック
### 例 2:Database MCP のセットアップ
@@ -1168,8 +1168,8 @@ export GITHUB_TOKEN="your_token"
---
-**最終更新:** 2026 年 10 月 10 日
-**Claude Code バージョン:** 2.1.296
+**最終更新:** 2026 年 10 月 15 日
+**Claude Code バージョン:** 2.1.300
**情報源:**
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/mcp#configure-tool-search
@@ -1178,4 +1178,6 @@ export GITHUB_TOKEN="your_token"
- https://github.com/anthropics/claude-code/releases/tag/v2.1.117
- https://github.com/anthropics/claude-code/releases/tag/v2.1.285
- https://github.com/anthropics/claude-code/releases/tag/v2.1.296
+- https://code.claude.com/docs/en/mcp#tool-search-for-mcp-server-authors
+- https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json
**対応モデル:** Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/06-hooks/README.md b/ja/06-hooks/README.md
index 42e7364..b014804 100644
--- a/ja/06-hooks/README.md
+++ b/ja/06-hooks/README.md
@@ -62,7 +62,7 @@
| `type` | フックタイプ:`"command"`(bash)、`"prompt"`(LLM)、`"http"`(webhook)、`"mcp_tool"`(MCP ツール呼び出し、v2.1.118 以降)、`"agent"`(サブエージェント) | `"command"` |
| `command` | 実行するシェルコマンド | `"$CLAUDE_PROJECT_DIR/.claude/hooks/format.sh"` |
| `timeout` | オプションのタイムアウト(秒)。デフォルトは command/http/mcp_tool が 600、prompt が 30、agent が 60。 | `30` |
-| `once` | `true` の場合、フックはセッションごとに 1 回のみ実行 | `true` |
+| `once` | `true` の場合、最初に成功した実行の後でフックが削除される(失敗・ブロック・タイムアウトした実行では残る)。スキルのフロントマターのみ有効で、settings やエージェントのフロントマターでは無視される | `true` |
| `async` | `true` の場合、ブロックせずにバックグラウンドで実行 | `true` |
| `asyncRewake` | `true` の場合、バックグラウンドで実行し、終了コード 2 で Claude を起こす。`async` を含意する。 | `true` |
| `shell` | `"bash"` または `"powershell"` を受け付ける。デフォルトは `"bash"`、Git Bash が未インストールの Windows では `"powershell"`。 | `"bash"` |
@@ -194,38 +194,38 @@ Claude Code は **33 種類のフックイベント** をサポートする。
| イベント | 発火タイミング | マッチャー入力 | ブロック可否 | 用途例 |
|----------|---------------|---------------|-------------|--------|
| **SessionStart** | セッション開始/再開/clear/compact/fork | startup/resume/clear/compact/fork | 不可 | 環境セットアップ |
-| **Setup** | 初回の環境セットアップ(セッションごとに1回) | (なし) | 不可 | ツールのプロビジョニング、依存関係のインストール |
-| **InstructionsLoaded** | CLAUDE.md やルールファイルが読み込まれた後 | (なし) | 不可 | 指示の修正/フィルタ |
+| **Setup** | `--init-only`、または `-p` と併用した `--init`/`--maintenance`(CI/スクリプト準備) | `init`/`maintenance` | 不可 | ツールのプロビジョニング、依存関係のインストール |
+| **InstructionsLoaded** | CLAUDE.md やルールファイルが読み込まれた後 | 読み込み理由(`session_start`/`nested_traversal`/`path_glob_match`/`include`/`compact`) | 不可 | 監査・可観測性のためのロギング |
| **UserPromptSubmit** | ユーザーがプロンプトを送信 | (なし) | 可 | プロンプト検証 |
-| **UserPromptExpansion** | ユーザープロンプトが展開(`@` メンション、スラッシュコマンド解決など) | (なし) | 可 | 展開後のプロンプトを変換/検査 |
+| **UserPromptExpansion** | ユーザーが入力したスラッシュコマンドまたは MCP プロンプトがプロンプトに展開される | コマンド名 | 可 | 展開後のプロンプトを変換/検査 |
| **MessageDisplay** | アシスタントのメッセージ本文が表示される際 | (なし) | 不可 | 表示テキストの変換・非表示化(v2.1.152) |
| **PreToolUse** | ツール実行前 | ツール名 | 可(allow/deny/ask) | 入力の検証・修正 |
| **PermissionRequest** | 権限ダイアログ表示 | ツール名 | 可 | 自動承認/拒否 |
-| **PermissionDenied** | ユーザーが権限プロンプトを拒否 | ツール名 | 不可 | ロギング、解析、ポリシー強制 |
+| **PermissionDenied** | auto モードがツール呼び出しを拒否 | ツール名 | 不可 | ロギング、解析、ポリシー強制 |
| **PostToolUse** | ツール成功後 | ツール名 | 不可 | コンテキスト追加、フィードバック |
| **PostToolUseFailure** | ツール実行失敗時 | ツール名 | 不可 | エラー処理、ロギング |
-| **PostToolBatch** | ツールバッチ完了後 | (なし) | 不可 | 集約レポート、バッチ検証 |
+| **PostToolBatch** | ツールバッチ完了後 | (なし) | 可 | 集約レポート、バッチ検証 |
| **Notification** | 通知送信時 | 通知タイプ | 不可 | カスタム通知 |
| **SubagentStart** | サブエージェント生成 | エージェントタイプ名 | 不可 | サブエージェントセットアップ |
| **SubagentStop** | サブエージェント完了 | エージェントタイプ名 | 可 | サブエージェント検証 |
| **Stop** | Claude が応答を終えたとき | (なし) | 可 | タスク完了チェック |
-| **StopFailure** | API エラーでターン終了 | (なし) | 不可 | エラー復旧、ロギング |
+| **StopFailure** | API エラーでターン終了 | エラー種別(`rate_limit`、`overloaded`、`server_error` など) | 不可 | エラー復旧、ロギング |
| **TeammateIdle** | エージェントチームのメイトがアイドル | (なし) | 可 | チームメイト連携 |
| **TaskCompleted** | タスク完了マーク | (なし) | 可 | タスク後の処理 |
-| **TaskCreated** | TaskCreate でタスク作成 | (なし) | 不可 | タスク追跡、ロギング |
-| **ConfigChange** | 設定ファイル変更 | (なし) | 可(ポリシーを除く) | 設定更新への反応 |
+| **TaskCreated** | TaskCreate でタスク作成 | (なし) | 可 | タスク追跡、ロギング |
+| **ConfigChange** | 設定ファイル変更 | 設定ソース(`user_settings`/`project_settings`/`local_settings`/`policy_settings`/`skills`) | 可(ポリシーを除く) | 設定更新への反応 |
| **CwdChanged** | 作業ディレクトリ変更 | (なし) | 不可 | ディレクトリ固有のセットアップ |
-| **DirectoryAdded** | `/add-dir` または SDK の `register_repo_root` コントロールリクエストにより、セッション中に新しい作業ディレクトリが登録された時(v2.1.219) | (なし) | 不可 | 追加されたディレクトリ向けのツール設定 |
-| **FileChanged** | 監視ファイル変更 | (なし) | 不可 | ファイル監視、再ビルド |
-| **PreCompact** | コンテキスト圧縮前 | manual/auto | 不可 | 圧縮前の処理 |
+| **DirectoryAdded** | `/add-dir` または SDK の `register_repo_root` コントロールリクエストにより、セッション中に新しい作業ディレクトリが登録された時(v2.1.219) | `slash_command`/`register_repo_root` | 不可 | 追加されたディレクトリ向けのツール設定 |
+| **FileChanged** | 監視ファイル変更 | 監視するファイル名(例:`.envrc\|.env`) | 不可 | ファイル監視、再ビルド |
+| **PreCompact** | コンテキスト圧縮前 | manual/auto | 可 | 圧縮前の処理 |
| **PostCompact** | 圧縮完了後 | (なし) | 不可 | 圧縮後の処理 |
| **PreModelSwitch** | 要求されたモデル切り替えを Claude Code が適用する前 | 切り替え先モデルの正式名(`to_model` から導出) | 可 | モデル変更の制御・拒否 |
| **PostModelSwitch** | セッションのモデルが変更された後(再開時のモデル復元など、Claude Code 自身による変更を含む) | 切り替え先モデルの正式名(`to_model` から導出) | 不可 | モデル変更のロギング・追随処理 |
| **WorktreeCreate** | ワークツリー作成中 | (なし) | 可(パス返却) | ワークツリー初期化 |
-| **WorktreeRemove** | ワークツリー削除中 | (なし) | 不可 | ワークツリークリーンアップ |
-| **Elicitation** | MCP サーバーがユーザー入力を要求 | (なし) | 可 | 入力検証 |
-| **ElicitationResult** | ユーザーが elicitation に応答 | (なし) | 可 | 応答処理 |
-| **SessionEnd** | セッション終了 | (なし) | 不可 | クリーンアップ、最終ロギング |
+| **WorktreeRemove** | ワークツリー削除中 | (なし) | 可(非ゼロ終了で削除が失敗) | ワークツリークリーンアップ |
+| **Elicitation** | MCP サーバーがユーザー入力を要求 | MCP サーバー名 | 可 | 入力検証 |
+| **ElicitationResult** | ユーザーが elicitation に応答 | MCP サーバー名 | 可 | 応答処理 |
+| **SessionEnd** | セッション終了 | 終了理由(`clear`/`resume`/`logout`/`prompt_input_exit`/`other`) | 不可 | クリーンアップ、最終ロギング |
> **`TaskCreated` と `TaskCompleted` は todo ツールが有効なときのみ発火する(v2.1.233)。** これらのイベントは todo/タスク追跡ツール(`TaskCreate`/`Get`/`Update`/`List`、`TodoWrite`)から発火するが、それらは **Claude 3.x モデル、Opus 4〜4.7、Sonnet 4〜4.6、Haiku 4.5 でのみデフォルトで利用できる**。それ以外のモデルではフックの設定自体は有効なまま、単に発火しない — 出力もエラーも出ない。`CLAUDE_CODE_ENABLE_TODO_TOOLS=1` を設定すると復活する。
@@ -254,7 +254,7 @@ Claude がツールパラメータを生成した後、処理開始前に動作
}
```
-**一般的なマッチャー:** `Task`、`Bash`、`Glob`、`Grep`、`Read`、`Edit`、`Write`、`WebFetch`、`WebSearch`
+**一般的なマッチャー:** `Agent`、`Bash`、`Glob`、`Grep`、`Read`、`Edit`、`Write`、`WebFetch`、`WebSearch`
**出力制御:**
- `permissionDecision`: `"allow"`、`"deny"`、`"ask"`、`"defer"`
@@ -264,7 +264,7 @@ Claude がツールパラメータを生成した後、処理開始前に動作
- `"defer"` は正常終了して後でツールを再開できるようにする。この値では `permissionDecisionReason`、`updatedInput`、`additionalContext` はいずれも無視される
- フックが何を返しても deny/ask のルールは引き続き評価される。複数の `PreToolUse` フックの判定が食い違う場合、優先順位は `deny` > `defer` > `ask` > `allow` となる
- `permissionDecisionReason`: 判定の理由。`"allow"` と `"ask"` では(Claude ではなく)ユーザーに表示され、`"deny"` では Claude に表示される。`"defer"` では無視される
-- `updatedInput`: 修正されたツール入力パラメータ
+- `updatedInput`: 置き換え用のツール入力(入力オブジェクト全体を置き換える)。v2.1.300 以降は Claude 自身の入力と同様に検証され、未知のキーは破棄され、ツールが拒否する入力では呼び出しが拒否される。
### PostToolUse
@@ -301,7 +301,7 @@ Claude がツールパラメータを生成した後、処理開始前に動作
### UserPromptSubmit
-ユーザーがプロンプトを送信し、Claude が処理を開始する前に動作する。
+ユーザーがプロンプトを送信し、Claude が処理を開始する前に動作する。v2.1.299 以降はスキルやカスタムコマンドが展開される前に実行されるため、プロンプトをブロックするとそのコマンドの `!` シェル行も止まる。`UserPromptExpansion` はその後に発火する。
**設定:**
```json
@@ -444,11 +444,11 @@ hooks:
hooks:
- type: command
command: "./scripts/check.sh"
- once: true # セッションごとに 1 回のみ実行
+ once: true # スキルのフロントマターのみ:最初の成功実行後に削除
---
```
-**コンポーネントフックでサポートされるイベント:** `PreToolUse`、`PostToolUse`、`Stop`
+**サポートされるイベント:** すべてのフックイベント。サブエージェントのフックはそのサブエージェントがアクティブな間だけ実行される(`Stop` → `SubagentStop`)。スキルのフックはスキル呼び出し時に登録され、セッション終了まで有効のまま残る。
これにより、フックを使用するコンポーネント内に直接定義でき、関連コードを近くにまとめられる。
@@ -745,7 +745,7 @@ BLOCKED_PATTERNS = [
def main():
input_data = json.load(sys.stdin)
- prompt = input_data.get("user_prompt", "") or input_data.get("prompt", "")
+ prompt = input_data.get("prompt", "")
for pattern, message in BLOCKED_PATTERNS:
if re.search(pattern, prompt, re.IGNORECASE):
@@ -806,7 +806,7 @@ import sys
import tempfile
# 設定
-CONTEXT_LIMIT = 128000 # Claude のコンテキストウィンドウ(モデルに合わせて調整)
+CONTEXT_LIMIT = 1000000 # Opus 5、Sonnet 5、Opus 4.8、Sonnet 4.6 は 1M、Haiku 4.5 は 200000(モデルに合わせて調整)
USE_TIKTOKEN = False # tiktoken がインストール済みなら True にして精度向上
@@ -960,7 +960,7 @@ if __name__ == "__main__":
| 文字推定 | 約 80〜90% | なし | 1ms 未満 |
| tiktoken(p50k_base) | 約 90〜95% | `pip install tiktoken` | 10ms 未満 |
-> **注意:** Anthropic は公式のオフライントークナイザをリリースしていない。両方式とも近似である。トランスクリプトはユーザープロンプト、Claude の応答、ツール出力を含むが、システムプロンプトや内部コンテキストは含まれない。
+> **注意:** Anthropic は公式のオフライントークナイザをリリースしていない。両方式とも近似である。トランスクリプトはユーザープロンプト、Claude の応答、ツール出力を含む。v2.1.300 以降は各 API リクエストのシステムプロンプト、ツール、パラメータも記録される。
### 例 7:自動モード権限のシード(一度限りのセットアップスクリプト)
@@ -1384,8 +1384,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**最終更新:** 2026 年 9 月 26 日
-**Claude Code バージョン:** 2.1.283
+**最終更新:** 2026 年 10 月 15 日
+**Claude Code バージョン:** 2.1.300
**情報源:**
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/plugins/manifest-reference#quoting-and-path-separators
@@ -1394,4 +1394,10 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/changelog
- https://github.com/anthropics/claude-code/releases/tag/v2.1.118
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/hooks#pretooluse
+- https://code.claude.com/docs/en/hooks#pretooluse-decision-control
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/hooks#userpromptsubmit-input
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/changelog#2-1-300
**対応モデル:** Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5
diff --git a/ja/06-hooks/notify-team.sh b/ja/06-hooks/notify-team.sh
index d541c53..1a72519 100644
--- a/ja/06-hooks/notify-team.sh
+++ b/ja/06-hooks/notify-team.sh
@@ -1,9 +1,15 @@
#!/bin/bash
# イベント発生時に通知を送信する
-# フック:PostToolUse(matcher: Bash)— bash コマンドの後に実行し、スクリプト側で git push を判別する
+# フック:PostToolUse(matcher: Bash)— すべての Bash 呼び出しの後に実行され、コマンドが git push でなければスクリプトは終了する
# 注:Claude Code にネイティブの PostPush イベントは無い。git push をトリガにするには、
# matcher または本スクリプト内の条件で bash コマンド文字列に "git push" が含まれるかを確認する。
+# フック入力を読み取り、Bash コマンドが git push でなければ終了する
+INPUT=$(cat)
+# コマンド文字列を取り出し(\"msg\" のようなエスケープされた引用符も含む)、その中のどこかにある "git push" をコマンド語として照合する
+COMMAND=$(echo "$INPUT" | sed -nE 's/.*"command"[[:space:]]*:[[:space:]]*"(([^"\\]|\\.)*)".*/\1/p' | head -1)
+printf '%s\n' "$COMMAND" | grep -qE '(^|[^[:alnum:]_-]|\\n)git[[:space:]]+push([^[:alnum:]_-]|$)' || exit 0
+
REPO_NAME=$(basename $(git rev-parse --show-toplevel 2>/dev/null) 2>/dev/null)
COMMIT_MSG=$(git log -1 --pretty=%B 2>/dev/null)
AUTHOR=$(git log -1 --pretty=%an 2>/dev/null)
diff --git a/ja/06-hooks/validate-prompt.sh b/ja/06-hooks/validate-prompt.sh
index cd57f5f..9a9958f 100644
--- a/ja/06-hooks/validate-prompt.sh
+++ b/ja/06-hooks/validate-prompt.sh
@@ -10,11 +10,8 @@
INPUT=$(cat)
# JSON 入力からプロンプト本文を抽出
-# Claude Code は UserPromptSubmit を "user_prompt" で送る(無ければ "prompt" にフォールバック)
-PROMPT=$(echo "$INPUT" | sed -n 's/.*"user_prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
-if [ -z "$PROMPT" ]; then
- PROMPT=$(echo "$INPUT" | sed -n 's/.*"prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
-fi
+# Claude Code は UserPromptSubmit の本文を "prompt" フィールドで送る
+PROMPT=$(echo "$INPUT" | sed -n 's/.*"prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
if [ -z "$PROMPT" ]; then
exit 0
diff --git a/ja/07-plugins/README.md b/ja/07-plugins/README.md
index d1f4e6e..a439a77 100644
--- a/ja/07-plugins/README.md
+++ b/ja/07-plugins/README.md
@@ -247,35 +247,47 @@ my-plugin/
"hooks": {
"PostToolUse": [
{
- "command": "node ${CLAUDE_PLUGIN_DATA}/track-usage.js"
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}\"/scripts/track-usage.js \"${CLAUDE_PLUGIN_DATA}\"/usage.json"
+ }
+ ]
}
]
}
}
```
-このディレクトリはプラグインのインストール時に自動作成される。ここに保存したファイルはプラグインがアンインストールされるまで保持される。
+このディレクトリ(`~/.claude/plugins/data/<id>/`)は最初に参照されたときに作成され、プラグインの更新をまたいで保持される。プラグインがインストールされている最後の場所からアンインストールすると削除される(`--keep-data` を渡した場合を除く)。
### バックグラウンドモニター(v2.1.105)
-プラグインは、セッション開始時やプラグインのスキル呼び出し時に自動起動するバックグラウンドモニターを登録できる。プラグインマニフェストにトップレベルの `monitors` キーを追加する:
+プラグインは、セッション開始時、またはプラグインのいずれかのスキルが初めて実行されたときに起動するバックグラウンドモニターを登録できる。`plugin.json` の `experimental.monitors`(または `monitors/monitors.json`)で宣言する:
```json
{
"name": "my-plugin",
"version": "1.0.0",
- "monitors": [
- {
- "command": "tail -f /var/log/app.log",
- "trigger": "session_start"
- }
- ]
+ "experimental": {
+ "monitors": [
+ {
+ "name": "app-log",
+ "command": "tail -f /var/log/app.log",
+ "description": "Application log errors",
+ "when": "always"
+ }
+ ]
+ }
}
```
-`trigger` フィールドが受け付ける値:
-- `"session_start"` — セッション開始時に自動でモニターを起動
-- `"skill_invoke"` — プラグインのスキルが呼ばれたときにモニターを起動
+`name`・`command`・`description` は必須。`when` が受け付ける値:
+- `"always"`(デフォルト)— セッション開始時とプラグインのリロード時に起動
+- `"on-skill-invoke:<skill>"` — そのスキルが初めて実行されたときに起動
+
+未知のキーはエラーとなり、プラグインは読み込まれない。トップレベルの `monitors` キーも引き続き読み込まれるが、`claude plugin validate` が警告を出す。
モニターは内部的に Monitor ツールを利用しており、stdout の各行を Claude が反応できるイベントとしてストリーミングする。
@@ -406,13 +418,10 @@ devops-automation/
│ ├── incident-commander.md
│ └── alert-analyzer.md
├── mcp/
-│ ├── github-config.json
-│ ├── kubernetes-config.json
-│ └── prometheus-config.json
+│ └── kubernetes-config.json
├── hooks/
│ ├── pre-deploy.js
-│ ├── post-deploy.js
-│ └── on-error.js
+│ └── post-deploy.js
└── scripts/
├── deploy.sh
├── rollback.sh
@@ -435,8 +444,7 @@ documentation/
│ ├── code-commentator.md
│ └── example-generator.md
├── mcp/
-│ ├── github-docs-config.json
-│ └── slack-announce-config.json
+│ └── github-docs-config.json
└── templates/
├── api-endpoint.md
├── function-docs.md
@@ -1062,8 +1070,8 @@ claude plugin update plugin-name
---
-**最終更新**: 2026 年 9 月 30 日
-**Claude Code バージョン**: 2.1.285
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
**出典**:
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/plugins-reference
@@ -1075,4 +1083,5 @@ claude plugin update plugin-name
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
- https://code.claude.com/docs/en/plugins/install
- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins-reference#monitors
**対応モデル**: Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5
diff --git a/ja/07-plugins/devops-automation/commands/deploy.md b/ja/07-plugins/devops-automation/commands/deploy.md
index 4c01cce..d186bc1 100644
--- a/ja/07-plugins/devops-automation/commands/deploy.md
+++ b/ja/07-plugins/devops-automation/commands/deploy.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Deploy
description: アプリケーションを本番環境またはステージング環境へデプロイする
---
@@ -17,3 +16,11 @@ description: アプリケーションを本番環境またはステージング
4. 対象環境へデプロイ
5. ヘルスチェックを実行
6. Slack でチームに通知
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/devops-automation/commands/incident.md b/ja/07-plugins/devops-automation/commands/incident.md
index 7a7a5f2..0b1e8b2 100644
--- a/ja/07-plugins/devops-automation/commands/incident.md
+++ b/ja/07-plugins/devops-automation/commands/incident.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Incident Response
description: 構造化された手順で本番インシデントに対応する
---
@@ -18,3 +17,11 @@ description: 構造化された手順で本番インシデントに対応する
5. 対応活動を統率
6. 解決内容をドキュメント化
7. ポストモーテムを設定
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/devops-automation/commands/rollback.md b/ja/07-plugins/devops-automation/commands/rollback.md
index d4df311..5e334d4 100644
--- a/ja/07-plugins/devops-automation/commands/rollback.md
+++ b/ja/07-plugins/devops-automation/commands/rollback.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Rollback
description: 前回のデプロイへロールバックする
---
@@ -16,3 +15,11 @@ description: 前回のデプロイへロールバックする
3. ロールバック手順を実行
4. ヘルスチェックを実行
5. チームに通知
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/devops-automation/commands/status.md b/ja/07-plugins/devops-automation/commands/status.md
index 4b2cb0c..6648fa4 100644
--- a/ja/07-plugins/devops-automation/commands/status.md
+++ b/ja/07-plugins/devops-automation/commands/status.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: System Status
description: システム全体の健全性とステータスを確認する
---
@@ -17,3 +16,11 @@ description: システム全体の健全性とステータスを確認する
4. エラー率をレビュー
5. リソース使用率を確認
6. 全体の健全性を報告
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/documentation/commands/generate-api-docs.md b/ja/07-plugins/documentation/commands/generate-api-docs.md
index 2ed10af..d80d251 100644
--- a/ja/07-plugins/documentation/commands/generate-api-docs.md
+++ b/ja/07-plugins/documentation/commands/generate-api-docs.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Generate API Documentation
description: ソースコードから包括的な API ドキュメントを生成する
---
@@ -17,3 +16,11 @@ description: ソースコードから包括的な API ドキュメントを生
4. 例つきの Markdown を作成
5. リクエスト / レスポンスのスキーマを含める
6. エラーのドキュメントを追加
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/documentation/commands/generate-readme.md b/ja/07-plugins/documentation/commands/generate-readme.md
index 20b34b3..021b3be 100644
--- a/ja/07-plugins/documentation/commands/generate-readme.md
+++ b/ja/07-plugins/documentation/commands/generate-readme.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Generate README
description: プロジェクト README を作成または更新する
---
@@ -17,3 +16,11 @@ description: プロジェクト README を作成または更新する
4. API ドキュメントへのリンク
5. コントリビューションガイドライン
6. ライセンス情報
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/documentation/commands/sync-docs.md b/ja/07-plugins/documentation/commands/sync-docs.md
index c5c2951..fa2b554 100644
--- a/ja/07-plugins/documentation/commands/sync-docs.md
+++ b/ja/07-plugins/documentation/commands/sync-docs.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Sync Documentation
description: コード変更にドキュメントを同期する
---
@@ -16,3 +15,11 @@ description: コード変更にドキュメントを同期する
3. 影響を受けるドキュメントを更新
4. サンプルが今も動くことを検証
5. バージョン番号を更新
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/documentation/commands/validate-docs.md b/ja/07-plugins/documentation/commands/validate-docs.md
index adbc25a..38fb5ae 100644
--- a/ja/07-plugins/documentation/commands/validate-docs.md
+++ b/ja/07-plugins/documentation/commands/validate-docs.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Validate Documentation
description: ドキュメントの完全性と正確性を検証する
---
@@ -16,3 +15,11 @@ description: ドキュメントの完全性と正確性を検証する
3. 完全性を確認
4. フォーマットをチェック
5. 実際のコードと突き合わせて検証
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/pr-review/commands/check-security.md b/ja/07-plugins/pr-review/commands/check-security.md
index 7411cfb..b86de9e 100644
--- a/ja/07-plugins/pr-review/commands/check-security.md
+++ b/ja/07-plugins/pr-review/commands/check-security.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Security Check
description: セキュリティに特化したコードレビューを実行する
---
@@ -16,3 +15,11 @@ description: セキュリティに特化したコードレビューを実行す
3. インジェクション脆弱性
4. 暗号処理の弱点
5. ログに含まれる機微情報
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/pr-review/commands/check-tests.md b/ja/07-plugins/pr-review/commands/check-tests.md
index 84f6716..c2a8988 100644
--- a/ja/07-plugins/pr-review/commands/check-tests.md
+++ b/ja/07-plugins/pr-review/commands/check-tests.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Test Coverage Check
description: テストカバレッジと品質を検証する
---
@@ -16,3 +15,11 @@ description: テストカバレッジと品質を検証する
3. テスト品質をレビュー
4. 不足しているテストケースを提案
5. エッジケースが網羅されているかを検証
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/07-plugins/pr-review/commands/review-pr.md b/ja/07-plugins/pr-review/commands/review-pr.md
index 967d1a1..9851ad4 100644
--- a/ja/07-plugins/pr-review/commands/review-pr.md
+++ b/ja/07-plugins/pr-review/commands/review-pr.md
@@ -3,7 +3,6 @@
<!-- i18n-date: 2026-04-27 -->
---
-name: Review PR
description: セキュリティチェックとテストチェックを含む包括的な PR レビューを開始する
---
@@ -16,3 +15,11 @@ description: セキュリティチェックとテストチェックを含む包
3. ドキュメント更新
4. コード品質チェック
5. パフォーマンス影響の評価
+
+---
+
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
+**出典**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/ja/08-checkpoints/README.md b/ja/08-checkpoints/README.md
index b53824d..ef0874d 100644
--- a/ja/08-checkpoints/README.md
+++ b/ja/08-checkpoints/README.md
@@ -37,7 +37,7 @@
`Esc` キーを 2 回(`Esc` + `Esc`)押すと、チェックポイントインターフェイスが開き、保存済みチェックポイントを参照できる。
### スラッシュコマンド
-すばやくアクセスしたい場合は `/rewind` コマンド(エイリアス:`/checkpoint`)を使う:
+すばやくアクセスしたい場合は `/rewind` コマンド(エイリアス:`/checkpoint`、`/undo`)を使う:
```bash
# 巻き戻しインターフェイスを開く
@@ -65,7 +65,7 @@
Claude Code は自動でチェックポイントを作成する:
- **ユーザーの入力ごと** - 入力のたびに新しいチェックポイントが生成される
-- **セッション間で保持** - 別セッションを跨いでもチェックポイントは残る
+- **セッション間で保持** - チェックポイントは会話と一緒に保存されるため、セッションを再開した後でも `/rewind` が使える
- **自動クリーンアップ** - 30 日経過したチェックポイントは自動削除される
これにより、数分前から数日前まで、会話のどの時点へも巻き戻せる。
@@ -301,7 +301,7 @@ Claude Code がスナップショットを保持するのは **直近 100 件の
- **`Esc` + `Esc`** - チェックポイントブラウザを開く
- **`/rewind`** - チェックポイントへの別アクセス手段
-- **`/checkpoint`** - `/rewind` のエイリアス
+- **`/checkpoint`**、**`/undo`** - `/rewind` のエイリアス
## いつ巻き戻すかを知る:コンテキスト監視
@@ -336,10 +336,11 @@ Claude Code がスナップショットを保持するのは **直近 100 件の
---
-**最終更新**: 2026 年 8 月 25 日
-**Claude Code バージョン**: 2.1.245
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
**出典**:
- https://code.claude.com/docs/en/checkpointing
- https://code.claude.com/docs/en/settings
- https://github.com/anthropics/claude-code/releases/tag/v2.1.117
+- https://code.claude.com/docs/en/commands
**対応モデル**: Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/09-advanced-features/README.md b/ja/09-advanced-features/README.md
index 06ef439..04ca5c2 100644
--- a/ja/09-advanced-features/README.md
+++ b/ja/09-advanced-features/README.md
@@ -520,10 +520,8 @@ User: Run tests in background
Claude: Started task bg-1234
-/task list # Show all tasks
-/task status bg-1234 # Check progress
-/task show bg-1234 # View output
-/task cancel bg-1234 # Cancel task
+/tasks # View and manage background work (shells and subagents); stop a task from here
+Ctrl+B # Move a running Bash command or agent to the background
```
### バックグラウンドタスクの起動
@@ -545,44 +543,19 @@ Claude: [Works on auth module while tests run in background]
Claude: 📢 Background task bg-1234 completed:
✅ 245 tests passed
❌ 3 tests failed
-View results: /task show bg-1234
+View results: /tasks
```
### バックグラウンドタスクの管理
-**実行中タスクの一覧:**
-```
-User: /task list
-
-Active background tasks:
-1. [bg-1234] Running tests (50% complete, 2min remaining)
-2. [bg-1235] Building Docker image (25% complete, 8min remaining)
-3. [bg-1236] Deploying to staging (90% complete, 30sec remaining)
-```
-
-**タスクの状態確認:**
-```
-User: /task status bg-1234
+`/tasks`(エイリアス `/bashes`)を実行すると、実行中のシェルとサブエージェントを一覧表示し、1 つを開いて出力を確認したり、停止したりできる。`/task` のサブコマンドは存在しない。
-Task bg-1234: Running tests
-Status: In progress
-Progress: 120/245 tests (49%)
-Started: 2025-11-08 10:30:15
-Estimated completion: 2025-11-08 10:34:22
-```
-
-**タスク出力の表示:**
-```
-User: /task show bg-1234
-
-[Shows live output from the test run]
-```
+```text
+User: /tasks
-**タスクのキャンセル:**
-```
-User: /task cancel bg-1234
-
-Cancelled background task bg-1234
+[Opens the background-work view: running shells and subagents,
+ including subagents that have finished. Select one to see its
+ output, or stop it from here.]
```
### 例:並列開発
@@ -1433,8 +1406,8 @@ claude remote-control --name "Auth Refactor"
|------|-------------|
| `--name "title"` | 識別しやすいセッションタイトル |
| `--verbose` | 詳細な接続ログを表示 |
-| `--sandbox` | ファイルシステムとネットワークの隔離を有効化 |
-| `--no-sandbox` | サンドボックスを無効化(デフォルト) |
+
+> **注意(v2.1.300):** `claude remote-control` は `--sandbox` と `--no-sandbox` を受け付けなくなった(もともと効果はなく、どちらかを渡すとエラーで終了する)。Remote Control セッションをサンドボックス化するには、設定ファイルで `sandbox.enabled` を設定する。
### セッションへの接続
@@ -1461,9 +1434,9 @@ claude remote-control --name "Auth Refactor"
### 制限
-- Claude Code インスタンスごとにリモートセッションは 1 つ
+- 対話型 Claude Code プロセスごとにリモートセッションは 1 つ — サーバーモード(`claude remote-control`)は複数を同時に扱える(`--capacity`、デフォルト 32)
- ホストマシンのターミナルを開いたままにする必要がある
-- ネットワーク到達不能時は約 10 分でセッションがタイムアウト
+- ネットワーク到達不能時、サーバーモードは約 10 分で終了する。対話型セッションは再試行を続け、ネットワーク復旧時に再接続する
### ユースケース
@@ -1704,17 +1677,20 @@ claude -w
### サンドボックスの有効化
-**スラッシュコマンド:**
-```
+**スラッシュコマンド**(このプロジェクトの `.claude/settings.local.json` に選択を保存)**:**
+```text
/sandbox
```
-**CLI フラグ:**
+**設定ファイル**(全プロジェクト)**:** `~/.claude/settings.json` に `"sandbox": { "enabled": true }` を設定する。
+
+**セッション単位**(設定ファイルに書き込まない)**:**
```bash
-claude --sandbox # Enable sandboxing
-claude --no-sandbox # Disable sandboxing
+claude --settings '{"sandbox": {"enabled": true}}'
```
+> `claude --sandbox` / `--no-sandbox` フラグは存在しない。v2.1.300 以降、これらを `claude remote-control` に渡すとエラーで終了する。
+
### 設定項目
| 設定 | 説明 |
@@ -1930,7 +1906,7 @@ export MAX_MCP_OUTPUT_TOKENS=50000
export ENABLE_TOOL_SEARCH=true
# Prompt caching
-export ENABLE_PROMPT_CACHING_1H=1 # Use 1-hour prompt cache TTL (default is 5 min)
+export ENABLE_PROMPT_CACHING_1H=1 # Request 1-hour cache TTL for all requests (default: 1h for the main conversation on a subscription, 5 min on API key / cloud providers)
# Task management
export CLAUDE_CODE_TASK_LIST_ID=my-project-tasks
@@ -1951,7 +1927,7 @@ export ANTHROPIC_CUSTOM_MODEL_OPTION=my-custom-model
export SLASH_COMMAND_TOOL_CHAR_BUDGET=50000
```
-> **v2.1.108:** `ENABLE_PROMPT_CACHING_1H=1` — デフォルトの 5 分 TTL ではなく 1 時間のプロンプトキャッシュ TTL を使用する。安定した長時間セッションでキャッシュミスを削減する。
+> **v2.1.108:** `ENABLE_PROMPT_CACHING_1H=1` — メイン会話とその他のリクエストに 1 時間のプロンプトキャッシュ TTL を要求する。未設定の場合、メイン会話はプラン使用量内の Claude サブスクリプションでは 1 時間、API キー・使用量クレジット・クラウドプロバイダーでは 5 分となる。`FORCE_PROMPT_CACHING_5M=1` は 5 分を強制する。安定した長時間セッションでキャッシュミスを削減する。
### 設定管理コマンド
@@ -2010,7 +1986,9 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
```json
{
- "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
+ "env": {
+ "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
+ }
}
```
@@ -2108,8 +2086,8 @@ Claude Code および関連機能の詳細:
---
-**最終更新:** 2026 年 9 月 30 日
-**Claude Code バージョン:** 2.1.285
+**最終更新:** 2026 年 10 月 15 日
+**Claude Code バージョン:** 2.1.300
**情報源:**
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/auto-mode-classifier-billing
@@ -2126,5 +2104,11 @@ Claude Code および関連機能の詳細:
- https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in
- https://github.com/anthropics/claude-code/releases/tag/v2.1.284
- https://github.com/anthropics/claude-code/releases/tag/v2.1.285
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/changelog#2-1-300
+- https://code.claude.com/docs/en/sandboxing
+- https://code.claude.com/docs/en/settings-reference#sandbox-enabled
+- https://code.claude.com/docs/en/prompt-caching
+- https://code.claude.com/docs/en/agent-teams
**互換モデル:** Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/10-cli/README.md b/ja/10-cli/README.md
index d426087..9070da3 100644
--- a/ja/10-cli/README.md
+++ b/ja/10-cli/README.md
@@ -32,7 +32,7 @@ graph TD
**v2.1.113** 以降、Claude Code CLI は npm のオプション依存を介して **プラットフォーム別のネイティブバイナリ**(macOS、Linux、Windows)を起動する。バイナリはインストール時に OS とアーキテクチャに合わせて選択される — 旧来のバンドル JavaScript ランタイムは macOS / Linux ではもはやデフォルトではない。
-**ユーザー側のインストール手順は変わらない**: `npm install -g @anthropic-ai/claude-code` がそのまま動作し、引き続き推奨経路である。裏側で npm がプラットフォームに合った正しいネイティブバイナリを取得する。
+**推奨インストール方法**はネイティブインストーラーである(`curl -fsSL https://claude.ai/install.sh | bash`、Windows では `irm https://claude.ai/install.ps1 | iex`)。`npm install -g @anthropic-ai/claude-code` も引き続き動作し(Node.js 22 以上)、プラットフォーム別のオプション依存関係を通じて同じネイティブバイナリをインストールする。
**ダウンロードホスト**(v2.1.116+): ネイティブバイナリ成果物は `https://downloads.claude.ai/claude-code-releases` から配信される。
@@ -57,7 +57,8 @@ graph TD
| `claude mcp serve` | Claude Code を MCP サーバーとして起動 | `claude mcp serve` |
| `claude agents` | 設定済みのサブエージェントを一覧表示 | `claude agents` |
| `claude auto-mode defaults` | 自動モードのデフォルトルールを JSON で出力 | `claude auto-mode defaults` |
-| `claude --remote-control [name]` | リモートコントロールを起動(サブコマンドではなくフラグ。エイリアス `--rc`) | `claude --rc` |
+| `claude remote-control` | リモートコントロールサーバーを起動(サーバーモード、ローカルの対話セッションなし。複数セッションを扱う、`--capacity` デフォルト 32) | `claude remote-control --name "My Project"` |
+| `claude --remote-control [name]` | リモートコントロールを有効にした対話セッションを起動(エイリアス `--rc`) | `claude --rc` |
| `claude plugin` | プラグインを管理(インストール・有効化・無効化) | `claude plugin install my-plugin` |
| `claude plugin tag [path]` | `[path]` のプラグインに対し `{name}--v{version}` のリリース git タグを作成。`plugin.json` と(存在すれば)マーケットプレイスのエントリが一致しているか検証する(v2.1.118+) | `claude plugin tag ./my-plugin` |
| `claude install [version]` | 指定したネイティブバイナリのバージョンをインストール。`stable`、`latest`、明示的なバージョン文字列を受け付ける | `claude install 2.1.119` |
@@ -815,9 +816,9 @@ claude -p --output-format json "query"
**問題:** `claude: command not found`
**対処法:**
-- Claude Code をインストール: `npm install -g @anthropic-ai/claude-code`
-- PATH に npm のグローバル bin ディレクトリが含まれていることを確認
-- フルパスで実行を試す: `npx claude`
+- Claude Code をインストール: `curl -fsSL https://claude.ai/install.sh | bash`(ネイティブ、推奨)または `npm install -g @anthropic-ai/claude-code`
+- PATH に `~/.local/bin`(ネイティブインストール)または npm のグローバル bin ディレクトリが含まれていることを確認
+- `claude doctor` を実行
### API キーの問題
@@ -873,8 +874,8 @@ claude -p --output-format json "query"
---
-**最終更新**: 2026 年 10 月 10 日
-**Claude Code バージョン**: 2.1.296
+**最終更新**: 2026 年 10 月 15 日
+**Claude Code バージョン**: 2.1.300
**出典**:
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/model-config
@@ -886,4 +887,7 @@ claude -p --output-format json "query"
- https://github.com/anthropics/claude-code/releases/tag/v2.1.117
- https://github.com/anthropics/claude-code/releases/tag/v2.1.118
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/setup
+- https://code.claude.com/docs/en/troubleshoot-install#command-not-found-claude-after-installation
**対応モデル**: Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5
diff --git a/ja/CATALOG.md b/ja/CATALOG.md
index 13a6a59..24e87d2 100644
--- a/ja/CATALOG.md
+++ b/ja/CATALOG.md
@@ -23,10 +23,10 @@
| **サブエージェント** | 6 | 9 | 15 | [04-subagents/](04-subagents/) |
| **スキル** | バンドル 10 | 6 | 16 | [03-skills/](03-skills/) |
| **プラグイン** | - | 3 | 3 | [07-plugins/](07-plugins/) |
-| **MCP サーバ** | 1 | 4 | 5 | [05-mcp/](05-mcp/) |
+| **MCP サーバ** | - | 4 | 4 | [05-mcp/](05-mcp/) |
| **フック** | 33 イベント | 9 | 42 | [06-hooks/](06-hooks/) |
| **メモリ** | 7 種類 | 3 | 10 | [02-memory/](02-memory/) |
-| **合計** | **117** | **42** | **159** | |
+| **合計** | **116** | **42** | **158** | |
---
@@ -60,7 +60,7 @@
| `/proactive` | `/loop` のエイリアス(v2.1.105) | `/loop` と同じ |
| `/recap` | セッションに戻ってきたときに要約を表示 | 離席後のコンテキスト把握 |
| `/rewind` | チェックポイントへ巻き戻し | 変更取消、別案探索 |
-| `/checkpoint` | チェックポイント管理 | 状態の保存 / 復元 |
+| `/checkpoint` | `/rewind` のエイリアス | `/rewind` と同じ |
| `/cost` | `/usage` のコストタブを開くエイリアス(v2.1.118+) | 支出監視 |
| `/context` | コンテキストウィンドウ使用量を表示 | 会話長の管理 |
| `/export` | 会話をエクスポート | 参照用に保存 |
@@ -74,10 +74,8 @@
| `/release-notes` | リリースノートを表示 | 新機能の確認 |
| `/remote-control` | リモートコントロールを有効化 | リモートアクセス |
| `/permissions` | 権限を管理 | アクセス制御 |
-| `/session` | セッションを管理 | マルチセッションワークフロー |
| `/rename` | 現在のセッションを改名 | セッション整理 |
| `/resume` | 過去のセッションを再開 | 作業の継続 |
-| `/todo` | TODO リストを表示・管理 | タスク追跡 |
| `/tui` | フルスクリーン TUI(テキストユーザーインターフェース)モード切替 | フルスクリーン / tmux でのちらつきのない描画 |
| `/tasks` | バックグラウンドタスクを表示 | 非同期処理の監視 |
| `/copy` | 直前の応答をクリップボードにコピー | 出力の素早い共有 |
@@ -92,7 +90,7 @@
| `/stickers` | セッションステッカーを表示 | 楽しいご褒美 |
| `/fast` | 高速出力モード切替 | 応答の高速化 |
| `/terminal-setup` | ターミナル統合を設定 | ターミナル機能のセットアップ |
-| `/undo` | **公式ドキュメントに記載なし** — v2.1.108 で `/rewind` のエイリアスとして追加されたが、公式のコマンドリファレンスには一切登場しない | 代わりに `/rewind`(または `Esc Esc`)を使う |
+| `/undo` | `/rewind` のエイリアス(v2.1.108) | `/rewind` と同じ |
| `/upgrade` | アップデート確認 | バージョン管理 |
| `/team-onboarding` | このプロジェクトの Claude Code 利用状況からオンボーディングガイドを生成 | 新メンバーのオンボーディング(v2.1.101) |
| `/code-review ultra` | 現在の変更に対するクラウドのマルチエージェントコードレビューを実行。`/ultrareview` はエイリアスとして残っており、`/code-review ultra` が推奨の呼び出し。Pro と Max では 3 回まで無料、以降は使用クレジットが必要 | マージ前の深いマルチエージェントレビュー(v2.1.112) |
@@ -130,7 +128,7 @@ Claude Code はツール使用の許可を制御する 6 つの権限モード
|------|-------------|-------------|
| `default` | ツール呼び出しごとに確認 | 標準的な対話利用 |
| `acceptEdits` | ファイル編集を自動承認、それ以外は確認 | 信頼できる編集ワークフロー |
-| `plan` | 読み取り専用ツールのみ、書き込みなし | 計画と探索 |
+| `plan` | 調査して計画を提案。承認するまでソースは編集しない | 計画と探索 |
| `auto` | バックグラウンドの安全分類器のチェック付きで全操作を許可 | 長時間タスク、確認プロンプトの削減 |
| `bypassPermissions` | すべての権限チェックをスキップ | CI/CD、ヘッドレス環境 |
| `dontAsk` | 権限が必要なツールをスキップ | 非対話スクリプト |
@@ -162,10 +160,10 @@ Claude Code はツール使用の許可を制御する 6 つの権限モード
|-------|------|-------------|
| `name` | 文字列 | エージェント識別子 |
| `description` | 文字列 | エージェントの役割 |
-| `model` | 文字列 | モデル上書き(例:`haiku-4.5`) |
+| `model` | 文字列 | モデル上書き(`sonnet`、`opus`、`haiku`、`fable`、完全なモデル ID、または `inherit`) |
| `tools` | 配列 | 許可ツール一覧 |
-| `effort` | 文字列 | 推論努力レベル(`low`、`medium`、`high`) |
-| `initialPrompt` | 文字列 | エージェント開始時に注入されるシステムプロンプト |
+| `effort` | 文字列 | 努力レベル(`low`、`medium`、`high`、`xhigh`、`max`。モデルにより異なる) |
+| `initialPrompt` | 文字列 | エージェントをメインセッションのエージェントとして実行したとき(`--agent`)に自動送信される最初のユーザーターン |
| `disallowedTools` | 配列 | 当エージェントに明示的に禁止するツール |
### カスタムサブエージェント(例)
@@ -227,9 +225,9 @@ cp 04-subagents/*.md .claude/agents/
|-------|------|-------------|
| `name` | 文字列 | スキル表示名 |
| `description` | 文字列 | スキルの役割 |
-| `autoInvoke` | 配列 | 自動起動のトリガーフレーズ |
-| `effort` | 文字列 | 推論努力レベル(`low`、`medium`、`high`) |
-| `shell` | 文字列 | スクリプト実行に使うシェル(`bash`、`zsh`、`sh`) |
+| `when_to_use` | 文字列 | `description` に追記されるトリガーフレーズやリクエスト例 |
+| `effort` | 文字列 | 努力レベル(`low`、`medium`、`high`、`xhigh`、`max`。モデルにより異なる) |
+| `shell` | 文字列 | インラインの `` !`command` `` ブロックで使うシェル(既定は `bash`、または `powershell`) |
**リファレンス**:[03-skills/](03-skills/) | [公式ドキュメント](https://code.claude.com/docs/en/skills)
@@ -305,7 +303,7 @@ claude plugin update <name> # プラグインを更新(CLI。/plugin update
| **Asana** | プロジェクト管理 | タスク追跡 | プロジェクト | 設定で構成 |
| **Stripe** | 決済データ | 財務分析 | プロジェクト | 設定で構成 |
| **Memory** | 永続メモリ | セッション横断の想起 | ユーザー | 設定で構成 |
-| **Context7** | ライブラリドキュメント | 最新ドキュメント検索 | 組み込み | 組み込み |
+| **Context7** | ライブラリドキュメント | 最新ドキュメント検索 | ユーザー | 設定で構成(サードパーティ製サーバ) |
> **スコープ**:`プロジェクト` = チーム(`.mcp.json`)、`ユーザー` = 個人(`~/.claude.json`)、`組み込み` = プリインストール
@@ -343,10 +341,10 @@ Claude Code のイベントでシェルコマンドを自動実行するイベ
| イベント | 説明 | 発火タイミング | ユースケース |
|-------|-------------|----------------|-----------|
| `SessionStart` | セッション開始・再開 | セッション初期化時 | セットアップタスク |
-| `Setup` | 初期環境セットアップ(セッションごとに 1 回) | 初回セッション起動時 | ツール準備、依存関係インストール |
+| `Setup` | リポジトリのセットアップまたはメンテナンス実行 | `--init-only`、または `-p` と併用した `--init`/`--maintenance` の場合のみ | ツール準備、依存関係インストール |
| `InstructionsLoaded` | 指示読み込み完了 | CLAUDE.md またはルールファイルの読込時 | カスタム指示の処理 |
| `UserPromptSubmit` | プロンプト処理前 | ユーザーがメッセージ送信時 | 入力検証 |
-| `UserPromptExpansion` | プロンプト展開(@メンション、スラッシュコマンド解決) | 展開後、送信前 | 展開後プロンプトの変換・検査 |
+| `UserPromptExpansion` | 入力したスラッシュコマンド(スキル、カスタムコマンド、MCP プロンプト)がプロンプトに展開される | `UserPromptSubmit` の後、展開後プロンプトが Claude に届く前 | `/command` の直接使用をブロック、スキルごとのコンテキスト追加、コマンドのログ記録 |
| `PreToolUse` | ツール実行前 | 任意のツールが走る前 | 検証、ログ |
| `PermissionRequest` | 権限ダイアログ表示 | 機微な操作の前 | カスタム承認フロー |
| `PermissionDenied` | ユーザーが権限要求を拒否 | 権限拒否後 | ログ、分析、ポリシー適用 |
@@ -457,11 +455,11 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **/proactive** | `/loop` のエイリアス — 同じ反復タスク動作(v2.1.105) | `/proactive` を `/loop` と互換に利用 |
| **/recap** | 既存セッションに戻ったときに要約を表示(v2.1.108) | 離席後に `/recap` を実行して文脈を取り戻す |
| **/tui** | フルスクリーン TUI モードを切替してちらつきのない描画(v2.1.110) | フルスクリーンターミナルや tmux で `/tui` を使う |
-| **/undo** | **公式ドキュメントに記載なし** — v2.1.108 で `/rewind` のエイリアスとして追加されたが、公式のコマンドリファレンスには一切登場しない | 代わりに `/rewind`(または `Esc Esc`)を使う |
+| **/undo** | `/rewind` のエイリアス(v2.1.108) | `/undo`、`/checkpoint`、`/rewind` のどれでも同じように使える |
| **Monitor ツール** | バックグラウンドコマンドの stdout を監視し、ポーリングではなくイベントで反応(v2.1.98+) | [高度な機能](09-advanced-features/) 経由で Monitor ツールを利用 |
| **/team-onboarding** | プロジェクトの Claude Code 設定からオンボーディングガイドを自動生成(v2.1.101) | プロジェクトで `/team-onboarding` を実行 |
| **リモートコントロール** | API 経由で Claude Code セッションを遠隔制御 | リモートコントロール API でプロンプト送信と応答取得をプログラム的に行う |
-| **Web セッション** | ブラウザベース環境で Claude Code を実行 | `claude web` または Anthropic Console でアクセス |
+| **Web セッション** | クラウドセッションで Claude Code を実行 | `claude --cloud "task"` または claude.ai/code で開始 |
| **デスクトップアプリ** | Claude Code のネイティブデスクトップアプリ | `/desktop` または Anthropic サイトからダウンロード |
| **Agent Teams** | 関連タスクで複数エージェントを協調 | コラボレーションと文脈共有を行う teammate エージェントを設定 |
| **タスクリスト** | バックグラウンドタスクの管理と監視 | `/tasks` でバックグラウンド処理を表示・管理 |
@@ -471,7 +469,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **MCP OAuth** | MCP サーバ向け OAuth 認証 | 安全なアクセスのため MCP サーバ設定で OAuth 認証情報を構成 |
| **MCP ツール検索** | MCP ツールを動的に検索・発見 | 接続済みサーバ全体で利用可能な MCP ツールを検索 |
| **スケジュールタスク** | `/loop` および cron ツールで反復タスクを設定 | `/loop 5m /command` または CronCreate ツールを使う |
-| **Chrome 連携** | ヘッドレス Chromium によるブラウザ自動化 | `--chrome` フラグまたは `/chrome` コマンドを使う |
+| **Chrome 連携** | Claude in Chrome 拡張機能経由で自分の Chrome/Edge を操作(表示されるウィンドウ、自分のログイン状態) | `--chrome` フラグまたは `/chrome` コマンドを使う |
| **キーバインドカスタマイズ** | コード対応を含むキーバインドのカスタマイズ | `/keybindings` を使うか `~/.claude/keybindings.json` を編集 |
| **Auto Mode** | バックグラウンドの安全分類器チェック付きで完全自律動作 | `Shift+Tab` で切り替え、または `--permission-mode auto` |
| **チャンネル** | 複数チャネル通信(Telegram、Slack など)(Research Preview) | チャンネルプラグインを設定、2026 年 3 月 |
@@ -540,8 +538,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**最終更新**:2026 年 10 月 10 日
-**Claude Code バージョン**:2.1.296
+**最終更新**:2026 年 10 月 15 日
+**Claude Code バージョン**:2.1.300
**情報源**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/overview
@@ -551,4 +549,9 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/sub-agents
+- https://code.claude.com/docs/en/permission-modes
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/skills
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/chrome
**互換モデル**:Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5
diff --git a/ja/INDEX.md b/ja/INDEX.md
index d07121f..4a7c1f5 100644
--- a/ja/INDEX.md
+++ b/ja/INDEX.md
@@ -376,7 +376,7 @@ documentation/
| `config-examples.json` | 設定例 | ユースケース別の 10 種以上の設定 |
| `planning-mode-examples.md` | プランニング例 | REST API、DB マイグレーション、リファクタリング |
| スケジュールタスク | `/loop` および cron ツールによる反復タスク | 自動化された反復ワークフロー |
-| Chrome 連携 | ヘッドレス Chromium によるブラウザ自動化 | Web テストとスクレイピング |
+| Chrome 連携 | Claude in Chrome 拡張機能による自分の Chrome でのブラウザ自動化 | Web テストとスクレイピング |
| リモートコントロール(拡張) | 接続方式、セキュリティ、比較表 | リモートセッション管理 |
| キーバインドカスタマイズ | カスタムキーバインド、コード対応、コンテキスト | パーソナライズされたショートカット |
| デスクトップアプリ(拡張) | コネクタ、launch.json、エンタープライズ機能 | デスクトップ統合 |
@@ -434,7 +434,7 @@ documentation/
- 自動化された反復ワークフロー
### Chrome 連携
-- ヘッドレス Chromium によるブラウザ自動化
+- Claude in Chrome 拡張機能による自分の Chrome でのブラウザ自動化
- Web テストおよびスクレイピング能力
- ページ操作とデータ抽出
@@ -466,10 +466,10 @@ documentation/
**主な CLI 機能**:
- `claude` — 対話セッションを開始
- `claude -p "prompt"` — ヘッドレス / 非対話モード
-- `claude web` — Web セッションを起動
+- `claude --cloud "task"` — クラウド(Web)セッションを開始
- `claude --model` — モデル選択(Sonnet 4.6、Opus 4.7、Haiku 4.5)
- `claude --permission-mode` — 権限モードの設定
-- `claude --remote` — WebSocket 経由のリモートコントロール有効化
+- `claude --remote-control` — claude.ai や Claude アプリからも操作できるセッションを開始
---
@@ -882,8 +882,8 @@ Run tests in background
---
-**最終更新**:2026 年 9 月 19 日
-**Claude Code バージョン**:2.1.278
+**最終更新**:2026 年 10 月 15 日
+**Claude Code バージョン**:2.1.300
**互換モデル**:Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
**例題総数**:100 ファイル超
**カテゴリ**:10 機能
@@ -896,3 +896,6 @@ Run tests in background
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/commands
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/chrome
diff --git a/ja/LEARNING-ROADMAP.md b/ja/LEARNING-ROADMAP.md
index 301c3a4..47d2611 100644
--- a/ja/LEARNING-ROADMAP.md
+++ b/ja/LEARNING-ROADMAP.md
@@ -108,7 +108,7 @@ graph TD
| **5** | [スキル](03-skills/) | ⭐⭐ 中級 | 1 時間 | レベル 2 | スラッシュコマンド | 自動的な専門性 | 再利用、一貫性 |
| **6** | [フック](06-hooks/) | ⭐⭐ 中級 | 1 時間 | レベル 2 | ツール、コマンド | ワークフロー自動化(33 イベント、5 種類) | 検証、品質ゲート |
| **7** | [MCP](05-mcp/) | ⭐⭐⭐ 中級+ | 1 時間 | レベル 2 | 設定 | ライブデータアクセス | リアルタイム連携、API |
-| **8** | [サブエージェント](04-subagents/) | ⭐⭐⭐ 中級+ | 1.5 時間 | レベル 2 | メモリ、コマンド | 複雑タスクの処理(Bash 含む組み込み 6 個) | 委譲、専門性 |
+| **8** | [サブエージェント](04-subagents/) | ⭐⭐⭐ 中級+ | 1.5 時間 | レベル 2 | メモリ、コマンド | 複雑タスクの処理(Explore と Plan を含む組み込み 6 個) | 委譲、専門性 |
| **9** | [高度な機能](09-advanced-features/) | ⭐⭐⭐⭐⭐ 上級 | 2〜3 時間 | レベル 3 | これまでの全機能 | パワーユーザー向けツール | プランニング、Auto Mode、チャンネル、音声入力、権限 |
| **10** | [プラグイン](07-plugins/) | ⭐⭐⭐⭐ 上級 | 2 時間 | レベル 3 | これまでの全機能 | 完全なソリューション | チームオンボーディング、配布 |
| **11** | [CLI マスタリー](10-cli/) | ⭐⭐⭐ 上級 | 1 時間 | レベル 3 | 推奨:これまでの全機能 | コマンドライン利用の習熟 | スクリプト、CI/CD、自動化 |
@@ -405,7 +405,7 @@ claude --permission-mode auto "implement the feature"
claude --permission-mode auto "implement user settings page"
# 演習 6: Agent Teams を有効化
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Claude にこう依頼: "Implement feature X using a team approach"
# 演習 7: スケジュールタスク
@@ -742,12 +742,14 @@ done
---
-**最終更新**:2026 年 9 月 2 日
-**Claude Code バージョン**:2.1.257
+**最終更新**:2026 年 10 月 15 日
+**Claude Code バージョン**:2.1.300
**情報源**:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/hooks
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/sub-agents
**互換モデル**:Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5
**メンテナンス**:Claude How-To Contributors
**ライセンス**:教育目的、自由に使用・改変可能
diff --git a/ja/QUICK_REFERENCE.md b/ja/QUICK_REFERENCE.md
index eaf7441..9d81a47 100644
--- a/ja/QUICK_REFERENCE.md
+++ b/ja/QUICK_REFERENCE.md
@@ -127,13 +127,13 @@ claude -r "session" # 名前 / ID でセッションを再開
| **チェックポイント** | 組み込み | `Esc+Esc` または `/rewind` |
| **プランニングモード** | 組み込み | `/plan <task>` |
| **権限モード (6 モード)** | 組み込み | `--allowedTools`、`--permission-mode` |
-| **セッション** | 組み込み | `/session <command>` |
+| **セッション** | 組み込み | `/resume`、`/rename`、`/branch`、`/fork` |
| **バックグラウンドタスク** | 組み込み | バックグラウンドで実行 |
-| **リモートコントロール** | 組み込み | WebSocket API |
-| **Web セッション** | 組み込み | `claude web` |
-| **Git ワークツリー** | 組み込み | `/worktree` |
-| **Auto Memory** | 組み込み | CLAUDE.md に自動保存 |
-| **タスクリスト** | 組み込み | `/task list` |
+| **リモートコントロール** | 組み込み | `claude --remote-control` または `/remote-control` |
+| **Web セッション** | 組み込み | `claude --cloud "task"` |
+| **Git ワークツリー** | 組み込み | `claude -w <name>` |
+| **Auto Memory** | 組み込み | `~/.claude/projects/<project>/memory/` に自動保存 |
+| **タスクリスト** | 組み込み | `Ctrl+T`(チェックリスト)、`/tasks`(バックグラウンド作業) |
| **バンドルスキル (5 個)** | 組み込み | `/simplify`、`/loop`、`/claude-api`、`/voice`、`/browse` |
---
@@ -253,10 +253,10 @@ claude --permission-mode plan
### Agent Teams
```bash
# Agent Teams を有効化
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# あるいは settings.json で
-{ "agentTeams": { "enabled": true } }
+{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }
# 開始: "Implement feature X using a team approach"
```
@@ -396,14 +396,14 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **フック (33 イベント)** | 5 種類に拡張されたフックシステム | command、http、mcp_tool、prompt、agent の各フック種別 |
| **MCP Elicitation** | MCP サーバが実行時にユーザー入力を要求できる | サーバが要明確化なら自動プロンプト |
| **Plugin LSP** | プラグインの Language Server Protocol サポート | `userConfig`、`${CLAUDE_PLUGIN_DATA}` 変数 |
-| **リモートコントロール** | WebSocket API で Claude Code を制御 | 外部統合のための `claude --remote` |
-| **Web セッション** | ブラウザベースの Claude Code インターフェース | 起動:`claude web` |
+| **リモートコントロール** | claude.ai または Claude アプリからローカルセッションを操作 | `claude --remote-control`(セッション内では `/remote-control`) |
+| **Web セッション** | claude.ai/code 上のクラウドセッション | ターミナルから開始:`claude --cloud "task"` |
| **デスクトップアプリ** | ネイティブデスクトップアプリ | claude.ai/download からダウンロード |
-| **タスクリスト** | バックグラウンドタスクの管理 | `/task list`、`/task status <id>` |
-| **Auto Memory** | 会話からの自動メモリ保存 | Claude が CLAUDE.md に主要コンテキストを自動保存 |
-| **Git ワークツリー** | 並列開発のための隔離ワークスペース | `/worktree` で隔離ワークスペースを作成 |
+| **タスクリスト** | バックグラウンドタスクの管理 | `/tasks`(エイリアス `/bashes`) |
+| **Auto Memory** | 会話からの自動メモリ保存 | Claude が `~/.claude/projects/<project>/memory/MEMORY.md` にメモを保存。`/memory` で管理 |
+| **Git ワークツリー** | 並列開発のための隔離ワークスペース | `claude --worktree <name>`(または `-w`) |
| **モデル選択** | Fable 5.1、Fable 5、Opus 5、Sonnet 5、Sonnet 4.6、Opus 4.8、Haiku 4.5 を切替 | `/model` または `--model` フラグ |
-| **Agent Teams** | タスク上の複数エージェントを協調 | 環境変数 `CLAUDE_AGENT_TEAMS=1` で有効化 |
+| **Agent Teams** | タスク上の複数エージェントを協調 | 環境変数 `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` で有効化(実験的) |
| **スケジュールタスク** | `/loop` による反復タスク | `/loop 5m /command` または CronCreate ツール |
| **Chrome 連携** | ブラウザ自動化 | `--chrome` フラグまたは `/chrome` コマンド |
| **キーバインドカスタマイズ** | カスタムキーバインド | `/keybindings` コマンド |
@@ -509,11 +509,15 @@ A:もちろん。カスタマイズ用のテンプレートである。
**このカード**:手元に置いてクイックリファレンスとして!
---
-**最終更新**:2026 年 9 月 2 日
-**Claude Code バージョン**:2.1.257
+**最終更新**:2026 年 10 月 15 日
+**Claude Code バージョン**:2.1.300
**情報源**:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/commands
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/memory#storage-location
**互換モデル**:Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5
diff --git a/ja/README.md b/ja/README.md
index b6ad88c..5c7e2be 100644
--- a/ja/README.md
+++ b/ja/README.md
@@ -144,7 +144,7 @@ Claude Code の力の 90% を眠らせたままで、しかも自分が何を知
## 15 分で始める
-> **インストールに関する注記**:v2.1.113 以降、Claude Code はプラットフォーム別のネイティブバイナリ(macOS / Linux / Windows)として配布される。`npm install -g @anthropic-ai/claude-code` も引き続き利用可能で、初回利用時にネイティブバイナリがオプション依存関係としてダウンロードされる。v2.1.116 以降、ダウンロード元は `https://downloads.claude.ai/claude-code-releases` であり、企業プロキシではこのホストを許可リストに加える必要がある。
+> **インストールに関する注記**:v2.1.113 以降、Claude Code はプラットフォーム別のネイティブバイナリ(macOS / Linux / Windows)として配布される。推奨のインストール方法はネイティブインストーラー(`curl -fsSL https://claude.ai/install.sh | bash`)である。`npm install -g @anthropic-ai/claude-code` も引き続き利用可能で、インストール時にプラットフォーム別のオプション依存関係を通じて同じネイティブバイナリが取得される。v2.1.116 以降、ダウンロード元は `https://downloads.claude.ai/claude-code-releases` であり、企業プロキシではこのホストを許可リストに加える必要がある。
```bash
# 1. ガイドをクローン
@@ -877,8 +877,8 @@ MIT License — [LICENSE](../LICENSE) を参照。利用、変更、再配布は
---
-**最終更新**:2026 年 9 月 19 日
-**Claude Code バージョン**:2.1.278
+**最終更新**:2026 年 10 月 15 日
+**Claude Code バージョン**:2.1.300
**情報源**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
@@ -886,4 +886,5 @@ MIT License — [LICENSE](../LICENSE) を参照。利用、変更、再配布は
- https://code.claude.com/docs/en/changelog
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
- https://github.com/anthropics/claude-code/releases/tag/v2.1.113
+- https://code.claude.com/docs/en/setup
**互換モデル**:Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/claude_concepts_guide.md b/ja/claude_concepts_guide.md
index cd4135e..2568216 100644
--- a/ja/claude_concepts_guide.md
+++ b/ja/claude_concepts_guide.md
@@ -267,8 +267,8 @@ sequenceDiagram
|---------------|------|---------|---------|
| `name` | 文字列 | エージェントの識別子 | `code-reviewer` |
| `description` | 文字列 | 用途とトリガー語 | `Comprehensive code quality analysis` |
-| `tools` | リスト / 文字列 | 利用可能なツール | `read, grep, diff, lint_runner` |
-| `system_prompt` | Markdown | 振る舞いの指示 | カスタムガイドライン |
+| `tools` | リスト / 文字列 | 利用可能なツール | `Read, Grep, Glob, Bash` |
+| *(Markdown 本文)* | Markdown | システムプロンプト / 振る舞いの指示 | カスタムガイドライン |
### ツールアクセスの階層
@@ -293,7 +293,7 @@ graph TD
---
name: code-reviewer
description: Comprehensive code quality and maintainability analysis
-tools: read, grep, diff, lint_runner
+tools: Read, Grep, Glob, Bash
---
# Code Reviewer Agent
@@ -2821,7 +2821,7 @@ Claude Code は 5 種類(command、http、mcp_tool、prompt、agent)にわ
| **Setup** | 初期環境セットアップ(セッションごとに 1 回) | ツール準備、依存関係インストール |
| **InstructionsLoaded** | CLAUDE.md やルールファイル読み込み時 | 検証、変換、補強 |
| **UserPromptSubmit** | ユーザーがプロンプト送信時 | 入力検証、プロンプトフィルタ |
-| **UserPromptExpansion** | プロンプト展開(@メンション、スラッシュコマンド解決) | 展開後プロンプトの変換・検査 |
+| **UserPromptExpansion** | 入力したスラッシュコマンド(スキル、カスタムコマンド、MCP プロンプト)がプロンプトに展開される。展開をブロック可能 | 直接の `/command` 使用のブロック・記録、スキルごとのコンテキスト追加 |
| **PreToolUse** | 任意のツール実行前 | 検証、承認ゲート、ログ |
| **PermissionRequest** | 権限ダイアログ表示時 | 自動承認・拒否フロー |
| **PermissionDenied** | ユーザーが権限要求を拒否 | ログ、分析、ポリシー適用 |
@@ -2864,7 +2864,7 @@ Claude Code は 5 種類(command、http、mcp_tool、prompt、agent)にわ
"hooks": [
{
"type": "command",
- "command": "prettier --write $CLAUDE_FILE_PATH"
+ "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write"
}
]
}
@@ -2875,7 +2875,7 @@ Claude Code は 5 種類(command、http、mcp_tool、prompt、agent)にわ
"hooks": [
{
"type": "command",
- "command": "eslint $CLAUDE_FILE_PATH"
+ "command": "jq -r '.tool_input.file_path' | xargs npx eslint"
}
]
}
@@ -2886,9 +2886,8 @@ Claude Code は 5 種類(command、http、mcp_tool、prompt、agent)にわ
### フック環境変数
-- `$CLAUDE_FILE_PATH` — 編集・書き込み中のファイルパス
-- `$CLAUDE_TOOL_NAME` — 使用中のツール名
-- `$CLAUDE_SESSION_ID` — 現在のセッション ID
+- フック入力は stdin の JSON で届く(`session_id`、`tool_name`、`tool_input.file_path` など)— `jq` で読み取る
+- `$CLAUDE_CODE_SESSION_ID` — 現在のセッション ID
- `$CLAUDE_PROJECT_DIR` — プロジェクトディレクトリのパス
### ベストプラクティス
@@ -3009,10 +3008,7 @@ User: Run tests in background
Claude: Started task bg-1234
-/task list # 全タスク一覧
-/task status bg-1234 # 進捗確認
-/task show bg-1234 # 出力閲覧
-/task cancel bg-1234 # タスクキャンセル
+/tasks # バックグラウンド作業の表示・管理(エイリアス:/bashes)
```
### 権限モード
@@ -3025,7 +3021,7 @@ Claude にできることを制御する。
| **acceptEdits** | ファイル編集を確認なく承認 | 信頼できる編集ワークフロー |
| **plan** | 解析・計画のみ、ファイル変更不可 | コードレビュー、アーキテクチャ計画 |
| **auto** | 安全な操作は自動承認、リスクのみ確認 | 安全性とのバランス自律性 |
-| **dontAsk** | すべての操作を確認なく実行 | 経験者、自動化 |
+| **dontAsk** | 確認が必要な操作はすべて自動拒否。事前承認済みツールと読み取りのみ実行 | ロックダウンした CI・スクリプト |
| **bypassPermissions** | 制限なし、安全チェックなし | CI/CD、信頼できるスクリプト |
**使い方:**
@@ -3033,7 +3029,7 @@ Claude にできることを制御する。
claude --permission-mode plan # 読み取り専用解析
claude --permission-mode acceptEdits # 編集を自動承認
claude --permission-mode auto # 安全な操作を自動承認
-claude --permission-mode dontAsk # 確認プロンプトなし
+claude --permission-mode dontAsk # 事前承認済みツールのみ。それ以外は拒否
```
### ヘッドレスモード(Print Mode)
@@ -3156,8 +3152,8 @@ Claude Code は推論努力を調整可能な 3 モデルをサポートする
*収録機能:フック、チェックポイント、プラニングモード、拡張思考、バックグラウンドタスク、権限モード(6 種)、ヘッドレスモード、セッション管理、Auto Memory、Agent Teams、定期タスク、Chrome 連携、Channels、音声入力、同梱スキル*
---
-**最終更新:** 2026 年 9 月 26 日
-**Claude Code バージョン:** 2.1.283
+**最終更新:** 2026 年 10 月 15 日
+**Claude Code バージョン:** 2.1.300
**出典:**
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/overview
@@ -3166,5 +3162,8 @@ Claude Code は推論努力を調整可能な 3 モデルをサポートする
- https://github.com/anthropics/claude-code/releases/tag/v2.1.117
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/sub-agents
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/permission-modes
+- https://code.claude.com/docs/en/hooks#userpromptexpansion
**対応モデル:** Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5
diff --git a/ja/resources.md b/ja/resources.md
index 0481d2c..b35bfcd 100644
--- a/ja/resources.md
+++ b/ja/resources.md
@@ -248,16 +248,17 @@ graph TD
| **Hook Events** | 33 イベント:PreToolUse、PostToolUse、PostToolUseFailure、Stop、StopFailure、SubagentStart、SubagentStop、Notification、Elicitation など | [フックガイド](06-hooks/) |
| **Agent Teams** | 複雑なタスクで複数のエージェントを協調させる | [サブエージェントガイド](04-subagents/) |
| **Scheduled Tasks** | `/loop` と cron ツールで定期タスクをセットアップ | [高度な機能](09-advanced-features/) |
-| **Chrome Integration** | ヘッドレス Chromium によるブラウザ自動化 | [高度な機能](09-advanced-features/) |
+| **Chrome Integration** | Claude in Chrome 拡張機能による自分の Chrome でのブラウザ自動化 | [高度な機能](09-advanced-features/) |
| **Keyboard Customization** | コードシーケンスを含むキーバインドのカスタマイズ | [高度な機能](09-advanced-features/) |
| **Monitor Tool** | バックグラウンドコマンドの stdout ストリームを監視し、ポーリングではなくイベントに反応する(v2.1.98+) | [高度な機能](09-advanced-features/) |
---
-**Last Updated**: September 2, 2026
-**Claude Code Version**: 2.1.257
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/changelog
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/chrome
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/resources.md b/resources.md
index c2d3490..980745d 100644
--- a/resources.md
+++ b/resources.md
@@ -244,7 +244,7 @@ These steps capture the core recommendations for smooth workflows with Claude Co
| **Hook Events** | 33 events: PreToolUse, PostToolUse, PostToolUseFailure, Stop, StopFailure, SubagentStart, SubagentStop, Notification, Elicitation, and more | [Hooks Guide](06-hooks/) |
| **Agent Teams** | Coordinate multiple agents working together on complex tasks | [Subagents Guide](04-subagents/) |
| **Scheduled Tasks** | Set up recurring tasks with `/loop` and cron tools | [Advanced Features](09-advanced-features/) |
-| **Chrome Integration** | Browser automation with headless Chromium | [Advanced Features](09-advanced-features/) |
+| **Chrome Integration** | Browser automation in your own Chrome via the Claude in Chrome extension | [Advanced Features](09-advanced-features/) |
| **Keyboard Customization** | Customize keybindings including chord sequences | [Advanced Features](09-advanced-features/) |
| **Monitor Tool** | Watch a background command's stdout stream and react to events instead of polling (v2.1.98+) | [Advanced Features](09-advanced-features/) |
| **/goal mode** | Register a session-level completion condition; Claude keeps working until met (v2.1.139+) | [Slash Commands](01-slash-commands/) |
@@ -252,8 +252,8 @@ These steps capture the core recommendations for smooth workflows with Claude Co
| **/run, /verify, /run-skill-generator** | Bundled skills to launch your project, confirm a fix works, and generate per-project run/verify skills (v2.1.145+) | [Skills Guide](03-skills/) |
---
-**Last Updated**: August 19, 2026
-**Claude Code Version**: 2.1.235
+**Last Updated**: October 15, 2026
+**Claude Code Version**: 2.1.300
**Sources**:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/changelog
@@ -262,4 +262,5 @@ These steps capture the core recommendations for smooth workflows with Claude Co
- https://github.com/anthropics/claude-code/releases/tag/v2.1.144
- https://github.com/anthropics/claude-code/releases/tag/v2.1.145
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/chrome
**Compatible Models**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/uk/01-slash-commands/README.md b/uk/01-slash-commands/README.md
index 48720e7..b92a03b 100644
--- a/uk/01-slash-commands/README.md
+++ b/uk/01-slash-commands/README.md
@@ -22,7 +22,7 @@
## Довідник вбудованих команд
-Вбудовані команди — це ярлики для типових дій. Доступно **60+ вбудованих команд** та **5 вбудованих навичок**. Введіть `/` у Claude Code для повного списку, або `/` з літерами для фільтрації.
+Вбудовані команди — це ярлики для типових дій. Доступно **60+ вбудованих команд** та **близько 20 вбудованих навичок**. Введіть `/` у Claude Code для повного списку, або `/` з літерами для фільтрації.
| Команда | Призначення |
|---------|------------|
@@ -204,7 +204,7 @@ description: Що робить ця команда і коли її викори
| `user-invocable` | Якщо `false`, сховати з меню `/` | `true` |
| `context` | `fork` для запуску в ізольованому субагенті | Немає |
| `agent` | Тип агента при `context: fork` | `general-purpose` |
-| `hooks` | Хуки на рівні навички (PreToolUse, PostToolUse, Stop) | Немає |
+| `hooks` | Хуки, що реєструються під час запуску навички (будь-яка подія хука; вони діють до кінця сесії) | Немає |
### Аргументи
@@ -240,6 +240,8 @@ Review PR #$0 with priority $1
Виконуйте bash-команди перед промптом з допомогою `` !`command` ``:
+> **Примітка (v2.1.299)**: Хуки `UserPromptSubmit` виконуються до розгортання команди, тож хук, який блокує промпт, також не дає цим `!`-командам виконатися.
+
```yaml
---
name: commit
@@ -309,6 +311,8 @@ MCP-сервери можуть надавати промпти як слеш-к
- `mcp__github__*` — Wildcard-доступ до всіх інструментів
- `mcp__github__get_issue` — Доступ до конкретного інструменту
+> **v2.1.299+:** Правило діє лише на сервер, який воно називає — `mcp__github` більше не збігається із сервером на ім'я `github__x` чи `github_`. Для сервера, нормалізоване ім'я якого містить `__`, пишіть `mcp__<повне нормалізоване ім'я>__*` (те саме стосується списків `tools:` субагентів).
+
## Архітектура команд
```mermaid
@@ -576,12 +580,16 @@ Deploy the application to production:
---
-**Останнє оновлення**: 26 вересня 2026
-**Версія Claude Code**: 2.1.283
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/output-styles
- https://github.com/anthropics/claude-code/releases/tag/v2.1.281
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/permissions#mcp
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
**Сумісні моделі**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
*Частина серії посібників [Claude How To](../)*
diff --git a/uk/02-memory/README.md b/uk/02-memory/README.md
index 86803a9..e70a910 100644
--- a/uk/02-memory/README.md
+++ b/uk/02-memory/README.md
@@ -486,15 +486,15 @@ npm install -g @anthropic-ai/claude-code@latest
### Пам'ять субагентів
-Субагенти (створені через інструменти на кшталт Task або паралельного виконання) можуть мати власний контекст пам'яті. Використовуйте поле `memory` у фронтматері визначення субагента, щоб вказати, які рівні пам'яті завантажувати:
+Субагенти (створені через інструмент Agent) можуть мати власну постійну пам'ять. Поле `memory` у фронтматері визначення субагента задає, де розташований каталог цієї пам'яті:
```yaml
-memory: user # Завантажити лише пам'ять рівня користувача
-memory: project # Завантажити лише пам'ять рівня проєкту
-memory: local # Завантажити лише локальну пам'ять
+memory: user # ~/.claude/agent-memory/<agent-name>/
+memory: project # .claude/agent-memory/<agent-name>/ (можна ділитися через git)
+memory: local # .claude/agent-memory-local/<agent-name>/ (не комітиться)
```
-Це дозволяє субагентам працювати з фокусованим контекстом, а не успадковувати повну ієрархію пам'яті.
+Під час запуску субагент читає перші 200 рядків / 25KB файлу `MEMORY.md` у цьому каталозі й отримує Read/Write/Edit, щоб його підтримувати. Поле не діє, якщо автоматичну пам'ять вимкнено.
> **Примітка**: Субагенти також можуть підтримувати власну auto memory. Див. [офіційну документацію пам'яті субагентів](https://code.claude.com/docs/en/sub-agents#enable-persistent-memory) для деталей.
@@ -1159,11 +1159,12 @@ Claude запропонує обрати, який файл пам'яті оно
- [Офіційна документація пам'яті](https://code.claude.com/docs/en/memory) — документація Anthropic
---
-**Останнє оновлення**: 10 жовтня 2026
-**Версія Claude Code**: 2.1.296
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/memory#agents-md
- https://github.com/anthropics/claude-code/releases/tag/v2.1.288
- https://github.com/anthropics/claude-code/releases/tag/v2.1.293
+- https://code.claude.com/docs/en/sub-agents#enable-persistent-memory
**Сумісні моделі**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/uk/03-skills/README.md b/uk/03-skills/README.md
index 161a213..2221adc 100644
--- a/uk/03-skills/README.md
+++ b/uk/03-skills/README.md
@@ -140,7 +140,7 @@ Show concrete examples of using this Skill.
### Рекомендовані поля
- **description** (рекомендовано): що навичка робить І коли її використовувати. Якщо поле пропущено, Claude Code бере перший абзац markdown-вмісту. Об'єднаний текст `description` + `when_to_use` обрізається до **1 536 символів** у переліку навичок (налаштовується через `skillListingMaxDescChars`). Саме за цим текстом Claude визначає, коли активувати навичку.
-- **name** (необов'язкове): за замовчуванням дорівнює **імені каталогу** навички. Якщо вказане, задає відображувану назву — тільки малі літери, цифри, дефіси (макс. 64 символи). У Claude Code імена `anthropic-skills` і `synced` зарезервовані й не завантажуються поза плагіном; суворіша заборона на "anthropic" або "claude" стосується навичок, завантажених у claude.ai або Skills API. Для навичок у плагінах `name` також задає останній сегмент команди.
+- **name** (необов'язкове): за замовчуванням дорівнює **імені каталогу** навички. Якщо вказане, задає відображувану назву — тільки малі літери, цифри, дефіси (макс. 64 символи) — це рекомендована, переносна форма (обов'язкова для claude.ai та Skills API). Сам Claude Code (v2.1.299+) пропускає навичку чи команду, ім'я якої містить приховані символи, символи зміни напряму тексту або символи, схожі на пробіл, `<` чи `>`, або довше за 256 символів, доки ви її не перейменуєте. У Claude Code імена `anthropic-skills` і `synced` зарезервовані й не завантажуються поза плагіном; суворіша заборона на "anthropic" або "claude" стосується навичок, завантажених у claude.ai або Skills API. Для навичок у плагінах `name` також задає останній сегмент команди.
Усі поля фронтматера SKILL.md є необов'язковими; рекомендованим є лише `description`.
@@ -153,13 +153,13 @@ description: What this skill does and when to use it
argument-hint: "[filename] [format]" # Підказка для автодоповнення
disable-model-invocation: true # Тільки користувач може викликати
user-invocable: false # Приховати з меню слеш-команд
-allowed-tools: Read, Grep, Glob # Обмежити доступ до інструментів
+allowed-tools: Read, Grep, Glob # Попередньо схвалити ці інструменти (без запитів дозволу), поки працює навичка
model: opus # Конкретна модель
effort: high # Рівень зусиль (low, medium, high, max)
context: fork # Запуск в ізольованому субагенті
agent: Explore # Тип агента (з context: fork)
shell: bash # Оболонка: bash (за замовч.) або powershell
-hooks: # Хуки, обмежені навичкою
+hooks: # Хуки, що реєструються під час виклику навички
PreToolUse:
- matcher: "Bash"
hooks:
@@ -171,7 +171,7 @@ paths: "src/api/**/*.ts" # Glob-патерни, що обмежу
| Поле | Опис |
|------|------|
-| `name` | Тільки малі літери, цифри, дефіси (макс. 64 символи). `anthropic-skills` і `synced` зарезервовані в Claude Code. |
+| `name` | Рекомендовано (переносно): тільки малі літери, цифри, дефіси (макс. 64 символи). `anthropic-skills` і `synced` зарезервовані в Claude Code. |
| `description` | Що навичка робить І коли її використовувати. Об'єднаний текст `description` + `when_to_use` обрізається до 1 536 символів у переліку навичок (налаштовується через `skillListingMaxDescChars`). Критично для автоматичного зіставлення. |
| `when_to_use` | Додатковий контекст про те, коли Claude має викликати навичку. Додається до `description` у переліку навичок і враховується в ліміті 1 536 символів. |
| `argument-hint` | Підказка в меню автодоповнення `/` (наприклад, `"[filename] [format]"`). |
@@ -183,7 +183,7 @@ paths: "src/api/**/*.ts" # Glob-патерни, що обмежу
| `context` | `fork` для запуску навички у відгалуженому контексті субагента з власним контекстним вікном. |
| `agent` | Тип субагента при `context: fork` (наприклад, `Explore`, `Plan`, `general-purpose`). |
| `shell` | Оболонка для підстановок `` !`command` `` та скриптів: `bash` (за замовч.) або `powershell`. |
-| `hooks` | Хуки, обмежені життєвим циклом цієї навички (той самий формат, що й глобальні хуки). |
+| `hooks` | Хуки, що реєструються під час виклику навички (той самий формат, що й хуки в settings; будь-яка подія). Вони діють до кінця сесії. |
| `paths` | Glob-патерни, що обмежують автоактивацію. Рядок через кому або YAML-список. Формат як у правилах для конкретних шляхів. |
## Типи вмісту навичок
@@ -271,6 +271,8 @@ Fix GitHub issue $ARGUMENTS following our coding standards.
Синтаксис `` !`command` `` виконує команди оболонки до того, як вміст навички відправляється до Claude:
+> **Примітка (v2.1.299)**: Хуки `UserPromptSubmit` виконуються до розгортання команди, тож хук, який блокує промпт, також не дає цим `!`-командам виконатися.
+
```yaml
---
name: pr-summary
@@ -499,11 +501,11 @@ description: Create or update CLAUDE.md files following best practices for optim
## Core Principles
-**LLMs are stateless**: CLAUDE.md is the only file automatically included in every conversation.
+**LLMs are stateless**: CLAUDE.md is the main project file loaded into every conversation (alongside auto memory and unscoped rules).
### The Golden Rules
-1. **Less is More**: Keep under 300 lines (ideally under 100)
+1. **Less is More**: Keep each CLAUDE.md under 200 lines
2. **Universal Applicability**: Only include information relevant to EVERY session
3. **Don't Use Claude as a Linter**: Use deterministic tools instead
4. **Never Auto-Generate**: Craft it manually with careful consideration
@@ -813,9 +815,16 @@ chmod +x ~/.claude/skills/my-skill/scripts/*.py
- [Посібник хуків](../06-hooks/) — автоматизація за подіями
---
-**Останнє оновлення**: 10 жовтня 2026
-**Версія Claude Code**: 2.1.296
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/skills#characters-a-skill-name-cant-hold
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/skills#pre-approve-tools-for-a-skill
+- https://code.claude.com/docs/en/memory#write-effective-instructions
+- https://code.claude.com/docs/en/memory
**Сумісні моделі**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/uk/03-skills/claude-md/SKILL.md b/uk/03-skills/claude-md/SKILL.md
index 9e76074..023b614 100644
--- a/uk/03-skills/claude-md/SKILL.md
+++ b/uk/03-skills/claude-md/SKILL.md
@@ -17,7 +17,7 @@ $ARGUMENTS
## Основні принципи
-**LLM не мають стану**: CLAUDE.md — єдиний файл, що автоматично включається в кожну розмову. Він слугує головним документом онбордингу AI-агентів у вашу кодову базу.
+**LLM не мають стану**: CLAUDE.md — головний файл проєкту, що завантажується в кожну розмову (разом з автоматичною пам'яттю та правилами без обмеження області). Він слугує головним документом онбордингу AI-агентів у вашу кодову базу.
### Золоті правила
@@ -214,3 +214,10 @@ AGENTS.md — це міжінструментальний файл контек
- Системне нагадування повідомляє Claude, що CLAUDE.md «може бути або не бути релевантним» — чим більше шуму, тим більше він ігнорується
- Монорепо найбільше виграють від чіткої структури ЩО/ЧОМУ/ЯК
- Файли CLAUDE.md для конкретних каталогів мають бути ще більш зосередженими
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/memory
diff --git a/uk/04-subagents/README.md b/uk/04-subagents/README.md
index af9ac46..8323385 100644
--- a/uk/04-subagents/README.md
+++ b/uk/04-subagents/README.md
@@ -123,14 +123,14 @@ to solving problems.
|------|-------------|------|
| `name` | Так | Унікальний ідентифікатор (малі літери та дефіси) |
| `description` | Так | Опис призначення природною мовою. Включіть "use PROACTIVELY" для заохочення автоматичного виклику |
-| `tools` | Ні | Список інструментів через кому. Пропустіть для успадкування всіх. Підтримує синтаксис `Agent(agent_name)` для обмеження створюваних субагентів |
+| `tools` | Ні | Список інструментів через кому. Пропустіть для успадкування всіх. Підтримує синтаксис `Agent(agent_name)` для обмеження створюваних субагентів. MCP: `mcp__<server>__*` надає доступ до всього сервера (v2.1.299+: збігається лише з точною назвою цього сервера). |
| `disallowedTools` | Ні | Список заборонених інструментів через кому |
| `model` | Ні | Модель: `sonnet`, `opus`, `haiku`, повний ID моделі або `inherit`. За замовч. — налаштована модель субагента |
-| `permissionMode` | Ні | `manual` (перейменовано з `default` у v2.1.200 — стара назва `default` досі приймається), `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, `auto` |
+| `permissionMode` | Ні | `default` (режим Manual; `manual` приймається як псевдонім з v2.1.200), `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, `auto`. Коли батьківська сесія працює в `bypassPermissions`, `acceptEdits` або `auto`, `permissionMode` субагента ігнорується |
| `maxTurns` | Ні | Максимальна кількість агентних кроків |
| `skills` | Ні | Список навичок через кому для попереднього завантаження. Вставляє повний вміст навички в контекст при запуску |
| `mcpServers` | Ні | MCP-сервери, доступні субагенту |
-| `hooks` | Ні | Хуки, обмежені компонентом (PreToolUse, PostToolUse, Stop) |
+| `hooks` | Ні | Хуки, що працюють лише поки цей субагент активний. Підтримуються всі події хуків; найпоширеніші — `PreToolUse`, `PostToolUse`, `Stop` (виконується як `SubagentStop`) |
| `memory` | Ні | Область постійної пам'яті: `user`, `project` або `local` |
| `background` | Ні | `true` для запуску як фонового завдання |
| `effort` | Ні | Рівень зусиль: `low`, `medium`, `high` або `max` |
@@ -373,11 +373,7 @@ claude --agent code-reviewer
### Список доступних агентів
-Використовуйте команду `claude agents` для переліку всіх налаштованих агентів з усіх джерел:
-
-```bash
-claude agents
-```
+Щоб побачити налаштованих субагентів, запитайте Claude або перегляньте `.claude/agents/` і `~/.claude/agents/`. (`claude agents` тут ні до чого: ця команда відкриває agent view для фонових сесій.)
---
@@ -556,16 +552,14 @@ You are a coordinator agent. You can delegate work to the "worker" and
## CLI-команда `claude agents`
-Команда `claude agents` відображає всіх налаштованих агентів, згрупованих за джерелом (вбудовані, рівень користувача, рівень проєкту):
+`claude agents` відкриває **agent view** (v2.1.139+): повноекранний список ваших фонових сесій, згрупованих за станом. Команда не показує визначення налаштованих субагентів; використовуйте `claude agents --json` для скриптів, що працюють зі станом сесій.
```bash
claude agents
+claude agents --json
```
-Ця команда:
-- Показує всіх доступних агентів з усіх джерел
-- Групує агентів за розташуванням джерела
-- Вказує **перевизначення**, коли агент вищого пріоритету затіняє агента нижчого рівня (наприклад, агент рівня проєкту з тим самим ім'ям, що й агент рівня користувача)
+Налаштовані субагенти зберігаються в `.claude/agents/` (проєкт) і `~/.claude/agents/` (користувач).
---
@@ -1135,10 +1129,15 @@ graph TD
- [Посібник хуків](../06-hooks/) — для автоматизації за подіями
---
-**Останнє оновлення**: 26 вересня 2026
-**Версія Claude Code**: 2.1.283
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/interactive-mode
+- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/agent-view
+- https://code.claude.com/docs/en/sub-agents#permission-modes
+- https://code.claude.com/docs/en/sub-agents#available-tools
**Сумісні моделі**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/uk/05-mcp/README.md b/uk/05-mcp/README.md
index 6b1b1e0..8184992 100644
--- a/uk/05-mcp/README.md
+++ b/uk/05-mcp/README.md
@@ -246,7 +246,7 @@ MCP-сервери можуть запитувати структуровани
## Ліміт описів інструментів та інструкцій
-Починаючи з v2.1.84, Claude Code встановлює **ліміт 2 КБ** на описи та інструкції інструментів для кожного MCP-сервера. Це запобігає споживанню надмірного контексту окремими серверами з занадто багатослівними визначеннями інструментів. Починаючи з v2.1.296, типовий ліміт становить **4 096 символів** для описів, що надсилаються одразу, та для інструкцій сервера (v2.1.296), а описи, які Claude завантажує через tool search, обрізаються на **16 384 символах** (v2.1.295).
+Claude Code обрізає кожен опис MCP-інструмента та інструкції кожного сервера, щоб багатослівні сервери не роздували контекст. Типові ліміти: **4 096 символів** для інструкцій сервера та описів інструментів, що завантажуються одразу (v2.1.296; до того — 2 048 починаючи з v2.1.84), і **16 384 символи** для описів, які Claude завантажує через tool search (v2.1.295). З v2.1.280 їх перевизначає `CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH`: задане число замінює **обидва** ліміти (`8192` підвищує коротший і знижує довший). З v2.1.299 описи й інструкції від first-party MCP-серверів Anthropic на `api.anthropic.com` доходять до Claude повністю. Розміщуйте важливі деталі ближче до початку опису.
## MCP Prompts як слеш-команди
@@ -455,7 +455,7 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
```
Змінні розгортаються під час виконання:
-- `${VAR}` — використовує змінну оточення, помилка якщо не встановлена
+- `${VAR}` — використовує змінну оточення; якщо вона не встановлена (і немає значення за замовчуванням), сервер все одно завантажується з буквальним `${VAR}`, а `claude mcp list` і `/mcp` попереджають про відсутню змінну
- `${VAR:-default}` — використовує змінну оточення, резервне значення якщо не встановлена
### Приклад 2: Налаштування Database MCP
@@ -1139,12 +1139,14 @@ export GITHUB_TOKEN="your_token"
- [Документація Claude API](https://docs.anthropic.com)
---
-**Останнє оновлення**: 10 жовтня 2026
-**Версія Claude Code**: 2.1.296
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/mcp#configure-tool-search
- https://code.claude.com/docs/en/managed-mcp
- https://github.com/anthropics/claude-code/releases/tag/v2.1.285
- https://github.com/anthropics/claude-code/releases/tag/v2.1.296
+- https://code.claude.com/docs/en/mcp#tool-search-for-mcp-server-authors
+- https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json
**Сумісні моделі**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/uk/06-hooks/README.md b/uk/06-hooks/README.md
index 6d35577..7f886be 100644
--- a/uk/06-hooks/README.md
+++ b/uk/06-hooks/README.md
@@ -62,7 +62,7 @@
| `type` | Тип хука: `"command"` (bash), `"prompt"` (LLM), `"http"` (вебхук), `"mcp_tool"` (виклик MCP-інструмента, v2.1.118+) або `"agent"` (субагент) | `"command"` |
| `command` | Shell-команда для виконання | `"$CLAUDE_PROJECT_DIR/.claude/hooks/format.sh"` |
| `timeout` | Необовʼязковий таймаут у секундах. За замовчуванням: 600 для command/http/mcp_tool, 30 для prompt, 60 для agent. | `30` |
-| `once` | Якщо `true`, хук запускається лише один раз за сесію | `true` |
+| `once` | Якщо `true`, хук видаляється після першого успішного запуску (невдалі, заблоковані чи прострочені запуски його залишають). Лише у frontmatter навички; ігнорується в settings і frontmatter агента | `true` |
| `async` | Якщо `true`, виконується у фоні без блокування | `true` |
| `asyncRewake` | Якщо `true`, виконується у фоні та будить Claude при коді виходу 2. Неявно вмикає `async`. | `true` |
| `shell` | Приймає `"bash"` або `"powershell"`. За замовчуванням `"bash"`, або `"powershell"` у Windows, якщо Git Bash не встановлено. | `"bash"` |
@@ -192,38 +192,38 @@ Claude Code підтримує **33 події хуків**:
| Подія | Коли спрацьовує | Вхід matcher | Може блокувати | Типове використання |
|-------|----------------|-------------|----------------|---------------------|
| **SessionStart** | Початок/відновлення/очищення/компакція/форк сесії | startup/resume/clear/compact/fork | Ні | Налаштування середовища |
-| **Setup** | Початкове налаштування середовища (один раз за сесію) | (немає) | Ні | Провізіонування інструментів, встановлення залежностей |
-| **InstructionsLoaded** | Після завантаження CLAUDE.md або файлу правил | (немає) | Ні | Модифікація/фільтрація інструкцій |
+| **Setup** | `--init-only` або `--init`/`--maintenance` з `-p` (підготовка CI/скриптів) | `init`/`maintenance` | Ні | Провізіонування інструментів, встановлення залежностей |
+| **InstructionsLoaded** | Після завантаження CLAUDE.md або файлу правил | Причина завантаження (`session_start`/`nested_traversal`/`path_glob_match`/`include`/`compact`) | Ні | Аудит/логування для спостережуваності |
| **UserPromptSubmit** | Користувач подає промпт | (немає) | Так | Валідація промптів |
-| **UserPromptExpansion** | Промпт розгорнуто (наприклад, `@`-згадки, слеш-команди розв'язано) | (немає) | Так | Перетворення або перевірка розгорнутого промпту |
+| **UserPromptExpansion** | Введена користувачем слеш-команда або MCP-промпт розгортається в промпт | Назва команди | Так | Перетворення або перевірка розгорнутого промпту |
| **MessageDisplay** | Під час відображення тексту відповіді асистента | (немає) | Ні | Перетворення або приховування показаного тексту (v2.1.152) |
| **PreToolUse** | Перед виконанням інструмента | Назва інструмента | Так (allow/deny/ask) | Валідація, модифікація вхідних даних |
| **PermissionRequest** | Показ діалогу дозволів | Назва інструмента | Так | Автозатвердження/відхилення |
-| **PermissionDenied** | Користувач відхиляє запит дозволу | Назва інструмента | Ні | Логування, аналітика, політики |
+| **PermissionDenied** | Режим auto відхиляє виклик інструмента | Назва інструмента | Ні | Логування, аналітика, політики |
| **PostToolUse** | Після успішного виконання інструмента | Назва інструмента | Ні | Контекст, зворотний звʼязок |
| **PostToolUseFailure** | Невдале виконання інструмента | Назва інструмента | Ні | Обробка помилок, логування |
-| **PostToolBatch** | Після завершення пакета викликів інструментів | (немає) | Ні | Зведена звітність, пакетна валідація |
+| **PostToolBatch** | Після завершення пакета викликів інструментів | (немає) | Так | Зведена звітність, пакетна валідація |
| **Notification** | Надсилання сповіщення | Тип сповіщення | Ні | Кастомні сповіщення |
| **SubagentStart** | Створення субагента | Назва типу агента | Ні | Налаштування субагента |
| **SubagentStop** | Завершення субагента | Назва типу агента | Так | Валідація субагента |
| **Stop** | Claude завершує відповідь | (немає) | Так | Перевірка завершення завдання |
-| **StopFailure** | Помилка API завершує хід | (немає) | Ні | Відновлення після помилок, логування |
+| **StopFailure** | Помилка API завершує хід | Тип помилки (`rate_limit`, `overloaded`, `server_error`, …) | Ні | Відновлення після помилок, логування |
| **TeammateIdle** | Неактивність учасника Agent Teams | (немає) | Так | Координація учасників |
| **TaskCompleted** | Завдання позначено як виконане | (немає) | Так | Дії після завершення завдання |
-| **TaskCreated** | Завдання створене через TaskCreate | (немає) | Ні | Відстеження завдань, логування |
-| **ConfigChange** | Зміна файлу конфігурації | (немає) | Так (крім policy) | Реакція на оновлення конфігурації |
+| **TaskCreated** | Завдання створене через TaskCreate | (немає) | Так | Відстеження завдань, логування |
+| **ConfigChange** | Зміна файлу конфігурації | Джерело конфігурації (`user_settings`/`project_settings`/`local_settings`/`policy_settings`/`skills`) | Так (крім policy) | Реакція на оновлення конфігурації |
| **CwdChanged** | Зміна робочого каталогу | (немає) | Ні | Налаштування для каталогу |
-| **DirectoryAdded** | Новий робочий каталог зареєстровано під час сесії через `/add-dir` або control-запит SDK `register_repo_root` (v2.1.219) | (немає) | Ні | Налаштування інструментів для доданого каталогу |
-| **FileChanged** | Зміна відстежуваного файлу | (немає) | Ні | Моніторинг файлів, перебудова |
-| **PreCompact** | Перед компакцією контексту | manual/auto | Ні | Дії перед компакцією |
+| **DirectoryAdded** | Новий робочий каталог зареєстровано під час сесії через `/add-dir` або control-запит SDK `register_repo_root` (v2.1.219) | `slash_command`/`register_repo_root` | Ні | Налаштування інструментів для доданого каталогу |
+| **FileChanged** | Зміна відстежуваного файлу | Назви файлів для відстеження (наприклад, `.envrc\|.env`) | Ні | Моніторинг файлів, перебудова |
+| **PreCompact** | Перед компакцією контексту | manual/auto | Так | Дії перед компакцією |
| **PostCompact** | Після завершення компакції | (немає) | Ні | Дії після компакції |
| **PreModelSwitch** | Перед тим, як Claude Code застосує запитану зміну моделі | Канонічна назва моделі, на яку відбувається перехід (з `to_model`) | Так | Контроль або блокування зміни моделі |
| **PostModelSwitch** | Після зміни моделі сесії, зокрема змін, які Claude Code робить сам (наприклад, відновлення моделі при відновленні сесії) | Канонічна назва моделі, на яку відбувся перехід (з `to_model`) | Ні | Логування або реакція на зміну моделі |
| **WorktreeCreate** | Створення робочого дерева (worktree) | (немає) | Так (повернення шляху) | Ініціалізація worktree |
-| **WorktreeRemove** | Видалення робочого дерева | (немає) | Ні | Очищення worktree |
-| **Elicitation** | MCP-сервер запитує введення користувача | (немає) | Так | Валідація введення |
-| **ElicitationResult** | Відповідь користувача на elicitation | (немає) | Так | Обробка відповіді |
-| **SessionEnd** | Завершення сесії | (немає) | Ні | Очищення, фінальне логування |
+| **WorktreeRemove** | Видалення робочого дерева | (немає) | Так (ненульовий код виходу зриває видалення) | Очищення worktree |
+| **Elicitation** | MCP-сервер запитує введення користувача | Назва MCP-сервера | Так | Валідація введення |
+| **ElicitationResult** | Відповідь користувача на elicitation | Назва MCP-сервера | Так | Обробка відповіді |
+| **SessionEnd** | Завершення сесії | Причина завершення (`clear`/`resume`/`logout`/`prompt_input_exit`/`other`) | Ні | Очищення, фінальне логування |
> **`TaskCreated` і `TaskCompleted` потребують увімкнених todo-інструментів (v2.1.233).** Ці події виникають від todo / task-tracking інструментів (`TaskCreate`/`Get`/`Update`/`List`, `TodoWrite`), які **доступні за замовчуванням лише на моделях Claude 3.x, Opus 4 — 4.7, Sonnet 4 — 4.6 та Haiku 4.5**. На інших моделях хук лишається валідною конфігурацією, але просто ніколи не спрацьовує — без виводу і без помилки. Встановіть `CLAUDE_CODE_ENABLE_TODO_TOOLS=1`, щоб повернути їх.
@@ -250,7 +250,7 @@ Claude Code підтримує **33 події хуків**:
}
```
-**Типові matcher:** `Task`, `Bash`, `Glob`, `Grep`, `Read`, `Edit`, `Write`, `WebFetch`, `WebSearch`
+**Типові matcher:** `Agent`, `Bash`, `Glob`, `Grep`, `Read`, `Edit`, `Write`, `WebFetch`, `WebSearch`
**Управління виводом:**
- `permissionDecision`: `"allow"`, `"deny"`, `"ask"` або `"defer"`
@@ -260,7 +260,7 @@ Claude Code підтримує **33 події хуків**:
- `"defer"` коректно завершує роботу, щоб інструмент можна було відновити пізніше; `permissionDecisionReason`, `updatedInput` та `additionalContext` для цього значення ігноруються
- Правила deny та ask обчислюються незалежно від того, що повертає хук. Якщо кілька хуків `PreToolUse` дають різні рішення, пріоритет такий: `deny` > `defer` > `ask` > `allow`
- `permissionDecisionReason`: Пояснення рішення. Показується користувачеві (не Claude) для `"allow"` та `"ask"`; показується Claude для `"deny"`; ігнорується для `"defer"`
-- `updatedInput`: Модифіковані вхідні параметри інструмента
+- `updatedInput`: Замінні вхідні дані інструмента (замінюють увесь вхідний об'єкт). З v2.1.300 вони перевіряються так само, як власні вхідні дані Claude — невідомі ключі відкидаються, а вхідні дані, які інструмент відхиляє, призводять до відмови у виклику.
### PostToolUse
@@ -291,7 +291,7 @@ Claude Code підтримує **33 події хуків**:
### UserPromptSubmit
-Запускається, коли користувач подає промпт, перед тим як Claude його обробить.
+Запускається, коли користувач подає промпт, перед тим як Claude його обробить. З v2.1.299 хук запускається до розгортання навички чи кастомної команди, тож блокування промпту зупиняє й рядки оболонки `!` цієї команди; `UserPromptExpansion` спрацьовує після нього.
**Конфігурація:**
```json
@@ -434,11 +434,11 @@ hooks:
hooks:
- type: command
command: "./scripts/check.sh"
- once: true # Запустити лише один раз за сесію
+ once: true # Лише frontmatter навички: видаляється після першого успішного запуску
---
```
-**Підтримувані події для хуків компонентів:** `PreToolUse`, `PostToolUse`, `Stop`
+**Підтримувані події:** усі події хуків. Хуки субагента працюють лише поки субагент активний (`Stop` → `SubagentStop`); хуки навички реєструються під час її виклику й лишаються активними до кінця сесії.
Це дозволяє визначати хуки безпосередньо в компоненті, що їх використовує, зберігаючи повʼязаний код разом.
@@ -737,7 +737,7 @@ BLOCKED_PATTERNS = [
def main():
input_data = json.load(sys.stdin)
- prompt = input_data.get("user_prompt", "") or input_data.get("prompt", "")
+ prompt = input_data.get("prompt", "")
for pattern, message in BLOCKED_PATTERNS:
if re.search(pattern, prompt, re.IGNORECASE):
@@ -952,7 +952,7 @@ if __name__ == "__main__":
| Оцінка за символами | ~80-90% | Немає | <1мс |
| tiktoken (p50k_base) | ~90-95% | `pip install tiktoken` | <10мс |
-> **Примітка:** Anthropic не випустили офіційний офлайн-токенізатор. Обидва методи є наближеннями. Транскрипт включає промпти користувача, відповіді Claude та вивід інструментів, але НЕ системні промпти або внутрішній контекст.
+> **Примітка:** Anthropic не випустили офіційний офлайн-токенізатор. Обидва методи є наближеннями. Транскрипт включає промпти користувача, відповіді Claude та вивід інструментів; з v2.1.300 він також записує системний промпт, інструменти й параметри кожного API-запиту.
### Приклад 7: Початкове налаштування дозволів Auto-Mode (одноразовий скрипт)
@@ -1220,11 +1220,17 @@ chmod +x ~/.claude/hooks/*.sh
- **[Посібник з памʼяті](../02-memory/)** — конфігурація постійного контексту
---
-**Останнє оновлення**: 26 вересня 2026
-**Версія Claude Code**: 2.1.283
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/plugins/manifest-reference#quoting-and-path-separators
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
+- https://code.claude.com/docs/en/hooks#pretooluse
+- https://code.claude.com/docs/en/hooks#pretooluse-decision-control
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/hooks#userpromptsubmit-input
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/changelog#2-1-300
**Сумісні моделі**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/uk/06-hooks/notify-team.sh b/uk/06-hooks/notify-team.sh
index 1894218..ff04d86 100644
--- a/uk/06-hooks/notify-team.sh
+++ b/uk/06-hooks/notify-team.sh
@@ -1,9 +1,15 @@
#!/bin/bash
# Send notifications on events
-# Hook: PostToolUse (matcher: Bash) — run after bash commands; filter for git push in script logic
+# Hook: PostToolUse (matcher: Bash) — runs after every Bash call; the script exits unless the command is a git push
# Note: Claude Code has no native PostPush event. To trigger on git push, check the bash command
# string for "git push" using a matcher or conditional logic within this script.
+# Read the hook input and exit unless the Bash command is a git push
+INPUT=$(cat)
+# Extract the command (escaped quotes like \"msg\" are kept) and match "git push" as a command word anywhere in it
+COMMAND=$(echo "$INPUT" | sed -nE 's/.*"command"[[:space:]]*:[[:space:]]*"(([^"\\]|\\.)*)".*/\1/p' | head -1)
+printf '%s\n' "$COMMAND" | grep -qE '(^|[^[:alnum:]_-]|\\n)git[[:space:]]+push([^[:alnum:]_-]|$)' || exit 0
+
REPO_NAME=$(basename $(git rev-parse --show-toplevel 2>/dev/null) 2>/dev/null)
COMMIT_MSG=$(git log -1 --pretty=%B 2>/dev/null)
AUTHOR=$(git log -1 --pretty=%an 2>/dev/null)
diff --git a/uk/06-hooks/validate-prompt.sh b/uk/06-hooks/validate-prompt.sh
index b2701f3..e0b9f21 100644
--- a/uk/06-hooks/validate-prompt.sh
+++ b/uk/06-hooks/validate-prompt.sh
@@ -10,11 +10,8 @@
INPUT=$(cat)
# Extract the prompt text from JSON input
-# Claude Code sends UserPromptSubmit with field "user_prompt" (falls back to "prompt")
-PROMPT=$(echo "$INPUT" | sed -n 's/.*"user_prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
-if [ -z "$PROMPT" ]; then
- PROMPT=$(echo "$INPUT" | sed -n 's/.*"prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
-fi
+# Claude Code sends the UserPromptSubmit text in the "prompt" field
+PROMPT=$(echo "$INPUT" | sed -n 's/.*"prompt"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
if [ -z "$PROMPT" ]; then
exit 0
diff --git a/uk/07-plugins/README.md b/uk/07-plugins/README.md
index 260672b..605d0da 100644
--- a/uk/07-plugins/README.md
+++ b/uk/07-plugins/README.md
@@ -246,14 +246,20 @@ my-plugin/
"hooks": {
"PostToolUse": [
{
- "command": "node ${CLAUDE_PLUGIN_DATA}/track-usage.js"
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}\"/scripts/track-usage.js \"${CLAUDE_PLUGIN_DATA}\"/usage.json"
+ }
+ ]
}
]
}
}
```
-Каталог створюється автоматично при встановленні плагіна. Файли зберігаються до видалення плагіна.
+Каталог (`~/.claude/plugins/data/<id>/`) створюється під час першого звернення до нього та зберігається між оновленнями плагіна. Він видаляється, коли ви видаляєте плагін з останнього місця, де його встановлено (якщо не передати `--keep-data`).
## Інлайн-плагін через налаштування (`source: 'settings'`) (v2.1.80+)
@@ -382,13 +388,10 @@ devops-automation/
│ ├── incident-commander.md
│ └── alert-analyzer.md
├── mcp/
-│ ├── github-config.json
-│ ├── kubernetes-config.json
-│ └── prometheus-config.json
+│ └── kubernetes-config.json
├── hooks/
│ ├── pre-deploy.js
-│ ├── post-deploy.js
-│ └── on-error.js
+│ └── post-deploy.js
└── scripts/
├── deploy.sh
├── rollback.sh
@@ -411,8 +414,7 @@ documentation/
│ ├── code-commentator.md
│ └── example-generator.md
├── mcp/
-│ ├── github-docs-config.json
-│ └── slack-announce-config.json
+│ └── github-docs-config.json
└── templates/
├── api-endpoint.md
├── function-docs.md
@@ -973,8 +975,8 @@ claude plugin update plugin-name
- [Довідник системи хуків](../06-hooks/README.md)
---
-**Останнє оновлення**: 30 вересня 2026
-**Версія Claude Code**: 2.1.285
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/plugins-reference
diff --git a/uk/07-plugins/devops-automation/commands/deploy.md b/uk/07-plugins/devops-automation/commands/deploy.md
index e8a5dba..36254ae 100644
--- a/uk/07-plugins/devops-automation/commands/deploy.md
+++ b/uk/07-plugins/devops-automation/commands/deploy.md
@@ -1,5 +1,4 @@
---
-name: Deploy
description: Розгортання застосунку на продакшен або стейджинг
---
@@ -13,3 +12,11 @@ description: Розгортання застосунку на продакшен
4. Розгортання на цільове середовище
5. Запуск перевірок стану
6. Повідомлення команди в Slack
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/devops-automation/commands/incident.md b/uk/07-plugins/devops-automation/commands/incident.md
index a20dbd3..517c3d7 100644
--- a/uk/07-plugins/devops-automation/commands/incident.md
+++ b/uk/07-plugins/devops-automation/commands/incident.md
@@ -1,5 +1,4 @@
---
-name: Incident Response
description: Обробка інцидентів на продакшені зі структурованим реагуванням
---
@@ -14,3 +13,11 @@ description: Обробка інцидентів на продакшені зі
5. Координація зусиль з реагування
6. Документування розв'язання
7. Планування post-mortem
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/devops-automation/commands/rollback.md b/uk/07-plugins/devops-automation/commands/rollback.md
index d8998b2..297ae47 100644
--- a/uk/07-plugins/devops-automation/commands/rollback.md
+++ b/uk/07-plugins/devops-automation/commands/rollback.md
@@ -1,5 +1,4 @@
---
-name: Rollback
description: Відкат до попереднього розгортання
---
@@ -12,3 +11,11 @@ description: Відкат до попереднього розгортання
3. Виконання процедури відкату
4. Запуск перевірок стану
5. Повідомлення команди
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/devops-automation/commands/status.md b/uk/07-plugins/devops-automation/commands/status.md
index 3b8b2a7..8e09c28 100644
--- a/uk/07-plugins/devops-automation/commands/status.md
+++ b/uk/07-plugins/devops-automation/commands/status.md
@@ -1,5 +1,4 @@
---
-name: System Status
description: Перевірка загального стану та працездатності системи
---
@@ -13,3 +12,11 @@ description: Перевірка загального стану та праце
4. Перегляд частоти помилок
5. Перевірка використання ресурсів
6. Звіт про загальний стан
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/documentation/commands/generate-api-docs.md b/uk/07-plugins/documentation/commands/generate-api-docs.md
index 4ca0f77..9370f67 100644
--- a/uk/07-plugins/documentation/commands/generate-api-docs.md
+++ b/uk/07-plugins/documentation/commands/generate-api-docs.md
@@ -1,5 +1,4 @@
---
-name: Generate API Documentation
description: Генерація комплексної API-документації з вихідного коду
---
@@ -13,3 +12,11 @@ description: Генерація комплексної API-документац
4. Створення markdown з прикладами
5. Включення схем запитів/відповідей
6. Додавання документації помилок
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/documentation/commands/generate-readme.md b/uk/07-plugins/documentation/commands/generate-readme.md
index 23e8e60..55c3188 100644
--- a/uk/07-plugins/documentation/commands/generate-readme.md
+++ b/uk/07-plugins/documentation/commands/generate-readme.md
@@ -1,5 +1,4 @@
---
-name: Generate README
description: Створення або оновлення README проєкту
---
@@ -13,3 +12,11 @@ description: Створення або оновлення README проєкту
4. Посилання на API-документацію
5. Настанови для контриб'юторів
6. Інформація про ліцензію
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/documentation/commands/sync-docs.md b/uk/07-plugins/documentation/commands/sync-docs.md
index 795966d..cfdeecf 100644
--- a/uk/07-plugins/documentation/commands/sync-docs.md
+++ b/uk/07-plugins/documentation/commands/sync-docs.md
@@ -1,5 +1,4 @@
---
-name: Sync Documentation
description: Синхронізація документації зі змінами коду
---
@@ -12,3 +11,11 @@ description: Синхронізація документації зі зміна
3. Оновлення уражених документів
4. Перевірка працездатності прикладів
5. Оновлення номерів версій
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/documentation/commands/validate-docs.md b/uk/07-plugins/documentation/commands/validate-docs.md
index a5186db..83d66e6 100644
--- a/uk/07-plugins/documentation/commands/validate-docs.md
+++ b/uk/07-plugins/documentation/commands/validate-docs.md
@@ -1,5 +1,4 @@
---
-name: Validate Documentation
description: Валідація документації на повноту та точність
---
@@ -12,3 +11,11 @@ description: Валідація документації на повноту т
3. Забезпечення повноти
4. Перевірка форматування
5. Валідація відповідності реальному коду
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/pr-review/commands/check-security.md b/uk/07-plugins/pr-review/commands/check-security.md
index 736960e..1a4ef74 100644
--- a/uk/07-plugins/pr-review/commands/check-security.md
+++ b/uk/07-plugins/pr-review/commands/check-security.md
@@ -1,5 +1,4 @@
---
-name: Security Check
description: Запуск рев'ю коду з фокусом на безпеці
---
@@ -12,3 +11,11 @@ description: Запуск рев'ю коду з фокусом на безпец
3. Вразливості ін'єкцій
4. Криптографічні слабкості
5. Чутливі дані в логах
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/pr-review/commands/check-tests.md b/uk/07-plugins/pr-review/commands/check-tests.md
index 860d8d6..dfa3b8a 100644
--- a/uk/07-plugins/pr-review/commands/check-tests.md
+++ b/uk/07-plugins/pr-review/commands/check-tests.md
@@ -1,5 +1,4 @@
---
-name: Test Coverage Check
description: Верифікація покриття тестами та їх якості
---
@@ -12,3 +11,11 @@ description: Верифікація покриття тестами та їх я
3. Оцінка якості тестів
4. Пропозиція відсутніх тест-кейсів
5. Перевірка покриття граничних випадків
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/07-plugins/pr-review/commands/review-pr.md b/uk/07-plugins/pr-review/commands/review-pr.md
index aa145fb..454babb 100644
--- a/uk/07-plugins/pr-review/commands/review-pr.md
+++ b/uk/07-plugins/pr-review/commands/review-pr.md
@@ -1,5 +1,4 @@
---
-name: Review PR
description: Запуск комплексного рев'ю PR з перевірками безпеки та тестування
---
@@ -12,3 +11,11 @@ description: Запуск комплексного рев'ю PR з переві
3. Оновлення документації
4. Перевірки якості коду
5. Оцінка впливу на продуктивність
+
+---
+
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/uk/08-checkpoints/README.md b/uk/08-checkpoints/README.md
index 42db5e5..180fcdf 100644
--- a/uk/08-checkpoints/README.md
+++ b/uk/08-checkpoints/README.md
@@ -40,7 +40,7 @@
### Слеш-команда
-Використовуйте команду `/rewind` (аліас: `/checkpoint`) для швидкого доступу:
+Використовуйте команду `/rewind` (аліаси: `/checkpoint`, `/undo`) для швидкого доступу:
```bash
# Відкрити інтерфейс відкату
@@ -67,7 +67,7 @@
Claude Code автоматично створює контрольні точки:
- **Кожен промпт користувача** — Нова контрольна точка створюється з кожним введенням
-- **Постійні** — Контрольні точки зберігаються між сесіями
+- **Постійні** — Контрольні точки зберігаються разом із розмовою, тож `/rewind` працює і після відновлення сесії
- **Автоочищення** — Контрольні точки автоматично очищуються через 30 днів
Це означає, що ви завжди можете повернутися до будь-якого попереднього моменту розмови — від кількох хвилин тому до днів.
@@ -300,7 +300,7 @@ Claude Code зберігає знімки для **100 найновіших ко
- **`Esc` + `Esc`** — Відкрити браузер контрольних точок
- **`/rewind`** — Альтернативний спосіб доступу
-- **`/checkpoint`** — Аліас для `/rewind`
+- **`/checkpoint`**, **`/undo`** — Аліаси для `/rewind`
## Коли відкочуватися: Моніторинг контексту
@@ -336,6 +336,9 @@ Claude Code зберігає знімки для **100 найновіших ко
---
-**Останнє оновлення**: 9 квітня 2026
-**Версія Claude Code**: 2.1.97
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/commands
**Сумісні моделі**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/uk/09-advanced-features/README.md b/uk/09-advanced-features/README.md
index e4f880f..bc98ba5 100644
--- a/uk/09-advanced-features/README.md
+++ b/uk/09-advanced-features/README.md
@@ -481,10 +481,8 @@ User: Run tests in background
Claude: Started task bg-1234
-/task list # Показати всі завдання
-/task status bg-1234 # Перевірити прогрес
-/task show bg-1234 # Переглянути вивід
-/task cancel bg-1234 # Скасувати завдання
+/tasks # Переглянути й керувати фоновою роботою (оболонки та субагенти); звідси можна зупинити завдання
+Ctrl+B # Перевести запущену Bash-команду або агента у фон
```
### Запуск фонових завдань
@@ -506,44 +504,19 @@ Claude: [Works on auth module while tests run in background]
Claude: 📢 Background task bg-1234 completed:
✅ 245 tests passed
❌ 3 tests failed
-View results: /task show bg-1234
+View results: /tasks
```
### Управління фоновими завданнями
-**Список активних завдань**:
-```
-User: /task list
-
-Active background tasks:
-1. [bg-1234] Running tests (50% complete, 2min remaining)
-2. [bg-1235] Building Docker image (25% complete, 8min remaining)
-3. [bg-1236] Deploying to staging (90% complete, 30sec remaining)
-```
-
-**Перевірка статусу завдання**:
-```
-User: /task status bg-1234
-
-Task bg-1234: Running tests
-Status: In progress
-Progress: 120/245 tests (49%)
-Started: 2025-11-08 10:30:15
-Estimated completion: 2025-11-08 10:34:22
-```
-
-**Перегляд виводу завдання**:
-```
-User: /task show bg-1234
+Запустіть `/tasks` (псевдонім `/bashes`), щоб переглянути запущені оболонки й субагенти, відкрити один із них і побачити його вивід або зупинити його. Підкоманд `/task` не існує.
-[Shows live output from the test run]
-```
-
-**Скасування завдання**:
-```
-User: /task cancel bg-1234
+```text
+User: /tasks
-Cancelled background task bg-1234
+[Opens the background-work view: running shells and subagents,
+ including subagents that have finished. Select one to see its
+ output, or stop it from here.]
```
### Приклад: Паралельна розробка
@@ -1292,8 +1265,8 @@ claude remote-control --name "Auth Refactor"
|------|-------------|
| `--name "title"` | Власна назва сесії для зручної ідентифікації |
| `--verbose` | Показувати детальні логи зʼєднання |
-| `--sandbox` | Увімкнути ізоляцію файлової системи та мережі |
-| `--no-sandbox` | Вимкнути пісочницю (за замовчуванням) |
+
+> **Примітка (v2.1.300)**: `claude remote-control` більше не приймає `--sandbox` чи `--no-sandbox` (вони ніколи не мали ефекту; передача будь-якого з них тепер завершується помилкою). Щоб запускати сесії Remote Control у пісочниці, встановіть `sandbox.enabled` у файлі налаштувань.
### Підключення до сесії
@@ -1320,9 +1293,9 @@ claude remote-control --name "Auth Refactor"
### Обмеження
-- Одна віддалена сесія на екземпляр Claude Code
+- Одна віддалена сесія на інтерактивний процес Claude Code — серверний режим (`claude remote-control`) обслуговує кілька одночасно (`--capacity`, за замовчуванням 32)
- Термінал має залишатись відкритим на хост-машині
-- Сесія закінчується через ~10 хвилин, якщо мережа недоступна
+- Якщо мережа недоступна, серверний режим завершується приблизно через 10 хвилин; інтерактивна сесія продовжує повторні спроби й перепідключається, коли мережа повертається
### Випадки використання
@@ -1553,17 +1526,20 @@ claude -w
### Увімкнення пісочниці
-**Слеш-команда**:
-```
+**Слеш-команда** (зберігає ваш вибір у `.claude/settings.local.json` для цього проєкту):
+```text
/sandbox
```
-**Прапорці CLI**:
+**Файл налаштувань** (усі проєкти): встановіть `"sandbox": { "enabled": true }` у `~/.claude/settings.json`.
+
+**Для однієї сесії**, без запису у файл налаштувань:
```bash
-claude --sandbox # Увімкнути пісочницю
-claude --no-sandbox # Вимкнути пісочницю
+claude --settings '{"sandbox": {"enabled": true}}'
```
+> Прапорців `claude --sandbox` / `--no-sandbox` не існує. Починаючи з v2.1.300, передача їх у `claude remote-control` завершується помилкою.
+
### Налаштування конфігурації
| Налаштування | Опис |
@@ -1836,7 +1812,9 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
```json
{
- "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
+ "env": {
+ "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
+ }
}
```
@@ -1933,8 +1911,8 @@ claude --teammate-mode in-process
- [Офіційна документація Agent Teams](https://code.claude.com/docs/en/agent-teams)
---
-**Останнє оновлення**: 30 вересня 2026
-**Версія Claude Code**: 2.1.285
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/auto-mode-classifier-billing
@@ -1945,4 +1923,10 @@ claude --teammate-mode in-process
- https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in
- https://github.com/anthropics/claude-code/releases/tag/v2.1.284
- https://github.com/anthropics/claude-code/releases/tag/v2.1.285
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/changelog#2-1-300
+- https://code.claude.com/docs/en/sandboxing
+- https://code.claude.com/docs/en/settings-reference#sandbox-enabled
+- https://code.claude.com/docs/en/interactive-mode
+- https://code.claude.com/docs/en/agent-teams
**Сумісні моделі**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/uk/10-cli/README.md b/uk/10-cli/README.md
index ecbf951..627ac23 100644
--- a/uk/10-cli/README.md
+++ b/uk/10-cli/README.md
@@ -44,7 +44,8 @@ graph TD
| `claude mcp serve` | Запуск Claude Code як MCP-сервера | `claude mcp serve` |
| `claude agents` | Список усіх налаштованих субагентів | `claude agents` |
| `claude auto-mode defaults` | Вивести стандартні правила auto mode як JSON | `claude auto-mode defaults` |
-| `claude --remote-control [name]` | Запуск Remote Control (це прапорець, а не підкоманда; аліас `--rc`) | `claude --rc` |
+| `claude remote-control` | Запуск сервера Remote Control (серверний режим, без локальної інтерактивної сесії; обслуговує кілька сесій, `--capacity` за замовчуванням 32) | `claude remote-control --name "My Project"` |
+| `claude --remote-control [name]` | Запуск інтерактивної сесії з увімкненим Remote Control (аліас `--rc`) | `claude --rc` |
| `claude plugin` | Управління плагінами (встановлення, увімкнення, вимкнення) | `claude plugin install my-plugin` |
| `claude auth login` | Вхід (підтримує `--email`, `--sso`) | `claude auth login --email [email protected]` |
| `claude auth logout` | Вихід з поточного облікового запису | `claude auth logout` |
@@ -780,9 +781,9 @@ claude -p --output-format json "query"
**Проблема:** `claude: command not found`
**Рішення:**
-- Встановіть Claude Code: `npm install -g @anthropic-ai/claude-code`
-- Перевірте, що PATH включає глобальний bin-каталог npm
-- Спробуйте запуск з повним шляхом: `npx claude`
+- Встановіть Claude Code: `curl -fsSL https://claude.ai/install.sh | bash` (нативний, рекомендовано) або `npm install -g @anthropic-ai/claude-code`
+- Перевірте, що PATH включає `~/.local/bin` (нативне встановлення) або глобальний bin-каталог npm
+- Запустіть `claude doctor`
### Проблеми з API-ключем
@@ -837,9 +838,12 @@ claude -p --output-format json "query"
*Частина серії посібників [Claude How To](../)*
---
-**Останнє оновлення**: 10 жовтня 2026
-**Версія Claude Code**: 2.1.296
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/setup
+- https://code.claude.com/docs/en/troubleshoot-install#command-not-found-claude-after-installation
**Сумісні моделі**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/uk/CATALOG.md b/uk/CATALOG.md
index 02ed02a..71bae34 100644
--- a/uk/CATALOG.md
+++ b/uk/CATALOG.md
@@ -23,10 +23,10 @@
| **Субагенти** | 6 | 9 | 15 | [04-subagents/](04-subagents/) |
| **Навички (Skills)** | 10 вбудованих | 6 | 16 | [03-skills/](03-skills/) |
| **Плагіни** | - | 3 | 3 | [07-plugins/](07-plugins/) |
-| **MCP-сервери** | 1 | 4 | 5 | [05-mcp/](05-mcp/) |
+| **MCP-сервери** | - | 4 | 4 | [05-mcp/](05-mcp/) |
| **Хуки** | 33 події | 10 | 43 | [06-hooks/](06-hooks/) |
| **Пам'ять** | 7 типів | 3 | 10 | [02-memory/](02-memory/) |
-| **Разом** | **117** | **43** | **160** | |
+| **Разом** | **116** | **43** | **159** | |
---
@@ -58,7 +58,7 @@
| `/plugin` | Управління плагінами | Встановлення/видалення розширень |
| `/plan` | Увійти в режим планування | Складні реалізації |
| `/rewind` | Відкат до контрольної точки | Скасування змін, дослідження альтернатив |
-| `/checkpoint` | Управління контрольними точками | Збереження/відновлення станів |
+| `/checkpoint` | Псевдонім `/rewind` | Те саме, що `/rewind` |
| `/cost` | Показати витрати на токени | Моніторинг витрат |
| `/context` | Показати використання контекстного вікна | Управління довжиною розмови |
| `/export` | Експортувати розмову | Збереження для довідки |
@@ -72,10 +72,8 @@
| `/release-notes` | Показати нотатки до релізу | Перевірка нових функцій |
| `/remote-control` | Увімкнути віддалене керування | Віддалений доступ |
| `/permissions` | Управління дозволами | Контроль доступу |
-| `/session` | Управління сесіями | Багатосесійні процеси |
| `/rename` | Перейменувати поточну сесію | Організація сесій |
| `/resume` | Відновити попередню сесію | Продовження роботи |
-| `/todo` | Переглянути/управляти списком завдань | Відстеження завдань |
| `/tasks` | Переглянути фонові завдання | Моніторинг асинхронних операцій |
| `/copy` | Скопіювати останню відповідь у буфер | Швидке поширення |
| `/teleport` | Перенести сесію на інший комп'ютер | Продовження роботи віддалено |
@@ -123,7 +121,7 @@ Claude Code підтримує 6 режимів дозволів, що конт
|-------|------|---------------------|
| `default` | Запитувати дозвіл на кожен виклик | Стандартна інтерактивна робота |
| `acceptEdits` | Автоприйняття редагувань, запит на інше | Довірені процеси редагування |
-| `plan` | Лише інструменти читання, без запису | Планування та дослідження |
+| `plan` | Дослідити й запропонувати план; без змін у коді, доки ви його не схвалите | Планування та дослідження |
| `auto` | Усі дії з перевірками фонового класифікатора безпеки | Тривалі завдання, менше запитів на дозвіл |
| `bypassPermissions` | Пропустити всі перевірки дозволів | CI/CD, headless-середовища |
| `dontAsk` | Пропустити інструменти, що потребують дозволу | Неінтерактивне скриптування |
@@ -155,10 +153,10 @@ Claude Code підтримує 6 режимів дозволів, що конт
|------|-----|------|
| `name` | string | Ідентифікатор агента |
| `description` | string | Що робить агент |
-| `model` | string | Перевизначення моделі (наприклад, `haiku-4.5`) |
+| `model` | string | Перевизначення моделі (`sonnet`, `opus`, `haiku`, `fable`, повний ID моделі або `inherit`) |
| `tools` | array | Список дозволених інструментів |
-| `effort` | string | Рівень зусиль міркування (`low`, `medium`, `high`) |
-| `initialPrompt` | string | Системний промпт при старті агента |
+| `effort` | string | Рівень зусиль (`low`, `medium`, `high`, `xhigh`, `max`; залежить від моделі) |
+| `initialPrompt` | string | Перший хід користувача, що надсилається автоматично, коли агент працює як агент основної сесії (`--agent`) |
| `disallowedTools` | array | Інструменти, явно заборонені для цього агента |
### Кастомні субагенти (приклади)
@@ -221,9 +219,9 @@ cp 04-subagents/*.md .claude/agents/
|------|-----|------|
| `name` | string | Відображуване ім'я навички |
| `description` | string | Що робить навичка |
-| `autoInvoke` | array | Фрази-тригери для автовиклику |
-| `effort` | string | Рівень зусиль міркування (`low`, `medium`, `high`) |
-| `shell` | string | Оболонка для скриптів (`bash`, `zsh`, `sh`) |
+| `when_to_use` | string | Фрази-тригери або приклади запитів, що додаються до `description` |
+| `effort` | string | Рівень зусиль (`low`, `medium`, `high`, `xhigh`, `max`; залежить від моделі) |
+| `shell` | string | Оболонка для вбудованих блоків `` !`command` `` (`bash` за замовчуванням або `powershell`) |
**Довідник**: [03-skills/](03-skills/) | [Офіційна документація](https://code.claude.com/docs/en/skills)
@@ -301,7 +299,7 @@ claude plugin update <name> # Оновити плагін (CLI; форма з
| **Asana** | Управління проектами | Відстеження завдань | Проект | Налаштування в settings |
| **Stripe** | Платіжні дані | Фінансовий аналіз | Проект | Налаштування в settings |
| **Memory** | Постійна пам'ять | Згадування між сесіями | Користувач | Налаштування в settings |
-| **Context7** | Документація бібліотек | Пошук актуальної документації | Вбудований | Вбудований |
+| **Context7** | Документація бібліотек | Пошук актуальної документації | Користувач | Налаштування в settings (сторонній сервер) |
> **Область**: `Проект` = командний (`.mcp.json`), `Користувач` = персональний (`~/.claude.json`), `Вбудований` = попередньо встановлений
@@ -340,10 +338,10 @@ export GITHUB_TOKEN="your_token" && claude mcp add github -- npx -y @modelcontex
| Подія | Опис | Коли спрацьовує | Сценарії |
|-------|------|----------------|----------|
| `SessionStart` | Початок/відновлення сесії | Ініціалізація сесії | Завдання налаштування |
-| `Setup` | Початкове налаштування середовища (один раз на сесію) | Перший запуск сесії | Підготовка інструментів, встановлення залежностей |
+| `Setup` | Налаштування або обслуговування репозиторію | Лише з `--init-only` або з `--init`/`--maintenance` разом із `-p` | Підготовка інструментів, встановлення залежностей |
| `InstructionsLoaded` | Інструкції завантажені | Завантажено CLAUDE.md або rules | Обробка кастомних інструкцій |
| `UserPromptSubmit` | Перед обробкою промпту | Користувач надсилає повідомлення | Валідація вводу |
-| `UserPromptExpansion` | Промпт розгорнуто (@-згадки, слеш-команди) | Після розгортання, перед надсиланням | Перетворення чи перевірка розгорнутого промпту |
+| `UserPromptExpansion` | Введена слеш-команда (навичка, власна команда або MCP-промпт) розгортається в промпт | Після `UserPromptSubmit`, до того як розгорнутий промпт потрапить до Claude | Блокування прямого виклику `/command`, контекст для навички, журналювання команд |
| `PreToolUse` | Перед виконанням інструменту | Перед запуском будь-якого інструменту | Валідація, логування |
| `PermissionRequest` | Діалог дозволу | Перед чутливими діями | Кастомні потоки схвалення |
| `PermissionDenied` | Користувач відхилив запит дозволу | Після відмови в дозволі | Логування, аналітика, застосування політик |
@@ -453,7 +451,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| Функція | Опис | Як використовувати |
|---------|------|--------------------|
| **Віддалене керування** | Керування сесіями Claude Code віддалено через API | API віддаленого керування для програмної відправки промптів |
-| **Веб-сесії** | Запуск Claude Code у браузерному середовищі | Доступ через `claude web` або Anthropic Console |
+| **Веб-сесії** | Запуск Claude Code у хмарній сесії | Запуск через `claude --cloud "task"` або на claude.ai/code |
| **Десктопний застосунок** | Нативний десктопний застосунок Claude Code | `/desktop` або завантаження з сайту Anthropic |
| **Команди агентів** | Координація кількох агентів для пов'язаних завдань | Налаштування агентів-партнерів для співпраці |
| **Список завдань** | Управління та моніторинг фонових завдань | `/tasks` для перегляду та управління |
@@ -463,7 +461,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **MCP OAuth** | OAuth-автентифікація для MCP-серверів | OAuth-облікові дані в налаштуваннях MCP |
| **MCP Tool Search** | Динамічний пошук MCP-інструментів | Пошук доступних MCP-інструментів |
| **Заплановані завдання** | Повторювані завдання з `/loop` та cron | `/loop 5m /command` або CronCreate |
-| **Інтеграція з Chrome** | Автоматизація браузера через headless Chromium | Прапорець `--chrome` або `/chrome` |
+| **Інтеграція з Chrome** | Керування вашим власним Chrome/Edge (видиме вікно, ваші входи) через розширення Claude in Chrome | Прапорець `--chrome` або `/chrome` |
| **Кастомізація клавіатури** | Налаштування клавіш з підтримкою акордів | `/keybindings` або `~/.claude/keybindings.json` |
| **Auto Mode** | Повністю автономна робота з перевірками фонового класифікатора безпеки | `Shift+Tab` для перемикання, або `--permission-mode auto` |
| **Канали** | Багатоканальна комунікація (Telegram, Slack тощо) (Research Preview) | Налаштування канальних плагінів |
@@ -532,8 +530,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**Останнє оновлення**: 10 жовтня 2026
-**Версія Claude Code**: 2.1.296
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/commands
@@ -541,3 +539,8 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/sub-agents
+- https://code.claude.com/docs/en/permission-modes
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/skills
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/chrome
diff --git a/uk/INDEX.md b/uk/INDEX.md
index 8110e37..58fdedd 100644
--- a/uk/INDEX.md
+++ b/uk/INDEX.md
@@ -390,7 +390,7 @@ documentation/
| `planning-mode-examples.md` | Приклади планування | REST API, міграція БД, рефакторинг |
| `setup-auto-mode-permissions.py` | Початкове заповнення `permissions.allow` для режиму auto | Ідемпотентний, `--dry-run` та явні прапорці |
| Заплановані завдання | Повторювані завдання з `/loop` та cron | Автоматичні повторювані процеси |
-| Інтеграція з Chrome | Автоматизація браузера через headless Chromium | Веб-тестування та скрейпінг |
+| Інтеграція з Chrome | Автоматизація браузера у вашому Chrome через розширення Claude in Chrome | Веб-тестування та скрейпінг |
| Віддалене керування (розширено) | Методи підключення, безпека, порівняння | Управління віддаленими сесіями |
| Налаштування клавіатури | Кастомні клавіші, акорди, контексти | Персоналізовані ярлики |
| Десктопний застосунок (розширено) | Конектори, launch.json, Enterprise | Десктопна інтеграція |
@@ -457,7 +457,7 @@ documentation/
### Інтеграція з Chrome
-- Автоматизація браузера через headless Chromium
+- Автоматизація браузера у вашому Chrome через розширення Claude in Chrome
- Веб-тестування та скрейпінг
- Взаємодія зі сторінками та витяг даних
@@ -493,10 +493,10 @@ documentation/
- `claude` — Запуск інтерактивної сесії
- `claude -p "prompt"` — Headless/неінтерактивний режим
-- `claude web` — Запуск веб-сесії
+- `claude --cloud "task"` — Запуск хмарної (веб) сесії
- `claude --model` — Вибір моделі (Sonnet 4.6, Opus 4.6)
- `claude --permission-mode` — Встановлення режиму дозволів
-- `claude --remote` — Увімкнення віддаленого керування через WebSocket
+- `claude --remote-control` — Запуск сесії, якою також можна керувати з claude.ai або застосунку Claude
---
@@ -932,8 +932,8 @@ Run tests in background
---
-**Останнє оновлення**: 19 вересня 2026
-**Версія Claude Code**: 2.1.278
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Прикладів**: 100+ файлів
**Категорій**: 10 функцій
**Хуків**: 8 скриптів автоматизації
@@ -942,3 +942,6 @@ Run tests in background
**Джерела**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/chrome
diff --git a/uk/LEARNING-ROADMAP.md b/uk/LEARNING-ROADMAP.md
index f5cb6eb..1152f62 100644
--- a/uk/LEARNING-ROADMAP.md
+++ b/uk/LEARNING-ROADMAP.md
@@ -422,7 +422,7 @@ claude --permission-mode auto "implement the feature"
claude --permission-mode auto "implement user settings page"
# Вправа 6: Команди агентів
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Попросіть Claude: "Implement feature X using a team approach"
# Вправа 7: Заплановані завдання
@@ -790,10 +790,11 @@ done
---
-**Останнє оновлення**: 2 вересня 2026
-**Версія Claude Code**: 2.1.257
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/agent-teams
**Підтримується**: Контриб'ютори Claude How-To
**Ліцензія**: Освітні цілі, вільне використання та адаптація
diff --git a/uk/QUICK_REFERENCE.md b/uk/QUICK_REFERENCE.md
index 7677d3b..e69afd5 100644
--- a/uk/QUICK_REFERENCE.md
+++ b/uk/QUICK_REFERENCE.md
@@ -136,13 +136,13 @@ claude -r "session" # Відновити сесію за назвою/ID
| **Контрольні точки** | Вбудовано | `Esc+Esc` або `/rewind` |
| **Режим планування** | Вбудовано | `/plan <завдання>` |
| **Режими дозволів (6)** | Вбудовано | `--allowedTools`, `--permission-mode` |
-| **Сесії** | Вбудовано | `/session <команда>` |
+| **Сесії** | Вбудовано | `/resume`, `/rename`, `/branch`, `/fork` |
| **Фонові завдання** | Вбудовано | Run in background |
-| **Віддалене керування** | Вбудовано | WebSocket API |
-| **Веб-сесії** | Вбудовано | `claude web` |
-| **Git Worktrees** | Вбудовано | `/worktree` |
-| **Автопам'ять** | Вбудовано | Автозбереження в CLAUDE.md |
-| **Список завдань** | Вбудовано | `/task list` |
+| **Віддалене керування** | Вбудовано | `claude --remote-control` або `/remote-control` |
+| **Веб-сесії** | Вбудовано | `claude --cloud "task"` |
+| **Git Worktrees** | Вбудовано | `claude -w <name>` |
+| **Автопам'ять** | Вбудовано | Автозбереження в `~/.claude/projects/<project>/memory/` |
+| **Список завдань** | Вбудовано | `Ctrl+T` (чеклист), `/tasks` (фонова робота) |
| **Вбудовані навички (5)** | Вбудовано | `/simplify`, `/loop`, `/claude-api`, `/voice`, `/browse` |
---
@@ -272,10 +272,10 @@ claude --permission-mode plan
```bash
# Увімкнути команди агентів
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Або в settings.json
-{ "agentTeams": { "enabled": true } }
+{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }
# Почніть з: "Implement feature X using a team approach"
```
@@ -424,14 +424,14 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **Хуки (33 події)** | Розширена система хуків з 5 типами | Типи: command, http, mcp_tool, prompt, agent |
| **MCP Elicitation** | MCP-сервери можуть запитувати ввід під час виконання | Автозапит при потребі сервера |
| **Plugin LSP** | Підтримка Language Server Protocol для плагінів | `userConfig`, змінна `${CLAUDE_PLUGIN_DATA}` |
-| **Віддалене керування** | Керування Claude Code через WebSocket API | `claude --remote` для зовнішніх інтеграцій |
-| **Веб-сесії** | Браузерний інтерфейс Claude Code | `claude web` для запуску |
+| **Віддалене керування** | Керування локальною сесією з claude.ai або застосунку Claude | `claude --remote-control` (або `/remote-control` у сесії) |
+| **Веб-сесії** | Хмарні сесії на claude.ai/code | `claude --cloud "task"` для запуску з термінала |
| **Десктопний застосунок** | Нативний десктопний застосунок | Завантаження з claude.ai/download |
-| **Список завдань** | Управління фоновими завданнями | `/task list`, `/task status <id>` |
-| **Автопам'ять** | Автоматичне збереження з розмов | Claude автозберігає контекст у CLAUDE.md |
-| **Git Worktrees** | Ізольовані робочі простори для паралельної розробки | `/worktree` для створення |
+| **Список завдань** | Управління фоновими завданнями | `/tasks` (псевдонім `/bashes`) |
+| **Автопам'ять** | Автоматичне збереження з розмов | Claude зберігає нотатки в `~/.claude/projects/<project>/memory/MEMORY.md`; керування через `/memory` |
+| **Git Worktrees** | Ізольовані робочі простори для паралельної розробки | `claude --worktree <name>` (або `-w`) |
| **Вибір моделі** | Перемикання між Fable 5.1, Fable 5, Opus 5, Sonnet 5, Sonnet 4.6, Opus 4.8 та Haiku 4.5 | `/model` або прапорець `--model` |
-| **Команди агентів** | Координація кількох агентів | Увімкнути з `CLAUDE_AGENT_TEAMS=1` |
+| **Команди агентів** | Координація кількох агентів | Увімкнути з `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` (експериментально) |
| **Заплановані завдання** | Повторювані завдання з `/loop` | `/loop 5m /command` або CronCreate |
| **Інтеграція з Chrome** | Автоматизація браузера | Прапорець `--chrome` або `/chrome` |
| **Кастомізація клавіатури** | Налаштування клавіш | Команда `/keybindings` |
@@ -541,7 +541,12 @@ echo $GITHUB_TOKEN
---
-**Останнє оновлення**: 2 вересня 2026
-**Версія Claude Code**: 2.1.257
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/memory#storage-location
diff --git a/uk/claude_concepts_guide.md b/uk/claude_concepts_guide.md
index a51ec0f..337cead 100644
--- a/uk/claude_concepts_guide.md
+++ b/uk/claude_concepts_guide.md
@@ -263,8 +263,8 @@ sequenceDiagram
|---------------|------|---------|---------|
| `name` | String | Ідентифікатор агента | `code-reviewer` |
| `description` | String | Призначення та ключові слова | `Comprehensive code quality analysis` |
-| `tools` | List/String | Дозволені можливості | `read, grep, diff, lint_runner` |
-| `system_prompt` | Markdown | Поведінкові інструкції | Користувацькі настанови |
+| `tools` | List/String | Дозволені інструменти | `Read, Grep, Glob, Bash` |
+| *(тіло markdown)* | Markdown | Системний промпт / поведінкові інструкції | Користувацькі настанови |
### Ієрархія доступу до інструментів
@@ -289,7 +289,7 @@ graph TD
---
name: code-reviewer
description: Comprehensive code quality and maintainability analysis
-tools: read, grep, diff, lint_runner
+tools: Read, Grep, Glob, Bash
---
# Code Reviewer Agent
@@ -2816,7 +2816,7 @@ Claude Code підтримує **33 події хуків** у п'яти тип
| **Setup** | Початкове налаштування середовища (один раз на сесію) | Підготовка інструментів, встановлення залежностей |
| **InstructionsLoaded** | Завантажено CLAUDE.md або файл правил | Валідація, трансформація, доповнення |
| **UserPromptSubmit** | Користувач надсилає промпт | Валідація вводу, фільтрація промптів |
-| **UserPromptExpansion** | Промпт розгорнуто (@-згадки, слеш-команди) | Перетворення чи перевірка розгорнутого промпту |
+| **UserPromptExpansion** | Введена слеш-команда (навичка, користувацька команда, MCP-промпт) розгортається в промпт; може заблокувати розгортання | Блокування чи логування прямого використання `/command`, додавання контексту для навички |
| **PreToolUse** | Перед запуском будь-якого інструменту | Валідація, шлюзи затвердження, логування |
| **PermissionRequest** | Показано діалог дозволу | Авто-затвердження/відхилення |
| **PermissionDenied** | Користувач відхилив запит дозволу | Логування, аналітика, політики |
@@ -2859,7 +2859,7 @@ Claude Code підтримує **33 події хуків** у п'яти тип
"hooks": [
{
"type": "command",
- "command": "prettier --write $CLAUDE_FILE_PATH"
+ "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write"
}
]
}
@@ -2870,7 +2870,7 @@ Claude Code підтримує **33 події хуків** у п'яти тип
"hooks": [
{
"type": "command",
- "command": "eslint $CLAUDE_FILE_PATH"
+ "command": "jq -r '.tool_input.file_path' | xargs npx eslint"
}
]
}
@@ -2881,9 +2881,8 @@ Claude Code підтримує **33 події хуків** у п'яти тип
### Змінні середовища хуків
-- `$CLAUDE_FILE_PATH` — Шлях до файлу, що редагується/записується
-- `$CLAUDE_TOOL_NAME` — Назва інструменту, що використовується
-- `$CLAUDE_SESSION_ID` — Ідентифікатор поточної сесії
+- Вхідні дані хука надходять як JSON через stdin (`session_id`, `tool_name`, `tool_input.file_path`, …) — читайте їх за допомогою `jq`
+- `$CLAUDE_CODE_SESSION_ID` — Ідентифікатор поточної сесії
- `$CLAUDE_PROJECT_DIR` — Шлях до каталогу проєкту
### Найкращі практики
@@ -3004,10 +3003,7 @@ User: Run tests in background
Claude: Started task bg-1234
-/task list # Show all tasks
-/task status bg-1234 # Check progress
-/task show bg-1234 # View output
-/task cancel bg-1234 # Cancel task
+/tasks # View and manage background work (alias: /bashes)
```
### Режими дозволів
@@ -3020,7 +3016,7 @@ Claude: Started task bg-1234
| **acceptEdits** | Автоматично приймати редагування файлів без підтвердження | Довірені робочі процеси редагування |
| **plan** | Лише аналіз і планування, без модифікації файлів | Код-рев'ю, планування архітектури |
| **auto** | Автоматично затверджувати безпечні дії, запитувати лише ризиковані | Збалансована автономія з безпекою |
-| **dontAsk** | Виконувати всі дії без запитів підтвердження | Досвідчені користувачі, автоматизація |
+| **dontAsk** | Автоматично відхиляє все, що потребує запиту; виконуються лише попередньо схвалені інструменти та читання | Закриті CI та скрипти |
| **bypassPermissions** | Повний необмежений доступ, без перевірок безпеки | CI/CD-конвеєри, довірені скрипти |
**Використання:**
@@ -3028,7 +3024,7 @@ Claude: Started task bg-1234
claude --permission-mode plan # Read-only analysis
claude --permission-mode acceptEdits # Auto-accept edits
claude --permission-mode auto # Auto-approve safe actions
-claude --permission-mode dontAsk # No confirmation prompts
+claude --permission-mode dontAsk # Pre-approved tools only; deny the rest
```
### Headless-режим (режим друку)
@@ -3137,9 +3133,12 @@ User: \
*Тепер включає: хуки, контрольні точки, режим планування, розширене мислення, фонові завдання, режими дозволів (6 режимів), headless-режим, управління сесіями, авто-пам'ять, команди агентів, заплановані завдання, інтеграцію з Chrome, канали, голосовий ввід та комплектні навички*
---
-**Останнє оновлення**: 26 вересня 2026
-**Версія Claude Code**: 2.1.283
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
**Джерела**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/sub-agents
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/permission-modes
+- https://code.claude.com/docs/en/hooks#userpromptexpansion
diff --git a/uk/resources.md b/uk/resources.md
index d4ceb0a..c238a39 100644
--- a/uk/resources.md
+++ b/uk/resources.md
@@ -248,8 +248,11 @@ graph TD
| **Hook Events** | 33 події: PreToolUse, PostToolUse, PostToolUseFailure, Stop, StopFailure, SubagentStart, SubagentStop, Notification, Elicitation та інші | [Посібник з хуків](06-hooks/) |
| **Agent Teams** | Координація кількох агентів для складних завдань | [Посібник з субагентів](04-subagents/) |
| **Scheduled Tasks** | Налаштування повторюваних завдань з `/loop` та cron | [Просунуті функції](09-advanced-features/) |
-| **Chrome Integration** | Автоматизація браузера з headless Chromium | [Просунуті функції](09-advanced-features/) |
+| **Chrome Integration** | Автоматизація браузера у вашому Chrome через розширення Claude in Chrome | [Просунуті функції](09-advanced-features/) |
| **Keyboard Customization** | Налаштування клавіатурних скорочень включаючи chord-послідовності | [Просунуті функції](09-advanced-features/) |
---
-**Останнє оновлення**: Квітень 2026
+**Останнє оновлення**: 15 жовтня 2026
+**Версія Claude Code**: 2.1.300
+**Джерела**:
+- https://code.claude.com/docs/en/chrome
diff --git a/vi/01-slash-commands/README.md b/vi/01-slash-commands/README.md
index e41c043..e287cbc 100644
--- a/vi/01-slash-commands/README.md
+++ b/vi/01-slash-commands/README.md
@@ -18,7 +18,7 @@ Lệnh slash là các lối tắt để điều khiển hành vi của Claude tr
## Tham Khảo Lệnh Tích Hợp Sẵn
-Lệnh tích hợp sẵn là các lối tắt cho các hành động phổ biến. Có **60+ lệnh tích hợp sẵn** và **10 skills được gói** sẵn. Gõ `/` trong Claude Code để xem danh sách đầy đủ, hoặc gõ `/` theo sau bởi bất kỳ chữ cái nào để lọc.
+Lệnh tích hợp sẵn là các lối tắt cho các hành động phổ biến. Có **60+ lệnh tích hợp sẵn** và **khoảng 20 skills được gói** sẵn. Gõ `/` trong Claude Code để xem danh sách đầy đủ, hoặc gõ `/` theo sau bởi bất kỳ chữ cái nào để lọc.
| Lệnh | Mục Đích |
|---------|---------|
@@ -198,7 +198,7 @@ Hướng dẫn cho Claude để theo khi lệnh này được gọi.
| `user-invocable` | Nếu `false`, ẩn từ menu `/` | `true` |
| `context` | Đặt thành `fork` để chạy trong tác nhân con cô lập | Không có |
| `agent` | Loại tác nhân khi sử dụng `context: fork` | `general-purpose` |
-| `hooks` | Hooks theo phạm vi skill (PreToolUse, PostToolUse, Stop) | Không có |
+| `hooks` | Hooks được đăng ký khi skill chạy (mọi sự kiện hook; chúng vẫn hoạt động trong suốt phần còn lại của phiên) | Không có |
### Đối Số
@@ -234,6 +234,8 @@ Cách sử dụng: `/review-pr 456 high` → `$0`="456", `$1`="high"
Thực thi các lệnh bash trước prompt sử dụng `` !`command` ``:
+> **Lưu ý (v2.1.299)**: Hooks `UserPromptSubmit` chạy trước khi lệnh được mở rộng, nên một hook chặn prompt cũng sẽ ngăn các lệnh `!` này chạy.
+
```yaml
---
name: commit
@@ -301,6 +303,8 @@ Kiểm soát quyền truy cập MCP server trong quyền:
- `mcp__github__*` - Truy cập wildcard cho tất cả công cụ
- `mcp__github__get_issue` - Truy cập công cụ cụ thể
+> **v2.1.299+:** Một quy tắc chỉ áp dụng cho server mà nó nêu tên — `mcp__github` không còn khớp với server tên `github__x` hoặc `github_`. Với server có tên đã chuẩn hóa chứa `__`, hãy viết `mcp__<toàn bộ tên đã chuẩn hóa>__*` (điều này cũng áp dụng cho danh sách `tools:` của subagent).
+
## Kiến Trúc Lệnh
```mermaid
@@ -557,12 +561,16 @@ Nếu cả hai tồn tại với cùng tên, **skill sẽ được ưu tiên**.
---
-**Cập Nhật Lần Cuối**: Ngày 26 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.283
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/output-styles
- https://github.com/anthropics/claude-code/releases/tag/v2.1.281
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/permissions#mcp
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
**Các Mô Hình Tương Thích**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
*Phần của series hướng dẫn [Claude How To](../)*
diff --git a/vi/02-memory/README.md b/vi/02-memory/README.md
index 396bc49..a39cd77 100644
--- a/vi/02-memory/README.md
+++ b/vi/02-memory/README.md
@@ -495,15 +495,15 @@ Tất cả các worktrees và thư mục con trong cùng một git repository ch
### Bộ Nhớ Subagent
-Các subagent (được tạo ra qua các công cụ như Task hoặc thực thi song song) có thể có bối cảnh bộ nhớ riêng của chúng. Sử dụng trường frontmatter `memory` trong định nghĩa subagent để chỉ định các phạm vi bộ nhớ nào để tải:
+Các subagent (được tạo ra qua công cụ Agent) có thể giữ bộ nhớ lâu dài riêng của chúng. Trường frontmatter `memory` trong định nghĩa subagent chọn nơi đặt thư mục bộ nhớ đó:
```yaml
-memory: user # Chỉ tải bộ nhớ cấp người dùng
-memory: project # Chỉ tải bộ nhớ cấp dự án
-memory: local # Chỉ tải bộ nhớ cục bộ
+memory: user # ~/.claude/agent-memory/<agent-name>/
+memory: project # .claude/agent-memory/<agent-name>/ (có thể chia sẻ qua git)
+memory: local # .claude/agent-memory-local/<agent-name>/ (không commit)
```
-Điều này cho phép các subagent hoạt động với bối cảnh tập trung thay vì kế thừa toàn bộ hệ phân cấp bộ nhớ.
+Subagent đọc 200 dòng đầu / 25KB đầu của `MEMORY.md` trong thư mục đó khi khởi động và được cấp Read/Write/Edit để duy trì nó. Trường này không có tác dụng khi auto memory bị tắt.
### Kiểm Soát Auto Memory
@@ -1159,11 +1159,12 @@ Claude sẽ nhắc bạn chọn file bộ nhớ nào để cập nhật.
---
-**Cập Nhật Lần Cuối**: Ngày 10 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.296
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/memory#agents-md
- https://github.com/anthropics/claude-code/releases/tag/v2.1.288
- https://github.com/anthropics/claude-code/releases/tag/v2.1.293
+- https://code.claude.com/docs/en/sub-agents#enable-persistent-memory
**Các Mô Hình Tương Thích**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/vi/03-skills/README.md b/vi/03-skills/README.md
index 44b2051..08d24d4 100644
--- a/vi/03-skills/README.md
+++ b/vi/03-skills/README.md
@@ -92,7 +92,7 @@ sequenceDiagram
| **Project** | `.claude/skills/<skill-name>/SKILL.md` | Đội | Có (qua git) | Tiêu chuẩn đội |
| **Plugin** | `<plugin>/skills/<skill-name>/SKILL.md` | Nơi được bật | Phụ thuộc | Được gói với plugins |
-Khi skills chia sẻ cùng tên qua các cấp, vị trí ưu tiên cao hơn thắng: **enterprise > personal > project**. Skills cá nhân ghi đè skills cấp project theo mặc định; setting `skillOverrides` (v2.1.129+) điều chỉnh hành vi đó. Plugin skills sử dụng namespace `plugin-name:skill-name`, vì vậy chúng không thể xung đột.
+Khi skills chia sẻ cùng tên qua các cấp, vị trí ưu tiên cao hơn thắng: **enterprise > personal > project**. Khi cùng tên tồn tại trong `~/.claude/skills/` và `.claude/skills/`, skill cá nhân sẽ chạy. Setting `skillOverrides` (v2.1.129+) chỉ điều chỉnh khả năng hiển thị của từng skill (`on`, `name-only`, `user-invocable-only`, `off`), không thay đổi thứ tự ưu tiên, và không ảnh hưởng đến plugin skills. Plugin skills sử dụng namespace `plugin-name:skill-name`, vì vậy chúng không thể xung đột.
### Khám Phá Tự Động
@@ -136,7 +136,7 @@ Hiển thị các ví dụ cụ thể về việc sử dụng Skill này.
### Các Trường Khuyến Nghị
- **description** (khuyến nghị): những gì Skill làm VÀ khi nào sử dụng nó. Nếu bỏ trống, Claude Code dùng đoạn văn đầu tiên của nội dung markdown. Nội dung `description` + `when_to_use` gộp lại bị cắt ở **1.536 ký tự** trong danh sách skill (có thể điều chỉnh qua `skillListingMaxDescChars`). Đây là nội dung Claude đối chiếu để quyết định khi nào kích hoạt skill.
-- **name** (tùy chọn): mặc định lấy theo **tên thư mục** của skill. Khi được khai báo, nó đặt tên hiển thị — chỉ chữ thường, số, gạch ngang (tối đa 64 ký tự). Trong Claude Code, `anthropic-skills` và `synced` là tên dành riêng và không được tải bên ngoài plugin; quy tắc chặt hơn cấm "anthropic" hoặc "claude" áp dụng cho các skill được tải lên claude.ai hoặc Skills API. Với skill trong plugin, `name` cũng đặt phân đoạn cuối của lệnh.
+- **name** (tùy chọn): mặc định lấy theo **tên thư mục** của skill. Khi được khai báo, nó đặt tên hiển thị — chỉ chữ thường, số, gạch ngang (tối đa 64 ký tự) là dạng được khuyến nghị và có tính di động (bắt buộc với claude.ai và Skills API). Bản thân Claude Code (v2.1.299+) bỏ qua một skill hoặc lệnh có tên chứa ký tự ẩn, ký tự đổi hướng văn bản hoặc ký tự giống khoảng trắng, `<` hoặc `>`, hoặc dài quá 256 ký tự, cho đến khi bạn đổi tên nó. Trong Claude Code, `anthropic-skills` và `synced` là tên dành riêng và không được tải bên ngoài plugin; quy tắc chặt hơn cấm "anthropic" hoặc "claude" áp dụng cho các skill được tải lên claude.ai hoặc Skills API. Với skill trong plugin, `name` cũng đặt phân đoạn cuối của lệnh.
Mọi trường frontmatter trong SKILL.md đều là tùy chọn; `description` là trường duy nhất được khuyến nghị.
@@ -149,13 +149,13 @@ description: What this skill does and when to use it
argument-hint: "[filename] [format]" # Gợi ý cho autocomplete
disable-model-invocation: true # Chỉ người dùng có thể gọi
user-invocable: false # Ẩn từ menu slash
-allowed-tools: Read, Grep, Glob # Hạn chế truy cập công cụ
+allowed-tools: Read, Grep, Glob # Phê duyệt trước các công cụ này (không hỏi quyền) khi skill chạy
model: opus # Mô hình cụ thể để sử dụng
effort: high # Ghi đè mức nỗ lực (low, medium, high, max)
context: fork # Chạy trong tác nhân con cô lập
agent: Explore # Loại tác nhân nào (với context: fork)
shell: bash # Shell cho các lệnh: bash (mặc định) hoặc powershell
-hooks: # Hooks theo phạm vi skill
+hooks: # Hooks được đăng ký khi skill được gọi
PreToolUse:
- matcher: "Bash"
hooks:
@@ -166,7 +166,7 @@ hooks: # Hooks theo phạm vi skill
| Trường | Mô Tả |
|-------|-------------|
-| `name` | Chỉ chữ thường, số, gạch ngang (tối đa 64 ký tự). `anthropic-skills` và `synced` là tên dành riêng trong Claude Code. |
+| `name` | Khuyến nghị (di động): chỉ chữ thường, số, gạch ngang (tối đa 64 ký tự). `anthropic-skills` và `synced` là tên dành riêng trong Claude Code. |
| `description` | Những gì Skill làm VÀ khi nào sử dụng nó. Nội dung `description` + `when_to_use` gộp lại bị cắt ở 1.536 ký tự trong danh sách skill (có thể điều chỉnh qua `skillListingMaxDescChars`). Quan trọng cho phù hợp kích hoạt tự động. |
| `when_to_use` | Bối cảnh bổ sung về thời điểm Claude nên gọi skill. Được nối vào `description` trong danh sách skill và tính vào giới hạn 1.536 ký tự. |
| `argument-hint` | Gợi ý hiển thị trong menu autocomplete `/` (ví dụ: `"[filename] [format]"`). |
@@ -178,7 +178,7 @@ hooks: # Hooks theo phạm vi skill
| `context` | `fork` để chạy skill trong bối cảnh tác nhân con được fork với cửa sổ bối cảnh riêng. |
| `agent` | Loại tác nhân con khi `context: fork` (ví dụ: `Explore`, `Plan`, `general-purpose`). |
| `shell` | Shell được sử dụng cho các thay thế `` !`command` `` và scripts: `bash` (mặc định) hoặc `powershell`. |
-| `hooks` | Hooks theo phạm vi vòng đời skill này (cùng định dạng với hooks toàn cục). |
+| `hooks` | Hooks được đăng ký khi skill được gọi (cùng định dạng với hooks trong settings; mọi sự kiện). Chúng vẫn hoạt động trong suốt phần còn lại của phiên. |
## Các Loại Nội Dung Skill
@@ -265,6 +265,8 @@ Chạy `/fix-issue 123` thay thế `$ARGUMENTS` bằng `123`.
Cú pháp `` !`command` `` chạy các lệnh shell trước khi nội dung skill được gửi đến Claude:
+> **Lưu ý (v2.1.299)**: Hooks `UserPromptSubmit` chạy trước khi lệnh được mở rộng, nên một hook chặn prompt cũng sẽ ngăn các lệnh `!` này chạy.
+
```yaml
---
name: pr-summary
@@ -493,11 +495,11 @@ description: Create or update CLAUDE.md files following best practices for optim
## Core Principles
-**LLMs are stateless**: CLAUDE.md is the only file automatically included in every conversation.
+**LLMs are stateless**: CLAUDE.md is the main project file loaded into every conversation (alongside auto memory and unscoped rules).
### The Golden Rules
-1. **Less is More**: Keep under 300 lines (ideally under 100)
+1. **Less is More**: Keep each CLAUDE.md under 200 lines
2. **Universal Applicability**: Only include information relevant to EVERY session
3. **Don't Use Claude as a Linter**: Use deterministic tools instead
4. **Never Auto-Generate**: Craft it manually with careful consideration
@@ -808,8 +810,15 @@ Khi bạn bắt đầu xây dựng skills một cách nghiêm túc, hai điều
---
-**Cập Nhật Lần Cuối**: Ngày 26 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.283
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/skills
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/skills#characters-a-skill-name-cant-hold
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/skills#pre-approve-tools-for-a-skill
+- https://code.claude.com/docs/en/memory#write-effective-instructions
+- https://code.claude.com/docs/en/memory
**Các Mô Hình Tương Thích**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/vi/03-skills/claude-md/SKILL.md b/vi/03-skills/claude-md/SKILL.md
index 0bc1af3..20d6d41 100644
--- a/vi/03-skills/claude-md/SKILL.md
+++ b/vi/03-skills/claude-md/SKILL.md
@@ -17,7 +17,7 @@ Bạn **BẮT BUỘC** phải xem xét đầu vào của người dùng trước
## Nguyên Tắc Cốt Lõi
-**LLMs là không trạng thái**: CLAUDE.md là file duy nhất được bao gồm tự động trong mọi cuộc hội thoại. Nó phục vụ như tài liệu onboarding chính cho các tác nhân AI vào codebase của bạn.
+**LLMs là không trạng thái**: CLAUDE.md là file dự án chính được tải vào mọi cuộc hội thoại (cùng với auto memory và các rules không giới hạn phạm vi). Nó phục vụ như tài liệu onboarding chính cho các tác nhân AI vào codebase của bạn.
### Các Quy Tắc Vàng
@@ -214,3 +214,10 @@ Subagents được định nghĩa riêng, trong `.claude/agents/*.md` — không
- Lời nhắc hệ thống cho Claude biết rằng CLAUDE.md "có thể hoặc có thể không liên quan" - càng nhiều tiếng ồn, càng bị bỏ qua
- Monorepos hưởng lợi nhất từ cấu trúc WHAT/WHY/HOW rõ ràng
- Các file CLAUDE.md cụ thể thư mục nên được tập trung hơn nữa
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/memory
diff --git a/vi/04-subagents/README.md b/vi/04-subagents/README.md
index ff7885f..0d1d94a 100644
--- a/vi/04-subagents/README.md
+++ b/vi/04-subagents/README.md
@@ -119,14 +119,14 @@ của tác nhân con để giải quyết vấn đề.
|-------|----------|-------------|
| `name` | Có | Định danh duy nhất (chữ thường và dấu gạch ngang) |
| `description` | Có | Mô tả ngôn ngữ của mục đích. Bao gồm "use PROACTIVELY" để khuyến khích gọi tự động |
-| `tools` | Không | Danh sách phân tách bằng dấu phẩy của các công cụ cụ thể. Bỏ qua để kế thừa tất cả công cụ. Hỗ trợ cú pháp `Agent(agent_name)` để hạn chế tác nhân con có thể tạo |
+| `tools` | Không | Danh sách phân tách bằng dấu phẩy của các công cụ cụ thể. Bỏ qua để kế thừa tất cả công cụ. Hỗ trợ cú pháp `Agent(agent_name)` để hạn chế tác nhân con có thể tạo. MCP: `mcp__<server>__*` cấp quyền cho toàn bộ một server (v2.1.299+: chỉ khớp đúng tên server đó). |
| `disallowedTools` | Không | Danh sách phân tách bằng dấu phẩy của các công cụ mà tác nhân con không được sử dụng |
| `model` | Không | Mô hình để sử dụng: `sonnet`, `opus`, `haiku`, ID mô hình đầy đủ, hoặc `inherit`. Mặc định là mô hình tác nhân con được cấu hình |
-| `permissionMode` | Không | `manual` (đổi tên từ `default` ở v2.1.200 — tên cũ `default` vẫn được chấp nhận), `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, `auto` |
+| `permissionMode` | Không | `default` (chế độ Manual; `manual` được chấp nhận như bí danh từ v2.1.200), `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, `auto`. Khi tác nhân cha chạy ở `bypassPermissions`, `acceptEdits` hoặc `auto`, `permissionMode` của tác nhân con bị bỏ qua |
| `maxTurns` | Không | Số lượng lượt tác nhân tối đa mà tác nhân con có thể thực hiện |
| `skills` | Không | Danh sách phân tách bằng dấu phẩy của các skills để tải trước. Tiêm toàn bộ nội dung skill vào bối cảnh của tác nhân con khi khởi động |
| `mcpServers` | Không | MCP servers để cung cấp cho tác nhân con |
-| `hooks` | Không | Hooks theo phạm vi component (PreToolUse, PostToolUse, Stop) |
+| `hooks` | Không | Hooks chỉ chạy khi tác nhân con này đang hoạt động. Hỗ trợ mọi sự kiện hook; phổ biến nhất là `PreToolUse`, `PostToolUse`, `Stop` (chạy dưới dạng `SubagentStop`) |
| `memory` | Không | Phạm vi thư mục bộ nhớ liên tục: `user`, `project`, hoặc `local` |
| `background` | Không | Đặt thành `true` để luôn chạy tác nhân con này như một tác vụ nền |
| `effort` | Không | Mức độ nỗ lực lý luận: `low`, `medium`, `high`, hoặc `max` |
@@ -368,11 +368,7 @@ claude --agent code-reviewer
### Liệt Kê Các Tác Nhân Có Sẵn
-Sử dụng lệnh `claude agents` để liệt kê tất cả các tác nhân được cấu hình từ tất cả các nguồn:
-
-```bash
-claude agents
-```
+Để xem các tác nhân con đã được cấu hình, hãy hỏi Claude hoặc duyệt `.claude/agents/` và `~/.claude/agents/`. (`claude agents` không liên quan: lệnh này mở agent view cho các phiên chạy nền.)
---
@@ -551,16 +547,14 @@ Trong ví dụ này, tác nhân con `coordinator` chỉ có thể tạo các tá
## Lệnh CLI `claude agents`
-Lệnh `claude agents` liệt kê tất cả các tác nhân được cấu hình được nhóm theo nguồn (tích hợp, cấp người dùng, cấp dự án):
+`claude agents` mở **agent view** (v2.1.139+): danh sách toàn màn hình các phiên chạy nền của bạn, nhóm theo trạng thái. Lệnh này không liệt kê các định nghĩa tác nhân con đã cấu hình; dùng `claude agents --json` để viết script dựa trên trạng thái phiên.
```bash
claude agents
+claude agents --json
```
-Lệnh này:
-- Hiển thị tất cả các tác nhân có sẵn từ tất cả các nguồn
-- Nhóm các tác nhân theo vị trí nguồn của chúng
-- Chỉ định **ghi đè** khi một tác nhân ở mức ưu tiên cao hơn che một tác nhân ở mức thấp hơn (ví dụ: tác nhân cấp dự án với cùng tên như tác nhân cấp người dùng)
+Các tác nhân con đã cấu hình nằm trong `.claude/agents/` (dự án) và `~/.claude/agents/` (người dùng).
---
@@ -1133,10 +1127,15 @@ graph TD
---
-**Cập Nhật Lần Cuối**: Ngày 26 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.283
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/interactive-mode
+- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/agent-view
+- https://code.claude.com/docs/en/sub-agents#permission-modes
+- https://code.claude.com/docs/en/sub-agents#available-tools
**Các Mô Hình Tương Thích**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/vi/05-mcp/README.md b/vi/05-mcp/README.md
index 236126e..a7652f1 100644
--- a/vi/05-mcp/README.md
+++ b/vi/05-mcp/README.md
@@ -238,7 +238,7 @@ Các MCP server có thể yêu cầu đầu vào có cấu trúc từ người d
## Giới Hạn Mô Tả Và Hướng Dẫn Công Cụ / Tool Description and Instruction Cap
-Kể từ v2.1.84, Claude Code thực thi **giới hạn 2 KB** trên mô tả và hướng dẫn công cụ cho mỗi MCP server. Điều này ngăn các server riêng lẻ tiêu thụ quá nhiều ngữ cảnh với các định nghĩa công cụ quá dài dòng, giảm bloat ngữ cảnh và giữ các tương tác hiệu quả. Kể từ v2.1.296, mặc định là **4.096 ký tự** cho các mô tả được gửi ngay từ đầu và cho hướng dẫn của server (v2.1.296), còn các mô tả mà Claude tải qua tool search bị cắt ở **16.384 ký tự** (v2.1.295).
+Claude Code cắt bớt mỗi mô tả công cụ MCP và hướng dẫn của mỗi server để các server dài dòng không làm phình ngữ cảnh. Giới hạn mặc định là **4.096 ký tự** cho hướng dẫn của server và cho mô tả của các công cụ được tải ngay từ đầu (v2.1.296; 2.048 từ v2.1.84 đến trước đó), và **16.384 ký tự** cho các mô tả mà Claude tải qua tool search (v2.1.295). Kể từ v2.1.280, `CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH` ghi đè các giới hạn này: con số bạn đặt thay thế **cả hai** giới hạn (`8192` nâng giới hạn ngắn hơn và hạ giới hạn dài hơn). Kể từ v2.1.299, mô tả và hướng dẫn từ các MCP server first-party của Anthropic tại `api.anthropic.com` đến Claude đầy đủ. Hãy đặt các chi tiết quan trọng ở gần đầu mô tả.
## MCP Prompts Như Lệnh Slash / MCP Prompts as Slash Commands
@@ -442,7 +442,7 @@ Cấu hình MCP hỗ trợ mở rộng biến môi trường với các mặc đ
```
Các biến được mở rộng tại runtime:
-- `${VAR}` - Sử dụng biến môi trường, lỗi nếu không được đặt
+- `${VAR}` - Sử dụng biến môi trường; nếu biến chưa được đặt (và không có mặc định), server vẫn được tải với chuỗi `${VAR}` nguyên văn, và `claude mcp list` cùng `/mcp` cảnh báo về biến bị thiếu
- `${VAR:-default}` - Sử dụng biến môi trường, fallback thành mặc định nếu không được đặt
### Ví Dụ 2: Thiết Lập Database MCP / Example 2: Database MCP Setup
@@ -1158,12 +1158,14 @@ export GITHUB_TOKEN="your_token"
---
-**Cập Nhật Lần Cuối**: Ngày 10 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.296
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/managed-mcp
- https://code.claude.com/docs/en/mcp#configure-tool-search
- https://github.com/anthropics/claude-code/releases/tag/v2.1.285
- https://github.com/anthropics/claude-code/releases/tag/v2.1.296
+- https://code.claude.com/docs/en/mcp#tool-search-for-mcp-server-authors
+- https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json
**Các Mô Hình Tương Thích**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/vi/06-hooks/README.md b/vi/06-hooks/README.md
index 2878b43..157b2d4 100644
--- a/vi/06-hooks/README.md
+++ b/vi/06-hooks/README.md
@@ -58,7 +58,7 @@ Hooks được cấu hình trong các file settings với cấu trúc cụ thể
| `type` | Loại hook: `"command"` (bash), `"prompt"` (LLM), `"http"` (webhook), `"mcp_tool"` (gọi công cụ MCP, từ v2.1.118), hoặc `"agent"` (subagent) | `"command"` |
| `command` | Lệnh shell để thực thi | `"$CLAUDE_PROJECT_DIR/.claude/hooks/format.sh"` |
| `timeout` | Timeout tùy chọn tính bằng giây. Mặc định: 600 cho command/http/mcp_tool, 30 cho prompt, 60 cho agent. | `30` |
-| `once` | Nếu `true`, chạy hook chỉ một lần mỗi phiên | `true` |
+| `once` | Nếu `true`, hook bị gỡ bỏ sau lần chạy thành công đầu tiên (lần chạy thất bại/bị chặn/hết thời gian vẫn giữ hook). Chỉ dùng trong frontmatter của skill; bị bỏ qua trong settings và frontmatter của agent | `true` |
| `async` | Nếu `true`, chạy nền mà không chặn | `true` |
| `asyncRewake` | Nếu `true`, chạy nền và đánh thức Claude khi mã thoát là 2. Ngầm bật `async`. | `true` |
| `shell` | Chấp nhận `"bash"` hoặc `"powershell"`. Mặc định `"bash"`, hoặc `"powershell"` trên Windows khi chưa cài Git Bash. | `"bash"` |
@@ -180,38 +180,38 @@ Claude Code hỗ trợ **33 sự kiện hook**:
| Sự Kiện | Khi Được Kích Hoạt | Matcher Input | Có Chặn | Sử Dụng Phổ Biến |
|-------|---------------|---------------|-----------|------------|
| **SessionStart** | Phiên bắt đầu/tiếp tục/xóa/dồn/fork | startup/resume/clear/compact/fork | Không | Thiết lập môi trường |
-| **Setup** | Thiết lập môi trường ban đầu (một lần mỗi phiên) | (none) | Không | Cài đặt công cụ, cài dependencies |
-| **InstructionsLoaded** | Sau khi CLAUDE.md hoặc file rules được tải | (none) | Không | Sửa đổi/bộ lọc hướng dẫn |
+| **Setup** | `--init-only`, hoặc `--init`/`--maintenance` cùng `-p` (chuẩn bị CI/script) | `init`/`maintenance` | Không | Cài đặt công cụ, cài dependencies |
+| **InstructionsLoaded** | Sau khi CLAUDE.md hoặc file rules được tải | Lý do tải (`session_start`/`nested_traversal`/`path_glob_match`/`include`/`compact`) | Không | Ghi log kiểm tra/quan sát |
| **UserPromptSubmit** | Người dùng gửi prompt | (none) | Có | Xác thực prompts |
-| **UserPromptExpansion** | Prompt được mở rộng (ví dụ: `@` mentions, slash commands được phân giải) | (none) | Có | Biến đổi hoặc kiểm tra prompt đã mở rộng |
+| **UserPromptExpansion** | Slash command do người dùng nhập hoặc MCP prompt được mở rộng thành prompt | Tên lệnh | Có | Biến đổi hoặc kiểm tra prompt đã mở rộng |
| **MessageDisplay** | Trong khi văn bản phản hồi của assistant được hiển thị | (none) | Không | Biến đổi hoặc ẩn văn bản hiển thị (v2.1.152) |
| **PreToolUse** | Trước khi thực thi công cụ | Tên công cụ | Có (allow/deny/ask) | Xác thực, sửa đổi đầu vào |
| **PermissionRequest** | Hộp thoại quyền được hiển thị | Tên công cụ | Có | Tự động phê duyệt/từ chối |
| **PostToolUse** | Sau khi công cụ thành công | Tên công cụ | Không | Thêm ngữ cảnh, feedback |
| **PostToolUseFailure** | Thực thi công cụ thất bại | Tên công cụ | Không | Xử lý lỗi, logging |
-| **PostToolBatch** | Sau khi một lô lệnh gọi công cụ hoàn tất | (none) | Không | Báo cáo tổng hợp, xác thực theo lô |
-| **PermissionDenied** | Người dùng từ chối một hộp thoại quyền | Tên công cụ | Không | Logging, phân tích, thực thi chính sách |
+| **PostToolBatch** | Sau khi một lô lệnh gọi công cụ hoàn tất | (none) | Có | Báo cáo tổng hợp, xác thực theo lô |
+| **PermissionDenied** | Auto mode từ chối một lệnh gọi công cụ | Tên công cụ | Không | Logging, phân tích, thực thi chính sách |
| **Notification** | Thông báo được gửi | Loại thông báo | Không | Thông báo tùy chỉnh |
| **SubagentStart** | Subagent được spawn | Tên loại agent | Không | Thiết lập subagent |
| **SubagentStop** | Subagent hoàn thành | Tên loại agent | Có | Xác thực subagent |
| **Stop** | Claude hoàn thành phản hồi | (none) | Có | Kiểm tra hoàn thành tác vụ |
-| **StopFailure** | Lỗi API kết thúc turn | (none) | Không | Phục hồi lỗi, logging |
+| **StopFailure** | Lỗi API kết thúc turn | Loại lỗi (`rate_limit`, `overloaded`, `server_error`, …) | Không | Phục hồi lỗi, logging |
| **TeammateIdle** | Đồng nghiệp nhóm agent rảnh | (none) | Có | Phối hợp đồng nghiệp |
| **TaskCompleted** | Nhiệm vụ được đánh dấu hoàn thành | (none) | Có | Hành động sau tác vụ |
-| **TaskCreated** | Nhiệm vụ được tạo qua TaskCreate | (none) | Không | Theo dõi nhiệm vụ, logging |
-| **ConfigChange** | File config thay đổi | (none) | Có (trừ policy) | Phản hồi cập nhật config |
+| **TaskCreated** | Nhiệm vụ được tạo qua TaskCreate | (none) | Có | Theo dõi nhiệm vụ, logging |
+| **ConfigChange** | File config thay đổi | Nguồn config (`user_settings`/`project_settings`/`local_settings`/`policy_settings`/`skills`) | Có (trừ policy) | Phản hồi cập nhật config |
| **CwdChanged** | Thư mục làm việc thay đổi | (none) | Không | Thiết lập cụ thể thư mục |
-| **DirectoryAdded** | Thư mục làm việc mới được đăng ký giữa phiên qua `/add-dir` hoặc control request `register_repo_root` của SDK (v2.1.219) | (none) | Không | Thiết lập công cụ cho thư mục vừa thêm |
-| **FileChanged** | File được watch thay đổi | (none) | Không | Giám sát file, rebuild |
-| **PreCompact** | Trước khi dồn ngữ cảnh | manual/auto | Không | Hành động pre-dồn |
+| **DirectoryAdded** | Thư mục làm việc mới được đăng ký giữa phiên qua `/add-dir` hoặc control request `register_repo_root` của SDK (v2.1.219) | `slash_command`/`register_repo_root` | Không | Thiết lập công cụ cho thư mục vừa thêm |
+| **FileChanged** | File được watch thay đổi | Tên file cần watch (ví dụ `.envrc\|.env`) | Không | Giám sát file, rebuild |
+| **PreCompact** | Trước khi dồn ngữ cảnh | manual/auto | Có | Hành động pre-dồn |
| **PostCompact** | Sau khi dồn hoàn thành | (none) | Không | Hành động post-dồn |
| **PreModelSwitch** | Trước khi Claude Code áp dụng yêu cầu chuyển đổi model | Tên chuẩn của model sắp chuyển sang (từ `to_model`) | Có | Kiểm soát hoặc từ chối việc đổi model |
| **PostModelSwitch** | Sau khi model của phiên thay đổi, kể cả những thay đổi do chính Claude Code thực hiện (ví dụ khôi phục model khi tiếp tục phiên) | Tên chuẩn của model đã chuyển sang (từ `to_model`) | Không | Ghi log hoặc phản hồi thay đổi model |
| **WorktreeCreate** | Worktree đang được tạo | (none) | Có (trả về path) | Khởi tạo worktree |
-| **WorktreeRemove** | Worktree đang được xóa | (none) | Không | Dọn dẹp worktree |
-| **Elicitation** | MCP server yêu cầu đầu vào người dùng | (none) | Có | Xác thực đầu vào |
-| **ElicitationResult** | Người dùng phản hồi elicitation | (none) | Có | Xử lý phản hồi |
-| **SessionEnd** | Phiên kết thúc | (none) | Không | Dọn dẹp, logging cuối |
+| **WorktreeRemove** | Worktree đang được xóa | (none) | Có (exit khác 0 làm việc xóa thất bại) | Dọn dẹp worktree |
+| **Elicitation** | MCP server yêu cầu đầu vào người dùng | Tên MCP server | Có | Xác thực đầu vào |
+| **ElicitationResult** | Người dùng phản hồi elicitation | Tên MCP server | Có | Xử lý phản hồi |
+| **SessionEnd** | Phiên kết thúc | Lý do kết thúc (`clear`/`resume`/`logout`/`prompt_input_exit`/`other`) | Không | Dọn dẹp, logging cuối |
> **`TaskCreated` và `TaskCompleted` cần bật todo tools (v2.1.233).** Hai sự kiện này phát ra từ các todo/task-tracking tools (`TaskCreate`/`Get`/`Update`/`List`, `TodoWrite`), vốn **chỉ khả dụng mặc định trên các model Claude 3.x, Opus 4 đến 4.7, Sonnet 4 đến 4.6 và Haiku 4.5**. Trên các model khác, hook vẫn là cấu hình hợp lệ nhưng đơn giản là không bao giờ chạy — không có output và cũng không có lỗi. Đặt `CLAUDE_CODE_ENABLE_TODO_TOOLS=1` để khôi phục.
@@ -238,7 +238,7 @@ Chạy sau khi Claude tạo tham số công cụ và trước khi xử lý. Sử
}
```
-**Các matcher phổ biến:** `Task`, `Bash`, `Glob`, `Grep`, `Read`, `Edit`, `Write`, `WebFetch`, `WebSearch`
+**Các matcher phổ biến:** `Agent`, `Bash`, `Glob`, `Grep`, `Read`, `Edit`, `Write`, `WebFetch`, `WebSearch`
**Điều khiển đầu ra:**
- `permissionDecision`: `"allow"`, `"deny"`, `"ask"`, hoặc `"defer"`
@@ -248,7 +248,7 @@ Chạy sau khi Claude tạo tham số công cụ và trước khi xử lý. Sử
- `"defer"` thoát êm để công cụ có thể được tiếp tục sau; `permissionDecisionReason`, `updatedInput` và `additionalContext` đều bị bỏ qua với giá trị này
- Các quy tắc deny và ask vẫn được đánh giá bất kể hook trả về gì. Khi nhiều hook `PreToolUse` bất đồng, thứ tự ưu tiên là `deny` > `defer` > `ask` > `allow`
- `permissionDecisionReason`: Giải thích cho quyết định. Hiển thị cho người dùng (không phải Claude) với `"allow"` và `"ask"`; hiển thị cho Claude với `"deny"`; bị bỏ qua với `"defer"`
-- `updatedInput`: Các tham số đầu vào công cụ đã sửa đổi
+- `updatedInput`: Đầu vào công cụ thay thế (thay toàn bộ đối tượng đầu vào). Từ v2.1.300, nó được xác thực như đầu vào của chính Claude — các khóa không xác định bị loại bỏ, và đầu vào bị công cụ từ chối sẽ khiến lệnh gọi bị từ chối.
### PostToolUse
@@ -279,7 +279,7 @@ Chạy ngay sau khi công cụ hoàn thành. Sử dụng để xác minh, loggin
### UserPromptSubmit
-Chạy khi người dùng gửi prompt, trước khi Claude xử lý nó.
+Chạy khi người dùng gửi prompt, trước khi Claude xử lý nó. Từ v2.1.299, hook chạy trước khi một skill hoặc lệnh tùy chỉnh được mở rộng, nên chặn prompt cũng sẽ dừng các dòng shell `!` của lệnh đó; `UserPromptExpansion` kích hoạt sau nó.
**Cấu Hình:**
```json
@@ -422,11 +422,11 @@ hooks:
hooks:
- type: command
command: "./scripts/check.sh"
- once: true # Chỉ chạy một lần mỗi phiên
+ once: true # Chỉ trong frontmatter của skill: gỡ bỏ sau lần chạy thành công đầu tiên
---
```
-**Các sự kiện được hỗ trợ cho component hooks:** `PreToolUse`, `PostToolUse`, `Stop`
+**Các sự kiện được hỗ trợ:** mọi sự kiện hook. Hooks của subagent chỉ chạy khi subagent đang hoạt động (`Stop` → `SubagentStop`); hooks của skill được đăng ký khi skill được gọi và duy trì đến hết phiên.
Điều này cho phép định nghĩa hooks trực tiếp trong component sử dụng chúng, giữ code liên quan cùng nhau.
@@ -706,7 +706,7 @@ BLOCKED_PATTERNS = [
def main():
input_data = json.load(sys.stdin)
- prompt = input_data.get("user_prompt", "") or input_data.get("prompt", "")
+ prompt = input_data.get("prompt", "")
for pattern, message in BLOCKED_PATTERNS:
if re.search(pattern, prompt, re.IGNORECASE):
@@ -880,10 +880,16 @@ Chỉnh sửa `~/.claude/settings.json` hoặc `.claude/settings.json` với c
---
-**Cập Nhật Lần Cuối**: Ngày 26 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.283
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/plugins/manifest-reference#quoting-and-path-separators
+- https://code.claude.com/docs/en/hooks#pretooluse
+- https://code.claude.com/docs/en/hooks#pretooluse-decision-control
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/hooks#userpromptsubmit-input
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/changelog#2-1-300
**Các Mô Hình Tương Thích**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/vi/06-hooks/notify-team.sh b/vi/06-hooks/notify-team.sh
index 3e1d43a..7fcefbd 100644
--- a/vi/06-hooks/notify-team.sh
+++ b/vi/06-hooks/notify-team.sh
@@ -1,6 +1,12 @@
#!/bin/bash
# Send notifications on events
-# Hook: PostPush
+# Hook: PostToolUse (matcher: Bash) — runs after every Bash call; the script exits unless the command is a git push
+
+# Read the hook input and exit unless the Bash command is a git push
+INPUT=$(cat)
+# Extract the command (escaped quotes like \"msg\" are kept) and match "git push" as a command word anywhere in it
+COMMAND=$(echo "$INPUT" | sed -nE 's/.*"command"[[:space:]]*:[[:space:]]*"(([^"\\]|\\.)*)".*/\1/p' | head -1)
+printf '%s\n' "$COMMAND" | grep -qE '(^|[^[:alnum:]_-]|\\n)git[[:space:]]+push([^[:alnum:]_-]|$)' || exit 0
REPO_NAME=$(basename $(git rev-parse --show-toplevel 2>/dev/null) 2>/dev/null)
COMMIT_MSG=$(git log -1 --pretty=%B 2>/dev/null)
diff --git a/vi/07-plugins/README.md b/vi/07-plugins/README.md
index f52fe3b..7e1827c 100644
--- a/vi/07-plugins/README.md
+++ b/vi/07-plugins/README.md
@@ -241,14 +241,20 @@ Plugins có quyền truy cập đến một thư mục trạng thái liên tục
"hooks": {
"PostToolUse": [
{
- "command": "node ${CLAUDE_PLUGIN_DATA}/track-usage.js"
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}\"/scripts/track-usage.js \"${CLAUDE_PLUGIN_DATA}\"/usage.json"
+ }
+ ]
}
]
}
}
```
-Thư mục được tạo tự động khi plugin được cài đặt. Các file được lưu trữ ở đây tồn tại cho đến khi plugin được gỡ cài đặt.
+Thư mục (`~/.claude/plugins/data/<id>/`) được tạo lần đầu tiên khi nó được tham chiếu và được giữ lại qua các lần cập nhật plugin. Nó bị xóa khi bạn gỡ cài đặt plugin khỏi nơi cuối cùng mà plugin được cài đặt (trừ khi bạn truyền `--keep-data`).
## Plugin Inline qua Settings (`source: 'settings'`) (v2.1.80+)
@@ -377,13 +383,10 @@ devops-automation/
│ ├── incident-commander.md
│ └── alert-analyzer.md
├── mcp/
-│ ├── github-config.json
-│ ├── kubernetes-config.json
-│ └── prometheus-config.json
+│ └── kubernetes-config.json
├── hooks/
│ ├── pre-deploy.js
-│ ├── post-deploy.js
-│ └── on-error.js
+│ └── post-deploy.js
└── scripts/
├── deploy.sh
├── rollback.sh
@@ -406,8 +409,7 @@ documentation/
│ ├── code-commentator.md
│ └── example-generator.md
├── mcp/
-│ ├── github-docs-config.json
-│ └── slack-announce-config.json
+│ └── github-docs-config.json
└── templates/
├── api-endpoint.md
├── function-docs.md
@@ -969,8 +971,8 @@ Các tính năng Claude Code sau hoạt động cùng với plugins:
---
-**Cập Nhật Lần Cuối**: Ngày 30 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.285
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/plugins-reference
diff --git a/vi/07-plugins/devops-automation/commands/deploy.md b/vi/07-plugins/devops-automation/commands/deploy.md
index 4873ca3..b6bfc17 100644
--- a/vi/07-plugins/devops-automation/commands/deploy.md
+++ b/vi/07-plugins/devops-automation/commands/deploy.md
@@ -1,5 +1,4 @@
---
-name: Deploy
description: Deploy application to production or staging
---
@@ -13,3 +12,11 @@ Execute deployment workflow:
4. Deploy to target environment
5. Run health checks
6. Notify team on Slack
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/devops-automation/commands/incident.md b/vi/07-plugins/devops-automation/commands/incident.md
index b5c0459..41c166d 100644
--- a/vi/07-plugins/devops-automation/commands/incident.md
+++ b/vi/07-plugins/devops-automation/commands/incident.md
@@ -1,5 +1,4 @@
---
-name: Incident Response
description: Handle production incidents with structured response
---
@@ -14,3 +13,11 @@ Structured incident response workflow:
5. Coordinate response efforts
6. Document resolution
7. Schedule post-mortem
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/devops-automation/commands/rollback.md b/vi/07-plugins/devops-automation/commands/rollback.md
index 2eb20a3..40fb1bd 100644
--- a/vi/07-plugins/devops-automation/commands/rollback.md
+++ b/vi/07-plugins/devops-automation/commands/rollback.md
@@ -1,5 +1,4 @@
---
-name: Rollback
description: Rollback to previous deployment
---
@@ -12,3 +11,11 @@ Rollback to previous stable version:
3. Execute rollback procedure
4. Run health checks
5. Notify team
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/devops-automation/commands/status.md b/vi/07-plugins/devops-automation/commands/status.md
index 6c2e670..021a061 100644
--- a/vi/07-plugins/devops-automation/commands/status.md
+++ b/vi/07-plugins/devops-automation/commands/status.md
@@ -1,5 +1,4 @@
---
-name: System Status
description: Check overall system health and status
---
@@ -13,3 +12,11 @@ Check system health across all services:
4. Review error rates
5. Check resource utilization
6. Report overall health
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/documentation/commands/generate-api-docs.md b/vi/07-plugins/documentation/commands/generate-api-docs.md
index a5bda46..268405e 100644
--- a/vi/07-plugins/documentation/commands/generate-api-docs.md
+++ b/vi/07-plugins/documentation/commands/generate-api-docs.md
@@ -1,5 +1,4 @@
---
-name: Generate API Documentation
description: Generate comprehensive API documentation from source code
---
@@ -13,3 +12,11 @@ Generate complete API documentation:
4. Create markdown with examples
5. Include request/response schemas
6. Add error documentation
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/documentation/commands/generate-readme.md b/vi/07-plugins/documentation/commands/generate-readme.md
index 119310a..5306e88 100644
--- a/vi/07-plugins/documentation/commands/generate-readme.md
+++ b/vi/07-plugins/documentation/commands/generate-readme.md
@@ -1,5 +1,4 @@
---
-name: Generate README
description: Create or update project README
---
@@ -13,3 +12,11 @@ Generate comprehensive README:
4. API documentation links
5. Contributing guidelines
6. License information
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/documentation/commands/sync-docs.md b/vi/07-plugins/documentation/commands/sync-docs.md
index 9681cc8..d5e5709 100644
--- a/vi/07-plugins/documentation/commands/sync-docs.md
+++ b/vi/07-plugins/documentation/commands/sync-docs.md
@@ -1,5 +1,4 @@
---
-name: Sync Documentation
description: Sync documentation with code changes
---
@@ -12,3 +11,11 @@ Synchronize documentation with codebase:
3. Update affected docs
4. Verify examples still work
5. Update version numbers
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/documentation/commands/validate-docs.md b/vi/07-plugins/documentation/commands/validate-docs.md
index bd41f57..6c9b856 100644
--- a/vi/07-plugins/documentation/commands/validate-docs.md
+++ b/vi/07-plugins/documentation/commands/validate-docs.md
@@ -1,5 +1,4 @@
---
-name: Validate Documentation
description: Validate documentation for completeness and accuracy
---
@@ -12,3 +11,11 @@ Validate documentation quality:
3. Ensure completeness
4. Check formatting
5. Validate against actual code
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/pr-review/commands/check-security.md b/vi/07-plugins/pr-review/commands/check-security.md
index 58d5a68..4fb941c 100644
--- a/vi/07-plugins/pr-review/commands/check-security.md
+++ b/vi/07-plugins/pr-review/commands/check-security.md
@@ -1,5 +1,4 @@
---
-name: Security Check
description: Run security-focused code review
---
@@ -12,3 +11,11 @@ Perform focused security analysis on code changes:
3. Injection vulnerabilities
4. Cryptographic weaknesses
5. Sensitive data in logs
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/pr-review/commands/check-tests.md b/vi/07-plugins/pr-review/commands/check-tests.md
index 6674562..6884bff 100644
--- a/vi/07-plugins/pr-review/commands/check-tests.md
+++ b/vi/07-plugins/pr-review/commands/check-tests.md
@@ -1,5 +1,4 @@
---
-name: Test Coverage Check
description: Verify test coverage and quality
---
@@ -12,3 +11,11 @@ Analyze test coverage and quality:
3. Review test quality
4. Suggest missing test cases
5. Verify edge cases are covered
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/07-plugins/pr-review/commands/review-pr.md b/vi/07-plugins/pr-review/commands/review-pr.md
index 0078be3..ce755df 100644
--- a/vi/07-plugins/pr-review/commands/review-pr.md
+++ b/vi/07-plugins/pr-review/commands/review-pr.md
@@ -1,5 +1,4 @@
---
-name: Review PR
description: Start comprehensive PR review with security and testing checks
---
@@ -12,3 +11,11 @@ This command initiates a complete pull request review including:
3. Documentation updates
4. Code quality checks
5. Performance impact assessment
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/vi/08-checkpoints/README.md b/vi/08-checkpoints/README.md
index 4ed32e9..781f902 100644
--- a/vi/08-checkpoints/README.md
+++ b/vi/08-checkpoints/README.md
@@ -33,7 +33,7 @@ Bạn có thể truy cập và quản lý checkpoints theo hai cách chính:
Nhấn `Esc` hai lần (`Esc` + `Esc`) để mở giao diện checkpoint và duyệt các checkpoints đã lưu.
### Sử Dụng Lệnh Slash / Using Slash Command
-Sử dụng lệnh `/rewind` (bí danh: `/checkpoint`) để truy cập nhanh:
+Sử dụng lệnh `/rewind` (bí danh: `/checkpoint`, `/undo`) để truy cập nhanh:
```bash
# Mở giao diện rewind
@@ -58,7 +58,7 @@ Khi bạn rewind, bạn được trình bày một menu năm tùy chọn:
Claude Code tự động tạo checkpoints cho bạn:
- **Mọi prompt người dùng** - Một checkpoint mới được tạo với mỗi đầu vào người dùng
-- **Liên tục** - Checkpoints tồn tại qua các phiên
+- **Liên tục** - Checkpoints được lưu cùng cuộc hội thoại, nên `/rewind` vẫn hoạt động sau khi bạn tiếp tục (resume) một phiên
- **Tự động dọn dẹp** - Checkpoints được tự động dọn dẹp sau 30 ngày
Điều này có nghĩa là bạn luôn có thể rewind đến bất kỳ điểm nào trước đó trong hội thoại của bạn, từ vài phút trước đến nhiều ngày trước.
@@ -283,7 +283,7 @@ Sử dụng cả hai cùng nhau:
- **`Esc` + `Esc`** - Mở trình duyệt checkpoint
- **`/rewind`** - Cách thay thế để truy cập checkpoints
-- **`/checkpoint`** - Bí danh cho `/rewind`
+- **`/checkpoint`**, **`/undo`** - Bí danh cho `/rewind`
## Biết Khi Nào Rewind: Giám Sát Ngữ Cảnh / Knowing When to Rewind: Context Monitoring
@@ -306,6 +306,9 @@ Checkpoints cho phép bạn quay lại — nhưng làm thế nào bạn biết *
---
-**Cập Nhật Lần Cuối**: Tháng 4 năm 2026
-**Phiên Bản Claude Code**: 2.1+
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/commands
**Các Mô Hình Tương Thích**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/vi/09-advanced-features/README.md b/vi/09-advanced-features/README.md
index cd10515..5627fcc 100644
--- a/vi/09-advanced-features/README.md
+++ b/vi/09-advanced-features/README.md
@@ -479,10 +479,8 @@ User: Run tests in background
Claude: Started task bg-1234
-/task list # Show all tasks
-/task status bg-1234 # Check progress
-/task show bg-1234 # View output
-/task cancel bg-1234 # Cancel task
+/tasks # View and manage background work (shells and subagents); stop a task from here
+Ctrl+B # Move a running Bash command or agent to the background
```
### Starting Background Tasks
@@ -504,44 +502,19 @@ Claude: [Works on auth module while tests run in background]
Claude: 📢 Background task bg-1234 completed:
✅ 245 tests passed
❌ 3 tests failed
-View results: /task show bg-1234
+View results: /tasks
```
### Managing Background Tasks
-**List active tasks**:
-```
-User: /task list
+Chạy `/tasks` (bí danh `/bashes`) để liệt kê các shell và subagent đang chạy, mở một mục để xem đầu ra, hoặc dừng nó. Không có lệnh con `/task` nào.
-Active background tasks:
-1. [bg-1234] Running tests (50% complete, 2min remaining)
-2. [bg-1235] Building Docker image (25% complete, 8min remaining)
-3. [bg-1236] Deploying to staging (90% complete, 30sec remaining)
-```
+```text
+User: /tasks
-**Check task status**:
-```
-User: /task status bg-1234
-
-Task bg-1234: Running tests
-Status: In progress
-Progress: 120/245 tests (49%)
-Started: 2025-11-08 10:30:15
-Estimated completion: 2025-11-08 10:34:22
-```
-
-**View task output**:
-```
-User: /task show bg-1234
-
-[Shows live output from the test run]
-```
-
-**Cancel task**:
-```
-User: /task cancel bg-1234
-
-Cancelled background task bg-1234
+[Opens the background-work view: running shells and subagents,
+ including subagents that have finished. Select one to see its
+ output, or stop it from here.]
```
### Example: Parallel Development
@@ -1284,8 +1257,8 @@ claude remote-control --name "Auth Refactor"
|------|-------------|
| `--name "title"` | Custom session title for easy identification |
| `--verbose` | Show detailed connection logs |
-| `--sandbox` | Enable filesystem and network isolation |
-| `--no-sandbox` | Disable sandboxing (default) |
+
+> **Lưu ý (v2.1.300)**: `claude remote-control` không còn chấp nhận `--sandbox` hoặc `--no-sandbox` (chúng chưa bao giờ có tác dụng; truyền một trong hai giờ sẽ thoát với lỗi). Để chạy các phiên Remote Control trong sandbox, đặt `sandbox.enabled` trong một tệp cài đặt.
### Connecting to a session
@@ -1312,9 +1285,9 @@ Three ways to connect from another device:
### Limitations
-- One remote session per Claude Code instance
+- Một phiên từ xa cho mỗi tiến trình Claude Code tương tác — chế độ server (`claude remote-control`) phục vụ nhiều phiên cùng lúc (`--capacity`, mặc định 32)
- Terminal must stay open on the host machine
-- Session times out after ~10 minutes if the network is unreachable
+- Nếu mạng không truy cập được, chế độ server thoát sau ~10 phút; phiên tương tác tiếp tục thử lại và kết nối lại khi mạng trở lại
### Use cases
@@ -1545,17 +1518,20 @@ Sandboxing provides OS-level filesystem and network isolation for Bash commands
### Enabling Sandboxing
-**Slash command**:
-```
+**Slash command** (lưu lựa chọn vào `.claude/settings.local.json` cho dự án này):
+```text
/sandbox
```
-**CLI flags**:
+**Tệp cài đặt** (mọi dự án): đặt `"sandbox": { "enabled": true }` trong `~/.claude/settings.json`.
+
+**Theo phiên**, không ghi vào tệp cài đặt:
```bash
-claude --sandbox # Enable sandboxing
-claude --no-sandbox # Disable sandboxing
+claude --settings '{"sandbox": {"enabled": true}}'
```
+> Không có cờ `claude --sandbox` / `--no-sandbox`. Từ v2.1.300, truyền chúng cho `claude remote-control` sẽ thoát với lỗi.
+
### Configuration Settings
| Setting | Description |
@@ -1870,8 +1846,8 @@ For more information about Claude Code and related features:
---
-**Cập Nhật Lần Cuối**: Ngày 30 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.285
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/auto-mode-classifier-billing
@@ -1881,4 +1857,10 @@ For more information about Claude Code and related features:
- https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in
- https://github.com/anthropics/claude-code/releases/tag/v2.1.284
- https://github.com/anthropics/claude-code/releases/tag/v2.1.285
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/changelog#2-1-300
+- https://code.claude.com/docs/en/sandboxing
+- https://code.claude.com/docs/en/settings-reference#sandbox-enabled
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/interactive-mode
**Các Mô Hình Tương Thích**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/vi/10-cli/README.md b/vi/10-cli/README.md
index 37839e2..80e22fb 100644
--- a/vi/10-cli/README.md
+++ b/vi/10-cli/README.md
@@ -40,7 +40,8 @@ graph TD
| `claude mcp serve` | Chạy Claude Code như một MCP server | `claude mcp serve` |
| `claude agents` | Liệt kê tất cả các subagents được cấu hình | `claude agents` |
| `claude auto-mode defaults` | In các quy tắc mặc định chế độ tự động như JSON | `claude auto-mode defaults` |
-| `claude --remote-control [name]` | Khởi động Remote Control (đây là một flag, không phải subcommand; alias `--rc`) | `claude --rc` |
+| `claude remote-control` | Khởi động một Remote Control server (chế độ server, không có session tương tác cục bộ; phục vụ nhiều session, `--capacity` mặc định 32) | `claude remote-control --name "My Project"` |
+| `claude --remote-control [name]` | Khởi động session tương tác có bật Remote Control (alias `--rc`) | `claude --rc` |
| `claude plugin` | Quản lý plugins (cài đặt, kích hoạt, vô hiệu hóa) | `claude plugin install my-plugin` |
| `claude auth login` | Đăng nhập (hỗ trợ `--email`, `--sso`) | `claude auth login --email [email protected]` |
| `claude auth logout` | Đăng xuất khỏi tài khoản hiện tại | `claude auth logout` |
@@ -776,9 +777,9 @@ claude -p --output-format json "query"
**Vấn đề:** `claude: command not found`
**Giải pháp:**
-- Cài đặt Claude Code: `npm install -g @anthropic-ai/claude-code`
-- Kiểm tra PATH bao gồm npm global bin directory
-- Thử chạy với full path: `npx claude`
+- Cài đặt Claude Code: `curl -fsSL https://claude.ai/install.sh | bash` (native, khuyến nghị) hoặc `npm install -g @anthropic-ai/claude-code`
+- Kiểm tra PATH bao gồm `~/.local/bin` (cài đặt native) hoặc npm global bin directory
+- Chạy `claude doctor`
### API Key Issues
@@ -834,9 +835,12 @@ claude -p --output-format json "query"
---
-**Cập Nhật Lần Cuối**: Ngày 10 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.296
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/setup
+- https://code.claude.com/docs/en/troubleshoot-install#command-not-found-claude-after-installation
**Các Mô Hình Tương Thích**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
diff --git a/vi/CATALOG.md b/vi/CATALOG.md
index 24c147c..64273d6 100644
--- a/vi/CATALOG.md
+++ b/vi/CATALOG.md
@@ -19,10 +19,10 @@
| **Tác Nhân Con** | 6 | 6 | 12 | [04-subagents/](04-subagents/) |
| **Skills** | 10 bundled | 5 | 15 | [03-skills/](03-skills/) |
| **Plugins** | - | 3 | 3 | [07-plugins/](07-plugins/) |
-| **MCP Servers** | 1 | 4 | 5 | [05-mcp/](05-mcp/) |
+| **MCP Servers** | - | 4 | 4 | [05-mcp/](05-mcp/) |
| **Hooks** | 33 sự kiện | 9 | 42 | [06-hooks/](06-hooks/) |
| **Bộ Nhớ** | 7 loại | 3 | 10 | [02-memory/](02-memory/) |
-| **Tổng** | **117** | **38** | **155** | |
+| **Tổng** | **116** | **38** | **154** | |
---
@@ -54,7 +54,7 @@ Commands là các lệnh tắt do người dùng gọi thực hiện các hành
| `/plugin` | Quản lý plugins | Cài đặt/gỡ mở rộng |
| `/plan` | Vào planning mode | Triển khai phức tạp |
| `/rewind` | Rewind về checkpoint | Hoàn tác thay đổi, khám phá alternatives |
-| `/checkpoint` | Quản lý checkpoints | Lưu/khôi phục trạng thái |
+| `/checkpoint` | Bí danh của `/rewind` | Giống `/rewind` |
| `/cost` | Hiển thị chi phí usage token | Giám sát chi tiêu |
| `/context` | Hiển thị usage context window | Quản lý độ dài conversation |
| `/export` | Xuất conversation | Lưu để tham khảo |
@@ -69,10 +69,8 @@ Commands là các lệnh tắt do người dùng gọi thực hiện các hành
| `/release-notes` | Hiển thị release notes | Kiểm tra tính năng mới |
| `/remote-control` | Bật điều khiển từ xa | Truy cập từ xa |
| `/permissions` | Quản lý permissions | Kiểm soát truy cập |
-| `/session` | Quản lý sessions | Workflows đa session |
| `/rename` | Đổi tên session hiện tại | Tổ chức sessions |
| `/resume` | Tiếp tục session trước | Tiếp tục làm việc |
-| `/todo` | Xem/quản lý todo list | Theo dõi tasks |
| `/tasks` | Xem background tasks | Giám sát operations async |
| `/copy` | Sao chép response cuối vào clipboard | Chia sẻ output nhanh |
| `/teleport` | Chuyển session sang máy khác | Tiếp tục làm việc từ xa |
@@ -120,7 +118,7 @@ Claude Code hỗ trợ 6 permission modes điều khiển cách tool use đượ
|------|-------------|-------------|
| `default` | Hỏi cho mỗi tool call | Sử dụng tương tác tiêu chuẩn |
| `acceptEdits` | Tự động chấp nhận edits file, hỏi cho các khác | Workflows chỉnh sửa tin cậy |
-| `plan` | Chỉ tools read-only, không ghi | Lập kế hoạch và khám phá |
+| `plan` | Nghiên cứu và đề xuất kế hoạch; không sửa mã nguồn cho đến khi bạn phê duyệt | Lập kế hoạch và khám phá |
| `auto` | Tất cả hành động, có kiểm tra từ bộ phân loại an toàn nền | Tác vụ dài, giảm số lần nhắc quyền |
| `bypassPermissions` | Bỏ qua tất cả kiểm tra permissions | CI/CD, môi trường headless |
| `dontAsk` | Bỏ qua tools cần yêu cầu permission | Scripting không tương tác |
@@ -152,10 +150,10 @@ Các trợ lý AI chuyên biệt với context bị cô lập cho các tasks c
|-------|------|-------------|
| `name` | string | Định danh agent |
| `description` | string | Agent làm gì |
-| `model` | string | Ghi đè model (ví dụ: `haiku-4.5`) |
+| `model` | string | Ghi đè model (`sonnet`, `opus`, `haiku`, `fable`, model ID đầy đủ, hoặc `inherit`) |
| `tools` | array | Danh sách tools được phép |
-| `effort` | string | Mức độ effort lý luận (`low`, `medium`, `high`) |
-| `initialPrompt` | string | System prompt được chèn khi agent bắt đầu |
+| `effort` | string | Mức độ effort (`low`, `medium`, `high`, `xhigh`, `max`; tùy model) |
+| `initialPrompt` | string | Lượt user đầu tiên được tự động gửi khi agent chạy làm agent của session chính (`--agent`) |
| `disallowedTools` | array | Tools bị từ chối rõ ràng cho agent này |
### Custom Subagents (Ví Dụ)
@@ -216,9 +214,9 @@ Skills hỗ trợ YAML frontmatter trong `SKILL.md` để cấu hình:
|-------|------|-------------|
| `name` | string | Tên hiển thị skill |
| `description` | string | Skill làm gì |
-| `autoInvoke` | array | Cụm từ kích hoạt cho auto-invocation |
-| `effort` | string | Mức độ effort lý luận (`low`, `medium`, `high`) |
-| `shell` | string | Shell để dùng cho scripts (`bash`, `zsh`, `sh`) |
+| `when_to_use` | string | Cụm từ kích hoạt hoặc ví dụ yêu cầu, được nối vào `description` |
+| `effort` | string | Mức độ effort (`low`, `medium`, `high`, `xhigh`, `max`; tùy model) |
+| `shell` | string | Shell cho các khối `` !`command` `` inline (`bash` mặc định, hoặc `powershell`) |
**Tham Chiếu**: [03-skills/](03-skills/) | [Tài Liệu Chính Thức](https://code.claude.com/docs/en/skills)
@@ -294,7 +292,7 @@ Máy chủ Model Context Protocol cho truy cập công cụ và API bên ngoài.
| **Asana** | Quản lý dự án | Theo dõi tasks | Project | Cấu hình trong settings |
| **Stripe** | Dữ liệu thanh toán | Phân tích tài chính | Project | Cấu hình trong settings |
| **Memory** | Bộ nhớ lưu trữ | Nhớ lại qua sessions | User | Cấu hình trong settings |
-| **Context7** | Tài liệu thư viện | Tra cứu docs cập nhật | Built-in | Built-in |
+| **Context7** | Tài liệu thư viện | Tra cứu docs cập nhật | User | Cấu hình trong settings (server bên thứ ba) |
> **Phạm Vi**: `Project` = team (`.mcp.json`), `User` = cá nhân (`~/.claude.json`), `Built-in` = được cài trước
@@ -332,10 +330,10 @@ Tự động hóa dựa trên sự kiện thực thi shell commands trên các s
| Event | Mô Tả | Khi Được Kích Hoạt | Use Cases |
|-------|-------------|----------------|-----------|
| `SessionStart` | Session bắt đầu/tiếp tục | Khởi tạo session | Tasks thiết lập |
-| `Setup` | Thiết lập môi trường ban đầu (một lần mỗi session) | Bootstrap session lần đầu | Cài đặt tooling, cài dependencies |
+| `Setup` | Chạy thiết lập hoặc bảo trì repository | Chỉ với `--init-only`, hoặc `--init`/`--maintenance` cùng `-p` | Cài đặt tooling, cài dependencies |
| `InstructionsLoaded` | Hướng dẫn được tải | CLAUDE.md hoặc file rules được tải | Xử lý hướng dẫn tùy chỉnh |
| `UserPromptSubmit` | Trước khi xử lý prompt | User gửi tin nhắn | Xác thực input |
-| `UserPromptExpansion` | Prompt được mở rộng (@-mentions, slash commands) | Sau khi mở rộng, trước khi gửi | Biến đổi hoặc kiểm tra prompt đã mở rộng |
+| `UserPromptExpansion` | Một slash command được gõ (skill, custom command, hoặc MCP prompt) mở rộng thành prompt | Sau `UserPromptSubmit`, trước khi prompt đã mở rộng đến Claude | Chặn dùng `/command` trực tiếp, thêm context theo skill, ghi log commands |
| `PreToolUse` | Trước khi thực thi tool | Trước khi bất kỳ tool chạy | Xác thực, logging |
| `PermissionRequest` | Dialog permission được hiển thị | Trước hành động nhạy cảm | Flows phê duyệt tùy chỉnh |
| `PermissionDenied` | Người dùng từ chối yêu cầu quyền | Sau khi từ chối quyền | Ghi log, phân tích, thực thi chính sách |
@@ -442,7 +440,7 @@ cp ../02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| Tính Năng | Mô Tả | Cách Dùng |
|---------|-------------|------------|
| **Remote Control** | Điều khiển sessions Claude Code từ xa qua API | Sử dụng API điều khiển từ xa để gửi prompts và nhận responses theo chương trình |
-| **Web Sessions** | Chạy Claude Code trong môi trường dựa trên trình duyệt | Truy cập qua `claude web` hoặc qua Anthropic Console |
+| **Web Sessions** | Chạy Claude Code trong cloud session | Bắt đầu bằng `claude --cloud "task"` hoặc tại claude.ai/code |
| **Desktop App** | Ứng dụng desktop native cho Claude Code | Sử dụng `/desktop` hoặc tải từ website Anthropic |
| **Agent Teams** | Phối hợp nhiều agents làm việc trên các tasks liên quan | Cấu hình teammate agents cộng tác và chia sẻ context |
| **Task List** | Quản lý và giám sát background tasks | Sử dụng `/tasks` để xem và quản lý operations nền |
@@ -452,7 +450,7 @@ cp ../02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **MCP OAuth** | Xác thực OAuth cho MCP servers | Cấu hình credentials OAuth trong settings MCP server để truy cập an toàn |
| **MCP Tool Search** | Tìm kiếm và khám phá MCP tools động | Sử dụng tìm kiếm tool để tìm MCP tools có sẵn qua các servers được kết nối |
| **Scheduled Tasks** | Thiết lập tasks định kỳ với `/loop` và cron tools | Sử dụng `/loop 5m /command` hoặc công cụ CronCreate |
-| **Chrome Integration** | Tự động hóa trình duyệt với headless Chromium | Sử dụng flag `--chrome` hoặc command `/chrome` |
+| **Chrome Integration** | Điều khiển Chrome/Edge của chính bạn (cửa sổ hiển thị, dùng thông tin đăng nhập của bạn) qua extension Claude in Chrome | Sử dụng flag `--chrome` hoặc command `/chrome` |
| **Keyboard Customization** | Tùy chỉnh keybindings bao gồm hỗ trợ chord | Sử dụng `/keybindings` hoặc chỉnh sửa `~/.claude/keybindings.json` |
| **Auto Mode** | Vận hành hoàn toàn tự động với kiểm tra từ bộ phân loại an toàn nền | `Shift+Tab` để chuyển sang, hoặc `--permission-mode auto` |
| **Channels** | Communication đa kênh (Telegram, Slack, v.v.) (Research Preview) | Cấu hình plugins channels; Tháng 3 năm 2026 |
@@ -522,8 +520,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**Cập Nhật Lần Cuối**: Ngày 10 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.296
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/commands
@@ -531,3 +529,8 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/sub-agents
+- https://code.claude.com/docs/en/permission-modes
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/skills
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/chrome
diff --git a/vi/INDEX.md b/vi/INDEX.md
index 4ee8ec3..25bddc7 100644
--- a/vi/INDEX.md
+++ b/vi/INDEX.md
@@ -369,7 +369,7 @@ Các khả năng nâng cao cho workflows phức tạp.
| `config-examples.json` | Ví dụ cấu hình | 10+ cấu hình cụ thể theo use-case |
| `planning-mode-examples.md` | Ví dụ lập kế hoạch | REST API, database migration, refactoring |
| Scheduled Tasks | Tasks định kỳ với `/loop` và cron tools | Workflows định kỳ tự động |
-| Chrome Integration | Tự động hóa trình duyệt qua headless Chromium | Testing và scraping web |
+| Chrome Integration | Tự động hóa trình duyệt trong Chrome của bạn qua tiện ích Claude in Chrome | Testing và scraping web |
| Remote Control (expanded) | Phương thức kết nối, bảo mật, bảng so sánh | Quản lý session từ xa |
| Keyboard Customization | Phím tắt tùy chỉnh, hỗ trợ chord, contexts | Phím tắt cá nhân hóa |
| Desktop App (expanded) | Connectors, launch.json, tính năng enterprise | Tích hợp desktop | | | |
@@ -426,7 +426,7 @@ Các khả năng nâng cao cho workflows phức tạp.
- Workflows định kỳ tự động
### Chrome Integration
-- Tự động hóa trình duyệt qua headless Chromium
+- Tự động hóa trình duyệt trong Chrome của bạn qua tiện ích Claude in Chrome
- Khả năng testing và scraping web
- Tương tác trang và trích xuất dữ liệu
@@ -458,10 +458,10 @@ Các pattern và tham chiếu sử dụng giao diện dòng lệnh.
**Tính Năng CLI Chính**:
- `claude` - Bắt đầu session tương tác
- `claude -p "prompt"` - Mode headless/không-tương-tác
-- `claude web` - Khởi chạy web session
+- `claude --cloud "task"` - Khởi chạy cloud (web) session
- `claude --model` - Chọn model (Sonnet 4.6, Opus 4.6)
- `claude --permission-mode` - Đặt permission mode
-- `claude --remote` - Bật điều khiển từ xa qua WebSocket
+- `claude --remote-control` - Khởi chạy session có thể điều khiển thêm từ claude.ai hoặc ứng dụng Claude
---
@@ -876,8 +876,8 @@ Muốn thêm ví dụ nữa? Theo cấu trúc:
---
-**Cập Nhật Lần Cuối**: Ngày 19 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.278
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Tổng Số Ví Dụ**: 100+ files
**Danh Mục**: 10 tính năng
**Hooks**: 8 scripts tự động hóa
@@ -886,3 +886,6 @@ Muốn thêm ví dụ nữa? Theo cấu trúc:
**Nguồn**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/chrome
diff --git a/vi/LEARNING-ROADMAP.md b/vi/LEARNING-ROADMAP.md
index 61273e8..f5e088e 100644
--- a/vi/LEARNING-ROADMAP.md
+++ b/vi/LEARNING-ROADMAP.md
@@ -99,7 +99,7 @@ graph TD
| **5** | [Skills](03-skills/) | ⭐⭐ Trung cấp | 1 giờ | Level 2 | Lệnh Slash | Chuyên môn tự động | Khả năng tái sử dụng, nhất quán |
| **6** | [Hooks](06-hooks/) | ⭐⭐ Trung cấp | 1 giờ | Level 2 | Tools, Commands | Tự động hóa workflow (33 sự kiện, 5 types) | Xác thực, cổng chất lượng |
| **7** | [MCP](05-mcp/) | ⭐⭐⭐ Trung cấp+ | 1 giờ | Level 2 | Cấu hình | Truy cập dữ liệu trực tiếp | Tích hợp thời gian thực, APIs |
-| **8** | [Tác Nhân Con](04-subagents/) | ⭐⭐⭐ Trung cấp+ | 1.5 giờ | Level 2 | Bộ Nhớ, Commands | Xử lý task phức tạp (6 built-in bao gồm Bash) | Ủy quyền, chuyên môn hóa |
+| **8** | [Tác Nhân Con](04-subagents/) | ⭐⭐⭐ Trung cấp+ | 1.5 giờ | Level 2 | Bộ Nhớ, Commands | Xử lý task phức tạp (6 built-in, bao gồm Explore và Plan) | Ủy quyền, chuyên môn hóa |
| **9** | [Tính Năng Nâng Cao](09-advanced-features/) | ⭐⭐⭐⭐⭐ Nâng cao | 2-3 giờ | Level 3 | Tất cả trước | Công cụ power user | Planning, Auto Mode, Channels, Voice Dictation, permissions |
| **10** | [Plugins](07-plugins/) | ⭐⭐⭐⭐ Nâng cao | 2 giờ | Level 3 | Tất cả trước | Giải pháp hoàn chỉnh | Onboarding team, phân phối |
| **11** | [CLI Mastery](10-cli/) | ⭐⭐⭐ Nâng cao | 1 giờ | Level 3 | Khuyến nghị: Tất cả | Làm chủ usage command-line | Scripting, CI/CD, tự động hóa |
@@ -396,7 +396,7 @@ claude --permission-mode auto "triển khai tính năng"
claude --permission-mode auto "triển khai trang cài đặt người dùng"
# Exercise 6: Bật agent teams
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Hỏi Claude: "Triển khai tính năng X sử dụng cách tiếp cận nhóm"
# Exercise 7: Tasks định kỳ
@@ -733,10 +733,12 @@ Khi bạn đã hoàn thành tất cả milestones:
---
-**Cập Nhật Lần Cuối**: Ngày 2 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.257
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/sub-agents
**Được Duy Trì Bởi**: Những người đóng góp Claude How-To
**Giấy Phép**: Mục đích giáo dục, miễn phí sử dụng và điều chỉnh
diff --git a/vi/QUICK_REFERENCE.md b/vi/QUICK_REFERENCE.md
index 206cb05..0d4d9a0 100644
--- a/vi/QUICK_REFERENCE.md
+++ b/vi/QUICK_REFERENCE.md
@@ -123,13 +123,13 @@ claude -r "session" # Tiếp tục phiên theo tên/ID
| **Checkpoints** | Được tích hợp sẵn | `Esc+Esc` hoặc `/rewind` |
| **Chế Độ Lập Kế Hoạch** | Được tích hợp sẵn | `/plan <tác vụ>` |
| **Chế Độ Quyền (6)** | Được tích hợp sẵn | `--allowedTools`, `--permission-mode` |
-| **Phiên Làm Việc** | Được tích hợp sẵn | `/session <lệnh>` |
+| **Phiên Làm Việc** | Được tích hợp sẵn | `/resume`, `/rename`, `/branch`, `/fork` |
| **Tác Vụ Nền** | Được tích hợp sẵn | Chạy trong nền |
-| **Điều Khiển Từ Xa** | Được tích hợp sẵn | WebSocket API |
-| **Phiên Web** | Được tích hợp sẵn | `claude web` |
-| **Git Worktrees** | Được tích hợp sẵn | `/worktree` |
-| **Tự Động Bộ Nhớ** | Được tích hợp sẵn | Tự động lưu vào CLAUDE.md |
-| **Danh Sách Tác Vụ** | Được tích hợp sẵn | `/task list` |
+| **Điều Khiển Từ Xa** | Được tích hợp sẵn | `claude --remote-control` hoặc `/remote-control` |
+| **Phiên Web** | Được tích hợp sẵn | `claude --cloud "task"` |
+| **Git Worktrees** | Được tích hợp sẵn | `claude -w <name>` |
+| **Tự Động Bộ Nhớ** | Được tích hợp sẵn | Tự động lưu vào `~/.claude/projects/<project>/memory/` |
+| **Danh Sách Tác Vụ** | Được tích hợp sẵn | `Ctrl+T` (checklist), `/tasks` (công việc nền) |
| **Skills Được Gói (5)** | Được tích hợp sẵn | `/simplify`, `/loop`, `/claude-api`, `/voice`, `/browse` |
---
@@ -249,10 +249,10 @@ claude --permission-mode plan
### Đội Tác Nhân
```bash
# Bật đội tác nhân
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Hoặc trong settings.json
-{ "agentTeams": { "enabled": true } }
+{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }
# Bắt đầu với: "Triển khai tính năng X sử dụng cách tiếp cận đội"
```
@@ -393,14 +393,14 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **MCP Elicitation** | MCP servers có thể yêu cầu input người dùng tại runtime | Tự động nhắc khi server cần làm rõ |
| **WebSocket MCP** | Vận chuyển WebSocket cho kết nối MCP | Cấu hình trong `.mcp.json` với URL `ws://` |
| **Plugin LSP** | Hỗ trợ Language Server Protocol cho plugins | `userConfig`, biến `${CLAUDE_PLUGIN_DATA}` |
-| **Điều Khiển Từ Xa** | Điều khiển Claude Code qua WebSocket API | `claude --remote` cho tích hợp bên ngoài |
-| **Phiên Web** | Giao diện Claude Code trên trình duyệt | `claude web` để khởi động |
+| **Điều Khiển Từ Xa** | Điều khiển phiên cục bộ từ claude.ai hoặc ứng dụng Claude | `claude --remote-control` (hoặc `/remote-control` trong phiên) |
+| **Phiên Web** | Phiên cloud tại claude.ai/code | `claude --cloud "task"` để khởi động từ terminal |
| **Ứng Dụng Desktop** | Ứng dụng desktop native | Tải từ claude.ai/download |
-| **Danh Sách Tác Vụ** | Quản lý tác vụ nền | `/task list`, `/task status <id>` |
-| **Tự Động Bộ Nhớ** | Tự động lưu bộ nhớ từ cuộc hội thoại | Claude tự động lưu bối cảnh chính vào CLAUDE.md |
-| **Git Worktrees** | Không gian làm việc cô lập cho phát triển song song | `/worktree` để tạo không gian làm việc cô lập |
+| **Danh Sách Tác Vụ** | Quản lý tác vụ nền | `/tasks` (bí danh `/bashes`) |
+| **Tự Động Bộ Nhớ** | Tự động lưu bộ nhớ từ cuộc hội thoại | Claude lưu ghi chú vào `~/.claude/projects/<project>/memory/MEMORY.md`; quản lý bằng `/memory` |
+| **Git Worktrees** | Không gian làm việc cô lập cho phát triển song song | `claude --worktree <name>` (hoặc `-w`) |
| **Chọn Mô Hình** | Chuyển đổi giữa Fable 5.1, Fable 5, Opus 5, Sonnet 5, Sonnet 4.6, Opus 4.8 và Haiku 4.5 | `/model` hoặc cờ `--model` |
-| **Đội Tác Nhân** | Phối hợp nhiều tác nhân trên tác vụ | Bật với biến môi trường `CLAUDE_AGENT_TEAMS=1` |
+| **Đội Tác Nhân** | Phối hợp nhiều tác nhân trên tác vụ | Bật với biến môi trường `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` (thử nghiệm) |
| **Tác Vụ Định Kỳ** | Tác vụ định kỳ với `/loop` | `/loop 5m /command` hoặc công cụ CronCreate |
| **Tích Hợp Chrome** | Tự động hóa trình duyệt | Cờ `--chrome` hoặc lệnh `/chrome` |
| **Tùy Chỉnh Bàn Phím** | Phím tắt tùy chỉnh | Lệnh `/keybindings` |
@@ -507,7 +507,12 @@ Checklist bắt đầu:
---
-**Cập Nhật Lần Cuối**: Ngày 2 tháng 9 năm 2026
-**Phiên Bản Claude Code**: 2.1.257
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
**Nguồn**:
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/memory#storage-location
diff --git a/vi/resources.md b/vi/resources.md
index 02fd381..1fd4da7 100644
--- a/vi/resources.md
+++ b/vi/resources.md
@@ -243,8 +243,11 @@ Các bước này capture các core recommendations cho smooth workflows với C
| **Hook Events** | 33 events: PreToolUse, PostToolUse, PostToolUseFailure, Stop, StopFailure, SubagentStart, SubagentStop, Notification, Elicitation, và nhiều hơn | [Hooks Guide](06-hooks/) |
| **Agent Teams** | Phối hợp nhiều agents làm việc cùng nhau trên các complex tasks | [Subagents Guide](04-subagents/) |
| **Scheduled Tasks** | Thiết lập recurring tasks với `/loop` và cron tools | [Advanced Features](09-advanced-features/) |
-| **Chrome Integration** | Browser automation với headless Chromium | [Advanced Features](09-advanced-features/) |
+| **Chrome Integration** | Browser automation trong Chrome của bạn qua tiện ích Claude in Chrome | [Advanced Features](09-advanced-features/) |
| **Keyboard Customization** | Tùy chỉnh keybindings bao gồm chord sequences | [Advanced Features](09-advanced-features/) |
---
-**Cập Nhật Lần Cuối**: Tháng 4 năm 2026
+**Cập Nhật Lần Cuối**: Ngày 15 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.300
+**Nguồn**:
+- https://code.claude.com/docs/en/chrome
diff --git a/zh/01-slash-commands/README.md b/zh/01-slash-commands/README.md
index a4006f3..a04010e 100644
--- a/zh/01-slash-commands/README.md
+++ b/zh/01-slash-commands/README.md
@@ -18,7 +18,7 @@ Slash command 是你在 Claude 的交互式会话中用来控制行为的快捷
## 内置命令速查
-Claude Code 目前提供 55+ 个内置命令和 5 个内置 Skills。你可以在 Claude Code 中输入 `/` 查看全部,也可以输入 `/` 后继续键入字母进行筛选。
+Claude Code 目前提供 55+ 个内置命令和约 20 个内置 Skills。你可以在 Claude Code 中输入 `/` 查看全部,也可以输入 `/` 后继续键入字母进行筛选。
| 命令 | 作用 |
|---------|---------|
@@ -188,7 +188,7 @@ description: 这个命令的作用,以及何时使用它
| `user-invocable` | 若为 `false`,不会出现在 `/` 菜单中 | `true` |
| `context` | 设为 `fork` 时,在隔离 subagent 中运行 | 无 |
| `agent` | `context: fork` 时使用的 agent 类型 | `general-purpose` |
-| `hooks` | Skill 范围内的 hooks(PreToolUse、PostToolUse、Stop) | 无 |
+| `hooks` | Skill 运行时注册的 hooks(支持任意 hook 事件;注册后在会话剩余时间内持续生效) | 无 |
### 参数
@@ -224,6 +224,8 @@ description: 按优先级审查 PR
在 prompt 发送前,可用 `` !`command` `` 先执行 shell 命令:
+> **注意(v2.1.299)**:`UserPromptSubmit` hooks 会在命令展开之前运行,因此阻止该 prompt 的 hook 也会阻止这些 `!` 命令运行。
+
```yaml
---
name: commit
@@ -291,6 +293,8 @@ MCP servers 可以把 prompt 暴露成 slash command:
- `mcp__github__*` - 通配符访问全部工具
- `mcp__github__get_issue` - 访问某个特定工具
+> **v2.1.299+:** 规则只作用于它所指名的 server —— `mcp__github` 不再匹配名为 `github__x` 或 `github_` 的 server。对于规范化名称中包含 `__` 的 server,请写成 `mcp__<完整规范化名称>__*`(subagent 的 `tools:` 列表同样适用)。
+
## 命令架构
```mermaid
@@ -548,12 +552,16 @@ allowed-tools: Bash(npm *), Bash(git *)
---
-**最后更新**: 2026 年 9 月 26 日
-**Claude Code 版本**: 2.1.283
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
**来源**:
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/output-styles
- https://github.com/anthropics/claude-code/releases/tag/v2.1.281
+- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
+- https://code.claude.com/docs/en/permissions#mcp
+- https://code.claude.com/docs/en/changelog#2-1-299
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
**兼容模型**: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
---
diff --git a/zh/03-skills/README.md b/zh/03-skills/README.md
index 893739a..1c3c235 100644
--- a/zh/03-skills/README.md
+++ b/zh/03-skills/README.md
@@ -106,6 +106,8 @@ Skills 支持 `$ARGUMENTS`、`$0`、`$1` 等参数替换。
你可以在 prompt 里插入 shell 命令结果:
+> **注意(v2.1.299)**:`UserPromptSubmit` hooks 会在命令展开之前运行,因此阻止该 prompt 的 hook 也会阻止这些 `!` 命令运行。
+
```md
- 当前 git 状态:!`git status`
- 当前 diff:!`git diff HEAD`
@@ -272,7 +274,9 @@ chmod +x ~/.claude/skills/*/scripts/*
---
-**最后更新**: 2026 年 9 月 2 日
-**Claude Code 版本**: 2.1.257
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
**来源**:
- https://code.claude.com/docs/en/skills
+- https://code.claude.com/docs/en/hooks#hook-lifecycle
+- https://code.claude.com/docs/en/changelog#2-1-299
diff --git a/zh/03-skills/claude-md/SKILL.md b/zh/03-skills/claude-md/SKILL.md
index fd44a28..904662d 100644
--- a/zh/03-skills/claude-md/SKILL.md
+++ b/zh/03-skills/claude-md/SKILL.md
@@ -17,7 +17,7 @@ $ARGUMENTS
## 核心原则
-**LLM 是无状态的**:CLAUDE.md 是每次对话中唯一会自动包含的文件。它是让 AI agent 了解代码库的主要入门文档。
+**LLM 是无状态的**:CLAUDE.md 是每次对话都会加载的主要项目文件(与自动记忆和未限定作用域的 rules 一起加载)。它是让 AI agent 了解代码库的主要入门文档。
### 黄金法则
@@ -214,3 +214,10 @@ Subagents 是单独定义的,放在 `.claude/agents/*.md` 里 — 不在 AGENT
- 系统提醒会告诉 Claude,CLAUDE.md “可能相关,也可能不相关” - 噪音越多,越容易被忽略
- monorepo 最需要清晰的 WHAT/WHY/HOW 结构
- 目录级 CLAUDE.md 应该更聚焦
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/memory
diff --git a/zh/04-subagents/README.md b/zh/04-subagents/README.md
index 33e135d..a0a09f8 100644
--- a/zh/04-subagents/README.md
+++ b/zh/04-subagents/README.md
@@ -43,7 +43,7 @@ tools: Read, Grep, Bash
|------|------|
| `name` | subagent 名称 |
| `description` | 何时该调用它 |
-| `tools` | 允许使用的工具 |
+| `tools` | 允许使用的工具。MCP:`mcp__<server>__*` 授予整个服务器的工具(v2.1.299+:只匹配完全相同的服务器名) |
| `model` | 指定模型 |
| `prompt` | 任务提示词 |
| `context` | 上下文策略 |
@@ -115,9 +115,7 @@ mkdir -p ~/.claude/agents
### 列出可用 agents
-```bash
-claude agents
-```
+要查看已配置的 subagents,可以询问 Claude,或浏览 `.claude/agents/` 和 `~/.claude/agents/`。(`claude agents` 与此无关:它打开用于后台会话的 agent view。)
## 可恢复的 agents
@@ -180,7 +178,7 @@ Subagent 会在自己的上下文中读取对应记忆,不和主会话完全
## `claude agents` CLI 命令
-用于查看和管理当前可用的 agent。
+`claude agents` 打开 **agent view**(v2.1.139+):按状态分组的后台会话全屏列表。它不会列出已配置的 subagent 定义;可用 `claude agents --json` 以脚本方式读取会话状态。
## Agent Teams(实验性)
@@ -391,8 +389,13 @@ cp 04-subagents/*.md ~/.claude/agents/
---
-**最后更新**: 2026 年 9 月 26 日
-**Claude Code 版本**: 2.1.283
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
**来源**:
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/agent-view
+- https://code.claude.com/docs/en/sub-agents#permission-modes
+- https://code.claude.com/docs/en/sub-agents#available-tools
diff --git a/zh/07-plugins/README.md b/zh/07-plugins/README.md
index 20eab74..9cafa4b 100644
--- a/zh/07-plugins/README.md
+++ b/zh/07-plugins/README.md
@@ -228,14 +228,20 @@ my-plugin/
"hooks": {
"PostToolUse": [
{
- "command": "node ${CLAUDE_PLUGIN_DATA}/track-usage.js"
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}\"/scripts/track-usage.js \"${CLAUDE_PLUGIN_DATA}\"/usage.json"
+ }
+ ]
}
]
}
}
```
-插件安装时会自动创建该目录。存放在这里的文件会一直保留,直到插件被卸载。
+该目录(`~/.claude/plugins/data/<id>/`)在首次被引用时创建,并在插件更新后保留。当你从插件安装的最后一个位置卸载插件时,该目录会被删除(除非传入 `--keep-data`)。
## 通过设置文件内联定义插件(`source: 'settings'`)(v2.1.80+)
@@ -364,13 +370,10 @@ devops-automation/
│ ├── incident-commander.md
│ └── alert-analyzer.md
├── mcp/
-│ ├── github-config.json
-│ ├── kubernetes-config.json
-│ └── prometheus-config.json
+│ └── kubernetes-config.json
├── hooks/
│ ├── pre-deploy.js
-│ ├── post-deploy.js
-│ └── on-error.js
+│ └── post-deploy.js
└── scripts/
├── deploy.sh
├── rollback.sh
@@ -393,8 +396,7 @@ documentation/
│ ├── code-commentator.md
│ └── example-generator.md
├── mcp/
-│ ├── github-docs-config.json
-│ └── slack-announce-config.json
+│ └── github-docs-config.json
└── templates/
├── api-endpoint.md
├── function-docs.md
@@ -956,8 +958,8 @@ claude plugin update plugin-name
---
-**最后更新**: 2026 年 9 月 30 日
-**Claude Code 版本**: 2.1.285
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
**来源**:
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/plugins-reference
diff --git a/zh/07-plugins/devops-automation/commands/deploy.md b/zh/07-plugins/devops-automation/commands/deploy.md
index 7c15d6f..95995ab 100644
--- a/zh/07-plugins/devops-automation/commands/deploy.md
+++ b/zh/07-plugins/devops-automation/commands/deploy.md
@@ -1,5 +1,4 @@
---
-name: Deploy
description: 将应用部署到生产或预发环境
---
@@ -13,3 +12,11 @@ description: 将应用部署到生产或预发环境
4. 部署到目标环境
5. 运行健康检查
6. 在 Slack 上通知团队
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/devops-automation/commands/incident.md b/zh/07-plugins/devops-automation/commands/incident.md
index 708c76e..f230ab7 100644
--- a/zh/07-plugins/devops-automation/commands/incident.md
+++ b/zh/07-plugins/devops-automation/commands/incident.md
@@ -1,5 +1,4 @@
---
-name: Incident Response
description: 使用结构化响应流程处理生产事故
---
@@ -14,3 +13,11 @@ description: 使用结构化响应流程处理生产事故
5. 协调响应工作
6. 记录解决方案
7. 安排事后复盘
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/devops-automation/commands/rollback.md b/zh/07-plugins/devops-automation/commands/rollback.md
index aa71b17..2a0d389 100644
--- a/zh/07-plugins/devops-automation/commands/rollback.md
+++ b/zh/07-plugins/devops-automation/commands/rollback.md
@@ -1,5 +1,4 @@
---
-name: Rollback
description: 回滚到上一次部署
---
@@ -12,3 +11,11 @@ description: 回滚到上一次部署
3. 执行回滚流程
4. 运行健康检查
5. 通知团队
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/devops-automation/commands/status.md b/zh/07-plugins/devops-automation/commands/status.md
index df472c0..c3aba27 100644
--- a/zh/07-plugins/devops-automation/commands/status.md
+++ b/zh/07-plugins/devops-automation/commands/status.md
@@ -1,5 +1,4 @@
---
-name: System Status
description: 检查整体系统健康状况
---
@@ -13,3 +12,11 @@ description: 检查整体系统健康状况
4. 查看错误率
5. 检查资源利用率
6. 报告整体健康状况
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/documentation/commands/generate-api-docs.md b/zh/07-plugins/documentation/commands/generate-api-docs.md
index 5f2182c..6d0e8fb 100644
--- a/zh/07-plugins/documentation/commands/generate-api-docs.md
+++ b/zh/07-plugins/documentation/commands/generate-api-docs.md
@@ -1,5 +1,4 @@
---
-name: 生成 API 文档
description: 从源代码生成完整的 API 文档
---
@@ -13,3 +12,11 @@ description: 从源代码生成完整的 API 文档
4. 创建带示例的 Markdown
5. 包含请求 / 响应 schema
6. 添加错误文档
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/documentation/commands/generate-readme.md b/zh/07-plugins/documentation/commands/generate-readme.md
index cfaf328..67394ff 100644
--- a/zh/07-plugins/documentation/commands/generate-readme.md
+++ b/zh/07-plugins/documentation/commands/generate-readme.md
@@ -1,5 +1,4 @@
---
-name: 生成 README
description: 创建或更新项目 README
---
@@ -13,3 +12,11 @@ description: 创建或更新项目 README
4. API 文档链接
5. 贡献指南
6. 许可证信息
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/documentation/commands/sync-docs.md b/zh/07-plugins/documentation/commands/sync-docs.md
index 997968a..9d9d5f1 100644
--- a/zh/07-plugins/documentation/commands/sync-docs.md
+++ b/zh/07-plugins/documentation/commands/sync-docs.md
@@ -1,5 +1,4 @@
---
-name: 同步文档
description: 将文档与代码变更保持同步
---
@@ -12,3 +11,11 @@ description: 将文档与代码变更保持同步
3. 更新受影响的文档
4. 验证示例是否仍然可用
5. 更新版本号
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/documentation/commands/validate-docs.md b/zh/07-plugins/documentation/commands/validate-docs.md
index 36bf825..d8fd06d 100644
--- a/zh/07-plugins/documentation/commands/validate-docs.md
+++ b/zh/07-plugins/documentation/commands/validate-docs.md
@@ -1,5 +1,4 @@
---
-name: 校验文档
description: 校验文档的完整性与准确性
---
@@ -12,3 +11,11 @@ description: 校验文档的完整性与准确性
3. 确保内容完整
4. 检查格式
5. 对照实际代码进行校验
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/pr-review/commands/check-security.md b/zh/07-plugins/pr-review/commands/check-security.md
index a527d87..6ceb9c5 100644
--- a/zh/07-plugins/pr-review/commands/check-security.md
+++ b/zh/07-plugins/pr-review/commands/check-security.md
@@ -1,5 +1,4 @@
---
-name: Security Check
description: 运行安全导向的代码审查
---
@@ -12,3 +11,11 @@ description: 运行安全导向的代码审查
3. 注入漏洞
4. 密码学弱点
5. 日志中的敏感数据
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/pr-review/commands/check-tests.md b/zh/07-plugins/pr-review/commands/check-tests.md
index 581ecbd..7fced73 100644
--- a/zh/07-plugins/pr-review/commands/check-tests.md
+++ b/zh/07-plugins/pr-review/commands/check-tests.md
@@ -1,5 +1,4 @@
---
-name: Test Coverage Check
description: 验证测试覆盖率和质量
---
@@ -12,3 +11,11 @@ description: 验证测试覆盖率和质量
3. 审查测试质量
4. 建议缺失的测试用例
5. 确认边界情况已覆盖
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/07-plugins/pr-review/commands/review-pr.md b/zh/07-plugins/pr-review/commands/review-pr.md
index cbf8198..df0d779 100644
--- a/zh/07-plugins/pr-review/commands/review-pr.md
+++ b/zh/07-plugins/pr-review/commands/review-pr.md
@@ -1,5 +1,4 @@
---
-name: Review PR
description: 启动包含安全与测试检查的完整 PR 审查
---
@@ -12,3 +11,11 @@ description: 启动包含安全与测试检查的完整 PR 审查
3. 文档更新
4. 代码质量检查
5. 性能影响评估
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/plugins
+- https://code.claude.com/docs/en/skills#frontmatter-reference
diff --git a/zh/08-checkpoints/README.md b/zh/08-checkpoints/README.md
index 5d994dd..f32a8ae 100644
--- a/zh/08-checkpoints/README.md
+++ b/zh/08-checkpoints/README.md
@@ -35,7 +35,7 @@ Checkpoints 会保存会话状态,让你可以安全地试验和探索多种
### 使用 Slash Command
-使用 `/rewind` 命令(别名:`/checkpoint`)快速进入:
+使用 `/rewind` 命令(别名:`/checkpoint`、`/undo`)快速进入:
```bash
# 打开 rewind 界面
@@ -60,7 +60,7 @@ Checkpoints 会保存会话状态,让你可以安全地试验和探索多种
Claude Code 会自动为你创建 checkpoints:
- **每次用户提示** - 每次用户输入都会创建一个新 checkpoint
-- **持久保存** - checkpoints 会跨会话保留
+- **持久保存** - checkpoints 随对话一起保存,因此恢复会话后仍可使用 `/rewind`
- **自动清理** - 30 天后自动清理旧 checkpoints
这意味着你随时都可以回到之前的任意节点,从几分钟前到几天前都可以。
@@ -263,7 +263,7 @@ Checkpoints 和 git 是互补关系:
- `Esc` + `Esc`:打开 checkpoint 浏览器
- `/rewind`:通过命令进入回退界面
-- `/checkpoint`:`/rewind` 的别名
+- `/checkpoint`、`/undo`:`/rewind` 的别名
## 什么时候该 rewind:上下文监控
@@ -290,3 +290,11 @@ Checkpoints 和 git 是互补关系:
## 总结
Checkpoints 的价值在于让你敢于试错。它让“先试再说”和“试错后立刻回退”变得安全,从而帮你更快找到正确方案。
+
+---
+
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
+**来源**:
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/commands
diff --git a/zh/10-cli/README.md b/zh/10-cli/README.md
index c24c399..81c909e 100644
--- a/zh/10-cli/README.md
+++ b/zh/10-cli/README.md
@@ -40,7 +40,8 @@ graph TD
| `claude mcp serve` | 将 Claude Code 作为 MCP server 运行 | `claude mcp serve` |
| `claude agents` | 列出所有已配置的 subagents | `claude agents` |
| `claude auto-mode defaults` | 以 JSON 打印 auto mode 默认规则 | `claude auto-mode defaults` |
-| `claude --remote-control [name]` | 启动 Remote Control(这是一个 flag,不是子命令;别名 `--rc`) | `claude --rc` |
+| `claude remote-control` | 启动 Remote Control 服务器(服务器模式,没有本地交互式会话;可服务多个会话,`--capacity` 默认 32) | `claude remote-control --name "My Project"` |
+| `claude --remote-control [name]` | 启动启用了 Remote Control 的交互式会话(别名 `--rc`) | `claude --rc` |
| `claude plugin` | 管理插件(安装、启用、禁用) | `claude plugin install my-plugin` |
| `claude auth login` | 登录(支持 `--email`、`--sso`) | `claude auth login --email [email protected]` |
| `claude auth logout` | 注销当前账号 | `claude auth logout` |
@@ -642,8 +643,9 @@ claude --working-directory ./backend --mcp-config ./mcp.json
---
-**最后更新**: 2026 年 10 月 10 日
-**Claude Code 版本**: 2.1.296
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
**来源**:
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/remote-control
diff --git a/zh/CATALOG.md b/zh/CATALOG.md
index be5e5cc..9f259ae 100644
--- a/zh/CATALOG.md
+++ b/zh/CATALOG.md
@@ -19,10 +19,10 @@
| **Subagents** | 6 | 8 | 14 | [04-subagents/README.md](04-subagents/README.md) |
| **Skills** | 10 个内置 | 6 | 16 | [03-skills/README.md](03-skills/README.md) |
| **Plugins** | - | 3 | 3 | [07-plugins/README.md](07-plugins/README.md) |
-| **MCP Servers** | 1 | 0 | 1 | [05-mcp/README.md](05-mcp/README.md) |
+| **MCP Servers** | - | 0 | 0 | [05-mcp/README.md](05-mcp/README.md) |
| **Hooks** | 33 个事件 | 0 | 33 | [06-hooks/README.md](06-hooks/README.md) |
| **Memory** | 7 种类型 | 3 | 10 | [02-memory/README.md](02-memory/README.md) |
-| **总计** | **117** | **28** | **145** | |
+| **总计** | **116** | **28** | **144** | |
---
@@ -54,7 +54,7 @@
| `/plugin` | 管理 plugins | 安装/移除扩展 |
| `/plan` | 进入规划模式 | 复杂实现 |
| `/rewind` | 回退到 checkpoint | 撤销变更、探索替代方案 |
-| `/checkpoint` | 管理 checkpoints | 保存/恢复状态 |
+| `/checkpoint` | `/rewind` 的别名 | 与 `/rewind` 相同 |
| `/cost` | 显示 token 消耗 | 监控开销 |
| `/context` | 显示上下文窗口使用情况 | 管理对话长度 |
| `/export` | 导出对话 | 保存以供参考 |
@@ -68,10 +68,8 @@
| `/release-notes` | 显示更新说明 | 查看新功能 |
| `/remote-control` | 启用远程控制 | 远程访问 |
| `/permissions` | 管理权限 | 控制访问 |
-| `/session` | 管理会话 | 多会话工作流 |
| `/rename` | 重命名当前会话 | 组织会话 |
| `/resume` | 恢复之前的会话 | 继续工作 |
-| `/todo` | 查看/管理待办列表 | 跟踪任务 |
| `/tasks` | 查看后台任务 | 监控异步操作 |
| `/copy` | 复制最后一次回复到剪贴板 | 快速分享输出 |
| `/teleport` | 将会话转移到另一台机器 | 远程继续工作 |
@@ -119,7 +117,7 @@ Claude Code 提供 6 种权限模式,用来控制工具调用如何被授权
|------|-------------|-------------|
| `default` | 每次工具调用都询问 | 标准交互式使用 |
| `acceptEdits` | 自动接受文件编辑,其他情况仍询问 | 可信编辑工作流 |
-| `plan` | 只允许只读工具,不允许写入 | 规划与探索 |
+| `plan` | 调研并提出计划;在你批准前不修改源代码 | 规划与探索 |
| `auto` | 所有操作,附带后台安全分类器检查 | 长任务、减少权限提示 |
| `bypassPermissions` | 跳过所有权限检查 | CI/CD、无头环境 |
| `dontAsk` | 跳过需要权限的工具 | 非交互脚本 |
@@ -151,10 +149,10 @@ Claude Code 提供 6 种权限模式,用来控制工具调用如何被授权
|-------|------|-------------|
| `name` | string | agent 标识 |
| `description` | string | 这个 agent 的用途 |
-| `model` | string | 模型覆盖值(例如 `haiku-4.5`) |
+| `model` | string | 模型覆盖值(`sonnet`、`opus`、`haiku`、`fable`、完整模型 ID 或 `inherit`) |
| `tools` | array | 允许使用的工具列表 |
-| `effort` | string | 推理强度等级(`low`、`medium`、`high`) |
-| `initialPrompt` | string | agent 启动时注入的 system prompt |
+| `effort` | string | 努力等级(`low`、`medium`、`high`、`xhigh`、`max`;取决于模型) |
+| `initialPrompt` | string | agent 作为主会话 agent 运行时(`--agent`)自动提交的第一条用户消息 |
| `disallowedTools` | array | 明确禁止该 agent 使用的工具 |
### 自定义 Subagents(示例)
@@ -215,9 +213,9 @@ Skills 支持在 `SKILL.md` 中使用 YAML frontmatter 进行配置:
|-------|------|-------------|
| `name` | string | skill 显示名称 |
| `description` | string | 这个 skill 的作用 |
-| `autoInvoke` | array | 自动触发的关键词 |
-| `effort` | string | 推理强度等级(`low`、`medium`、`high`) |
-| `shell` | string | 脚本使用的 shell(`bash`、`zsh`、`sh`) |
+| `when_to_use` | string | 追加到 `description` 的触发短语或示例请求 |
+| `effort` | string | 努力等级(`low`、`medium`、`high`、`xhigh`、`max`;取决于模型) |
+| `shell` | string | 内联 `` !`command` `` 块使用的 shell(默认 `bash`,或 `powershell`) |
**参考**: [03-skills/README.md](03-skills/README.md) | [官方文档](https://code.claude.com/docs/en/skills)
@@ -298,7 +296,7 @@ claude plugin update <name> # 更新 plugin(CLI;/plugin update 斜杠命
| **Asana** | 项目管理 | 任务跟踪 | 项目 | 在设置中配置 |
| **Stripe** | 支付数据 | 财务分析 | 项目 | 在设置中配置 |
| **Memory** | 持久记忆 | 跨会话回忆 | 用户 | 在设置中配置 |
-| **Context7** | 库文档 | 查找最新文档 | 内置 | 内置 |
+| **Context7** | 库文档 | 查找最新文档 | 用户 | 在设置中配置(第三方 server) |
> **作用域**: `Project` = 团队(`.mcp.json`),`User` = 个人(`~/.claude.json`),`Built-in` = 预装
@@ -336,10 +334,10 @@ export GITHUB_TOKEN="your_token" && claude mcp add github -- npx -y @modelcontex
| 事件 | 说明 | 触发时机 | 使用场景 |
|-------|-------------|----------------|-----------|
| `SessionStart` | 会话开始/恢复 | 会话初始化 | 初始化任务 |
-| `Setup` | 初始环境搭建(每个会话一次) | 会话首次启动 | 准备工具链、安装依赖 |
+| `Setup` | 仓库初始化或维护运行 | 仅在 `--init-only`,或 `--init`/`--maintenance` 搭配 `-p` 时 | 准备工具链、安装依赖 |
| `InstructionsLoaded` | 指令已加载 | `CLAUDE.md` 或规则文件加载 | 自定义指令处理 |
| `UserPromptSubmit` | 提示词提交前 | 用户发送消息 | 输入校验 |
-| `UserPromptExpansion` | 提示词被展开(@提及、斜杠命令解析) | 展开后、提交前 | 转换或检查展开后的提示词 |
+| `UserPromptExpansion` | 输入的斜杠命令(skill、自定义命令或 MCP prompt)展开为提示词 | `UserPromptSubmit` 之后、展开后的提示词到达 Claude 之前 | 阻止直接使用 `/command`、添加按 skill 的上下文、记录命令 |
| `PreToolUse` | 工具执行前 | 任意工具运行之前 | 校验、日志 |
| `PermissionRequest` | 显示权限对话框 | 敏感操作前 | 自定义审批流程 |
| `PermissionDenied` | 用户拒绝权限请求 | 权限被拒绝后 | 日志、分析、策略执行 |
@@ -446,7 +444,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| 功能 | 说明 | 使用方式 |
|---------|-------------|------------|
| **Remote Control** | 通过 API 远程控制 Claude Code 会话 | 使用远程控制 API 以编程方式发送提示并接收响应 |
-| **Web Sessions** | 在浏览器环境中运行 Claude Code | 通过 `claude web` 或 Anthropic Console 访问 |
+| **Web Sessions** | 在云端会话中运行 Claude Code | 使用 `claude --cloud "task"` 或在 claude.ai/code 启动 |
| **Desktop App** | Claude Code 的原生桌面应用 | 使用 `/desktop` 或从 Anthropic 网站下载 |
| **Agent Teams** | 协调多个 agent 共同处理相关任务 | 配置协作并共享上下文的 teammate agents |
| **Task List** | 后台任务管理与监控 | 使用 `/tasks` 查看和管理后台操作 |
@@ -456,7 +454,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **MCP OAuth** | 为 MCP servers 提供 OAuth 认证 | 在 MCP server 设置中配置 OAuth 凭据以安全访问 |
| **MCP Tool Search** | 动态搜索和发现 MCP 工具 | 使用工具搜索查找已连接 server 上可用的 MCP 工具 |
| **Scheduled Tasks** | 使用 `/loop` 和 cron 工具设置周期任务 | 使用 `/loop 5m /command` 或 CronCreate 工具 |
-| **Chrome Integration** | 使用无头 Chromium 做浏览器自动化 | 使用 `--chrome` 标志或 `/chrome` 命令 |
+| **Chrome Integration** | 通过 Claude in Chrome 扩展操控你自己的 Chrome/Edge(可见窗口、沿用你的登录状态) | 使用 `--chrome` 标志或 `/chrome` 命令 |
| **Keyboard Customization** | 自定义按键映射并支持 chord | 使用 `/keybindings` 或编辑 `~/.claude/keybindings.json` |
| **自动模式(Auto Mode)** | 附带后台安全分类器检查的完全自主运行 | `Shift+Tab` 切换,或使用 `--permission-mode auto` |
| **通道(Channels)** | 多通道通信(Telegram、Slack 等)(Research Preview) | 配置 channel plugins;2026 年 3 月 |
@@ -531,8 +529,8 @@ claude mcp add github -- npx -y @modelcontextprotocol/server-github
---
-**最后更新**: 2026 年 10 月 10 日
-**Claude Code 版本**: 2.1.296
+**最后更新**: 2026 年 10 月 15 日
+**Claude Code 版本**: 2.1.300
**来源**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/commands
@@ -540,3 +538,8 @@ claude mcp add github -- npx -y @modelcontextprotocol/server-github
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/sub-agents
+- https://code.claude.com/docs/en/permission-modes
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/skills
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/chrome
diff --git a/zh/INDEX.md b/zh/INDEX.md
index ce36df3..b72435b 100644
--- a/zh/INDEX.md
+++ b/zh/INDEX.md
@@ -367,7 +367,7 @@ documentation/
**扩展功能**:
- Scheduled Tasks:使用 `/loop` 和 cron 工具的周期任务
-- Chrome Integration:通过无头 Chromium 做浏览器自动化
+- Chrome Integration:通过 Claude in Chrome 扩展在你自己的 Chrome 中做浏览器自动化
- Remote Control(扩展版):连接方式、安全性、对比表
- Keyboard Customization:自定义快捷键、组合键支持、上下文
- Desktop App(扩展版):连接器、`launch.json`、企业功能
@@ -424,7 +424,7 @@ documentation/
- 自动化的重复工作流
#### Chrome Integration
-- 通过无头 Chromium 进行浏览器自动化
+- 通过 Claude in Chrome 扩展在你自己的 Chrome 中进行浏览器自动化
- 页面测试与抓取能力
- 页面交互与数据提取
@@ -456,10 +456,10 @@ documentation/
**核心 CLI 功能**:
- `claude` - 启动交互式会话
- `claude -p "prompt"` - 无头/非交互模式
-- `claude web` - 打开 Web 会话
+- `claude --cloud "task"` - 启动云端(Web)会话
- `claude --model` - 选择模型(Sonnet 4.6、Opus 4.6)
- `claude --permission-mode` - 设置权限模式
-- `claude --remote` - 通过 WebSocket 启用远程控制
+- `claude --remote-control` - 启动一个也能从 claude.ai 或 Claude 应用控制的会话
---
@@ -894,8 +894,8 @@ claude -p "Run tests and report results"
---
-**最后更新**:2026 年 9 月 19 日
-**Claude Code 版本**:2.1.278
+**最后更新**:2026 年 10 月 15 日
+**Claude Code 版本**:2.1.300
**总示例数**:100+ 文件
**分类数**:10 个功能
**Hooks**:8 个自动化脚本
@@ -904,3 +904,6 @@ claude -p "Run tests and report results"
**来源**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/chrome
diff --git a/zh/LEARNING-ROADMAP.md b/zh/LEARNING-ROADMAP.md
index a85df2e..e5dbbb6 100644
--- a/zh/LEARNING-ROADMAP.md
+++ b/zh/LEARNING-ROADMAP.md
@@ -105,7 +105,7 @@ graph TD
| **5** | [Skills](03-skills/README.md) | ⭐⭐ Intermediate | 1 小时 | Level 2 | Slash Commands | 自动化专业能力 | 可复用能力、一致性 |
| **6** | [Hooks](06-hooks/README.md) | ⭐⭐ Intermediate | 1 小时 | Level 2 | 工具、命令 | 工作流自动化(33 个事件、5 种类型) | 校验、质量门禁 |
| **7** | [MCP](05-mcp/README.md) | ⭐⭐⭐ Intermediate+ | 1 小时 | Level 2 | 配置 | 实时数据访问 | 实时集成、API |
-| **8** | [Subagents](04-subagents/README.md) | ⭐⭐⭐ Intermediate+ | 1.5 小时 | Level 2 | Memory、命令 | 处理复杂任务(包含 Bash 在内的 6 个内置 agent) | 委派、专业分工 |
+| **8** | [Subagents](04-subagents/README.md) | ⭐⭐⭐ Intermediate+ | 1.5 小时 | Level 2 | Memory、命令 | 处理复杂任务(6 个内置 agent,包括 Explore 和 Plan) | 委派、专业分工 |
| **9** | [Advanced Features](09-advanced-features/README.md) | ⭐⭐⭐⭐⭐ Advanced | 2-3 小时 | Level 3 | 前面所有内容 | 高阶工具 | Planning、自动模式(Auto Mode)、通道(Channels)、语音输入、权限控制 |
| **10** | [Plugins](07-plugins/README.md) | ⭐⭐⭐⭐ Advanced | 2 小时 | Level 3 | 前面所有内容 | 完整解决方案 | 团队入职、分发 |
| **11** | [CLI Mastery](10-cli/README.md) | ⭐⭐⭐ Advanced | 1 小时 | Level 3 | 建议:全部 | 掌握命令行用法 | 脚本、CI/CD、自动化 |
@@ -405,7 +405,7 @@ claude --permission-mode auto "implement the feature"
claude --permission-mode auto "implement user settings page"
# 练习 6:启用 agent teams
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# 让 Claude 执行:"Implement feature X using a team approach"
# 练习 7:定时任务
@@ -716,10 +716,12 @@ done
---
-**最后更新**:2026 年 9 月 2 日
-**Claude Code 版本**:2.1.257
+**最后更新**:2026 年 10 月 15 日
+**Claude Code 版本**:2.1.300
**来源**:
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/sub-agents
**维护者**:Claude How-To Contributors
**许可证**:仅供学习与参考,免费使用和改编
diff --git a/zh/QUICK_REFERENCE.md b/zh/QUICK_REFERENCE.md
index 7ff88da..790c545 100644
--- a/zh/QUICK_REFERENCE.md
+++ b/zh/QUICK_REFERENCE.md
@@ -123,13 +123,13 @@ claude -r "session" # 按名称/ID 恢复会话
| **Checkpoints** | 内置 | `Esc+Esc` 或 `/rewind` |
| **Planning Mode** | 内置 | `/plan <task>` |
| **Permission Modes(6 种)** | 内置 | `--allowedTools`、`--permission-mode` |
-| **Sessions** | 内置 | `/session <command>` |
+| **Sessions** | 内置 | `/resume`、`/rename`、`/branch`、`/fork` |
| **Background Tasks** | 内置 | 在后台运行 |
-| **Remote Control** | 内置 | WebSocket API |
-| **Web Sessions** | 内置 | `claude web` |
-| **Git Worktrees** | 内置 | `/worktree` |
-| **Auto Memory** | 内置 | 自动保存到 `CLAUDE.md` |
-| **Task List** | 内置 | `/task list` |
+| **Remote Control** | 内置 | `claude --remote-control` 或 `/remote-control` |
+| **Web Sessions** | 内置 | `claude --cloud "task"` |
+| **Git Worktrees** | 内置 | `claude -w <name>` |
+| **Auto Memory** | 内置 | 自动保存到 `~/.claude/projects/<project>/memory/` |
+| **Task List** | 内置 | `Ctrl+T`(清单)、`/tasks`(后台工作) |
| **Bundled Skills(5 个)** | 内置 | `/simplify`、`/loop`、`/claude-api`、`/voice`、`/browse` |
---
@@ -249,10 +249,10 @@ claude --permission-mode plan
### Agent 团队
```bash
# 启用 agent 团队
-export CLAUDE_AGENT_TEAMS=1
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# 或者在 settings.json 中
-{ "agentTeams": { "enabled": true } }
+{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }
# 用这句话开始:"使用团队方式实现功能 X"
```
@@ -393,14 +393,14 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **MCP Elicitation** | MCP server 可在运行时请求用户输入 | 当 server 需要澄清时自动提示 |
| **WebSocket MCP** | MCP 的 WebSocket 传输 | 在 `.mcp.json` 中配置 `ws://` URL |
| **Plugin LSP** | 插件支持 Language Server Protocol | `userConfig`、`${CLAUDE_PLUGIN_DATA}` 变量 |
-| **Remote Control** | 通过 WebSocket API 控制 Claude Code | `claude --remote` 用于外部集成 |
-| **Web Sessions** | 基于浏览器的 Claude Code 接口 | 使用 `claude web` 打开 |
+| **Remote Control** | 从 claude.ai 或 Claude 应用操控本地会话 | `claude --remote-control`(会话内可用 `/remote-control`) |
+| **Web Sessions** | claude.ai/code 上的云端会话 | 在终端中用 `claude --cloud "task"` 启动 |
| **Desktop App** | 原生桌面应用 | 从 claude.ai/download 下载 |
-| **Task List** | 管理后台任务 | `/task list`、`/task status <id>` |
-| **Auto Memory** | 从对话中自动保存记忆 | Claude 会自动保存关键上下文到 `CLAUDE.md` |
-| **Git Worktrees** | 用于并行开发的隔离工作区 | 使用 `/worktree` 创建隔离空间 |
+| **Task List** | 管理后台任务 | `/tasks`(别名 `/bashes`) |
+| **Auto Memory** | 从对话中自动保存记忆 | Claude 将笔记保存到 `~/.claude/projects/<project>/memory/MEMORY.md`;用 `/memory` 管理 |
+| **Git Worktrees** | 用于并行开发的隔离工作区 | `claude --worktree <name>`(或 `-w`) |
| **Model Selection** | 在 Fable 5.1、Fable 5、Opus 5、Sonnet 5、Sonnet 4.6、Opus 4.8 和 Haiku 4.5 之间切换 | `/model` 或 `--model` 参数 |
-| **Agent Teams** | 协调多个 agent 执行任务 | 通过环境变量 `CLAUDE_AGENT_TEAMS=1` 启用 |
+| **Agent Teams** | 协调多个 agent 执行任务 | 通过环境变量 `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` 启用(实验性) |
| **Scheduled Tasks** | 使用 `/loop` 运行周期任务 | `/loop 5m /command` 或 CronCreate 工具 |
| **Chrome Integration** | 浏览器自动化 | `--chrome` 参数或 `/chrome` 命令 |
| **Keyboard Customization** | 自定义按键绑定 | `/keybindings` 命令 |
@@ -507,7 +507,12 @@ echo $GITHUB_TOKEN
---
-**最后更新**:2026 年 9 月 2 日
-**Claude Code 版本**:2.1.257
+**最后更新**:2026 年 10 月 15 日
+**Claude Code 版本**:2.1.300
**来源**:
- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/memory#storage-location
diff --git a/zh/claude_concepts_guide.md b/zh/claude_concepts_guide.md
index 44ffdfb..4117a91 100644
--- a/zh/claude_concepts_guide.md
+++ b/zh/claude_concepts_guide.md
@@ -263,8 +263,8 @@ sequenceDiagram
|--------|------|------|------|
| `name` | String | Agent 标识符 | `code-reviewer` |
| `description` | String | 用途与触发词 | `Comprehensive code quality analysis` |
-| `tools` | List/String | 允许的能力 | `read, grep, diff, lint_runner` |
-| `system_prompt` | Markdown | 行为指令 | 自定义规范 |
+| `tools` | List/String | 允许的工具 | `Read, Grep, Glob, Bash` |
+| *(Markdown 正文)* | Markdown | 系统提示词 / 行为指令 | 自定义规范 |
### 工具访问层级
@@ -289,7 +289,7 @@ graph TD
---
name: code-reviewer
description: Comprehensive code quality and maintainability analysis
-tools: read, grep, diff, lint_runner
+tools: Read, Grep, Glob, Bash
---
# Code Reviewer Agent
@@ -1331,7 +1331,7 @@ Claude Code 支持 **33 个 hook 事件**,分布在四类钩子中:
"hooks": [
{
"type": "command",
- "command": "prettier --write $CLAUDE_FILE_PATH"
+ "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write"
}
]
}
@@ -1342,9 +1342,8 @@ Claude Code 支持 **33 个 hook 事件**,分布在四类钩子中:
### Hook 环境变量
-- `$CLAUDE_FILE_PATH`:当前被写入 / 编辑的文件
-- `$CLAUDE_TOOL_NAME`:正在使用的工具名
-- `$CLAUDE_SESSION_ID`:当前会话 ID
+- Hook 输入以 JSON 形式通过 stdin 传入(`session_id`、`tool_name`、`tool_input.file_path` 等),可用 `jq` 读取
+- `$CLAUDE_CODE_SESSION_ID`:当前会话 ID
- `$CLAUDE_PROJECT_DIR`:项目目录路径
### 最佳实践
@@ -1446,10 +1445,7 @@ claude -p "Should we use microservices or monolith?"
后台执行长任务而不阻塞当前对话。
```bash
-/task list
-/task status bg-1234
-/task show bg-1234
-/task cancel bg-1234
+/tasks # 查看和管理后台工作(别名:/bashes)
```
### Permission Modes
@@ -1536,8 +1532,9 @@ claude -r "Feature"
*适用于 Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5*
*现已覆盖:Hooks、Checkpoints、Planning Mode、Extended Thinking、Background Tasks、Permission Modes、Headless Mode、Session Management、Auto Memory、Agent Teams、Scheduled Tasks、Chrome Integration、Bundled Skills 等概念。*
-**最后更新**:2026 年 9 月 26 日
-**Claude Code 版本**:2.1.283
+**最后更新**:2026 年 10 月 15 日
+**Claude Code 版本**:2.1.300
**来源**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/sub-agents
+- https://code.claude.com/docs/en/commands
diff --git a/zh/resources.md b/zh/resources.md
index 164cd4d..7c1ab21 100644
--- a/zh/resources.md
+++ b/zh/resources.md
@@ -244,5 +244,12 @@ graph TD
| **Hook Events** | 33 个事件:PreToolUse、PostToolUse、PostToolUseFailure、Stop、StopFailure、SubagentStart、SubagentStop、Notification、Elicitation 等 | [Hooks 指南](06-hooks/README.md) |
| **Agent Teams** | 协调多个 agent 共同处理复杂任务 | [Subagents 指南](04-subagents/README.md) |
| **Scheduled Tasks** | 用 `/loop` 和 cron 工具设置周期性任务 | [高级功能](09-advanced-features/README.md) |
-| **Chrome Integration** | 使用无头 Chromium 做浏览器自动化 | [高级功能](09-advanced-features/README.md) |
+| **Chrome Integration** | 通过 Claude in Chrome 扩展在你自己的 Chrome 中做浏览器自动化 | [高级功能](09-advanced-features/README.md) |
| **Keyboard Customization** | 自定义按键绑定,包括组合键序列 | [高级功能](09-advanced-features/README.md) |
+
+---
+
+**最后更新**:2026 年 10 月 15 日
+**Claude Code 版本**:2.1.300
+**来源**:
+- https://code.claude.com/docs/en/chrome