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.302 (#194)

Luong NGUYEN232591b2a8d9
diff --git a/.claude/skills/lesson-quiz/SKILL.md b/.claude/skills/lesson-quiz/SKILL.md
index 58a12af..46a5a71 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.1
+ version: 1.6.2
author: Luong NGUYEN
---
diff --git a/.claude/skills/lesson-quiz/references/question-bank.md b/.claude/skills/lesson-quiz/references/question-bank.md
index 6fc2b11..77b477d 100644
--- a/.claude/skills/lesson-quiz/references/question-bank.md
+++ b/.claude/skills/lesson-quiz/references/question-bank.md
@@ -103,7 +103,7 @@
- **Question**: How do you quickly add a new rule to memory during a conversation?
- **Options**: A) Use the `/memory` slash command or ask conversationally | B) Prefix your message with `#` (e.g., `# always use TypeScript`) | C) Type `/rule "rule text"` | D) Use `@add-memory "rule text"`
- **Correct**: A
-- **Explanation**: The recommended ways to add memory are the `/memory` command (opens memory files in your editor) or asking Claude conversationally (e.g., "remember that we always use TypeScript strict mode"). The `#` prefix was discontinued and no longer works.
+- **Explanation**: Use `/memory` to open your CLAUDE.md and auto memory files in your editor, or ask Claude conversationally. Asking Claude to "remember" something (e.g., "remember that we always use TypeScript strict mode") saves it to auto memory; to put it in CLAUDE.md instead, say "add this to CLAUDE.md". The `#` prefix was discontinued and no longer works.
- **Review**: Quick memory updates section in README
### Q3
@@ -303,7 +303,7 @@
- **Question**: How do you force a subagent to always run in the background (never inline)?
- **Options**: A) Set `background: true` in the agent config | B) Use `async: true` in the agent config | C) Press Ctrl+D after starting it | D) Use `--background` CLI flag
- **Correct**: A
-- **Explanation**: `background: true` in the agent configuration makes the subagent always run as a background task and prevents it from running inline. Subagents already run in the background by default since v2.1.198; this field removes the inline option. Users can also use Ctrl+B to send a foreground task to background.
+- **Explanation**: `background: true` in the agent configuration makes the subagent always run as a background task and prevents it from running inline. Subagents Claude spawns from the main conversation already run in the background by default (v2.1.198; always, in the desktop app and VS Code, since v2.1.302), but a subagent's own nested Agent calls run in the foreground by default in `claude -p`, the Agent SDK, the desktop app and VS Code. Users can also press Ctrl+B to send a running foreground task to the background.
- **Review**: Background subagents section
### Q7
@@ -327,7 +327,7 @@
- **Question**: What are the valid `permissionMode` values for a subagent?
- **Options**: A) read, write, admin | B) manual, acceptEdits, bypassPermissions, plan, dontAsk, auto | C) safe, normal, dangerous | D) restricted, standard, elevated
- **Correct**: B
-- **Explanation**: Subagents support six permission modes: manual (prompts for everything — shown as Manual; its config value is `default`, and manual is accepted as an alias since v2.1.200), acceptEdits (auto-accepts file edits), bypassPermissions (skips all), plan (read-only), dontAsk (auto-denies unless pre-approved), auto (background classifier decides).
+- **Explanation**: Subagents support six permission modes: manual (runs reads without asking and prompts for everything else — shown as Manual; its config value is `default`, and manual is accepted as an alias since v2.1.200), acceptEdits (auto-accepts file edits), bypassPermissions (skips all), plan (read-only), dontAsk (auto-denies unless pre-approved), auto (background classifier decides).
- **Review**: Configuration fields section
### Q10
@@ -353,9 +353,9 @@
### Q2
- **Category**: practical
- **Question**: How do you add a GitHub MCP server via CLI?
-- **Options**: A) `claude mcp install github` | B) `claude mcp add --transport http github https://api.github.com/mcp` | C) `claude plugin add github-mcp` | D) `claude connect github`
+- **Options**: A) `claude mcp install github` | B) `claude mcp add --transport http github https://api.githubcopilot.com/mcp/` | C) `claude plugin add github-mcp` | D) `claude connect github`
- **Correct**: B
-- **Explanation**: Use `claude mcp add` with `--transport` flag, a name, and the server URL. For stdio: `claude mcp add github -- npx -y @modelcontextprotocol/server-github`.
+- **Explanation**: Use `claude mcp add` with the `--transport` flag, a name, and the server URL. GitHub's remote server also needs an auth header: `claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"`.
- **Review**: MCP configuration management section
### Q3
@@ -501,7 +501,7 @@
### Q10
- **Category**: practical
- **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
+- **Options**: A) Add print statements to the hook script | B) Use the `--debug` flag and `Ctrl+O` to open the transcript viewer | C) Check the system log | D) Hooks don't have debugging tools
- **Correct**: B
- **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
@@ -520,10 +520,10 @@
### Q2
- **Category**: practical
-- **Question**: How do you test a plugin locally before publishing?
+- **Question**: How do you load a plugin from a local directory so you can try it in a session before publishing?
- **Options**: A) Use `/plugin test ./my-plugin` | B) Use `claude --plugin-dir ./my-plugin` | C) Use `claude plugin validate ./my-plugin` | D) Copy it to ~/.claude/plugins/
- **Correct**: B
-- **Explanation**: The `--plugin-dir` flag loads a plugin from a local directory for testing. It's repeatable for loading multiple plugins.
+- **Explanation**: The `--plugin-dir` flag loads a plugin from a local directory for testing. It's repeatable for loading multiple plugins. `claude plugin validate ./my-plugin` checks the manifest and components but doesn't load the plugin into a session.
- **Review**: Testing section
### Q3
@@ -683,7 +683,7 @@
- **Question**: What are the six permission modes in Claude Code?
- **Options**: A) read, write, execute, admin, root, sudo | B) manual, acceptEdits, plan, auto, dontAsk, bypassPermissions | C) safe, normal, elevated, admin, unrestricted, god | D) view, edit, run, deploy, full, bypass
- **Correct**: B
-- **Explanation**: The six modes are: manual (prompts for everything — shown as Manual; its config value is `default`, and manual is accepted as an alias since v2.1.200), acceptEdits (auto-accepts file edits), plan (read-only analysis), auto (background classifier decides), dontAsk (auto-denies unless pre-approved), bypassPermissions (skips all checks).
+- **Explanation**: The six modes are: manual (runs reads without asking and prompts for everything else — shown as Manual; its config value is `default`, and manual is accepted as an alias since v2.1.200), acceptEdits (auto-accepts file edits), plan (read-only analysis), auto (background classifier decides), dontAsk (auto-denies unless pre-approved), bypassPermissions (skips all checks).
- **Review**: Permission Modes section
### Q2
@@ -844,8 +844,8 @@
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/skills
@@ -866,3 +866,6 @@
- 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
+- https://code.claude.com/docs/en/mcp#example-connect-to-github-for-code-reviews
+- https://code.claude.com/docs/en/changelog#2-1-302
+- https://code.claude.com/docs/en/interactive-mode
diff --git a/.claude/skills/self-assessment/SKILL.md b/.claude/skills/self-assessment/SKILL.md
index db117c7..2375af3 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.4
+version: 2.5.5
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".
---
@@ -15,7 +15,7 @@ Comprehensive interactive assessment that evaluates Claude Code proficiency acro
Present the user with a choice of assessment depth:
Use AskUserQuestion with these options:
-- **Quick Assessment** — "8 questions, ~2 minutes. Determines your overall level (Beginner/Intermediate/Advanced) and gives a learning path."
+- **Quick Assessment** — "2 multi-select questions (8 items), ~2 minutes. Determines your overall level (Beginner/Intermediate/Advanced) and gives a learning path."
- **Deep Assessment** — "5 categories with detailed questions, ~5 minutes. Gives per-topic skill scores, identifies specific gaps, and builds a prioritized learning path."
If user chooses **Quick Assessment**, go to Step 2A.
@@ -39,7 +39,7 @@ Options:
"Part 2/2: Which of these advanced skills do you have?"
Options:
1. "Configured an MCP server" — e.g., GitHub, database, or other external data source
-2. "Set up hooks" — Configured hooks in ~/.claude/settings.json
+2. "Set up hooks" — Configured hooks in a settings file (e.g. ~/.claude/settings.json or .claude/settings.json)
3. "Created/used subagents" — Used .claude/agents/ for task delegation
4. "Used print mode (claude -p)" — Used `claude -p` for non-interactive or CI/CD use
@@ -97,7 +97,7 @@ Options:
1. "Connected an MCP server and used its tools" — e.g., GitHub MCP for PRs/issues, database MCP for queries, or any external data source
2. "Used advanced MCP features" — Project-scope .mcp.json, OAuth authentication, MCP resources with @mentions, Tool Search, or `claude mcp serve`
3. "Created or configured custom subagents" — Defined agents in .claude/agents/ with custom tools, model, or permissions
-4. "Used advanced subagent features" — Worktree isolation, persistent agent memory, background tasks with Ctrl+B, agent allowlists with `Agent(agent_type)` (the `Task(...)` form is a back-compat alias), or agent teams
+4. "Used advanced subagent features" — Worktree isolation, persistent agent memory, background tasks with Ctrl+B, agent allowlists with `Agent(agent_type)` for an agent run as the main thread with `claude --agent` (the `Task(...)` form is a back-compat alias), or agent teams
**Scoring for Round 3:**
- Options 1-2 map to **MCP** (0-2 points)
@@ -111,7 +111,7 @@ Options:
Options:
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)
+3. "Configured permission modes" — Used any of the six modes — manual (config value `default`; shown as Manual since 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`
**Scoring for Round 4:**
@@ -287,12 +287,12 @@ Use these specific recommendations when a topic is a gap:
- Done when: You can create a custom skill with arguments and dynamic context
**Slash Commands (score 1 — review)**:
-- Focus on: Dynamic context with `!`backtick`` syntax, `@file` references, `disable-model-invocation` vs `user-invocable` control
+- Focus on: Dynamic context with the ``!`command` `` syntax, `@file` references, `disable-model-invocation` vs `user-invocable` control
- Done when: You can create a skill that injects live command output and controls its own invocation behavior
**Memory (score 0)**:
- Tutorial: [02-memory/](../../../02-memory/)
-- Focus on: CLAUDE.md creation, `/init` and `/memory` commands, asking Claude to remember something (the old `#` shortcut was removed)
+- Focus on: CLAUDE.md creation, `/init` and `/memory` commands, and the difference from auto memory (asking Claude to remember something saves it to auto memory; to put it in CLAUDE.md, say "add this to CLAUDE.md" or edit via `/memory` — the old `#` shortcut was removed)
- Key exercise: Create a project CLAUDE.md with your coding standards
- Done when: Claude remembers your preferences across sessions
@@ -337,18 +337,18 @@ Use these specific recommendations when a topic is a gap:
- Done when: Claude delegates code review to your custom agent
**Subagents (score 1 — review)**:
-- Focus on: Worktree isolation (`isolation: worktree`), persistent agent memory (`memory` field with scopes), background agents (Ctrl+B to background; Ctrl+X Ctrl+K twice to stop them all), agent allowlists with `Agent(agent_type)` (`Task(...)` remains a back-compat alias), agent teams (`--teammate-mode`)
+- Focus on: Worktree isolation (`isolation: worktree`), persistent agent memory (`memory` field with scopes), background agents (Ctrl+B to background; Ctrl+X Ctrl+K twice to stop them all), agent allowlists with `Agent(agent_type)` for a main-thread agent started with `claude --agent` (`Task(...)` remains a back-compat alias; in a subagent's own `tools` the type list is ignored), agent teams (`--teammate-mode`)
- Done when: You have a subagent with persistent memory running in worktree isolation
**Checkpoints (score 0)**:
- Tutorial: [08-checkpoints/](../../../08-checkpoints/)
-- Focus on: Esc+Esc and /rewind access, 6 rewind options (restore code and conversation, restore conversation, restore code, summarize from here, summarize up to here, never mind), limitations — bash filesystem ops, subagent edits (except a foreground `context: fork` skill), edits made outside Claude Code, and symlinked/hardlinked paths are all untracked
+- Focus on: Esc+Esc and /rewind access, 6 rewind options (restore code and conversation, restore conversation, restore code, summarize from here, summarize up to here, never mind), limitations — bash filesystem ops, subagent edits (except a foreground `context: fork` skill), edits made outside Claude Code are untracked, and symlinked/hard-linked paths are skipped on restore
- Key exercise: Make experimental changes, then rewind to restore
- Done when: You can confidently experiment knowing you can rewind
**Advanced Features (score 0)**:
- Tutorial: [09-advanced-features/](../../../09-advanced-features/)
-- Focus on: Planning mode (/plan or Shift+Tab), permission modes (6 types: manual — renamed from default in v2.1.200 — acceptEdits, plan, auto, dontAsk, bypassPermissions), extended thinking (Alt+T/Option+T toggle — no effect on Opus 5.5 (the default model), Sonnet 5.5, Haiku 5.5, or the Fable models, where thinking stays on)
+- Focus on: Planning mode (/plan or Shift+Tab), permission modes (6 types: manual — config value `default`, shown as Manual since v2.1.200 — acceptEdits, plan, auto, dontAsk, bypassPermissions), extended thinking (Alt+T/Option+T toggle — no effect on Opus 5.5 (the default model), Sonnet 5.5, Haiku 5.5, or the Fable models, where thinking stays on)
- Key exercise: Use planning mode to design a feature, then implement it
- Done when: You can switch between planning and implementation modes fluently
diff --git a/.claude/skills/self-assessment/references/deep-assessment-rounds.md b/.claude/skills/self-assessment/references/deep-assessment-rounds.md
index 633157e..f204176 100644
--- a/.claude/skills/self-assessment/references/deep-assessment-rounds.md
+++ b/.claude/skills/self-assessment/references/deep-assessment-rounds.md
@@ -37,7 +37,7 @@ Options:
1. "Connected an MCP server and used its tools" — e.g., GitHub MCP for PRs/issues, database MCP for queries, or any external data source
2. "Used advanced MCP features" — Project-scope .mcp.json, OAuth authentication, MCP resources with @mentions, Tool Search, or `claude mcp serve`
3. "Created or configured custom subagents" — Defined agents in .claude/agents/ with custom tools, model, or permissions
-4. "Used advanced subagent features" — Worktree isolation, persistent agent memory, background tasks with Ctrl+B, agent allowlists with `Agent(agent_type)` (the `Task(...)` form is a back-compat alias), or agent teams
+4. "Used advanced subagent features" — Worktree isolation, persistent agent memory, background tasks with Ctrl+B, agent allowlists with `Agent(agent_type)` for an agent run as the main thread with `claude --agent` (the `Task(...)` form is a back-compat alias), or agent teams
**Scoring:** Options 1-2 → **MCP** (0-2); Options 3-4 → **Subagents** (0-2)
@@ -49,7 +49,7 @@ Options:
Options:
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)
+3. "Configured permission modes" — Used any of the six modes — manual (config value `default`; shown as Manual since 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`
**Scoring:** Option 1 → **Checkpoints** (0-1); Options 2-4 → **Advanced Features** (0-3)
@@ -69,8 +69,8 @@ Options:
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/sub-agents
diff --git a/.claude/skills/self-assessment/references/topic-recommendations.md b/.claude/skills/self-assessment/references/topic-recommendations.md
index 7bad210..377e55f 100644
--- a/.claude/skills/self-assessment/references/topic-recommendations.md
+++ b/.claude/skills/self-assessment/references/topic-recommendations.md
@@ -9,12 +9,12 @@ Use these specific recommendations when a topic is a gap. Paths are relative to
- Done when: You can create a custom skill with arguments and dynamic context
**Slash Commands (score 1 — review)**:
-- Focus on: Dynamic context with `!`backtick`` syntax, `@file` references, `disable-model-invocation` vs `user-invocable` control
+- Focus on: Dynamic context with the ``!`command` `` syntax, `@file` references, `disable-model-invocation` vs `user-invocable` control
- Done when: You can create a skill that injects live command output and controls its own invocation behavior
**Memory (score 0)**:
- Tutorial: [02-memory/](../../../../02-memory/)
-- Focus on: CLAUDE.md creation, `/init` and `/memory` commands, asking Claude to remember something (the old `#` shortcut was removed)
+- Focus on: CLAUDE.md creation, `/init` and `/memory` commands, and the difference from auto memory (asking Claude to remember something saves it to auto memory; to put it in CLAUDE.md, say "add this to CLAUDE.md" or edit via `/memory` — the old `#` shortcut was removed)
- Key exercise: Create a project CLAUDE.md with your coding standards
- Done when: Claude remembers your preferences across sessions
@@ -59,18 +59,18 @@ Use these specific recommendations when a topic is a gap. Paths are relative to
- Done when: Claude delegates code review to your custom agent
**Subagents (score 1 — review)**:
-- Focus on: Worktree isolation (`isolation: worktree`), persistent agent memory (`memory` field with scopes), background agents (Ctrl+B to background; Ctrl+X Ctrl+K twice to stop them all), agent allowlists with `Agent(agent_type)` (`Task(...)` remains a back-compat alias), agent teams (`--teammate-mode`)
+- Focus on: Worktree isolation (`isolation: worktree`), persistent agent memory (`memory` field with scopes), background agents (Ctrl+B to background; Ctrl+X Ctrl+K twice to stop them all), agent allowlists with `Agent(agent_type)` for a main-thread agent started with `claude --agent` (`Task(...)` remains a back-compat alias; in a subagent's own `tools` the type list is ignored), agent teams (`--teammate-mode`)
- Done when: You have a subagent with persistent memory running in worktree isolation
**Checkpoints (score 0)**:
- Tutorial: [08-checkpoints/](../../../../08-checkpoints/)
-- Focus on: Esc+Esc and /rewind access, 6 rewind options (restore code and conversation, restore conversation, restore code, summarize from here, summarize up to here, never mind), limitations — bash filesystem ops, subagent edits (except a foreground `context: fork` skill), edits made outside Claude Code, and symlinked/hardlinked paths are all untracked
+- Focus on: Esc+Esc and /rewind access, 6 rewind options (restore code and conversation, restore conversation, restore code, summarize from here, summarize up to here, never mind), limitations — bash filesystem ops, subagent edits (except a foreground `context: fork` skill), edits made outside Claude Code are untracked, and symlinked/hard-linked paths are skipped on restore
- Key exercise: Make experimental changes, then rewind to restore
- Done when: You can confidently experiment knowing you can rewind
**Advanced Features (score 0)**:
- Tutorial: [09-advanced-features/](../../../../09-advanced-features/)
-- Focus on: Planning mode (/plan or Shift+Tab), permission modes (6 types: manual — renamed from default in v2.1.200 — acceptEdits, plan, auto, dontAsk, bypassPermissions), extended thinking (Alt+T/Option+T toggle — no effect on Opus 5.5 (the default model), Sonnet 5.5, Haiku 5.5, or the Fable models, where thinking stays on)
+- Focus on: Planning mode (/plan or Shift+Tab), permission modes (6 types: manual — config value `default`, shown as Manual since v2.1.200 — acceptEdits, plan, auto, dontAsk, bypassPermissions), extended thinking (Alt+T/Option+T toggle — no effect on Opus 5.5 (the default model), Sonnet 5.5, Haiku 5.5, or the Fable models, where thinking stays on)
- Key exercise: Use planning mode to design a feature, then implement it
- Done when: You can switch between planning and implementation modes fluently
@@ -100,8 +100,8 @@ Use these specific recommendations when a topic is a gap. Paths are relative to
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/memory
diff --git a/01-slash-commands/README.md b/01-slash-commands/README.md
index 7ce7e60..b01adcd 100644
--- a/01-slash-commands/README.md
+++ b/01-slash-commands/README.md
@@ -42,13 +42,13 @@ Built-in commands are shortcuts for common actions. There are **60+ built-in com
| `/cost` | Typing-shortcut alias for `/usage` — opens the cost tab (v2.1.118+) |
| `/desktop` | Continue in Desktop app (alias: `/app`) |
| `/diff` | Interactive diff viewer for uncommitted changes. In fullscreen rendering it instead opens a diff panel beside the conversation that stays open while you keep working — it lists changed files with added/removed line counts and refreshes every time Claude edits a file or runs a shell command; run `/diff` again or click `✕` to close it (v2.1.260+). The classic renderer opens the viewer in place of the prompt |
-| `/doctor` | Diagnose installation health — openable while Claude is responding; shows status icons; press `f` to auto-fix issues (enhanced in v2.1.116; layout refreshed to a flat tree with clearer icons in v2.1.178); `/doctor prompt-audit` (also `/checkup prompt-audit`) audits CLAUDE.md files, skills, agents, and commands for prompting patterns written for older models (v2.1.283) |
-| `/effort [low\|medium\|high\|xhigh\|max\|auto\|ultracode [on\|off]]` | Set effort level via interactive arrow-key slider. Levels: `low` → `medium` → `high` → `xhigh` (new in v2.1.111) → `max`. Default is `medium` on Opus 5.5 (the default model since v2.1.280), Sonnet 5.5, and Haiku 5.5, `high` on Opus 5, Sonnet 5, and Opus 4.8, and `xhigh` on Opus 4.7; `xhigh` needs Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, or Opus 4.7; `max` works on Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8/4.7/4.6 and Sonnet 4.6. A level saved before `/effort` became per-model doesn't apply to newly released models such as Opus 5.5 (v2.1.280). The slider also has an **Ultracode** toggle (Tab, or `/effort ultracode [on\|off]`) — not a model effort level: it has Claude orchestrate dynamic workflows at whichever effort level the session runs at. Since v2.1.284 it no longer forces `xhigh` and stays on when you change the level; `/effort ultracode` lasts for the session, and the `ultracode` setting makes it persist |
+| `/doctor` | Diagnose installation health — openable while Claude is responding; a bundled skill: Claude checks your setup and proposes fixes it applies after you confirm (`claude doctor` runs read-only diagnostics); `/doctor prompt-audit` (also `/checkup prompt-audit`) audits CLAUDE.md files, skills, agents, and commands for prompting patterns written for older models (v2.1.283) |
+| `/effort [low\|medium\|high\|xhigh\|max\|auto\|ultracode [on\|off]]` | Set effort level via interactive arrow-key slider. Levels: `low` → `medium` → `high` → `xhigh` (new in v2.1.111) → `max`. Default is `medium` on Opus 5.5 (the default model since v2.1.280), Sonnet 5.5, and Haiku 5.5, `high` on Opus 5, Sonnet 5, and Opus 4.8, and `xhigh` on Opus 4.7; `xhigh` needs Fable 5.1, Fable 5, Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, or Opus 4.7; `max` works on Fable 5.1, Fable 5, Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8/4.7/4.6 and Sonnet 4.6. A level saved before `/effort` became per-model doesn't apply to newly released models such as Opus 5.5 (v2.1.280). The slider also has an **Ultracode** toggle (Tab, or `/effort ultracode [on\|off]`) — not a model effort level: it has Claude orchestrate dynamic workflows at whichever effort level the session runs at. Since v2.1.284 it no longer forces `xhigh` and stays on when you change the level; `/effort ultracode` lasts for the session, and the `ultracode` setting makes it persist |
| `/exit` | Exit the REPL (alias: `/quit`) |
| `/export [filename]` | Export the current conversation to a file or clipboard |
| `/usage-credits` | Configure extra usage for rate limits (renamed from `/extra-usage` in v2.1.144; `/extra-usage` still works as an alias) |
| `/fast [on\|off]` | Toggle fast mode. Applies to Opus 5.5 (the fast-mode default since v2.1.280), Opus 5, and Opus 4.8 |
-| `/feedback` | Submit feedback (alias: `/bug`). Since v2.1.141, can attach recent sessions (last 24h or 7d) so reports spanning more than one session include context. As of v2.1.178, `/bug` requires a description before it can be submitted. |
+| `/feedback` | Submit feedback. Since v2.1.141, can attach recent sessions (last 24h or 7d) so reports spanning more than one session include context. As of v2.1.178, `/bug` requires a description before it can be submitted. |
| `/focus` | Toggle focus view (added v2.1.110; replaces `Ctrl+O` for focus toggle) |
| `/goal <statement>` | Register a session-level completion condition; Claude keeps working until the goal is met. `/goal clear` removes it. Active goal appears in the status line, with a live overlay panel showing elapsed time, turn count, and token usage (added v2.1.139). |
| `/help` | Show help |
@@ -86,7 +86,7 @@ Built-in commands are shortcuts for common actions. There are **60+ built-in com
| `/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). |
+| `/scroll-speed` | Open an interactive dialog to tune mouse-wheel scroll speed in fullscreen mode: press ←/→ to adjust, `r` to reset, Enter to save. Saved to `~/.claude/settings.json` (added v2.1.139). |
| `/security-review` | Analyze branch for security vulnerabilities |
| `/skill-doctor` | Show which loaded skills go unused and what each one costs in context, so you can decide which to turn off. The report opens in the `/plugin` manager's **Stats** tab; in non-interactive `-p` mode it prints as text. Over Remote Control it replies `Skill usage reports are not available on this connection.` — run it in the terminal on the machine hosting the session (requires v2.1.252+) |
| `/skills` | List available skills |
@@ -95,11 +95,11 @@ Built-in commands are shortcuts for common actions. There are **60+ built-in com
| `/status` | Show version, model, account, and a `Session kind` row reading `background job · attached`, `background job · unattended`, or `interactive` (row added v2.1.221). Openable while Claude is responding |
| `/statusline` | Configure status line |
| `/tasks` | List/manage background tasks |
-| `/team-onboarding` | Generate a teammate ramp-up guide from the project's Claude Code setup (new in v2.1.101) |
+| `/team-onboarding` | Generate a teammate ramp-up guide from your last 30 days of Claude Code sessions, commands, and MCP usage, and return a share link (new in v2.1.101) |
| `/teleport` | Resume a Claude Code on the web session in this terminal; opens a picker of your web sessions (alias: `/tp`). Requires a claude.ai subscription |
| `/terminal-setup` | Configure terminal keybindings |
| `/theme` | Open theme picker / manage custom themes (v2.1.118). Define custom themes via JSON in `~/.claude/themes/<name>.json` |
-| `/tui` | Toggle fullscreen TUI (text user interface) mode with flicker-free rendering (added v2.1.110) |
+| `/tui [default\|fullscreen]` | Set the terminal UI renderer (`fullscreen` gives flicker-free rendering) and relaunch into it; a bare `/tui` prints the current renderer (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. Warns about max effort, workflows, always-on context and large tool results (v2.1.299) |
@@ -118,8 +118,8 @@ These skills ship with Claude Code and are invoked like slash commands:
| `/claude-api` | Load Claude API reference for project language |
| `/dataviz` | Chart and dashboard design guidance with a runnable color-palette validator (v2.1.198) |
| `/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 |
+| `/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. Requires v2.1.265+, a session where artifacts are available, and an account with the Design template; not available on Bedrock, Vertex, Foundry, or Claude Platform on AWS. Standalone Claude Design (claude.ai/design) closes December 14, 2026. |
+| `/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.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 |
@@ -196,7 +196,7 @@ Claude: [does the work, panel updates]
> **New in v2.1.101**
-Use `/team-onboarding` to generate a teammate ramp-up guide from your project's local Claude Code usage. The command inspects your `CLAUDE.md`, installed skills, subagents, hooks, and recent workflows, then produces an onboarding document that helps new developers become productive quickly.
+Use `/team-onboarding` to generate a teammate ramp-up guide from your project's local Claude Code usage. Claude analyzes your sessions, commands, and MCP server usage from the past 30 days, then produces an onboarding guide that helps new developers become productive quickly and returns a share link to it.
It's a built-in command — nothing to install.
@@ -206,13 +206,11 @@ It's a built-in command — nothing to install.
claude /team-onboarding
```
-The generated guide summarizes:
+The generated guide draws on:
-- Project purpose and key conventions from [`CLAUDE.md`](../02-memory/README.md)
-- Available [skills](../03-skills/README.md) and when they are auto-invoked
-- Configured [subagents](../04-subagents/README.md) and their responsibilities
-- [Hooks](../06-hooks/README.md) that run on common events
-- Common workflows newcomers should know about
+- Workflows that recur across your recent sessions
+- The commands you run most often
+- The [MCP servers](../05-mcp/README.md) you use
**Availability:** Shipped in Claude Code v2.1.101 (April 11, 2026).
@@ -281,7 +279,7 @@ Instructions for Claude to follow when this command is invoked.
| Field | Purpose | Default |
|-------|---------|---------|
| `name` | Command name (becomes `/name`) | Directory name |
-| `description` | Brief description (helps Claude know when to use it) | First paragraph |
+| `description` | Brief description (helps Claude know when to use it) | First non-empty line |
| `argument-hint` | Expected arguments for auto-completion | None |
| `allowed-tools` | Tools the command can use without permission | Inherits |
| `model` | Specific model to use | Inherits |
@@ -545,11 +543,11 @@ Copy to your commands directory:
```bash
# Project-wide (team)
mkdir -p .claude/commands
-cp 01-slash-commands/*.md .claude/commands/
+cp 01-slash-commands/*.md .claude/commands/ && rm .claude/commands/README.md
# Personal use
mkdir -p ~/.claude/commands
-cp 01-slash-commands/*.md ~/.claude/commands/
+cp 01-slash-commands/*.md ~/.claude/commands/ && rm ~/.claude/commands/README.md
```
## Creating Your Own Commands
@@ -654,8 +652,8 @@ If both exist with the same name, the **skill takes precedence**. Remove one or
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/output-styles
- https://code.claude.com/docs/en/skills
@@ -681,6 +679,8 @@ If both exist with the same name, the **skill takes precedence**. Remove one or
- 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
+- https://code.claude.com/docs/en/fullscreen
+- https://support.claude.com/en/articles/17440474-migrate-from-standalone-claude-design-to-claude
**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 22827ce..b17b1a8 100644
--- a/02-memory/README.md
+++ b/02-memory/README.md
@@ -101,7 +101,7 @@ Remember that we always use TypeScript strict mode in this project.
Please add to memory: prefer async/await over promise chains.
```
-Claude will update the appropriate CLAUDE.md file based on your request.
+Asking Claude to remember something saves it to auto memory. To change CLAUDE.md instead, say "add this to CLAUDE.md", or edit the file yourself with `/memory`.
**Historical reference** (no longer functional):
@@ -312,13 +312,13 @@ In large monorepos, some CLAUDE.md files may be irrelevant to your current work.
// In ~/.claude/settings.json or .claude/settings.json
{
"claudeMdExcludes": [
- "packages/legacy-app/CLAUDE.md",
- "vendors/**/CLAUDE.md"
+ "**/packages/legacy-app/CLAUDE.md",
+ "**/vendors/**/CLAUDE.md"
]
}
```
-Patterns are matched against paths relative to the project root. This is particularly useful for:
+Patterns are matched against absolute file paths using glob syntax, so start repo-relative patterns with `**/`. This is particularly useful for:
- Monorepos with many sub-projects, where only some are relevant
- Repositories that contain vendored or third-party CLAUDE.md files
@@ -354,7 +354,7 @@ These platform-native mechanisms are read alongside JSON settings files and foll
| Setting | Type | Default | Description |
|---------|------|---------|-------------|
-| `cleanupPeriodDays` | integer (days) | 30 | Retention window for on-disk artifacts. **As of v2.1.117**, it applies to all four of: checkpoints (`~/.claude/checkpoints/`), tasks (`~/.claude/tasks/`), shell-snapshots (`~/.claude/shell-snapshots/`), and backups (`~/.claude/backups/`). Files older than the window are pruned at startup. |
+| `cleanupPeriodDays` | integer (days) | 30 | Retention window for session transcripts and other application data under `~/.claude/`, including `file-history/` (checkpoint snapshots), `plans/`, `debug/`, `tasks/`, `shell-snapshots/`, and `backups/`. There is no `~/.claude/checkpoints/` folder. Files older than the window are pruned at startup. |
```jsonc
// ~/.claude/settings.json
@@ -367,26 +367,28 @@ These platform-native mechanisms are read alongside JSON settings files and foll
| Setting | Type | Description |
|---------|------|-------------|
-| `attribution.commit` | boolean | Adds the `Co-Authored-By: Claude` trailer to commits Claude creates. Replaces the deprecated `includeCoAuthoredBy` flag. |
-| `attribution.pr` | boolean | Adds Claude attribution to pull request descriptions. Replaces the deprecated `includeCoAuthoredBy` flag for PRs. |
+| `attribution.commit` | string | Text appended to commits Claude creates (by default, the `Co-Authored-By: Claude` trailer); `""` hides it. Replaces the deprecated `includeCoAuthoredBy` flag. |
+| `attribution.pr` | string | Text appended to pull request descriptions Claude creates; `""` hides it. Replaces the deprecated `includeCoAuthoredBy` flag for PRs. |
| `attribution.sessionUrl` | boolean | Omit the claude.ai session link from commits and PRs created in web and Remote Control sessions (v2.1.183+). |
| `voice.enabled` | boolean | Enables push-to-talk voice dictation (`/voice`). Replaces the deprecated `voiceEnabled` flag. |
-| `prUrlTemplate` | string | **New in v2.1.119.** Custom URL template for the footer PR badge; useful for GitLab, Bitbucket, or internal code-review platforms. Supports `{{owner}}`, `{{repo}}`, and `{{number}}` placeholders. |
+| `prUrlTemplate` | string | **New in v2.1.119.** Custom URL template for the footer PR badge; useful for GitLab, Bitbucket, or internal code-review platforms. Supports `{host}`, `{owner}`, `{repo}`, `{number}`, and `{url}` placeholders; GitLab merge request links stay unchanged. |
```jsonc
// ~/.claude/settings.json
{
"attribution": {
- "commit": false,
- "pr": true
+ "commit": "",
+ "pr": ""
},
"voice": {
"enabled": true
},
- "prUrlTemplate": "https://gitlab.internal/{{owner}}/{{repo}}/-/merge_requests/{{number}}"
+ "prUrlTemplate": "https://reviews.example.com/{owner}/{repo}/pull/{number}"
}
```
+An empty string (`""`) hides that attribution; `"attribution": false` hides all of it (v2.1.281+).
+
#### Deprecated setting names
The following legacy setting keys still work but are deprecated. Prefer the replacements above.
@@ -479,10 +481,10 @@ sequenceDiagram
participant Editor as File System
participant Memory as CLAUDE.md
- User->>Claude: "Remember: use async/await"
+ User->>Claude: "Add async/await rule to CLAUDE.md"
Claude->>User: "Which memory file?"
User->>Claude: "Project memory"
- Claude->>Editor: Open ~/.claude/settings.json
+ Claude->>Editor: Open ./CLAUDE.md
Claude->>Memory: Write to ./CLAUDE.md
Memory-->>Claude: File saved
Claude->>Claude: Load updated memory
@@ -491,15 +493,15 @@ sequenceDiagram
## Auto Memory
-Auto memory is a persistent directory where Claude automatically records learnings, patterns, and insights as it works with your project. Unlike CLAUDE.md files which you write and maintain manually, auto memory is written by Claude itself during sessions.
+Auto memory is a persistent directory where Claude automatically saves typed notes (`user`, `feedback`, `project`, `reference`) as it works with your project. It skips anything it can derive from the codebase, such as architecture, file paths, or debugging fixes. Unlike CLAUDE.md files which you write and maintain manually, auto memory is written by Claude itself during sessions.
### How Auto Memory Works
- **Location**: `~/.claude/projects/<project>/memory/`
- **Entrypoint**: `MEMORY.md` serves as the main file in the auto memory directory
-- **Topic files**: Optional additional files for specific subjects (e.g., `debugging.md`, `api-conventions.md`)
+- **Topic files**: Optional additional files, one per memory (e.g., `prefers-pnpm.md`, `release-checklist.md`)
- **Loading behavior**: The first 200 lines of `MEMORY.md` (or first 25KB, whichever comes first) are loaded into context at session start. Topic files are loaded on demand, not at startup.
-- **Read/write**: Claude reads and writes memory files during sessions as it discovers patterns and project-specific knowledge
+- **Read/write**: Claude reads and writes memory files during sessions as it learns your preferences, feedback, and project context
- **Frontmatter**: Files that begin with YAML frontmatter get a `modified` field — an ISO 8601 timestamp Claude Code records each time it writes the file (v2.1.214)
### Auto Memory Architecture
@@ -508,11 +510,11 @@ Auto memory is a persistent directory where Claude automatically records learnin
graph TD
A["Claude Session Starts"] --> B["Load MEMORY.md<br/>(first 200 lines / 25KB)"]
B --> C["Session Active"]
- C --> D["Claude discovers<br/>patterns & insights"]
+ C --> D["Claude learns<br/>preferences & feedback"]
D --> E{"Write to<br/>auto memory"}
E -->|General notes| F["MEMORY.md"]
- E -->|Topic-specific| G["debugging.md"]
- E -->|Topic-specific| H["api-conventions.md"]
+ E -->|Topic-specific| G["prefers-pnpm.md"]
+ E -->|Topic-specific| H["release-checklist.md"]
C --> I["On-demand load<br/>topic files"]
I --> C
@@ -532,9 +534,9 @@ graph TD
```
~/.claude/projects/<project>/memory/
├── MEMORY.md # Entrypoint (first 200 lines / 25KB loaded at startup)
-├── debugging.md # Topic file (loaded on demand)
-├── api-conventions.md # Topic file (loaded on demand)
-└── testing-patterns.md # Topic file (loaded on demand)
+├── prefers-pnpm.md # Topic file (loaded on demand)
+├── release-checklist.md # Topic file (loaded on demand)
+└── team-contacts.md # Topic file (loaded on demand)
```
### Version Requirement
@@ -562,13 +564,13 @@ To disable it via environment instead, set `CLAUDE_CODE_DISABLE_AUTO_MEMORY=1`.
By default, auto memory is stored in `~/.claude/projects/<project>/memory/`. You can change this location using the `autoMemoryDirectory` setting (available since **v2.1.74**):
```jsonc
-// In ~/.claude/settings.json or .claude/settings.local.json (user/local settings only)
+// In any settings file: user, project, local, or managed policy
{
"autoMemoryDirectory": "/path/to/custom/memory/directory"
}
```
-> **Note**: `autoMemoryDirectory` can only be set in user-level (`~/.claude/settings.json`) or local settings (`.claude/settings.local.json`), not in project or managed policy settings.
+> **Note**: `autoMemoryDirectory` is read from any settings scope: user, project, local, managed policy, or `--settings`. The value must be an absolute path or start with `~/`.
This is useful when you want to:
@@ -873,10 +875,10 @@ Claude has not save the rule because I did not have any `Claude.md` file anywher
### Example 4: Memory Update During Session
-You can add new rules to memory during an active Claude Code session by asking conversationally:
+You can add new rules to CLAUDE.md during an active Claude Code session by asking Claude directly (asking it to *remember* something saves to auto memory instead):
```markdown
-User: Remember that I prefer using React hooks instead of class components
+User: Add this to CLAUDE.md: I prefer using React hooks instead of class components
for all new components.
Claude: I'm adding that to your memory. Which memory file should this go in?
@@ -1244,8 +1246,8 @@ Auto Memory is a separate mechanism (`~/.claude/projects/<project>/memory/`), no
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/memory#agents-md
@@ -1254,4 +1256,6 @@ Auto Memory is a separate mechanism (`~/.claude/projects/<project>/memory/`), no
- 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
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/claude-directory
**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 00ed8dd..7b08018 100644
--- a/03-skills/README.md
+++ b/03-skills/README.md
@@ -59,7 +59,7 @@ graph TB
| **Level 2: Instructions** | When Skill is triggered | Under 5k tokens | SKILL.md body with instructions and guidance |
| **Level 3+: Resources** | As needed | Effectively unlimited | Bundled files executed via bash without loading contents into context |
-This means you can install many Skills without context penalty—Claude only knows each Skill exists and when to use it until actually triggered.
+This keeps Skills lightweight—Claude only knows each Skill exists and when to use it until actually triggered—but not free: every listed skill adds its description to context on every turn.
## Skill Loading Process
@@ -99,7 +99,7 @@ When skills share the same name across levels, higher-priority locations win: **
### Automatic Discovery
-**Nested directories**: When you work with files in subdirectories, Claude Code automatically discovers skills from nested `.claude/skills/` directories. For example, if you're editing a file in `packages/frontend/`, Claude Code also looks for skills in `packages/frontend/.claude/skills/`. This supports monorepo setups where packages have their own skills. As of v2.1.178, when a skill name collides across nested `.claude/skills/` directories, the directory **closest to your current working directory wins** — a package-level skill overrides a repo-root skill of the same name.
+**Nested directories**: When you work with files in subdirectories, Claude Code automatically discovers skills from nested `.claude/skills/` directories. For example, if you're editing a file in `packages/frontend/`, Claude Code also looks for skills in `packages/frontend/.claude/skills/`. This supports monorepo setups where packages have their own skills. When a nested skill has the same name as a repo-root skill, **both load**: for a `deploy` skill at the root and in `apps/web/.claude/skills/`, `/deploy` runs the root one and `/apps/web:deploy` runs the nested one.
**`--add-dir` directories**: Skills from directories added via `--add-dir` are loaded automatically with live change detection. Any edits to skill files in those directories take effect immediately without restarting Claude Code.
@@ -140,7 +140,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.
+- **description** (recommended): what the Skill does AND when to use it. If omitted, Claude Code uses the first non-empty line 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) 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.
@@ -183,14 +183,14 @@ paths: "src/api/**/*.ts" # Glob patterns limiting when skill activ
| `allowed-tools` | Comma-separated list of tools the skill may use without permission prompts. |
| `disallowed-tools` | Comma-separated list of tools to remove while the skill is active (complements `allowed-tools`). Added v2.1.152. |
| `model` | Model override while the skill is active (e.g., `opus`, `sonnet`). |
-| `effort` | Effort level override while the skill is active: `low`, `medium`, `high`, `xhigh`, or `max` — all five are supported on Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, and Opus 4.7. The default effort is `high` on every model that supports effort, except Opus 5.5, Sonnet 5.5, and Haiku 5.5, which default to `medium`, and Opus 4.7, which defaults to `xhigh`. |
+| `effort` | Effort level override while the skill is active: `low`, `medium`, `high`, `xhigh`, or `max` — all five are supported on Fable 5.1, Fable 5, Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, and Opus 4.7. The default effort is `high` on every model that supports effort, except Opus 5.5, Sonnet 5.5, and Haiku 5.5, which default to `medium`, and Opus 4.7, which defaults to `xhigh`. |
| `context` | `fork` to run the skill in a forked subagent context with its own context window. |
| `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 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. |
+| `arguments` | Declares the arguments the skill accepts, for autocomplete and argument substitution. Only the first 64 names, each up to 64 characters, are filled in (v2.1.301). |
| `metadata` | Free-form key/value map for your own bookkeeping (e.g. `version`, `author`). Claude Code passes it through. |
| `license` | License identifier for the skill (e.g. `MIT`). |
| `compatibility` | Free-text compatibility statement, up to 500 characters. Claude Code accepts it but does not act on it. |
@@ -284,7 +284,7 @@ Running `/fix-issue 123` replaces `$ARGUMENTS` with `123`.
### Stacking Skills
-You can stack slash-skills in a single invocation, like `/code-review /fix-issue 123`. As of v2.1.199, this loads ALL leading skills — the first plus up to 5 more — and passes the trailing arguments (`123`) to each; previously only the first skill loaded. If the same skill is invoked more than once, its identical content is de-duplicated (v2.1.202) rather than appended twice.
+You can stack slash-skills in a single invocation at the terminal prompt, like `/write-tests /fix-issue 123`. As of v2.1.199, this loads ALL leading skills — the first plus up to 5 more — and passes the trailing arguments (`123`) to each; previously only the first skill loaded. Expansion stops at a skill that runs as a forked subagent, such as `/code-review`, and through the Agent SDK or `claude -p` only the first skill loads. If the same skill is invoked more than once, its identical content is de-duplicated (v2.1.202) rather than appended twice.
## Injecting Dynamic Context
@@ -808,7 +808,7 @@ Skills support the `` !`command` `` syntax to inject the output of shell command
}
```
-When `disableSkillShellExecution` is `true`, any `` !`command` `` markers in a skill are left as literal text instead of being executed — removing the skill-level shell-injection attack surface without disabling skills themselves. Consider combining this with an `allowedTools` allowlist for defense in depth.
+When `disableSkillShellExecution` is `true`, each `` !`command` `` marker in a skill is replaced with `[shell command execution disabled by policy]` instead of being executed — removing the skill-level shell-injection attack surface without disabling skills themselves. Consider combining this with an `allowedTools` allowlist for defense in depth.
### Hiding bundled skills (`disableBundledSkills`)
@@ -848,15 +848,17 @@ Claude Code ships with a set of built-in skills that are always available withou
| `/claude-api` | Load Claude API/SDK reference; auto-activates on `anthropic`/`@anthropic-ai/sdk` imports |
| `/dataviz` | Chart and dashboard design guidance with a runnable color-palette validator (v2.1.198) |
| `/debug [description]` | Troubleshoot current session by reading debug log |
-| `/deep-research <topic>` | Run an in-depth research pass on a topic (explicit invocation only since v2.1.218 — Claude won't trigger this on its own) |
+| `/deep-research <question>` | A bundled **workflow**, not a skill: fans out web searches and synthesizes a cited report (explicit invocation only since v2.1.218 — Claude won't trigger this on its own) |
| `/fewer-permission-prompts` | Scan transcripts and propose a prioritized allowlist for common read-only tools |
-| `/loop [interval] <prompt>` | Run prompt repeatedly on interval (e.g., `/loop 5m check the deploy`) |
+| `/loop [interval] [prompt]` | Run prompt repeatedly on interval (e.g., `/loop 5m check the deploy`) |
| `/run` *(v2.1.145+)* | Launch this project's app to see a change running — looks for a project skill, otherwise falls back to built-in patterns per project type |
| `/run-skill-generator` *(v2.1.145+)* | Teach `/run`/`/verify` how to handle a specific project by generating a per-project skill |
| `/code-review [effort]` | Review the current diff for correctness bugs at a chosen effort level (e.g. `/code-review high`); pass `--comment` to post findings as inline PR comments. A distinct skill from `/simplify` (quality/reuse cleanups), which was split back out in v2.1.154. (explicit invocation only since v2.1.215 — Claude won't trigger this on its own) Since v2.1.218 it runs as a background subagent, so review work no longer fills your conversation and stacked slash commands stay its review target. |
| `/simplify` | Cleanup-only review — reuse, simplification, efficiency, altitude — and applies the fixes. Split back out from `/code-review` in v2.1.154 |
| `/verify` *(v2.1.145+)* | Build, run, and observe the app to confirm a fix works (not just that tests pass) (explicit invocation only since v2.1.215 — Claude won't trigger this on its own) |
+For automatic reviews on GitHub pull requests, Team and Enterprise organizations can turn on [managed Code Review](https://code.claude.com/docs/en/code-review).
+
> **Note**: If your project or user skills include one named `verify`, Claude runs it right before committing, except for docs-only and tests-only commits (v2.1.286).
These skills are available out-of-the-box and do not need to be installed or configured. They follow the same SKILL.md format as custom skills.
@@ -904,8 +906,8 @@ Once you start building skills seriously, two things become essential: a library
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/slash-commands
@@ -922,4 +924,6 @@ Once you start building skills seriously, two things become essential: a library
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/memory#write-effective-instructions
- https://code.claude.com/docs/en/memory
+- https://code.claude.com/docs/en/changelog#2-1-301
+- https://code.claude.com/docs/en/code-review
**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 ba72ea0..a94f224 100644
--- a/03-skills/claude-md/SKILL.md
+++ b/03-skills/claude-md/SKILL.md
@@ -93,7 +93,7 @@ For detailed build instructions, refer to `agent_docs/building_the_project.md`
When creating or updating CLAUDE.md:
-1. **Target Length**: Keep it under a few hundred lines; shorter is better
+1. **Target Length**: Keep it under 200 lines; shorter is better
2. **No Style Rules**: Remove any linting/formatting instructions
3. **No Task-Specific Instructions**: Move to separate files
4. **No Code Snippets**: Use file references instead
@@ -150,7 +150,7 @@ Brief one-line description.
Before finalizing, verify:
-- [ ] Kept under a few hundred lines; shorter is better
+- [ ] Kept under 200 lines; shorter is better
- [ ] Every line applies to ALL sessions
- [ ] No style/formatting rules
- [ ] No code snippets (use file references)
@@ -217,8 +217,8 @@ Apply similar principles:
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/memory#agents-md
diff --git a/04-subagents/README.md b/04-subagents/README.md
index e5a7d15..2a68857 100644
--- a/04-subagents/README.md
+++ b/04-subagents/README.md
@@ -75,10 +75,11 @@ Subagent files can be stored in multiple locations with different scopes:
| Priority | Type | Location | Scope |
|----------|------|----------|-------|
-| 1 (highest) | **CLI-defined** | Via `--agents` flag (JSON) | Session only |
-| 2 | **Project subagents** | `.claude/agents/` | Current project |
-| 3 | **User subagents** | `~/.claude/agents/` | All projects |
-| 4 (lowest) | **Plugin agents** | Plugin `agents/` directory | Via plugins |
+| 1 (highest) | **Managed** | Managed settings | Organization-wide |
+| 2 | **CLI-defined** | Via `--agents` flag (JSON) | Session only |
+| 3 | **Project subagents** | `.claude/agents/` | Current project |
+| 4 | **User subagents** | `~/.claude/agents/` | All projects |
+| 5 (lowest) | **Plugin agents** | Plugin `agents/` directory | Via plugins |
When duplicate names exist, higher-priority sources take precedence.
@@ -129,7 +130,7 @@ 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. MCP: `mcp__<server>__*` grants a whole server (v2.1.299+: matches only that exact server name). |
+| `tools` | No | Comma-separated list of specific tools. Omit to inherit all tools. Supports `Agent(agent_name)` syntax to restrict spawnable subagents when the agent runs as the main thread with `claude --agent`; inside a subagent the type list is ignored. 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 | `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 |
@@ -138,7 +139,7 @@ to solving problems.
| `mcpServers` | No | MCP servers to make available to the subagent |
| `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 |
+| `background` | No | Subagents already run in the background by default (v2.1.198). Since v2.1.302 the desktop app and VS Code also always run the main conversation's subagents in the background; a subagent's own Agent calls in `claude -p`, the Agent SDK, the desktop app and VS Code run in the foreground by default. 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). |
| `isolation` | No | Set to `worktree` to give the subagent its own git worktree |
| `initialPrompt` | No | Auto-submitted first turn when the subagent runs as the main agent |
@@ -181,7 +182,9 @@ mcpServers:
url: https://mcp.notion.com/mcp
github:
type: http
- url: https://api.github.com/mcp
+ url: https://api.githubcopilot.com/mcp/
+ headers:
+ Authorization: "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
tools: Read, Grep, Glob
---
@@ -259,12 +262,13 @@ claude --agents '{
**Priority of Agent Definitions:**
Agent definitions are loaded with this priority order (first match wins):
-1. **CLI-defined** - `--agents` flag (session only, JSON)
-2. **Project-level** - `.claude/agents/` (current project)
-3. **User-level** - `~/.claude/agents/` (all projects)
-4. **Plugin-level** - Plugin `agents/` directory
+1. **Managed** - managed settings (organization-wide)
+2. **CLI-defined** - `--agents` flag (session only, JSON)
+3. **Project-level** - `.claude/agents/` (current project)
+4. **User-level** - `~/.claude/agents/` (all projects)
+5. **Plugin-level** - Plugin `agents/` directory
-This allows CLI definitions to override all other sources for a single session.
+This lets CLI definitions override project, user and plugin definitions for a single session; managed definitions still take precedence.
---
@@ -499,6 +503,7 @@ The `memory` field gives subagents a persistent directory that survives across c
```yaml
---
name: researcher
+description: Research assistant that keeps findings in persistent memory across sessions
memory: user
---
@@ -525,7 +530,7 @@ graph LR
## Background Subagents
-Subagents run in the background by default (v2.1.198). Claude keeps working on the main conversation while a subagent runs and is notified when it finishes, so you no longer wait on a subagent to return before continuing.
+Subagents run in the background by default (v2.1.198). Since v2.1.302 the desktop app and VS Code also always run the main conversation's subagents in the background; a subagent's own Agent calls in `claude -p`, the Agent SDK, the desktop app and VS Code run in the foreground by default. Claude keeps working on the main conversation while a subagent runs and is notified when it finishes, so you no longer wait on a subagent to return before continuing.
### Configuration
@@ -595,40 +600,44 @@ graph TB
## Forked Subagents
-Forked subagents (`context: fork`) inherit the parent agent's full conversation context at the moment of forking, rather than starting with a clean slate. This is useful for exploring alternative paths without losing the work done so far.
+A forked subagent inherits the parent's whole conversation at the moment of forking — system prompt, tools, model, message history and prompt cache — rather than starting with a clean slate. This is useful for exploring alternative paths without losing the work done so far.
-> **Availability**: GA in v2.1.117. **Since v2.1.232, fork mode is on by default in interactive sessions** — on every build, first-party or not. It stays off by default in non-interactive mode (`claude -p`) and in the Agent SDK. On Claude Code older than v2.1.232, or to turn it on where it is off by default, set `CLAUDE_CODE_FORK_SUBAGENT=1`.
+> **Availability**: GA in v2.1.117. **Since v2.1.232, fork mode is on by default in interactive sessions** — on every build, first-party or not. Since v2.1.302 it is also on by default in non-interactive mode (`claude -p`), the Agent SDK, the desktop app and VS Code; `claude mcp serve` never offers fork subagents. On Claude Code older than v2.1.232, or to turn it on where it is off by default, set `CLAUDE_CODE_FORK_SUBAGENT=1`.
> **Fork-mode subagents run in the background.** Where fork mode is on — as it is by default in an interactive session — Claude Code runs the subagent in the background, forked and non-forked subagents alike.
### Configuration
-```yaml
----
-name: alternative-explorer
-description: Explore an alternative implementation path while preserving parent context
-context: fork
-tools: Read, Edit, Bash, Grep, Glob
----
+You don't define a fork in an agent file. Claude starts one through the Agent tool with `subagent_type: "fork"`, or you start one yourself with `/subtask <task>` (v2.1.212+):
+
+```text
+/subtask Explore an alternative implementation path and report the trade-offs
+```
-You are a forked subagent. You inherit the parent's full conversation and
-may explore an alternative approach. Return your findings and the parent
-will decide whether to adopt them.
+A fork can't spawn further forks. To block forks, add the deny rule `Agent(fork)`:
+
+```json
+{
+ "permissions": {
+ "deny": ["Agent(fork)"]
+ }
+}
```
+> **Note**: `context: fork` is a **skill** frontmatter field (see [Skills](../03-skills/README.md)), not a subagent field. Claude Code silently ignores fields it doesn't recognize in an agent definition.
+
### Enabling Fork Mode Explicitly
-Interactive sessions on v2.1.232+ need no flag. Use this on older versions, in headless
-runs, or in the Agent SDK:
+Set `CLAUDE_CODE_FORK_SUBAGENT=0` to turn fork mode off everywhere. On versions before v2.1.302, set it to `1` to turn forks on in `claude -p` and the Agent SDK.
```bash
-export CLAUDE_CODE_FORK_SUBAGENT=1
+export CLAUDE_CODE_FORK_SUBAGENT=0
claude
```
### When to Use Fork vs Clean Context
-| Scenario | `context: fork` | Clean context (default) |
+| Scenario | Fork (`subagent_type: "fork"`) | Clean context (default) |
|----------|-----------------|-------------------------|
| Explore alternative implementations | Yes | No (would lose context) |
| Long research with existing context | Yes | No |
@@ -639,7 +648,7 @@ claude
## Restrict Spawnable Subagents
-You can control which subagents a given subagent is allowed to spawn by using the `Agent(agent_type)` syntax in the `tools` field. This provides a way to allowlist specific subagents for delegation.
+You can control which subagents an agent running as the main thread with `claude --agent` is allowed to spawn by using the `Agent(agent_type)` syntax in the `tools` field. This provides a way to allowlist specific subagents for delegation. In a subagent definition, any type list inside the parentheses is ignored.
> **Note**: In v2.1.63, the `Task` tool was renamed to `Agent`. Existing `Task(...)` references still work as aliases.
@@ -656,7 +665,7 @@ You are a coordinator agent. You can delegate work to the "worker" and
"researcher" subagents only. Use Read and Bash for your own exploration.
```
-In this example, the `coordinator` subagent can only spawn the `worker` and `researcher` subagents. It cannot spawn any other subagents, even if they are defined elsewhere.
+In this example, when you run `claude --agent coordinator`, the main thread can only spawn the `worker` and `researcher` subagents. It cannot spawn any other subagents, even if they are defined elsewhere. If `coordinator` runs as a subagent instead, the type list is ignored.
---
@@ -748,7 +757,7 @@ You can also set the display mode in `settings.json`:
### Navigation
-Use `Shift+Down` to navigate between teammates in split-pane mode.
+To move between teammates, use the up and down arrow keys in the agent panel and press Enter (in-process mode), or click into a teammate's pane (split-pane mode).
### Team Configuration
@@ -951,8 +960,8 @@ graph TB
### Key Behaviors
-- **Nested spawning on by default, depth 3 (v2.1.219)** - Subagents can spawn their own subagents up to three layers below the main conversation. Set `CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH` to change the limit, or `1` to turn nesting off. At the depth limit, Claude Code withholds the `Agent` tool from every subagent except a fork. (History: v2.1.172–v2.1.216 nested by default up to 5 layers with no way to change it; v2.1.217 made nesting opt-in at depth 1; v2.1.219 set the default to 3.) Use the `Agent(agent_type)` restriction syntax (see [Restrict Spawnable Subagents](#restrict-spawnable-subagents)) to control which subagents a given subagent may spawn
-- **Background permissions** - Background subagents auto-deny any permissions that are not pre-approved
+- **Nested spawning on by default, depth 3 (v2.1.219)** - Subagents can spawn their own subagents up to three layers below the main conversation. Set `CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH` to change the limit, or `1` to turn nesting off. At the depth limit, Claude Code withholds the `Agent` tool from every subagent except a fork. (History: v2.1.172–v2.1.216 nested by default up to 5 layers with no way to change it; v2.1.217 made nesting opt-in at depth 1; v2.1.219 set the default to 3.) Use the `Agent(agent_type)` restriction syntax (see [Restrict Spawnable Subagents](#restrict-spawnable-subagents)) to control which subagents a main-thread agent (`claude --agent`) may spawn; inside a subagent the type list is ignored
+- **Background permissions** - When a background subagent needs a permission that is not pre-approved, the prompt appears in your main session and names the subagent that is asking
- **Backgrounding** - Press `Ctrl+B` to background a currently running task
- **Transcripts** - Subagent transcripts are stored at `~/.claude/projects/{project}/{sessionId}/subagents/agent-{agentId}.jsonl`
- **Auto-compaction** - Subagent context auto-compacts at ~95% capacity (override with `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` environment variable)
@@ -1327,8 +1336,8 @@ See the OpenTelemetry section in [Advanced Features → Telemetry](../09-advance
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/sub-agents
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
@@ -1348,4 +1357,6 @@ See the OpenTelemetry section in [Advanced Features → Telemetry](../09-advance
- 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
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/changelog#2-1-302
**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 a8fb34b..33de58e 100644
--- a/05-mcp/README.md
+++ b/05-mcp/README.md
@@ -107,15 +107,17 @@ Every MCP stdio server is spawned with `CLAUDE_PROJECT_DIR=<absolute path to rep
"repo-tools": {
"type": "stdio",
"command": "node",
- "args": ["${CLAUDE_PROJECT_DIR}/.claude/mcp/repo-tools.js"],
+ "args": ["${CLAUDE_PROJECT_DIR:-.}/.claude/mcp/repo-tools.js"],
"env": {
- "REPO_ROOT": "${CLAUDE_PROJECT_DIR}"
+ "REPO_ROOT": "${CLAUDE_PROJECT_DIR:-.}"
}
}
}
}
```
+> **Note**: In project, local and user configs, write `${CLAUDE_PROJECT_DIR:-.}` with a default: the variable is set in the server's environment, not in Claude Code's own. Only plugin MCP configs substitute `${CLAUDE_PROJECT_DIR}` directly.
+
Use this when your stdio server needs to read files relative to the project root regardless of where Claude Code was launched.
stdio MCP servers also receive `CLAUDE_CODE_SESSION_ID` (matching the value passed to hooks and Bash), including when the session is resumed with `--resume` (v2.1.163+).
@@ -269,7 +271,7 @@ Tool search is on by default: MCP tools are deferred and discovered on demand, s
| `ENABLE_TOOL_SEARCH` | `true` | All MCP tools deferred |
| `ENABLE_TOOL_SEARCH` | `false` | Disabled; all tool descriptions sent in full |
-> **Note:** Tool search requires a model that supports `tool_reference` blocks: Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.5, and later models.
+> **Note:** Tool search requires a model that supports `tool_reference` blocks: Claude Opus 4, Claude Sonnet 4, Claude Haiku 4.5, and later models (Opus 4.5, Sonnet 4.5, Haiku 4.5 and later on Google Cloud's Agent Platform).
### Bypassing Tool Search per Server (v2.1.121+)
@@ -368,7 +370,7 @@ Claude Code uses `local`:
```bash
# Project scope — writes to .mcp.json so the team shares it
-claude mcp add --scope project --transport http github https://api.github.com/mcp
+claude mcp add --scope project --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# User scope — available in every project
claude mcp add --scope user --transport stdio memory -- npx @modelcontextprotocol/server-memory
@@ -383,7 +385,10 @@ Store project-specific MCP configurations in `.mcp.json`:
"mcpServers": {
"github": {
"type": "http",
- "url": "https://api.github.com/mcp"
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
+ }
}
}
}
@@ -397,7 +402,7 @@ Team members will see an approval prompt on first use of project MCPs. In an unt
```bash
# Add HTTP-based server
-claude mcp add --transport http github https://api.github.com/mcp
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Add local stdio server
claude mcp add --transport stdio database -- npx @company/db-server
@@ -456,10 +461,10 @@ Since v2.1.238, `claude mcp list` and `claude mcp get` show disabled servers as
{
"mcpServers": {
"github": {
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
@@ -508,9 +513,9 @@ Reviewers: @bob, @charlie
**Setup**:
```bash
-export GITHUB_TOKEN="your_github_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"
# Or use the CLI to add directly:
-claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
### Environment Variable Expansion in Configuration
@@ -552,10 +557,7 @@ Variables are expanded at runtime:
"mcpServers": {
"database": {
"command": "npx",
- "args": ["@modelcontextprotocol/server-database"],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
}
}
}
@@ -585,8 +587,8 @@ ORDER BY order_count DESC;
**Setup**:
```bash
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-# Or use the CLI to add directly:
-claude mcp add --transport stdio database -- npx @modelcontextprotocol/server-database
+claude mcp add --transport stdio database -- npx -y @bytebase/dbhub \
+ --dsn "$DATABASE_URL"
```
### Example 3: Multi-MCP Workflow
@@ -638,9 +640,10 @@ Final Output:
**Setup**:
```bash
-export GITHUB_TOKEN="your_github_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-export SLACK_TOKEN="your_slack_token"
+export SLACK_BOT_TOKEN="your_slack_bot_token"
+export SLACK_TEAM_ID="your_slack_team_id"
# Add each MCP server via the CLI or configure them in .mcp.json
```
@@ -721,9 +724,10 @@ Store sensitive credentials in environment variables:
```bash
# ~/.bashrc or ~/.zshrc
-export GITHUB_TOKEN="ghp_xxxxxxxxxxxxx"
+export GITHUB_PERSONAL_ACCESS_TOKEN="ghp_xxxxxxxxxxxxx"
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-export SLACK_TOKEN="xoxb-xxxxxxxxxxxxx"
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
```
Then reference them in MCP config:
@@ -731,7 +735,7 @@ Then reference them in MCP config:
```json
{
"env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
```
@@ -847,6 +851,8 @@ MCP servers can be defined inline within agent frontmatter using the `mcpServers
```yaml
---
+name: my-tool-agent
+description: Uses my-tool for specialized operations
mcpServers:
my-tool:
type: http
@@ -865,7 +871,7 @@ Claude Code enforces limits on MCP tool output to prevent context overflow:
| Limit | Threshold | Behavior |
|-------|-----------|----------|
| **Warning** | 10,000 tokens | A warning is displayed that the output is large |
-| **Default max** | 25,000 tokens | Output is truncated beyond this limit |
+| **Default max** | 25,000 tokens | Larger output is saved to a file, and the file path goes into the conversation instead |
| **Disk persistence** | 50,000 characters | Tool results exceeding 50K characters are persisted to disk |
The maximum output limit is configurable via the `MAX_MCP_OUTPUT_TOKENS` environment variable:
@@ -1147,7 +1153,7 @@ MCPorter complements the code-execution approach described above by providing th
1. **Add your first MCP server** using the CLI (example: GitHub):
```bash
-claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
Or create a `.mcp.json` file in your project root:
@@ -1155,10 +1161,10 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
{
"mcpServers": {
"github": {
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
@@ -1167,7 +1173,7 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
2. **Set environment variables:**
```bash
-export GITHUB_TOKEN="your_github_personal_access_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_personal_access_token"
```
3. **Test the connection:**
@@ -1190,7 +1196,7 @@ npm install -g @modelcontextprotocol/server-github
**Database MCP:**
```bash
-npm install -g @modelcontextprotocol/server-database
+npm install -g @bytebase/dbhub
```
**Filesystem MCP:**
@@ -1198,7 +1204,7 @@ npm install -g @modelcontextprotocol/server-database
npm install -g @modelcontextprotocol/server-filesystem
```
-**Slack MCP:**
+**Slack MCP (deprecated package):**
```bash
npm install -g @modelcontextprotocol/server-slack
```
@@ -1228,7 +1234,7 @@ If you see this warning, re-check the value in `.mcp.json` (or the env var it ex
```bash
# Reveals hidden leading/trailing whitespace between the delimiters
-printf '[%s]\n' "$GITHUB_TOKEN"
+printf '[%s]\n' "$GITHUB_PERSONAL_ACCESS_TOKEN"
```
### Skipped Servers in Headless Runs (v2.1.219+)
@@ -1257,10 +1263,10 @@ npm install -g @modelcontextprotocol/server-github
### Authentication Failed
```bash
# Verify environment variable is set
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
# Re-export if needed
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
# Verify token has correct permissions
# Check GitHub token scopes at: https://github.com/settings/tokens
@@ -1308,8 +1314,8 @@ export GITHUB_TOKEN="your_token"
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/managed-mcp
@@ -1324,4 +1330,5 @@ export GITHUB_TOKEN="your_token"
- 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
+- https://code.claude.com/docs/en/sub-agents
**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/database-mcp.json b/05-mcp/database-mcp.json
index adaf255..7228f06 100644
--- a/05-mcp/database-mcp.json
+++ b/05-mcp/database-mcp.json
@@ -4,11 +4,11 @@
"type": "stdio",
"command": "npx",
"args": [
- "@modelcontextprotocol/server-database"
- ],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "-y",
+ "@bytebase/dbhub",
+ "--dsn",
+ "${DATABASE_URL}"
+ ]
}
}
}
diff --git a/05-mcp/github-mcp.json b/05-mcp/github-mcp.json
index 829fbb9..e2dafb8 100644
--- a/05-mcp/github-mcp.json
+++ b/05-mcp/github-mcp.json
@@ -1,13 +1,10 @@
{
"mcpServers": {
"github": {
- "type": "stdio",
- "command": "npx",
- "args": [
- "@modelcontextprotocol/server-github"
- ],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
diff --git a/05-mcp/multi-mcp.json b/05-mcp/multi-mcp.json
index 983a718..24f13bb 100644
--- a/05-mcp/multi-mcp.json
+++ b/05-mcp/multi-mcp.json
@@ -1,24 +1,21 @@
{
"mcpServers": {
"github": {
- "type": "stdio",
- "command": "npx",
- "args": [
- "@modelcontextprotocol/server-github"
- ],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
},
"database": {
"type": "stdio",
"command": "npx",
"args": [
- "@modelcontextprotocol/server-database"
- ],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "-y",
+ "@bytebase/dbhub",
+ "--dsn",
+ "${DATABASE_URL}"
+ ]
},
"slack": {
"type": "stdio",
@@ -27,7 +24,8 @@
"@modelcontextprotocol/server-slack"
],
"env": {
- "SLACK_TOKEN": "${SLACK_TOKEN}"
+ "SLACK_BOT_TOKEN": "${SLACK_BOT_TOKEN}",
+ "SLACK_TEAM_ID": "${SLACK_TEAM_ID}"
}
},
"filesystem": {
diff --git a/06-hooks/README.md b/06-hooks/README.md
index 9856c09..a037591 100644
--- a/06-hooks/README.md
+++ b/06-hooks/README.md
@@ -153,26 +153,29 @@ Instead of the shell-form `"command": "..."`, a command hook can spawn a binary
```json
{
"type": "command",
- "args": ["python3", "$CLAUDE_PROJECT_DIR/.claude/hooks/validate.py", "--strict"],
+ "command": "python3",
+ "args": ["${CLAUDE_PROJECT_DIR}/.claude/hooks/validate.py", "--strict"],
"timeout": 60
}
```
-The two forms are **mutually exclusive** — a hook with both `command` and `args` set is rejected at config load. Use `command` when you need pipes, redirection, `&&` chaining, or shell expansions; use `args` when you are calling one binary with arguments.
+`command` is always required: when `args` is set, `command` is the executable to spawn (resolved on `PATH`) and `args` is its argument vector. Omit `args` (shell form) when you need pipes, redirection, `&&` chaining, or shell expansions; use `args` when you are calling one binary with arguments.
### HTTP Hooks
> Added in v2.1.63.
-Remote webhook endpoints that receive the same JSON input as command hooks. HTTP hooks POST JSON to the URL and receive a JSON response. HTTP hooks are routed through the sandbox when sandboxing is enabled. Environment variable interpolation in URLs requires an explicit `allowedEnvVars` list for security.
+Remote webhook endpoints that receive the same JSON input as command hooks. HTTP hooks POST JSON to the URL and receive a JSON response. HTTP hooks are routed through the sandbox when sandboxing is enabled. Environment variable interpolation into header values requires an explicit `allowedEnvVars` list for security.
```json
{
"hooks": {
"PostToolUse": [{
- "type": "http",
- "url": "https://my-webhook.example.com/hook",
- "matcher": "Write"
+ "matcher": "Write",
+ "hooks": [{
+ "type": "http",
+ "url": "https://my-webhook.example.com/hook"
+ }]
}]
}
}
@@ -182,7 +185,7 @@ Remote webhook endpoints that receive the same JSON input as command hooks. HTTP
- `"type": "http"` -- identifies this as an HTTP hook
- `"url"` -- the webhook endpoint URL
- Routed through sandbox when sandbox is enabled
-- Requires explicit `allowedEnvVars` list for any environment variable interpolation in the URL
+- Requires explicit `allowedEnvVars` list for any environment variable interpolation in `headers` values
### Prompt Hooks
@@ -210,7 +213,8 @@ The `mcp_tool` type invokes a configured MCP tool directly; configuration refere
"hooks": [{
"type": "mcp_tool",
"server": "my-mcp-server",
- "tool": "validate_edit"
+ "tool": "validate_edit",
+ "input": { "file_path": "${tool_input.file_path}" }
}]
}
```
@@ -219,8 +223,9 @@ The `mcp_tool` type invokes a configured MCP tool directly; configuration refere
- `"type": "mcp_tool"` -- identifies this as an MCP tool hook
- `"server"` -- name of the configured MCP server
- `"tool"` -- the tool name on that server to invoke
+- `"input"` -- optional arguments passed to the tool; string values support `${path}` substitution from the hook's JSON input, such as `"${tool_input.file_path}"`
-The hook input (tool name, tool input, session context) is passed as the MCP tool's arguments. See [MCP server setup](../05-mcp/README.md) for configuring MCP servers.
+The tool's arguments come from `input` (with `${path}` substitution), not from the hook input directly. See [MCP server setup](../05-mcp/README.md) for configuring MCP servers.
### Agent Hooks
@@ -228,7 +233,7 @@ Subagent-based verification hooks that spawn a dedicated agent to evaluate condi
> **Note**: Agent hooks are experimental and may change.
-> **Note**: Since v2.1.280, agent hooks don't run on `PermissionRequest` — their answer could never allow or deny the request. Use a command, http, mcp_tool, or prompt hook there.
+> **Note**: Since v2.1.280, agent hooks don't run on `PermissionRequest` — their answer could never allow or deny the request. Use a command or HTTP hook that returns a decision object there (a prompt hook's `ok: false` has no effect on `PermissionRequest`).
```json
{
@@ -324,10 +329,10 @@ Runs after Claude creates tool parameters and before processing. Use this to val
- `permissionDecision`: `"allow"`, `"deny"`, `"ask"`, or `"defer"`
- `"allow"` skips the permission prompt (except for tools that require user interaction, and connector tools your organization set to `ask`)
- `"deny"` prevents the tool call
- - `"ask"` prompts the user to confirm
+ - `"ask"` prompts the user to confirm; the prompt names the plugin or skill the hook comes from (v2.1.301)
- `"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"`
+- `permissionDecisionReason`: Explanation for decision. Shown to the user (not Claude) for `"ask"`; shown to Claude for `"deny"`; for `"allow"` and `"defer"`, written to the debug log only
- `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
@@ -365,7 +370,7 @@ Runs immediately after tool completion. Use for verification, logging, or provid
#### Recoverable blocks (`continueOnBlock`, v2.1.139)
-By default, a `PostToolUse` hook that returns `"decision": "block"` aborts the current turn. Set `"continueOnBlock": true` on the hook to instead surface the rejection back to Claude as a `tool_result`, so the model can read the feedback and retry or adjust.
+A command hook that returns `"decision": "block"` on `PostToolUse` adds the `reason` next to the tool result; Claude still sees the original output. `continueOnBlock` is a **prompt**-hook field (command and agent hooks have none): by default, a prompt hook that returns `ok: false` on `PostToolUse` ends the turn and shows the reason as a warning line. Set `"continueOnBlock": true` on the prompt hook to instead feed the reason back to Claude and continue the turn, so the model can read the feedback and retry or adjust.
```json
{
@@ -375,8 +380,8 @@ By default, a `PostToolUse` hook that returns `"decision": "block"` aborts the c
"matcher": "Write|Edit",
"hooks": [
{
- "type": "command",
- "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/policy-check.py",
+ "type": "prompt",
+ "prompt": "Check this edit against our write policy (for example, read-only paths). Hook input: $ARGUMENTS",
"continueOnBlock": true
}
]
@@ -440,7 +445,7 @@ Run when Claude finishes responding (Stop) or a subagent completes (SubagentStop
}
```
-> **Safety cap on consecutive blocks (v2.1.143)**: If a `Stop` hook returns `"decision": "block"` (or sets `continue: false`) **8 times in a row** for the same turn, Claude Code short-circuits the loop and ends the session with a warning. Override the threshold with the env var `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP=<integer>` (set to `0` to disable the cap entirely). This prevents a buggy Stop hook from looping the session forever.
+> **Safety cap on consecutive blocks (v2.1.143)**: If a `Stop` hook returns `"decision": "block"` (or sets `continue: false`) **8 times in a row** for the same turn, Claude Code overrides the next block and ends the turn. Override the threshold with the env var `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP=<integer>` (set to `0` to disable the cap entirely). This prevents a buggy Stop hook from looping the turn forever.
**Return field (v2.1.163):** A `Stop` or `SubagentStop` hook can return `hookSpecificOutput.additionalContext` to give Claude feedback and **continue the turn without surfacing an error label**. Previously, influencing the model from a Stop hook was awkward; now the hook can inject context cleanly, avoiding the error-label behavior of older feedback paths (such as `"decision": "block"`).
@@ -717,7 +722,7 @@ All hooks receive JSON input via stdin:
},
"tool_use_id": "toolu_01ABC123...",
"agent_id": "agent-abc123",
- "agent_type": "main",
+ "agent_type": "security-reviewer",
"worktree": "/path/to/worktree",
"effort": { "level": "medium" }
}
@@ -733,7 +738,7 @@ All hooks receive JSON input via stdin:
| `prompt_id` | UUID of the prompt being processed; correlates with the OpenTelemetry `prompt.id` attribute (v2.1.196) |
| `hook_event_name` | Name of the event that triggered the hook |
| `agent_id` | Identifier of the agent running this hook |
-| `agent_type` | Type of agent (`"main"`, subagent type name, etc.) |
+| `agent_type` | Agent name (for example, `"Explore"` or `"security-reviewer"`); present only when the session uses `--agent` or the hook fires inside a subagent |
| `worktree` | Path to the git worktree, if the agent is running in one |
| `effort.level` | (v2.1.133+) Active effort level: `low`, `medium`, `high`, `xhigh`, or `max` |
@@ -743,7 +748,7 @@ All hooks receive JSON input via stdin:
|-----------|---------|----------|
| **0** | Success | Continue, parse JSON stdout |
| **2** | Blocking error | Block operation, stderr shown as error |
-| **Other** | Non-blocking error | Continue, stderr shown in verbose mode |
+| **Other** | Non-blocking error | Continue; a `<hook name> hook error` notice in the transcript shows the first line of stderr |
### JSON Output (stdout, exit code 0)
@@ -764,13 +769,18 @@ All hooks receive JSON input via stdin:
}
```
-> **Scope (v2.1.121+):** `hookSpecificOutput.updatedToolOutput` is now honored for **all** tools, not just MCP tools. A `PostToolUse` hook on `Bash`, `Edit`, `Read`, etc. can rewrite the tool's output before Claude sees it — useful for redacting secrets, normalizing diffs, or filtering noisy command output. Example (strip ANSI color codes from a `Bash` output):
+> **Scope (v2.1.121+):** `hookSpecificOutput.updatedToolOutput` is now honored for **all** tools, not just MCP tools. A `PostToolUse` hook on `Bash`, `Edit`, `Read`, etc. can rewrite the tool's output before Claude sees it — useful for redacting secrets, normalizing diffs, or filtering noisy command output. The value must match the tool's output shape — `Bash` returns an object with `stdout`, `stderr`, `interrupted`, and `isImage`; for built-in tools a value that doesn't match is ignored and the original output is used. Example (strip ANSI color codes from a `Bash` output):
>
> ```json
> {
> "hookSpecificOutput": {
> "hookEventName": "PostToolUse",
-> "updatedToolOutput": "<plain-text output with ANSI escapes removed>"
+> "updatedToolOutput": {
+> "stdout": "<output with ANSI escapes removed>",
+> "stderr": "",
+> "interrupted": false,
+> "isImage": false
+> }
> }
> }
> ```
@@ -787,15 +797,15 @@ Hooks can emit raw OSC (operating system command) escape sequences by setting `t
|-------|------|-------------|
| `terminalSequence` | string | Raw escape sequence (typically OSC 9 / OSC 0 / OSC 777). Written to the host terminal verbatim. |
-Example — fire an OSC 9 desktop notification when a long task completes:
+Example — fire an OSC 9 desktop notification when a long task completes. Write ESC and BEL as JSON escapes (`\u001b`, `\u0007`) or build the value with `printf` and `jq`; raw control bytes inside a JSON string fail to parse:
```json
{
- "terminalSequence": "]9;Task complete"
+ "terminalSequence": "\u001b]9;Task complete\u0007"
}
```
-Configure it on a `Stop` hook so the notification fires when Claude finishes a turn. Sequence support is terminal-dependent; Kitty/iTerm2/Windows Terminal honor OSC 9.
+Configure it on a `Stop` hook so the notification fires when Claude finishes a turn. Sequence support is terminal-dependent; iTerm2, Windows Terminal, and WezTerm honor OSC 9, while Kitty uses OSC 99.
## Environment Variables
@@ -809,7 +819,7 @@ Configure it on a `Stop` hook so the notification fires when Claude finishes a t
| `CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS` | SessionEnd hooks | Configurable timeout in milliseconds for SessionEnd hooks (overrides default) |
| `CLAUDE_CODE_SESSION_ID` | Bash tool subprocesses (v2.1.132+) | Session UUID; matches the `session_id` field in hook input JSON. Use to correlate bash logs with hook telemetry. |
| `CLAUDE_EFFORT` | Bash tool subprocesses (v2.1.133+) | Active effort level (`low`/`medium`/`high`/`xhigh`/`max`); matches `effort.level` in hook input JSON. |
-| `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP` | Process-wide (v2.1.143+) | Max consecutive Stop-hook blocks before the session ends with a warning (default `8`). Set to `0` to disable the cap. |
+| `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP` | Process-wide (v2.1.143+) | Max consecutive Stop-hook blocks before Claude Code overrides the next block and ends the turn (default `8`). Set to `0` to disable the cap. |
## Prompt-Based Hooks
@@ -836,13 +846,13 @@ For `Stop` and `SubagentStop` events, you can use LLM-based evaluation:
**LLM Response Schema:**
```json
{
- "decision": "approve",
- "reason": "All tasks completed successfully",
- "continue": false,
- "stopReason": "Task complete"
+ "ok": false,
+ "reason": "Tests were not run after the last edit"
}
```
+`ok: true` allows the action; `reason` is required when `ok` is `false`.
+
## Examples
### Example 1: Bash Command Validator (PreToolUse)
@@ -1253,15 +1263,16 @@ being overwritten.
`Stop` fires after *every* Claude response. `SessionEnd` fires once when the session
terminates — exactly what you want for an end-of-session diary entry.
-**Why `/dev/tty` for input?**
-Hook scripts receive the hook JSON payload via `stdin`, so interactive `read` must use
-`/dev/tty` directly to reach the terminal.
+**Why no interactive prompt?**
+Hooks run without a controlling terminal, so `/dev/tty` is unavailable and a hook can't
+prompt you. Pass the modules (and optional notes) as environment variables when you
+launch Claude Code, e.g. `CLAUDE_HOWTO_MODULES=06,07 claude`.
**File:** `06-hooks/session-end.sh`
```bash
#!/usr/bin/env bash
-# SessionEnd hook: prompts for modules worked on, then appends a session record
+# SessionEnd hook: records the modules worked on, then appends a session record
# to ~/.claude-howto-progress.json for persistent learning progress tracking.
PROGRESS_FILE="$HOME/.claude-howto-progress.json"
@@ -1278,12 +1289,10 @@ fi
DATE=$(date +"%Y-%m-%d")
TIME=$(date +"%H:%M")
-echo ""
-echo " Which modules did you work on? (e.g. 06,07 or press Enter to skip)"
-echo " 01=Slash 02=Memory 03=Skills 04=Subagents 05=MCP"
-echo " 06=Hooks 07=Plugins 08=Checkpoints 09=Advanced 10=CLI"
-printf " > "
-read -r INPUT </dev/tty
+# Modules worked on, e.g. launch with: CLAUDE_HOWTO_MODULES=06,07 claude
+# 01=Slash 02=Memory 03=Skills 04=Subagents 05=MCP
+# 06=Hooks 07=Plugins 08=Checkpoints 09=Advanced 10=CLI
+INPUT="${CLAUDE_HOWTO_MODULES:-}"
if [ -z "$INPUT" ] || [ "$INPUT" = "skip" ]; then
exit 0
@@ -1305,8 +1314,8 @@ MODULES_JSON=$(echo "$INPUT" | tr ',' '\n' | tr -d ' ' | while read -r m; do
esac
done | paste -sd ',' -)
-printf " Notes? (optional, press Enter to skip): "
-read -r NOTES </dev/tty
+# Optional notes, e.g. CLAUDE_HOWTO_NOTES="tried the pre-commit example"
+NOTES="${CLAUDE_HOWTO_NOTES:-}"
# Pass NOTES as a separate argument so Python handles JSON escaping —
# avoids broken JSON when notes contain quotes or backslashes.
@@ -1352,7 +1361,8 @@ chmod +x .claude/hooks/session-end.sh
"hooks": [
{
"type": "command",
- "command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/session-end.sh\""
+ "command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/session-end.sh\"",
+ "timeout": 10
}
]
}
@@ -1361,6 +1371,8 @@ chmod +x .claude/hooks/session-end.sh
}
```
+SessionEnd hooks have a 1.5-second default budget. Setting a per-hook `"timeout"` (in seconds) raises the budget to match, up to 60 seconds; a hook without its own `timeout` is canceled after 1.5 seconds.
+
**Output — `~/.claude-howto-progress.json`:**
```json
@@ -1381,7 +1393,8 @@ chmod +x .claude/hooks/session-end.sh
| Pattern | Why it matters |
|---------|----------------|
| `SessionEnd` event | Fires once on exit — not after every response like `Stop` |
-| `read -r INPUT </dev/tty` | Hooks own `stdin` (JSON payload); use `/dev/tty` for user input |
+| `INPUT="${CLAUDE_HOWTO_MODULES:-}"` | Hooks have no terminal (`/dev/tty` is unavailable), so input comes from env vars |
+| `"timeout": 10` | SessionEnd hooks are canceled after 1.5 s unless they set their own `timeout` |
| `$CLAUDE_PROJECT_DIR` | Portable path — never hardcode `/Users/yourname/...` |
| Guard clause at top | Prevents the hook running in unrelated projects if installed globally |
| Store outside the repo | `~/` path survives `git pull` without overwriting your data |
@@ -1463,7 +1476,7 @@ MCP tools follow the pattern `mcp__<server>__<tool>`:
- **Workspace trust required:** The `statusLine` and `fileSuggestion` hook output commands now require workspace trust acceptance before they take effect.
- **Status-line terminal size (v2.1.153):** Status-line command scripts now receive `COLUMNS` and `LINES` environment variables, so a script can adapt its output to the terminal width/height (e.g. `[ "$COLUMNS" -lt 80 ] && short_output`).
-- **HTTP hooks and environment variables:** HTTP hooks require an explicit `allowedEnvVars` list to use environment variable interpolation in URLs. This prevents accidental leakage of sensitive environment variables to remote endpoints.
+- **HTTP hooks and environment variables:** HTTP hooks require an explicit `allowedEnvVars` list to use environment variable interpolation in header values. This prevents accidental leakage of sensitive environment variables to remote endpoints.
- **Managed settings hierarchy:** The `disableAllHooks` setting now respects the managed settings hierarchy, meaning organization-level settings can enforce hook disablement that individual users cannot override.
- **PowerShell auto-approve (v2.1.119):** PowerShell tool commands can be auto-approved in permission mode, matching Bash. This brings parity for Windows users running Claude Code with PowerShell-backed shell tools.
- **Bash bare env-var auto-approve closed (v2.1.145):** Before v2.1.145, a Bash command of the form `FOO=bar somecommand` (a bare variable assignment inline with a non-allowlisted command) could be auto-approved when only `FOO=bar` by itself was on the allowlist. v2.1.145 closes this — such commands now hit the permission prompt. Scripts relying on the implicit allow will start prompting; re-allow them explicitly via a `Bash(...)` permission rule that covers the full command, not just the variable assignment.
@@ -1579,7 +1592,7 @@ echo $?
| Aspect | Behavior |
|--------|----------|
| **Timeout** | 600 seconds default for command/http/mcp_tool (30 for prompt, 60 for agent); configurable per hook |
-| **Parallelization** | All matching hooks run in parallel |
+| **Parallelization** | All matching hooks run in parallel; since v2.1.302, at most 12 prompt or agent hooks of one event run at a time and the rest wait their turn. |
| **Deduplication** | Identical hook commands deduplicated |
| **Environment** | Runs in current directory with Claude Code's environment |
@@ -1635,8 +1648,8 @@ Edit `~/.claude/settings.json` or `.claude/settings.json` with the hook configur
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/hooks
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
@@ -1651,4 +1664,6 @@ Edit `~/.claude/settings.json` or `.claude/settings.json` with the hook configur
- 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
+- https://code.claude.com/docs/en/changelog#2-1-301
+- https://code.claude.com/docs/en/changelog#2-1-302
**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/pre-commit.sh b/06-hooks/pre-commit.sh
index 66d98a8..7976c55 100644
--- a/06-hooks/pre-commit.sh
+++ b/06-hooks/pre-commit.sh
@@ -8,6 +8,13 @@
# Any other non-zero value is a NON-blocking error — the commit would proceed.
# Source: https://code.claude.com/docs/en/hooks
+# Read the hook JSON from stdin; only run the tests for git commit commands
+INPUT=$(cat)
+COMMAND=$(echo "$INPUT" | sed -n 's/.*"command"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
+if ! echo "$COMMAND" | grep -q 'git commit'; then
+ exit 0
+fi
+
echo "🧪 Running tests before commit..."
# Check if package.json exists (Node.js project)
diff --git a/06-hooks/session-end.sh b/06-hooks/session-end.sh
index 2fade38..bdac542 100755
--- a/06-hooks/session-end.sh
+++ b/06-hooks/session-end.sh
@@ -1,9 +1,10 @@
#!/usr/bin/env bash
-# SessionEnd hook: prompts for modules worked on, then appends a session record
+# SessionEnd hook: records the modules worked on, then appends a session record
# to ~/.claude-howto-progress.json for persistent learning progress tracking.
#
# Fires once when the Claude Code session terminates — not after every response.
-# Uses /dev/tty for interactive input since stdin carries the hook's JSON payload.
+# Hooks run without a controlling terminal (/dev/tty is unavailable), so modules and
+# notes come from the CLAUDE_HOWTO_MODULES / CLAUDE_HOWTO_NOTES environment variables.
#
# Install: add to .claude/settings.json under the "SessionEnd" event (see below).
@@ -28,12 +29,10 @@ echo " Claude Code — Learning Session End"
echo " $DATE $TIME"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
-echo " Which modules did you work on? (e.g. 06,07 or press Enter to skip)"
-echo " 01=Slash 02=Memory 03=Skills 04=Subagents 05=MCP"
-echo " 06=Hooks 07=Plugins 08=Checkpoints 09=Advanced 10=CLI"
-echo ""
-printf " > "
-read -r INPUT </dev/tty
+# Modules worked on, e.g. launch with: CLAUDE_HOWTO_MODULES=06,07 claude
+# 01=Slash 02=Memory 03=Skills 04=Subagents 05=MCP
+# 06=Hooks 07=Plugins 08=Checkpoints 09=Advanced 10=CLI
+INPUT="${CLAUDE_HOWTO_MODULES:-}"
if [ -z "$INPUT" ] || [ "$INPUT" = "skip" ]; then
echo " Skipped — no session logged."
@@ -62,8 +61,8 @@ for m in "${PARTS[@]}"; do
MODULES_JSON="${MODULES_JSON:+$MODULES_JSON,}$label"
done
-printf " Notes? (optional, press Enter to skip): "
-read -r NOTES </dev/tty
+# Optional notes, e.g. CLAUDE_HOWTO_NOTES="tried the pre-commit example"
+NOTES="${CLAUDE_HOWTO_NOTES:-}"
# Pass NOTES as a separate argument so Python handles JSON escaping —
# avoids broken JSON when notes contain quotes or backslashes.
diff --git a/06-hooks/validate-prompt.sh b/06-hooks/validate-prompt.sh
index e0b9f21..a6f7758 100644
--- a/06-hooks/validate-prompt.sh
+++ b/06-hooks/validate-prompt.sh
@@ -44,7 +44,7 @@ fi
# Check for required context in certain operations
if echo "$PROMPT" | grep -qi "refactor"; then
if [ ! -d "tests" ] && [ ! -d "test" ]; then
- printf '{"additionalContext": "Warning: Refactoring without tests may be risky. Consider writing tests first."}'
+ printf '{"hookSpecificOutput": {"hookEventName": "UserPromptSubmit", "additionalContext": "Warning: Refactoring without tests may be risky. Consider writing tests first."}}'
fi
fi
diff --git a/07-plugins/README.md b/07-plugins/README.md
index 41d56c9..0d198dc 100644
--- a/07-plugins/README.md
+++ b/07-plugins/README.md
@@ -43,7 +43,7 @@ sequenceDiagram
participant Hooks
participant Tools as Configured Tools
- User->>Claude: /plugin install pr-review
+ User->>Claude: claude --plugin-dir ./07-plugins/pr-review
Claude->>Plugin: Download plugin manifest
Plugin-->>Claude: Return plugin definition
Claude->>Install: Extract components
@@ -116,14 +116,16 @@ my-plugin/
│ ├── specialist-2.md
│ └── configs/
├── skills/ # Agent Skills with SKILL.md files
-│ ├── skill-1.md
-│ └── skill-2.md
+│ ├── skill-1/
+│ │ └── SKILL.md
+│ └── skill-2/
+│ └── SKILL.md
├── hooks/ # Event handlers in hooks.json
│ └── hooks.json
├── .mcp.json # MCP server configurations
├── .lsp.json # LSP server configurations for code intelligence
-├── bin/ # Executables added to Bash tool's PATH while plugin is enabled
-├── settings.json # Default settings applied when plugin is enabled (currently only `agent` key supported)
+├── bin/ # Executables added to Bash tool's PATH while plugin is enabled (the PowerShell tool finds them too, v2.1.302)
+├── settings.json # Default settings applied when plugin is enabled (only the `agent` and `subagentStatusLine` keys take effect)
├── themes/ # Optional: ship custom Claude Code themes (v2.1.118+)
├── templates/
│ └── issue-template.md
@@ -220,7 +222,7 @@ The official marketplace includes pre-configured LSP plugins:
|--------|----------|---------------|----------------|
| `pyright-lsp` | Python | `pyright-langserver` | `pip install pyright` |
| `typescript-lsp` | TypeScript/JavaScript | `typescript-language-server` | `npm install -g typescript-language-server typescript` |
-| `rust-lsp` | Rust | `rust-analyzer` | Install via `rustup component add rust-analyzer` |
+| `rust-analyzer-lsp` | Rust | `rust-analyzer` | Install via `rustup component add rust-analyzer` |
#### LSP capabilities
@@ -233,12 +235,13 @@ Once configured, LSP servers provide:
### `bin/` directory on `PATH`
-When a plugin is enabled, its `bin/` directory is prepended to the session's `PATH`. Any executable shipped there can be invoked directly from the Bash tool by name — no qualified path required.
+When a plugin is enabled, its `bin/` directory is added to the session's `PATH`, after your own `PATH` entries, so a plugin can't shadow `git`, `ls`, or another system command. Any executable shipped there can be invoked directly from the Bash tool by name — no qualified path required (the PowerShell tool finds them too, v2.1.302).
```bash
# In a plugin layout:
my-plugin/
-├── plugin.json
+├── .claude-plugin/
+│ └── plugin.json
└── bin/
└── my-tool # executable file (chmod +x)
@@ -258,10 +261,14 @@ Plugins can declare user-configurable options in the manifest via `userConfig`.
"version": "1.0.0",
"userConfig": {
"apiKey": {
+ "type": "string",
+ "title": "API key",
"description": "API key for the service",
"sensitive": true
},
"region": {
+ "type": "string",
+ "title": "Region",
"description": "Deployment region",
"default": "us-east-1"
}
@@ -324,28 +331,33 @@ Monitors use the same Monitor tool under the hood, streaming stdout lines as eve
## Inline Plugin via Settings (`source: 'settings'`) (v2.1.80+)
-Plugins can be defined inline in settings files as marketplace entries using the `source: 'settings'` field. This allows embedding a plugin definition directly without requiring a separate repository or marketplace:
+Plugins can be defined inline in settings files as marketplace entries using the `source: 'settings'` field. This allows embedding a plugin definition directly without requiring a separate repository or marketplace. Declare it under `extraKnownMarketplaces.<name>.source`; the `name` must match the marketplace key, and its plugins must reference external sources such as GitHub or npm (relative paths are rejected):
```json
{
- "pluginMarketplaces": [
- {
- "name": "inline-tools",
- "source": "settings",
- "plugins": [
- {
- "name": "quick-lint",
- "source": "./local-plugins/quick-lint"
- }
- ]
+ "extraKnownMarketplaces": {
+ "inline-tools": {
+ "source": {
+ "source": "settings",
+ "name": "inline-tools",
+ "plugins": [
+ {
+ "name": "quick-lint",
+ "source": {
+ "source": "github",
+ "repo": "my-org/quick-lint"
+ }
+ }
+ ]
+ }
}
- ]
+ }
}
```
## Mods (v2.1.287+)
-A mod is a plugin that changes how Claude Code looks and behaves. Its code is a JavaScript or TypeScript hooks module: event handlers that Claude Code calls when something happens, such as a tool call, a submitted prompt, or part of the interface being drawn. Each handler can observe the event, rewrite it, or answer it itself. A mod installs like any other plugin (`/plugin install <plugin>@<marketplace>`), can ship in the same plugin as skills and MCP servers, and runs with your permissions, so install mods only from authors and marketplaces you trust. Mods work in the Claude Code CLI (v2.1.287+) and in the Code tab of the Claude Desktop app.
+A mod is a plugin that changes how Claude Code looks and behaves. Its code is a JavaScript or TypeScript hooks module: event handlers that Claude Code calls when something happens, such as a tool call, a submitted prompt, or part of the interface being drawn. Each handler can observe the event, rewrite it, or answer it itself. A mod installs like any other plugin (`/plugin install <plugin>@<marketplace>`), can ship in the same plugin as skills and MCP servers, and runs with your permissions, so install mods only from authors and marketplaces you trust. Mods work in the Claude Code CLI (v2.1.287+), in the Code tab of the Claude Desktop app, and in the VS Code extension.
| What a mod can do | Example |
|-------------------|---------|
@@ -357,17 +369,17 @@ 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**: 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; v2.1.301 adds `Input` `rows` for a multi-line field (Enter submits, Shift+Enter adds a line).
> **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
-Plugins can ship a `settings.json` file to provide default configuration. This currently supports the `agent` key, which sets the main thread agent for the plugin:
+Plugins can ship a `settings.json` file to provide default configuration. Two keys take effect, `agent` and `subagentStatusLine`; every other key is dropped. `agent` takes the name of one of the plugin's agents and runs it as the main thread:
```json
{
- "agent": "agents/specialist-1.md"
+ "agent": "specialist-1"
}
```
@@ -447,7 +459,7 @@ Specializes in finding security vulnerabilities:
**Installation:**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# Result:
# ✅ 3 slash commands installed
@@ -557,12 +569,13 @@ Enterprise and advanced users can control marketplace behavior through settings:
| `extraKnownMarketplaces` | Add additional marketplace sources beyond the defaults |
| `strictKnownMarketplaces` | Control which marketplaces users are allowed to add (managed-only) |
| `blockedMarketplaces` | Admin-managed blocklist of marketplaces (supports `hostPattern` / `pathPattern` regex fields since v2.1.119) |
-| `deniedPlugins` | Admin-managed blocklist to prevent specific plugins from being installed |
+| `enabledPlugins` (set to `false`) | Block a specific plugin: `"enabledPlugins": { "<plugin>@<marketplace>": false }` in managed settings blocks it from installation at every scope and hides it from the marketplace |
> **Friendlier aliases (v2.1.232)**: `additionalMarketplaces` is accepted as an alias for
> `extraKnownMarketplaces`, and `allowedMarketplaces` for `strictKnownMarketplaces`.
-> **Changelog-sourced** — the v2.1.232 changelog announces them, but the official settings
-> reference does not yet list either name. The canonical keys are safe to keep using.
+> The official settings reference lists both under
+> [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases).
+> Earlier versions ignore the aliases, so the canonical keys are safe to keep using.
> **Owner wildcards (v2.1.223+)**: a `"owner/*"` entry allows or blocks every marketplace
> repo under one GitHub owner. **Accepted only in `strictKnownMarketplaces` and
@@ -577,10 +590,8 @@ Example `blockedMarketplaces` with host/path regex (v2.1.119):
```json
{
"blockedMarketplaces": [
- {
- "hostPattern": "^evil\\.example\\.com$",
- "pathPattern": "^/marketplaces/.*"
- }
+ { "source": "hostPattern", "hostPattern": "^evil\\.example\\.com$" },
+ { "source": "pathPattern", "pathPattern": "^/opt/approved/" }
]
}
```
@@ -615,14 +626,14 @@ Plugin marketplaces are defined in `.claude-plugin/marketplace.json`:
```json
{
"name": "my-team-plugins",
- "owner": "my-org",
+ "owner": { "name": "my-org" },
"plugins": [
{
"name": "code-standards",
"source": "./plugins/code-standards",
"description": "Enforce team coding standards",
"version": "1.2.0",
- "author": "platform-team"
+ "author": { "name": "platform-team" }
},
{
"name": "deploy-helper",
@@ -640,14 +651,14 @@ Plugin marketplaces are defined in `.claude-plugin/marketplace.json`:
| Field | Required | Description |
|-------|----------|-------------|
| `name` | Yes | Marketplace name in kebab-case |
-| `owner` | Yes | Organization or user who maintains the marketplace |
+| `owner` | Yes | Organization or user who maintains the marketplace: an object with a required `name` (`email`, `url` optional) |
| `plugins` | Yes | Array of plugin entries |
| `plugins[].name` | Yes | Plugin name (kebab-case) |
| `plugins[].source` | Yes | Plugin source (path string or source object) |
| `plugins[].description` | No | Brief plugin description |
| `plugins[].version` | No | Semantic version string |
-| `plugins[].author` | No | Plugin author name |
-| `plugins[].renames` | No | Maps a former plugin `name` to its current name (or `null` if removed) so users migrate automatically (v2.1.193) |
+| `plugins[].author` | No | Plugin author: an object with a required `name` (`email`, `url` optional) |
+| `renames` | No | Top-level marketplace field (not per entry): maps a former plugin `name` to its current name (or `null` if removed) so users migrate automatically (v2.1.193) |
| `plugins[].displayName` | No | Human-readable name shown in the UI; not used for lookup (v2.1.143) |
| `plugins[].defaultEnabled` | No | If `false`, the plugin installs disabled until the user opts in (v2.1.154) |
@@ -662,7 +673,6 @@ Plugins can be sourced from multiple locations:
| **Git URL** | `{ "source": "url", "url": "..." }` | `{ "source": "url", "url": "https://git.internal/plugin.git" }` |
| **Git subdirectory** | `{ "source": "git-subdir", "url": "...", "path": "..." }` | `{ "source": "git-subdir", "url": "https://github.com/org/monorepo.git", "path": "packages/plugin" }` |
| **npm** | `{ "source": "npm", "package": "..." }` | `{ "source": "npm", "package": "@acme/claude-plugin", "version": "^2.0" }` |
-| **pip** | `{ "source": "pip", "package": "..." }` | `{ "source": "pip", "package": "claude-data-plugin", "version": ">=1.0" }` |
| **Archive** (v2.1.224+) | `{ "source": "archive", "url": "..." }` | `{ "source": "archive", "url": "https://cdn.example.com/lint-plugin-1.2.0.zip", "sha256": "…" }` |
| **Command** (v2.1.229+) | `{ "source": "command", "command": "..." }` | `{ "source": "command", "command": "acme-plugin-resolver --print-dir" }` |
@@ -741,7 +751,7 @@ protection `gh` already had.
**Private repositories**: Supported via git credential helpers or environment tokens. Users must have read access to the repository.
-**Official marketplace submission**: Submit plugins to the Anthropic-curated marketplace for broader distribution via [claude.ai/settings/plugins/submit](https://claude.ai/settings/plugins/submit) or [platform.claude.com/plugins/submit](https://platform.claude.com/plugins/submit).
+**Directory submission**: Submit plugins to Anthropic's directory for broader distribution from the developer portal at [claude.ai/directory/manage](https://claude.ai/directory/manage). Anthropic's official marketplace, `claude-plugins-official`, doesn't take submissions through the directory portal.
### Managing Marketplaces
@@ -770,13 +780,13 @@ Control how marketplace definitions interact with local `plugin.json` files:
|-------|--------|
| Not set | No restrictions — users can add any marketplace |
| Empty array `[]` | Lockdown — no marketplaces allowed |
-| Array of patterns | Allowlist — only matching marketplaces can be added |
+| Array of source objects | Allowlist — only matching marketplaces can be added |
```json
{
"strictKnownMarketplaces": [
- "my-org/*",
- "github.com/trusted-vendor/*"
+ { "source": "github", "repo": "my-org/*" },
+ { "source": "github", "repo": "trusted-vendor/*" }
]
}
```
@@ -830,7 +840,7 @@ claude plugin tag [path] # Create a {name}--v{version} relea
claude plugin prune # Remove orphaned auto-installed plugin dependencies (v2.1.121+)
claude plugin uninstall <name> --prune # Uninstall and cascade-clean orphaned dependencies (v2.1.121+)
claude plugin details <name> # Show inventory + projected per-turn token cost (v2.1.139+)
-claude plugin configure <name> # Show a plugin's options and which are unset; save values from stdin with --values-stdin (v2.1.285+)
+claude plugin configure <name>@<marketplace> # Show a plugin's options and which are unset; save values from stdin with --values-stdin (v2.1.285+)
claude plugin init <name> # Scaffold a new plugin (alias: claude plugin new)
```
@@ -906,8 +916,8 @@ claude plugin install my-plugin@my-marketplace --accept-command <sha256>
In a session, `/plugin install <plugin> --marketplace <source>` names the marketplace inline and offers to add it before installing, so discovering and adding a marketplace is no longer a separate step. From your shell, `claude plugin install <plugin> --marketplace <source>` does the same (v2.1.292+): it adds the marketplace if needed, under the same policy checks as `claude plugin marketplace add`, then installs the plugin.
```bash
-/plugin install code-reviewer --marketplace anthropics/claude-code-plugins
-claude plugin install code-reviewer --marketplace anthropics/claude-code-plugins # same, from your shell (v2.1.292+)
+/plugin install code-review --marketplace anthropics/claude-code
+claude plugin install code-review --marketplace anthropics/claude-code # same, from your shell (v2.1.292+)
```
## Installation Methods
@@ -998,7 +1008,7 @@ export FORCE_AUTOUPDATE_PLUGINS=1
# CI runner without SSH keys — force HTTPS for plugin installs
export CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1
-claude plugin install code-reviewer@anthropic
+claude plugin install code-review@claude-code-plugins
```
> **Remote session plugin loading (v2.1.179)**: Plugin loading performance in remote sessions was improved in v2.1.179, so plugins become available faster when you connect to a remote session.
@@ -1071,17 +1081,18 @@ Administrators can control plugin behavior across an organization using managed
| Setting | Description |
|---------|-------------|
| `enabledPlugins` | Allowlist of plugins that are enabled by default |
-| `deniedPlugins` | Blocklist of plugins that cannot be installed |
+| `enabledPlugins` (set to `false`) | Block a plugin: `"enabledPlugins": { "<plugin>@<marketplace>": false }` in managed settings blocks it from installation at every scope and hides it from the marketplace |
| `extraKnownMarketplaces` | Add additional marketplace sources beyond the defaults |
| `strictKnownMarketplaces` | Restrict which marketplaces users are allowed to add (managed-only; enforced on every plugin lifecycle event since v2.1.117) |
| `blockedMarketplaces` | Blocklist of marketplaces; enforced on every plugin lifecycle event since v2.1.117; supports `hostPattern` / `pathPattern` regex fields since v2.1.119 |
-| `allowedChannelPlugins` | Control which plugins are permitted per release channel |
+| `allowedChannelPlugins` | Allowlist of [channel](https://code.claude.com/docs/en/channels) plugins that may push messages into sessions (entries name a `marketplace` and a `plugin`) |
| `disableCommandPluginSources` | Block the `command` plugin source type org-wide (v2.1.229+) |
> **Friendlier aliases (v2.1.232)**: `additionalMarketplaces` is accepted as an alias for
> `extraKnownMarketplaces`, and `allowedMarketplaces` for `strictKnownMarketplaces`.
-> **Changelog-sourced** — the v2.1.232 changelog announces them, but the official settings
-> reference does not yet list either name. The canonical keys are safe to keep using.
+> The official settings reference lists both under
+> [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases).
+> Earlier versions ignore the aliases, so the canonical keys are safe to keep using.
> **Owner wildcards (v2.1.223+)**: a `"owner/*"` entry allows or blocks every marketplace
> repo under one GitHub owner. **Accepted only in `strictKnownMarketplaces` and
@@ -1093,13 +1104,14 @@ These settings can be applied at the organization level via managed configuratio
## Plugin Security
-Plugin subagents run in a restricted sandbox. The following frontmatter keys are **not allowed** in plugin subagent definitions:
+Plugin subagents **ignore** the following frontmatter keys (the agent still loads; the keys have no effect):
- `hooks` -- Subagents cannot register event handlers
- `mcpServers` -- Subagents cannot configure MCP servers
- `permissionMode` -- Subagents cannot override the permission model
+- `initialPrompt` -- Plugin agents cannot auto-submit a first prompt
-This ensures that plugins cannot escalate privileges or modify the host environment beyond their declared scope.
+An agent file can't add hooks or MCP servers on its own; ship those as plugin-level hooks and MCP servers instead.
## Publishing a Plugin
@@ -1117,7 +1129,7 @@ This ensures that plugins cannot escalate privileges or modify the host environm
**Example submission:**
-```markdown
+````markdown
# PR Review Plugin
## Description
@@ -1131,7 +1143,7 @@ Complete PR review workflow with security, testing, and documentation checks.
## Installation
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## Features
@@ -1152,7 +1164,7 @@ Complete PR review workflow with security, testing, and documentation checks.
- Claude Code 2.1+
- GitHub access
- CodeQL (optional)
-```
+````
## Plugin vs Manual Configuration
@@ -1166,7 +1178,7 @@ Complete PR review workflow with security, testing, and documentation checks.
**With Plugin (2 minutes):**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ Everything installed and configured
# ✅ Ready to use immediately
# ✅ Team can reproduce exact setup
@@ -1202,15 +1214,12 @@ Complete PR review workflow with security, testing, and documentation checks.
### Installing from Marketplace
-1. **Browse available plugins:**
+1. **Browse available plugins** (the **Discover** tab lists plugins from your marketplaces; `/plugin list` shows only installed plugins):
```bash
- /plugin list
+ /plugin
```
-2. **View plugin details:**
- ```bash
- claude plugin details plugin-name
- ```
+2. **View plugin details:** select the plugin in the **Discover** tab to open its details. (`claude plugin details plugin-name` works only once a plugin is loaded: installed, or passed with `--plugin-dir`.)
3. **Install a plugin:**
```bash
@@ -1220,7 +1229,8 @@ Complete PR review workflow with security, testing, and documentation checks.
### Installing from Local Path
```bash
-/plugin install ./path/to/plugin-directory
+# /plugin install needs name@marketplace; a path target reports "marketplace not found"
+claude --plugin-dir ./path/to/plugin-directory
```
### Installing from GitHub
@@ -1298,7 +1308,7 @@ The following Claude Code features work together with plugins:
## Troubleshooting
### Plugin Won't Install
-- Check Claude Code version compatibility: `/version`
+- Check Claude Code version compatibility: `claude --version`
- Verify `plugin.json` syntax with a JSON validator
- Check internet connection (for remote plugins)
- Review permissions: `ls -la plugin/`
@@ -1312,7 +1322,7 @@ The following Claude Code features work together with plugins:
### MCP Connection Failed
- Verify environment variables are set correctly
- Check MCP server installation and health
-- Test MCP connection independently with `/mcp test`
+- Check MCP server status with `/mcp`
- Review MCP configuration in `mcp/` directory
### Commands Not Available After Install
@@ -1339,8 +1349,8 @@ The following Claude Code features work together with plugins:
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/plugins
- https://code.claude.com/docs/en/plugins-reference
@@ -1374,4 +1384,12 @@ The following Claude Code features work together with plugins:
- 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
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/marketplace-reference
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/plugins/components
+- https://code.claude.com/docs/en/plugins/publish
+- https://code.claude.com/docs/en/plugins/overview
+- https://code.claude.com/docs/en/changelog#2-1-301
+- https://code.claude.com/docs/en/changelog#2-1-302
**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/README.md b/07-plugins/devops-automation/README.md
index 01be83e..0a0a0d9 100644
--- a/07-plugins/devops-automation/README.md
+++ b/07-plugins/devops-automation/README.md
@@ -18,7 +18,7 @@ Complete DevOps automation for deployment, monitoring, and incident response.
## Installation
```bash
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
## What's Included
@@ -108,11 +108,13 @@ Result:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/plugins
- https://github.com/anthropics/claude-code/releases/tag/v2.1.131
- https://github.com/anthropics/claude-code/releases/tag/v2.1.138
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
**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/README.md b/07-plugins/documentation/README.md
index 0bdf49c..38ccca6 100644
--- a/07-plugins/documentation/README.md
+++ b/07-plugins/documentation/README.md
@@ -18,7 +18,7 @@ Comprehensive documentation generation and maintenance for your project.
## Installation
```bash
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
## What's Included
@@ -120,11 +120,13 @@ export GITHUB_TOKEN="your_github_token"
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/plugins
- https://github.com/anthropics/claude-code/releases/tag/v2.1.131
- https://github.com/anthropics/claude-code/releases/tag/v2.1.138
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
**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/README.md b/07-plugins/pr-review/README.md
index b150da5..c017964 100644
--- a/07-plugins/pr-review/README.md
+++ b/07-plugins/pr-review/README.md
@@ -18,7 +18,7 @@ Complete PR review workflow with security, testing, and documentation checks.
## Installation
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## What's Included
@@ -92,11 +92,13 @@ Result:
---
-**Last Updated**: August 4, 2026
-**Claude Code Version**: 2.1.220
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/plugins
- https://github.com/anthropics/claude-code/releases/tag/v2.1.131
- https://github.com/anthropics/claude-code/releases/tag/v2.1.138
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
**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 40f43b9..16f380a 100644
--- a/08-checkpoints/README.md
+++ b/08-checkpoints/README.md
@@ -54,7 +54,7 @@ When you rewind, you are presented with a menu of six options:
5. **Summarize up to here** -- The backward counterpart: compress everything *before* the selected point into an AI-generated summary, keeping the messages from this point forward intact. Together with "Summarize from here" this gives you bidirectional, targeted compaction of your context window. No files on disk are changed, and the original messages are preserved in the session transcript.
6. **Never mind** -- Cancel and return to the current state
-> **Note**: After restoring the conversation or summarizing, the original prompt from the selected message is restored into the input field so you can re-send or edit it.
+> **Note**: After restoring the conversation or choosing **Summarize from here**, the original prompt from the selected message is restored into the input field so you can re-send or edit it. Choosing **Summarize up to here** leaves you at the end of the conversation with the input empty.
> **`/clear` is no longer a hard boundary (v2.1.191+)**: `/rewind` can resume from a checkpoint taken *before* you ran `/clear`. Clearing the conversation no longer permanently discards the state that preceded it — you can rewind back across the clear if you need that earlier code or context again.
@@ -230,14 +230,14 @@ Two settings govern checkpoint behavior — whether snapshots are taken at all,
Claude Code keeps snapshots for the **100 most recent checkpoints**; older ones are dropped even inside the retention window.
-> **v2.1.117 update**: `cleanupPeriodDays` now governs retention for four on-disk caches, not just checkpoints:
+> **v2.1.117 update**: `cleanupPeriodDays` now governs retention for many on-disk caches, not just checkpoints (a selection below; session transcripts, `file-history/`, `plans/`, `debug/`, `paste-cache/` and more are covered too):
>
> - Session checkpoints
> - `~/.claude/tasks/` — persistent task lists
> - `~/.claude/shell-snapshots/` — captured shell-environment snapshots
-> - `~/.claude/backups/` — rolling setting / CLAUDE.md backups
+> - `~/.claude/backups/` — earlier versions of `~/.claude.json` (the five newest are kept)
>
-> A single setting now prunes all four directories uniformly after the same number of days.
+> A single setting now prunes these directories uniformly after the same number of days.
## Limitations
@@ -337,12 +337,13 @@ Remember: checkpoints are not a replacement for git. Use checkpoints for rapid e
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**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
+- https://code.claude.com/docs/en/claude-directory
**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 4eb68ef..3bc457f 100644
--- a/09-advanced-features/README.md
+++ b/09-advanced-features/README.md
@@ -119,7 +119,7 @@ claude --permission-mode plan
**Keyboard shortcut**:
- `Shift + Tab` - Toggle permission modes (including plan)
-- `Alt + M` - Toggle permission modes (Windows/Linux)
+- `Alt + M` - Toggle permission modes (Windows only, when the runtime doesn't enable VT input mode)
### Benefits of Planning Mode
@@ -538,9 +538,9 @@ When the classifier is uncertain, auto mode falls back to prompting the user:
This ensures the user always retains control when the classifier cannot confidently approve an action.
-### Seeding Auto-Mode-Equivalent Permissions (No Team Plan Required)
+### Seeding Auto-Mode-Equivalent Permissions
-If you don't have a Team plan or want a simpler approach without the background classifier, you can seed your `~/.claude/settings.json` with a conservative baseline of safe permission rules. The script starts with read-only and local-inspection rules, then lets you opt into edits, tests, local git writes, package installs, and GitHub write actions only when you want them.
+If you want a simpler approach without the background classifier, you can seed your `~/.claude/settings.json` with a conservative baseline of safe permission rules. The script starts with read-only and local-inspection rules, then lets you opt into edits, tests, local git writes, package installs, and GitHub write actions only when you want them.
**File:** `09-advanced-features/setup-auto-mode-permissions.py`
@@ -833,7 +833,7 @@ Permission modes control what actions Claude can take without explicit approval.
> **Note**: The `default` permission mode was renamed to **Manual** in v2.1.200 (across the CLI, `--help`, VS Code, and JetBrains), and a grey ⏸ badge appears in the footer while it is active (v2.1.203). Both `--permission-mode manual` and `--permission-mode default` work, as do `"defaultMode": "manual"` and `"defaultMode": "default"` in settings. Note that the settings key is `permissions.defaultMode` — there is no `permissions.mode` key, so the examples below use the canonical spelling.
-Cycle through modes with `Shift+Tab` in the CLI. Set a default with the `--permission-mode` flag or the `permissions.defaultMode` setting. When no permission mode is configured, interactive terminal and VS Code sessions start in auto mode on every plan and provider since v2.1.284 (v2.1.283 did this only on third-party providers such as Bedrock, Google Cloud's Agent Platform, and Foundry, or with telemetry off); `permissions.defaultMode` still overrides it, and a session where auto mode isn't available starts in Manual instead. `claude -p` and the Agent SDK start in `default` when nothing is configured, except that since v2.1.285 `claude -p` and Python Agent SDK sessions on third-party providers or with telemetry off also start in auto mode; `--permission-mode` still overrides it.
+Cycle through modes with `Shift+Tab` in the CLI. Set a default with the `--permission-mode` flag or the `permissions.defaultMode` setting. When no permission mode is configured, interactive terminal and VS Code sessions start in auto mode on every plan and provider since v2.1.284 (v2.1.283 did this only on third-party providers such as Bedrock, Google Cloud's Agent Platform, and Foundry, or with telemetry off); `permissions.defaultMode` still overrides it, and a session where auto mode isn't available starts in Manual instead. Since v2.1.302, `claude -p` and Agent SDK sessions that set no permission mode start in `default` mode on third-party providers, with telemetry off, or on a fresh install; pass `--permission-mode auto` to keep auto mode.
> **Plan mode defers shell commands to the classifier (v2.1.218)**: When [auto mode](#auto-mode) is available and the `useAutoModeDuringPlan` setting is on — which it is by default — the classifier reviews shell commands during planning instead of prompting you. Approved commands run, and rejected ones are blocked. Plan mode still blocks file writes unconditionally.
@@ -849,7 +849,7 @@ As of v2.1.160, even `acceptEdits` prompts before writing shell-startup files (`
**Keyboard shortcut**:
```bash
-Shift + Tab # Cycle through all 6 modes
+Shift + Tab # Cycle default → acceptEdits → plan, then bypassPermissions/auto when available (dontAsk never appears in the cycle)
```
**Slash command**:
@@ -1142,7 +1142,7 @@ As of **v2.1.234**, a session blocked on a claude.ai usage limit auto-continues
### Session Recap (v2.1.108)
-When you return to a session after being away, Claude can show a brief recap of what was accomplished. This is enabled by default for users with telemetry disabled (Bedrock, Vertex, Foundry users).
+When you return to a session after being away, Claude can show a brief recap of what was accomplished. This is on by default for every plan and provider; turn it off from `/config` → **Session recap**.
> **OTEL telemetry — re-enable feedback survey (v2.1.136+)**: Organizations capturing OpenTelemetry data can re-enable Anthropic's session-quality survey by setting `CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL=1`. The survey is off by default in OTEL deployments because it was previously redirected away from telemetry pipelines.
@@ -1150,6 +1150,8 @@ When you return to a session after being away, Claude can show a brief recap of
> **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`.
+> **OTEL telemetry — `tool_decision` attributes (v2.1.301)**: `tool_decision` events add `classifier_verdict` and `permission_mode`.
+
**Control recap behavior:**
```bash
@@ -1411,26 +1413,22 @@ User: Ctrl+R # Search history
### Multi-line Input
-For complex queries, use multi-line mode:
+For complex queries, start a new line with `\` + Enter, Option+Enter (macOS), Shift+Enter, or Ctrl+J. There is no `\end` terminator — press Enter to send:
```bash
-User: \
-> Long complex prompt
-> spanning multiple lines
-> \end
+User: Long complex prompt \
+spanning multiple lines
```
**Example:**
```
-User: \
-> Implement a user authentication system
-> with the following requirements:
-> - JWT tokens
-> - Email verification
-> - Password reset
-> - 2FA support
-> \end
+User: Implement a user authentication system \
+with the following requirements: \
+- JWT tokens \
+- Email verification \
+- Password reset \
+- 2FA support
Claude: [Processes the multi-line request]
```
@@ -1459,6 +1457,7 @@ Enable Vi/Vim keybindings for text editing:
- `w` / `b` / `e` - Move by word
- `0` / `$` - Move to line start/end
- `gg` / `G` - Jump to start/end of text
+- `%` - Jump to the matching bracket; combine with `d`, `c`, `y` (v2.1.301)
**Text objects**:
- `iw` / `aw` - Inner/around word
@@ -1627,11 +1626,12 @@ TUI (Text User Interface) mode renders Claude Code in fullscreen with flicker-fr
### Enabling TUI Mode
-Toggle TUI mode with the `/tui` command or launch with the `--tui` flag:
+Switch renderers with the `/tui` command, or set `CLAUDE_CODE_NO_FLICKER=1` before launching:
```bash
-/tui # toggle from within a session
-claude --tui # start directly in TUI mode
+/tui fullscreen # switch to fullscreen from within a session
+/tui default # switch back to the classic renderer
+CLAUDE_CODE_NO_FLICKER=1 claude # start directly in fullscreen
```
### Configuration
@@ -1688,11 +1688,11 @@ Channels is a Research Preview feature that pushes events from external services
### Subscribing to Channels
```bash
-# Subscribe to channel plugins at startup
-claude --channels discord,telegram
+# Subscribe to a channel plugin at startup
+claude --channels plugin:telegram@claude-plugins-official
-# Subscribe to multiple sources
-claude --channels discord,telegram,imessage,webhooks
+# Subscribe to multiple sources (space-separated)
+claude --channels plugin:discord@claude-plugins-official plugin:telegram@claude-plugins-official
```
### Supported Integrations
@@ -1710,25 +1710,29 @@ Configure channels with the `--channels` flag at startup. For enterprise deploym
```json
{
- "allowedChannelPlugins": ["discord", "telegram"]
+ "channelsEnabled": true,
+ "allowedChannelPlugins": [
+ { "marketplace": "claude-plugins-official", "plugin": "discord" },
+ { "marketplace": "claude-plugins-official", "plugin": "telegram" }
+ ]
}
```
-The `allowedChannelPlugins` managed setting controls which channel plugins are permitted across the organization.
+The `allowedChannelPlugins` managed setting controls which channel plugins are permitted across the organization. It replaces the Anthropic-maintained allowlist and requires `channelsEnabled: true`.
### How It Works
1. MCP servers act as channel plugins that connect to external services
2. Incoming messages and events are pushed into the active Claude Code session
3. Claude can read and respond to messages within the session context
-4. Channel plugins must be approved via the `allowedChannelPlugins` managed setting
+4. Channel plugins must be on the Anthropic-maintained allowlist, or on your organization's `allowedChannelPlugins` list when an admin sets one
5. No polling required — events are pushed in real time
---
## Chrome Integration
-Chrome Integration connects Claude Code to your Chrome or Microsoft Edge browser for live web automation and debugging. This is a beta feature available since v2.0.73+ (Edge support added in v1.0.36+).
+Chrome Integration connects Claude Code to your Chrome or Microsoft Edge browser for live web automation and debugging. This is a beta feature available since v2.0.73+ (requires Claude in Chrome extension v1.0.36+).
### Enabling Chrome Integration
@@ -1770,7 +1774,7 @@ Claude Code controls the browser in a visible window — you can watch actions h
### Known limitations
-- **Browser support**: Chrome and Edge only — Brave, Arc, and other Chromium browsers are not supported
+- **Browser support**: Chrome and Edge; Claude Code also connects in other Chromium-based browsers such as Brave, Arc, Vivaldi, and Opera
- **WSL**: Not available in Windows Subsystem for Linux
- **Third-party providers**: Not supported with Bedrock, Vertex, or Foundry API providers
- **Service worker idle**: The Chrome extension service worker may go idle during extended sessions
@@ -1961,10 +1965,15 @@ Configure dev server behavior in `.claude/launch.json`:
```json
{
- "command": "npm run dev",
- "port": 3000,
- "readyPattern": "ready on",
- "persistCookies": true
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "my-app",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "dev"],
+ "port": 3000
+ }
+ ]
}
```
@@ -1994,9 +2003,10 @@ The Desktop App supports the same permission modes as the CLI:
| Mode | Behavior |
|------|----------|
-| **Ask permissions** (default) | Review and approve every edit and command |
-| **Auto accept edits** | File edits auto-approved; commands require manual approval |
-| **Plan mode** | Review approach before any changes are made |
+| **Manual** (default) | Review and approve every edit and command |
+| **Accept edits** | File edits auto-approved; commands require manual approval |
+| **Plan** | Review approach before any changes are made |
+| **Auto** | Runs without routine prompts; a background classifier checks actions first |
| **Bypass permissions** | Automatic execution (sandbox-only, admin-controlled) |
### Enterprise features
@@ -2248,8 +2258,7 @@ and the sandbox proxy substitutes the real value on the way out to the network.
"allowWrite": ["/Users/me/project"],
"allowRead": ["/Users/me/project", "/usr/local/lib"],
"denyRead": ["/Users/me/.ssh", "/Users/me/.aws"]
- },
- "enableWeakerNetworkIsolation": true
+ }
}
}
```
@@ -2259,7 +2268,7 @@ and the sandbox proxy substitutes the real value on the way out to the network.
- Bash commands run in a sandboxed environment with restricted filesystem access
- Network access can be isolated to prevent unintended external connections
- Works alongside permission rules for defense in depth
-- On macOS, use `sandbox.enableWeakerNetworkIsolation` for network restrictions (full network isolation is not available on macOS)
+- On macOS, Seatbelt blocks all network connections except the one to the sandbox proxy; `sandbox.enableWeakerNetworkIsolation` **weakens** that isolation and is only for tools such as Go CLIs behind a MITM `httpProxyPort` proxy
### Use Cases
@@ -2284,10 +2293,10 @@ Managed Settings enable enterprise administrators to deploy Claude Code configur
### Managed Drop-ins
-Since v2.1.83, administrators can deploy multiple managed settings files into a `managed-settings.d/` directory. Files are merged in alphabetical order, allowing modular configuration across teams:
+Since v2.1.83, administrators can deploy multiple managed settings files into a `managed-settings.d/` directory. Files are merged in alphabetical order, allowing modular configuration across teams. The directory sits next to `managed-settings.json` in the system directory (`/Library/Application Support/ClaudeCode/` on macOS, `/etc/claude-code/` on Linux, `C:\Program Files\ClaudeCode\` on Windows):
```
-~/.claude/managed-settings.d/
+/etc/claude-code/managed-settings.d/
00-org-defaults.json
10-team-policies.json
20-project-overrides.json
@@ -2297,7 +2306,7 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
| Setting | Description |
|---------|-------------|
-| `disableBypassPermissionsMode` | Prevent users from enabling bypass permissions |
+| `permissions.disableBypassPermissionsMode` | Set to `"disable"` to prevent users from enabling bypass permissions |
| `availableModels` | Restrict which models users can select |
| `enforceAvailableModels` | (v2.1.175) When `true`, the `availableModels` allowlist *also* constrains the **Default** model — if the configured default is not in the list, Claude Code falls back to the first allowed model. User and project settings can no longer widen a managed `availableModels` list. |
| `allowedChannelPlugins` | Control which channel plugins are permitted |
@@ -2315,8 +2324,11 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>disableBypassPermissionsMode</key>
- <true/>
+ <key>permissions</key>
+ <dict>
+ <key>disableBypassPermissionsMode</key>
+ <string>disable</string>
+ </dict>
<key>availableModels</key>
<array>
<string>claude-sonnet-4-6</string>
@@ -2332,13 +2344,14 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
### Configuration File Locations
-1. **Global config**: `~/.claude/config.json`
-2. **Project config**: `./.claude/config.json`
-3. **User config**: `~/.config/claude-code/settings.json`
+1. **User settings**: `~/.claude/settings.json`
+2. **Project settings**: `.claude/settings.json` (checked in)
+3. **Local project settings**: `.claude/settings.local.json` (not checked in)
+4. **Managed settings**: `managed-settings.json` in the system directory (see [Managed Settings](#managed-settings-enterprise))
### Complete Configuration Example
-**Core advanced features configuration:**
+**Core advanced features configuration** (`.claude/settings.json`):
```json
{
@@ -2346,16 +2359,25 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
"defaultMode": "manual"
},
"hooks": {
- "PreToolUse:Edit": "eslint --fix ${file_path}",
- "PostToolUse:Write": "~/.claude/hooks/security-scan.sh"
- },
- "mcp": {
- "enabled": true,
- "servers": {
- "github": {
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-github"]
- }
+ "PreToolUse": [
+ { "matcher": "Edit", "hooks": [{ "type": "command", "command": "~/.claude/hooks/eslint-fix.sh" }] }
+ ],
+ "PostToolUse": [
+ { "matcher": "Write", "hooks": [{ "type": "command", "command": "~/.claude/hooks/security-scan.sh" }] }
+ ]
+ }
+}
+```
+
+Hook scripts receive the tool input as JSON on stdin (for example `tool_input.file_path`); there is no `${file_path}` substitution. MCP servers are not a settings key — define them in `.mcp.json` at the project root:
+
+```json
+{
+ "mcpServers": {
+ "github": {
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": { "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}" }
}
}
}
@@ -2367,31 +2389,20 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
{
"permissions": {
"defaultMode": "manual",
- "allowedTools": ["Bash(git log:*)", "Read"],
- "disallowedTools": ["Bash(rm -rf:*)"]
+ "allow": ["Bash(git log:*)", "Read"],
+ "deny": ["Bash(rm -rf:*)"]
},
"hooks": {
- "PreToolUse": [{ "matcher": "Edit", "hooks": ["eslint --fix ${file_path}"] }],
- "PostToolUse": [{ "matcher": "Write", "hooks": ["~/.claude/hooks/security-scan.sh"] }],
- "Stop": [{ "hooks": ["~/.claude/hooks/notify.sh"] }]
- },
-
- "mcp": {
- "enabled": true,
- "servers": {
- "github": {
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
- }
- }
- }
+ "PreToolUse": [{ "matcher": "Edit", "hooks": [{ "type": "command", "command": "~/.claude/hooks/eslint-fix.sh" }] }],
+ "PostToolUse": [{ "matcher": "Write", "hooks": [{ "type": "command", "command": "~/.claude/hooks/security-scan.sh" }] }],
+ "Stop": [{ "hooks": [{ "type": "command", "command": "~/.claude/hooks/notify.sh" }] }]
}
}
```
+The GitHub MCP server for this setup goes in `.mcp.json`, as shown above.
+
### Additional Per-User Settings
These keys go in `~/.claude/settings.json` (or a project `.claude/settings.json`) and control interactive behavior for the individual user:
@@ -2446,7 +2457,7 @@ export MAX_THINKING_TOKENS=16000
export CLAUDE_CODE_EFFORT_LEVEL=high # low, medium, high, xhigh (Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8/4.7), or max — default is high on Opus 5 and Opus 4.8 (supported on Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, Opus 4.7, Opus 4.6, Sonnet 4.6)
# Feature toggles
-export CLAUDE_CODE_DISABLE_AUTO_MEMORY=true
+export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 # Disable auto memory (no auto memory files are created or loaded)
export CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=true
export CLAUDE_CODE_DISABLE_CRON=1
export CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=true
@@ -2454,7 +2465,7 @@ export CLAUDE_CODE_DISABLE_TERMINAL_TITLE=true
export CLAUDE_CODE_DISABLE_1M_CONTEXT=true
export CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=true
export CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false
-export CLAUDE_CODE_ENABLE_TASKS=true
+export CLAUDE_CODE_ENABLE_TASKS=0 # Task tools are the default; 0 reverts to the legacy TodoWrite tool
export CLAUDE_CODE_SIMPLE=true # Set by --bare flag
# MCP configuration
@@ -2526,6 +2537,10 @@ export CLAUDE_CODE_DISABLE_FILE_MENTIONS=1 # (v2.1.299) Don't e
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.
+
+# Newer variables (v2.1.301-v2.1.302)
+export CLAUDE_CODE_AUTO_MODE_MODEL=claude-sonnet-5-5 # client-side auto mode classifier model (v2.1.302)
+export CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS=3600000 # stop waiting on far-off usage-limit resets (v2.1.301)
```
> **v2.1.223 — `CLAUDE_CODE_DISABLE_1M_CONTEXT` widened**: the variable now holds **every**
@@ -2549,6 +2564,7 @@ The `/config` command provides an interactive menu to toggle settings such as:
- Permission mode
- Model selection
- Dynamic workflow size (v2.1.219) — hidden when `workflowSizeGuideline` is set in a settings file, see [Dynamic Workflows](#dynamic-workflows)
+- Idle compaction (v2.1.302)
In the interactive menu, press Enter or Space to change the selected setting, and Esc to save and close (v2.1.183+).
@@ -2563,23 +2579,28 @@ The `key=value` shorthand works in interactive sessions, with `-p`, and in Remot
### Per-Project Configuration
-Create `.claude/config.json` in your project:
+Create `.claude/settings.json` in your project:
```json
{
"hooks": {
- "PreToolUse": [{ "matcher": "Bash", "hooks": ["npm test && npm run lint"] }]
+ "PreToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "npm test && npm run lint" }] }]
},
"permissions": {
"defaultMode": "manual"
- },
- "mcp": {
- "servers": {
- "project-db": {
- "command": "mcp-postgres",
- "env": {
- "DATABASE_URL": "${PROJECT_DB_URL}"
- }
+ }
+}
+```
+
+Put the project's MCP servers in `.mcp.json` at the project root:
+
+```json
+{
+ "mcpServers": {
+ "project-db": {
+ "command": "mcp-postgres",
+ "env": {
+ "DATABASE_URL": "${PROJECT_DB_URL}"
}
}
}
@@ -2730,8 +2751,8 @@ For more information about Claude Code and related features:
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/output-styles
- https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md
@@ -2774,4 +2795,11 @@ For more information about Claude Code and related features:
- https://code.claude.com/docs/en/prompt-caching
- https://code.claude.com/docs/en/agent-teams
- https://code.claude.com/docs/en/monitoring-usage
+- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/desktop
+- https://code.claude.com/docs/en/fullscreen
+- https://code.claude.com/docs/en/changelog#2-1-301
+- https://code.claude.com/docs/en/changelog#2-1-302
**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 4f80892..02cd0ee 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 **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.
+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 installation is deprecated in the official README; prefer the native installer, Homebrew (`brew install --cask claude-code`) or WinGet (`winget install Anthropic.ClaudeCode`). For reference, `npm install -g @anthropic-ai/claude-code` (Node.js 22+) 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`.
@@ -62,7 +62,7 @@ The older JavaScript bundle is still produced for Windows and for environments t
| `claude install [version]` | Install a specific native-binary version. Accepts `stable`, `latest`, or an explicit version string | `claude install 2.1.131` |
| `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 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 45-minute default (since v2.1.260), 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]` | 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` |
@@ -76,7 +76,7 @@ The older JavaScript bundle is still produced for Windows and for environments t
| `-c, --continue` | Load most recent conversation | `claude --continue` |
| `-r, --resume` | Resume specific session by ID or name | `claude --resume auth-refactor` |
| `-v, --version` | Output version number | `claude -v` |
-| `--system-prompt-snapshot off` | Render the system prompt fresh on every request instead of reusing the prompt recorded with the conversation. Useful while iterating on prompt text (v2.1.267) | `claude --system-prompt-snapshot off` |
+| `--system-prompt-snapshot off` | Render the system prompt fresh on every request instead of reusing the prompt recorded with the conversation. Useful while iterating on prompt text (v2.1.257+) | `claude --system-prompt-snapshot off` |
| `-w, --worktree` | Start in isolated git worktree. Accepts a GitLab merge-request URL as well as a GitHub PR URL since v2.1.233 | `claude -w` |
| `-n, --name` | Session display name | `claude -n "auth-refactor"` |
| `--from-pr <url-or-number>` | Resume sessions linked to a pull/merge request. Accepts GitHub (cloud + Enterprise), GitLab MR, and Bitbucket PR URLs since v2.1.119; previously GitHub.com only | `claude --from-pr 42` or `claude --from-pr https://gitlab.example.com/org/repo/-/merge_requests/17` |
@@ -93,8 +93,8 @@ The older JavaScript bundle is still produced for Windows and for environments t
| `--chrome` / `--no-chrome` | Enable/disable Chrome browser integration | `claude --chrome` |
| `--effort` | Set thinking effort level | `claude --effort high` |
| `--desktop` | Open the session in the Claude desktop app on the current directory; add `--continue` or `--resume <id>` to pick the session (v2.1.285) | `claude --desktop --continue` |
-| `--init` / `--init-only` | Run initialization hooks | `claude --init` |
-| `--maintenance` | Run maintenance hooks and exit | `claude --maintenance` |
+| `--init` / `--init-only` | `--init` runs initialization (Setup) hooks before the session, print mode only; `--init-only` runs Setup and `SessionStart` hooks, then exits | `claude -p --init "query"` |
+| `--maintenance` | Run maintenance (Setup) hooks before the session (print mode only) | `claude -p --maintenance "query"` |
| `--disable-slash-commands` | Disable all skills and slash commands | `claude --disable-slash-commands` |
| `--no-session-persistence` | Disable session saving (print mode) | `claude -p --no-session-persistence "query"` |
| `--exclude-dynamic-system-prompt-sections` | Exclude dynamic sections from the system prompt for better prompt cache hit rates | `claude -p --exclude-dynamic-system-prompt-sections "query"` |
@@ -163,14 +163,14 @@ claude -p "list todos" | grep "URGENT"
### Model Selection Examples
```bash
-# Use Opus 5 for complex tasks
+# Use Opus 5.5 for complex tasks
claude --model opus "design a caching strategy"
# Use Haiku for quick tasks (Haiku 5.5 on the Anthropic API since v2.1.293; Haiku 4.5 on Bedrock, Vertex, and Foundry)
claude --model haiku -p "format this JSON"
# Full model name
-claude --model claude-sonnet-4-6-20250929 "review this code"
+claude --model claude-sonnet-4-6 "review this code"
# With fallback for reliability
claude -p --model opus --fallback-model sonnet "analyze architecture"
@@ -396,14 +396,14 @@ claude purge --all --interactive
| `--no-chrome` | Disable Chrome browser integration | `claude --no-chrome` |
| `--ide` | Auto-connect to IDE if available | `claude --ide` |
| `--max-turns` | Limit agentic turns (non-interactive) | `claude -p --max-turns 3 "query"` |
-| `--debug` | Enable debug mode with filtering | `claude --debug "api,mcp"` |
+| `--debug` | Enable debug mode with filtering (the filter applies only in the `=` form) | `claude --debug=api,mcp` |
| `--enable-lsp-logging` | Enable verbose LSP logging | `claude --enable-lsp-logging` |
| `--betas` | Beta headers for API requests | `claude --betas interleaved-thinking` |
| `--plugin-dir` | Load plugins from directory (repeatable). Since v2.1.265 it also accepts a **folder of plugins** — every child folder with a manifest loads, and children added or removed while the session runs are picked up | `claude --plugin-dir ./my-plugin` |
| `--effort` | Set thinking effort level | `claude --effort high` |
| `--bare` | Minimal mode (skip hooks, skills, plugins, MCP, auto memory, CLAUDE.md) | `claude --bare` |
| `--channels` | Subscribe to MCP channel plugins (tagged `plugin:<name>@<marketplace>`) | `claude --channels plugin:discord@my-marketplace` |
-| `--tmux` | Create tmux session for worktree | `claude --tmux` |
+| `--tmux` | Create tmux session for worktree (requires `--worktree`) | `claude --worktree feature-x --tmux` |
| `--fork-session` | Create new session ID when resuming | `claude --resume abc --fork-session` |
| `--max-budget-usd` | Maximum spend (print mode); also halts background subagents when hit (v2.1.217) | `claude -p --max-budget-usd 5.00 "query"` |
| `--json-schema` | Validated JSON output | `claude -p --json-schema '{"type":"object"}' "q"` |
@@ -422,7 +422,7 @@ claude purge --all --interactive
claude -p --max-turns 5 "refactor this module"
# Debug API calls
-claude --debug "api" "test query"
+claude --debug=api "test query"
# Enable IDE integration
claude --ide "help me with this file"
@@ -617,7 +617,7 @@ pipeline {
run: claude ultrareview ${{ github.event.pull_request.number }} --json --no-post > review.json
```
-`claude ultrareview` exits 0 on a clean review and 1 when findings are reported, so it's a drop-in PR gate. Use `--timeout <minutes>` to override the 30-minute default. `--post` posts the finished findings to the pull request; `--no-post` keeps them in stdout only, which is what you want when a later CI step formats the report itself.
+`claude ultrareview` exits 0 on a clean review and 1 when findings are reported, so it's a drop-in PR gate. Use `--timeout <minutes>` to override the 45-minute default (since v2.1.260). `--post` posts the finished findings to the pull request; `--no-post` keeps them in stdout only, which is what you want when a later CI step formats the report itself.
### 2. Script Piping
@@ -750,45 +750,49 @@ claude -p --output-format json \
--json-schema '{"type":"object","properties":{"functions":{"type":"array"},"complexity":{"type":"string"}}}' \
"analyze main.py and return function list with complexity rating"
-# Integrate with jq for processing
-claude -p --output-format json "list all API endpoints" | jq '.endpoints[]'
+# Integrate with jq for processing (schema output lands in .structured_output)
+claude -p --output-format json \
+ --json-schema '{"type":"object","properties":{"endpoints":{"type":"array"}}}' \
+ "list all API endpoints" | jq '.structured_output.endpoints[]'
# Use in scripts
-RESULT=$(claude -p --output-format json "is this code secure? answer with {secure: boolean, issues: []}" < code.py)
-if echo "$RESULT" | jq -e '.secure == false' > /dev/null; then
+RESULT=$(claude -p --output-format json \
+ --json-schema '{"type":"object","properties":{"secure":{"type":"boolean"},"issues":{"type":"array"}},"required":["secure","issues"]}' \
+ "is this code secure?" < code.py)
+if echo "$RESULT" | jq -e '.structured_output.secure == false' > /dev/null; then
echo "Security issues found!"
- echo "$RESULT" | jq '.issues[]'
+ echo "$RESULT" | jq '.structured_output.issues[]'
fi
```
### jq Parsing Examples
-Parse and process Claude's JSON output using `jq`:
+Parse and process Claude's JSON output using `jq`. The response text is in `.result`; with `--json-schema`, the validated object is in `.structured_output` (`$SCHEMA` below stands for a schema that defines the fields each filter reads):
```bash
-# Extract specific fields
-claude -p --output-format json "analyze this code" | jq '.result'
+# Extract the response text
+claude -p --output-format json "analyze this code" | jq -r '.result'
# Filter array elements
-claude -p --output-format json "list issues" | jq -r '.issues[] | select(.severity=="high")'
+claude -p --output-format json --json-schema "$SCHEMA" "list issues" | jq -r '.structured_output.issues[] | select(.severity=="high")'
# Extract multiple fields
-claude -p --output-format json "describe the project" | jq -r '.{name, version, description}'
+claude -p --output-format json --json-schema "$SCHEMA" "describe the project" | jq -r '.structured_output | {name, version, description}'
# Convert to CSV
-claude -p --output-format json "list functions" | jq -r '.functions[] | [.name, .lineCount] | @csv'
+claude -p --output-format json --json-schema "$SCHEMA" "list functions" | jq -r '.structured_output.functions[] | [.name, .lineCount] | @csv'
# Conditional processing
-claude -p --output-format json "check security" | jq 'if .vulnerabilities | length > 0 then "UNSAFE" else "SAFE" end'
+claude -p --output-format json --json-schema "$SCHEMA" "check security" | jq 'if (.structured_output.vulnerabilities | length) > 0 then "UNSAFE" else "SAFE" end'
# Extract nested values
-claude -p --output-format json "analyze performance" | jq '.metrics.cpu.usage'
+claude -p --output-format json --json-schema "$SCHEMA" "analyze performance" | jq '.structured_output.metrics.cpu.usage'
# Process entire array
-claude -p --output-format json "find todos" | jq '.todos | length'
+claude -p --output-format json --json-schema "$SCHEMA" "find todos" | jq '.structured_output.todos | length'
# Transform output
-claude -p --output-format json "list improvements" | jq 'map({title: .title, priority: .priority})'
+claude -p --output-format json --json-schema "$SCHEMA" "list improvements" | jq '.structured_output.improvements | map({title: .title, priority: .priority})'
```
---
@@ -810,6 +814,8 @@ Claude Code supports multiple models with different capabilities:
| Fable 5.1 | `claude-fable-5-1` | — | Current Fable model; the `fable` alias resolves to it (v2.1.257) |
| Fable 5 | `claude-fable-5` | — | Mythos-class model, made safe for general use (v2.1.170) |
+> **Note**: Sonnet 4.5 retires on November 30, 2026 on the Claude API, Claude Platform on AWS and Microsoft Foundry. On Foundry, where `default` and `sonnet` still resolve to Sonnet 4.5, set a newer model explicitly.
+
### Model Selection
```bash
@@ -825,7 +831,7 @@ claude --model opusplan "design and implement the API"
/fast
```
-> **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.
+> **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. If the newest Fable model isn't available to your organization, `fable` and `best` retry once on the previous Fable model (v2.1.301).
> **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.
@@ -864,7 +870,7 @@ The "ultrathink" keyword in prompts activates deep reasoning. The `/effort` slid
| `CLAUDE_CODE_SIMPLE` | Minimal mode, set by `--bare` flag |
| `CLAUDE_CODE_SAFE_MODE` | Set to `1` to start with all customizations disabled (CLAUDE.md, plugins, skills, hooks, MCP) — env-var form of `--safe-mode`, for isolating config problems (v2.1.169) |
| `CLAUDE_CODE_DISABLE_BUNDLED_SKILLS` | Set to `1` to hide the bundled skills, workflows, and commands from the model (v2.1.169) |
-| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | Disable automatic CLAUDE.md updates |
+| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | Set to `1` to disable auto memory (no auto memory files are created or loaded) |
| `CLAUDE_CODE_DISABLE_BACKGROUND_TASKS` | Disable background task execution |
| `CLAUDE_CODE_DISABLE_CRON` | Disable scheduled/cron tasks |
| `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` | Disable git-related instructions |
@@ -872,7 +878,7 @@ The "ultrathink" keyword in prompts activates deep reasoning. The `/effort` slid
| `CLAUDE_CODE_DISABLE_1M_CONTEXT` | Disable 1M token context window |
| `CLAUDE_CODE_DISABLE_MOUSE_CLICKS` | Disable mouse click/drag/hover in fullscreen mode; wheel scroll still works (v2.1.195+) |
| `CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK` | Disable non-streaming fallback |
-| `CLAUDE_CODE_ENABLE_TASKS` | Enable task list feature |
+| `CLAUDE_CODE_ENABLE_TASKS` | Task tools are the default; set to `0` to revert to the legacy `TodoWrite` tool |
| `CLAUDE_CODE_TASK_LIST_ID` | Named task directory shared across sessions |
| `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` | Toggle prompt suggestions (`true`/`false`) |
| `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` | Enable experimental agent teams |
@@ -888,11 +894,11 @@ The "ultrathink" keyword in prompts activates deep reasoning. The `/effort` slid
| `CLAUDE_CODE_PERFORCE_MODE` | Set to `1` to enable Perforce mode — treats files as read-only by default (for Perforce/P4 version control workflows) (added v2.1.98) |
| `DISABLE_UPDATES` | Blocks all update paths including manual `claude update`. Stricter than `DISABLE_AUTOUPDATER`, which only blocks the background autoupdater (v2.1.118+) |
| `CLAUDE_CODE_HIDE_CWD` | When set to `1`, hides the current working directory in the startup logo (privacy / screen-share use) (v2.1.119+) |
-| `CLAUDE_CODE_FORK_SUBAGENT` | Set to `1` to turn fork mode on where it is off by default: non-interactive mode (`claude -p`), the Agent SDK, or Claude Code older than v2.1.232. Since v2.1.232 fork mode is on by default in interactive sessions on every build, first-party or not (GA v2.1.117) |
+| `CLAUDE_CODE_FORK_SUBAGENT` | Set to `0` to turn fork subagents off. Since v2.1.302 they are on by default in the terminal, `claude -p`, the Agent SDK, the desktop app and VS Code; before v2.1.302, set `1` to turn them on in `claude -p` and the Agent SDK. |
| `CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN` | Set to `1` to opt out of the fullscreen alternate-screen renderer; the session stays in normal terminal scrollback. Useful when piping transcripts to logs or pairing with `script(1)` (v2.1.132+). |
| `CLAUDE_CODE_SESSION_ID` | Set in every Bash tool subprocess launched by Claude Code; equals the `session_id` in hook input JSON. Use to correlate bash logs with hook telemetry (v2.1.132+). |
| `CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL` | Set to `1` to re-enable Anthropic's session-quality survey for organizations capturing OpenTelemetry data. Off by default in OTEL deployments (v2.1.136+). |
-| `OTEL_LOG_TOOL_DETAILS` | Set to `1` to unredact custom and MCP command names in OpenTelemetry events (v2.1.117+). Redaction remains the default. |
+| `OTEL_LOG_TOOL_DETAILS` | Set to `1` to unredact custom and MCP command names in OpenTelemetry events (v2.1.117+). Redaction remains the default. Also adds `classifier_category` to `tool_decision` events (v2.1.301). |
| `CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH` | Configures the truncation limit (default 60 KB) applied to OpenTelemetry content attributes (v2.1.214) |
| `FORCE_HYPERLINK` | Set to `0` to opt out of clickable PR-badge hyperlinks in the footer, which now render even when terminal support can't be auto-detected (v2.1.217) |
| `ANTHROPIC_BEDROCK_SERVICE_TIER` | Selects the Bedrock service tier: `default`, `flex`, or `priority` (v2.1.122+) |
@@ -912,6 +918,7 @@ The "ultrathink" keyword in prompts activates deep reasoning. The `/effort` slid
| `CLAUDE_CODE_MAX_RETRIES` | Maximum number of API retry attempts. Capped at 15 as of v2.1.186. |
| `CLAUDE_CODE_RETRY_WATCHDOG` | Retry control recommended for unattended sessions, as an alternative to raising `CLAUDE_CODE_MAX_RETRIES` (v2.1.186+). |
| `CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS` | Maximum time in milliseconds that each API request spends waiting out `429` and `529` errors when `CLAUDE_CODE_RETRY_WATCHDOG` is set; once it's spent, the next such error ends the request. Positive whole number in plain digits (e.g. `1800000` for 30 minutes); unset means no limit (v2.1.295) |
+| `CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS` | Longest usage-limit reset that unattended retry mode (`CLAUDE_CODE_RETRY_WATCHDOG`) waits for; a request at a limit that resets later ends instead of waiting (v2.1.301) |
| `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+). |
@@ -923,9 +930,10 @@ The "ultrathink" keyword in prompts activates deep reasoning. The `/effort` slid
| `CLAUDE_CODE_WEBFETCH_DEADLINE_MS` | Overrides WebFetch's 300-second deadline, introduced in v2.1.268. Set `0` to disable the deadline (v2.1.268) |
| `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_AUTO_MODE_MODEL` | Model the client-side auto mode classifier uses; does not change server-side auto mode's model (v2.1.302) |
| `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_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`, or turn it off from the `Idle compaction` row in `/config` (v2.1.302). 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) |
@@ -977,7 +985,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. |
+| `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, or turn it off from the `Idle compaction` row in `/config` (v2.1.302); `DISABLE_AUTO_COMPACT` also turns it off. |
```json
{
@@ -1091,8 +1099,8 @@ claude -p --output-format json "query"
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md
- https://code.claude.com/docs/en/workflows#set-a-size-guideline
@@ -1142,4 +1150,8 @@ claude -p --output-format json "query"
- 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
+- https://code.claude.com/docs/en/changelog#2-1-301
+- https://code.claude.com/docs/en/changelog#2-1-302
+- https://github.com/anthropics/claude-code
+- https://platform.claude.com/docs/en/about-claude/model-deprecations
**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 490d326..6567ede 100644
--- a/CATALOG.md
+++ b/CATALOG.md
@@ -50,7 +50,7 @@ Commands are user-invoked shortcuts that execute specific actions.
| `/mcp` | List MCP servers | Check external integrations |
| `/memory` | View loaded memory files | Debug context loading |
| `/mobile` | Generate mobile QR code | Mobile access |
-| `/passes` | View usage passes | Subscription info |
+| `/passes` | Share a free week of Claude Code with friends (eligible accounts only) | Referrals |
| `/plugin` | Manage plugins | Install/remove extensions |
| `/plan` | Enter planning mode | Complex implementations |
| `/proactive` | Alias for `/loop` (v2.1.105) | Same as `/loop` |
@@ -74,7 +74,7 @@ Commands are user-invoked shortcuts that execute specific actions.
| `/permissions` | Manage permissions | Control access |
| `/rename` | Rename current session | Organize sessions |
| `/resume` | Resume previous session | Continue work |
-| `/tui` | Toggle fullscreen TUI (text user interface) mode | Flicker-free rendering in fullscreen/tmux |
+| `/tui [default\|fullscreen]` | Set the terminal UI renderer (`fullscreen` = flicker-free alt-screen); bare `/tui` prints the active one | Flicker-free rendering in fullscreen/tmux |
| `/tasks` | View background tasks | Monitor async operations |
| `/copy` | Copy last response to clipboard | Share output quickly |
| `/teleport` (alias `/tp`) | Resume a Claude Code on the web session in this terminal; opens a picker. Requires a claude.ai subscription | Continue work remotely |
@@ -86,11 +86,11 @@ Commands are user-invoked shortcuts that execute specific actions.
| `/subtask` | Spawn a forked subagent that inherits the conversation and reports back (v2.1.212+) | Delegate a side task without losing your place |
| `/stats` | Shortcut alias that opens the stats tab of `/usage` (v2.1.118+) | Review session metrics |
| `/statusline` | Configure status line | Customize status display |
-| `/stickers` | View session stickers | Fun rewards |
+| `/stickers` | Order Claude Code 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` | Alias for `/rewind` (v2.1.108) | Same as `/rewind` |
-| `/upgrade` | Check for updates | Version management |
+| `/upgrade` | Open the upgrade page to switch to a higher plan | Plan upgrades |
| `/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) |
| `/fewer-permission-prompts` | Scan transcripts and propose a prioritized allowlist for common read-only tools | Reduce repeat permission prompts in a project (v2.1.112) |
@@ -126,7 +126,7 @@ 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 (shown as Manual since v2.1.200; config value is still `default`, `manual` is an alias) |
+| `manual` | Prompt for each tool call | Reviewing every action yourself (shown as Manual since v2.1.200; config value is still `default`, `manual` is an alias). Since v2.1.283, auto is the built-in starting mode for interactive terminal and VS Code sessions |
| `acceptEdits` | Auto-accept file edits, prompt for others | Trusted editing workflows |
| `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 |
@@ -153,7 +153,7 @@ Specialized AI assistants with isolated contexts for specific tasks.
| **Plan** | Implementation planning | Read, Glob, Grep, Bash | Inherits model | Architecture design, planning |
| **Explore** | Codebase exploration | Read, Glob, Grep | Inherits (capped at Opus) | Quick searches, understanding code |
| **claude** | Catch-all for tasks that don't fit a more specialized agent | All tools | Inherits model | Tasks with no specialized agent; default agent for a dispatched background session |
-| **statusline-setup** | Status line configuration | Bash, Read, Write | Sonnet 4.6 | Configure status line display |
+| **statusline-setup** | Status line configuration | Bash, Read, Write | Sonnet | Configure status line display |
| **claude-code-guide** | Help and documentation | Read, Glob, Grep | Haiku | Getting help, learning features |
### Subagent Configuration Fields
@@ -244,13 +244,14 @@ cp -r 03-skills/* ~/.claude/skills/
|-------|-------------|-------------------|
| `/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 |
+| `/batch` | Split a large change into 5–30 independent units, each run by a background subagent in its own worktree | Large parallel refactors |
| `/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 |
+| `/debug [description]` | Turn on debug logging for the session and troubleshoot from the session debug log | Debugging Claude Code itself |
+| `/design` *(v2.1.265+)* | 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. Standalone Claude Design (claude.ai/design) closes December 14, 2026. | Syncing a design system to Claude Design |
+| `/design-login` | Authorize design-system access for `/design-sync` | Before running `/design-sync` |
| `/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 |
@@ -281,14 +282,17 @@ Bundled collections of commands, agents, MCP servers, and hooks.
### Plugin Structure
-```
-.claude-plugin/
-├── plugin.json # Manifest file
+```text
+my-plugin/
+├── .claude-plugin/
+│ └── plugin.json # Manifest file (the only file in .claude-plugin/)
├── commands/ # Slash commands
├── agents/ # Subagents
-├── skills/ # Skills
-├── mcp/ # MCP configurations
-├── hooks/ # Hook scripts
+├── skills/ # Skills (<name>/SKILL.md)
+├── hooks/
+│ └── hooks.json # Hook configuration
+├── .mcp.json # MCP configurations
+├── bin/ # Executables
└── scripts/ # Utility scripts
```
@@ -298,7 +302,7 @@ Bundled collections of commands, agents, MCP servers, and hooks.
```bash
/plugin list # List installed plugins
/plugin install <name> # Install plugin
-/plugin remove <name> # Remove plugin
+/plugin uninstall <name> # Uninstall plugin
claude plugin update <name> # Update a plugin (CLI; the /plugin update slash form is referenced in prose but not in the command reference)
```
@@ -312,9 +316,9 @@ Model Context Protocol servers for external tool and API access.
| Server | Description | When to Use | Scope | Installation |
|--------|-------------|-------------|-------|--------------|
-| **GitHub** | PR management, issues, code | GitHub workflows | Project | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
-| **Database** | SQL queries, data access | Database operations | Project | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
-| **Filesystem** | Advanced file operations | Complex file tasks | User | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
+| **GitHub** | PR management, issues, code | GitHub workflows | Local | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
+| **Database** | SQL queries, data access | Database operations | Local | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
+| **Filesystem** | Advanced file operations | Complex file tasks | Local | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
| **Slack** | Team communication | Notifications, updates | Project | Configure in settings |
| **Google Docs** | Document access | Doc editing, review | Project | Configure in settings |
| **Asana** | Project management | Task tracking | Project | Configure in settings |
@@ -322,7 +326,7 @@ Model Context Protocol servers for external tool and API access.
| **Memory** | Persistent memory | Cross-session recall | User | Configure in settings |
| **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
+> **Scope**: `Local` = default for `claude mcp add` with no `--scope` (only you, this project; `~/.claude.json`), `Project` = team (`.mcp.json`, `--scope project`), `User` = personal (`~/.claude.json`, `--scope user`), `Built-in` = pre-installed
### MCP Configuration Example
@@ -417,13 +421,17 @@ Event-driven automation that executes shell commands on Claude Code events.
"PreToolUse": [
{
"matcher": "Bash",
- "command": "~/.claude/hooks/pre-tool-check.sh"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/pre-tool-check.sh" }
+ ]
}
],
"PostToolUse": [
{
"matcher": "Write",
- "command": "~/.claude/hooks/format-code.sh"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/format-code.sh" }
+ ]
}
]
}
@@ -474,7 +482,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **/focus** | Toggle focus view for distraction-free output display (v2.1.110) | Run `/focus` to reduce visual noise during long tasks |
| **/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 |
+| **/tui** | Set the terminal UI renderer: `/tui fullscreen` for flicker-free rendering, `/tui default` to switch back; bare `/tui` prints the active renderer (v2.1.110) | Use `/tui fullscreen` in fullscreen terminals or tmux |
| **/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) |
@@ -484,7 +492,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **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 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` |
+| **Cross-Session Messaging** | Sessions can message each other — including your other machines and cloud sessions — discovered via `ListAgents` (v2.1.224+ on macOS/Linux; native Windows v2.1.234+) | 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) |
| **`archive` plugin source** | Install a plugin from an HTTPS zip, optionally pinned by `sha256` (v2.1.224+) | See [Plugins](07-plugins/README.md#archive-source-v21224) |
| **`command` plugin source** | A locally installed tool prints the plugin directory path (v2.1.229+) | See [Plugins](07-plugins/README.md#command-source-v21229) |
@@ -504,19 +512,19 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **Channels** | Multi-channel communication (Telegram, Slack, etc.) (Research Preview) | Configure channel plugins; March 2026 |
| **Voice Dictation** | Voice input for prompts | Use microphone icon or voice keybinding |
| **Agent Hook Type** | Hooks that spawn a subagent instead of running a shell command | Set `"type": "agent"` in hook configuration |
-| **Prompt Hook Type** | Hooks that inject prompt text into the conversation | Set `"type": "prompt"` in hook configuration |
+| **Prompt Hook Type** | Hooks that send a prompt to a Claude model for single-turn evaluation; the model returns its decision as JSON | Set `"type": "prompt"` in hook configuration |
| **MCP Elicitation** | MCP servers can request user input during tool execution | Handle via `Elicitation` and `ElicitationResult` hook events |
| **Plugin LSP Support** | Language Server Protocol integration via plugins | Configure LSP servers in `plugin.json` for editor features |
| **Managed Drop-ins** | Organization-managed drop-in configurations (v2.1.83) | Admin-configured via managed policies; auto-applied to all users |
| **`claude plugin init`** | Scaffold a new plugin in `.claude/skills`; such plugins auto-load with no marketplace (v2.1.157) | Run `claude plugin init <name>` |
| **Auto Mode on third-party providers** | Available by default on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, and signed-in Claude apps gateway sessions, where the supported models are Claude Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5 (v2.1.293+), and the Fable models (opt-in required v2.1.158–v2.1.206; removed in v2.1.207 — `CLAUDE_CODE_ENABLE_AUTO_MODE` is still accepted but has no effect) | `Shift+Tab` to cycle to it, or `--permission-mode auto` |
| **Immediate Dialog Commands** | `/permissions` can be opened while Claude is working (rule changes apply to the rest of the turn), and the `/add-dir`, `/autocompact`, `/theme`, `/help`, `/config`, and `/advisor` dialogs open mid-turn **in the fullscreen TUI** instead of queuing until Claude finishes responding (`/bug` already did this since v2.1.232) (v2.1.234) | Run one of these commands while Claude is working. See [Slash Commands](01-slash-commands/README.md) |
-| **`CLAUDE_CODE_PROJECT_DIR_NAME`** | Env var controlling per-project transcript directory naming (v2.1.234) | Set in your shell/env before launching Claude Code. See [CLI](10-cli/README.md) |
+| **`CLAUDE_CODE_PROJECT_DIR_NAME`** | Env var controlling per-project transcript directory naming (v2.1.234) | Set in your shell/env before launching Claude Code; ignored unless `CLAUDE_CONFIG_DIR` is also set. See [CLI](10-cli/README.md) |
| **Goal Check-In Threshold** | While a `/goal` is active, Claude checks in with a status update if a background task makes no progress for 30+ minutes, instead of continuing silently; tune with `CLAUDE_CODE_GOAL_CHECKIN_MINUTES`, or set to `0` to disable (v2.1.234) | Set `CLAUDE_CODE_GOAL_CHECKIN_MINUTES=<n>` alongside an active `/goal`. See [Slash Commands](01-slash-commands/README.md) |
| **Usage-Limit Auto-Continue** | Claude Code auto-continues a session when a claude.ai usage limit resets, if it was blocked on that limit (v2.1.234) | On by default; turn it off in `/config` → "Continue automatically at usage limit". See [Advanced Features](09-advanced-features/) |
| **`spellcheck` setting** | Underlines misspelled words in the prompt input using whichever of aspell, hunspell, or ispell is on your `PATH`; off by default (v2.1.235) | Install a checker, then set `"spellcheck": { "enabled": true }` in `~/.claude/settings.json`. User, `--settings`, and managed settings only — ignored in project settings. See [Advanced Features](09-advanced-features/) |
| **Agent Teams Default Model** | The "Default teammate model" `/config` setting was removed; teammates now inherit the team lead's model by default unless the spawn call specifies one explicitly (v2.1.234) | See [Subagents — Agent Teams](04-subagents/README.md#agent-teams-experimental) |
-| **`/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) |
+| **`/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. Requires v2.1.265+; 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 (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) |
@@ -580,8 +588,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/sub-agents
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
@@ -607,4 +615,9 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/chrome
- https://code.claude.com/docs/en/skills#bundled-skills
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/env-vars
+- https://code.claude.com/docs/en/cross-session-messaging
+- https://support.claude.com/en/articles/17440474-migrate-from-standalone-claude-design-to-claude
**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 480c69d..e014c98 100644
--- a/INDEX.md
+++ b/INDEX.md
@@ -262,7 +262,7 @@ pr-review/
**Commands**: `/review-pr`, `/check-security`, `/check-tests`
-**Installation**: `/plugin install pr-review`
+**Installation**: `claude --plugin-dir ./07-plugins/pr-review` (from the repo root)
---
@@ -296,7 +296,7 @@ devops-automation/
**Commands**: `/deploy`, `/rollback`, `/status`, `/incident`
-**Installation**: `/plugin install devops-automation`
+**Installation**: `claude --plugin-dir ./07-plugins/devops-automation` (from the repo root)
---
@@ -327,7 +327,7 @@ documentation/
**Commands**: `/generate-api-docs`, `/generate-readme`, `/sync-docs`, `/validate-docs`
-**Installation**: `/plugin install documentation`
+**Installation**: `claude --plugin-dir ./07-plugins/documentation` (from the repo root)
**Plus**: `README.md` - Plugins overview and usage guide
@@ -354,7 +354,7 @@ Save conversation state and explore alternative approaches.
# To rewind, press Esc twice or use:
/rewind
# Then choose: Restore code and conversation, Restore conversation,
-# Restore code, Summarize from here, or Never mind
+# Restore code, Summarize from here, Summarize up to here, or Never mind
```
**Use Cases**:
@@ -414,7 +414,7 @@ Advanced capabilities for complex workflows.
- **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)
- **dontAsk**: Only pre-approved tools — auto-denies every call that would otherwise prompt. Claude runs only `permissions.allow` matches, read-only Bash commands, and calls approved by a `PreToolUse` hook
-- **bypassPermissions**: Accept all (requires `--dangerously-skip-permissions`)
+- **bypassPermissions**: Accept all (enable with `--permission-mode bypassPermissions` or the equivalent `--dangerously-skip-permissions`)
### Headless Mode (`claude -p`)
- CI/CD integration
@@ -692,13 +692,13 @@ cp 04-subagents/code-reviewer.md .claude/agents/
cp -r 03-skills/code-review-specialist ~/.claude/skills/
# Or install complete plugin
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
### DevOps & Deployment
```bash
# Install plugin (includes everything)
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
### Documentation
@@ -713,7 +713,7 @@ cp 04-subagents/documentation-writer.md .claude/agents/
cp -r 03-skills/doc-generator ~/.claude/skills/
# Or install complete plugin
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
### Team Standards
@@ -727,8 +727,10 @@ cp 02-memory/project-CLAUDE.md ./CLAUDE.md
### External Integrations
```bash
# Set environment variables
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
# Install MCP config (project scope)
cp 05-mcp/multi-mcp.json .mcp.json
@@ -897,8 +899,8 @@ Want to add more examples? Follow the structure:
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/workflows#set-a-size-guideline
@@ -913,6 +915,8 @@ Want to add more examples? Follow the structure:
- 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/plugins/install
+- https://code.claude.com/docs/en/checkpointing
- 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
diff --git a/LEARNING-ROADMAP.md b/LEARNING-ROADMAP.md
index 95a68f9..28d5023 100644
--- a/LEARNING-ROADMAP.md
+++ b/LEARNING-ROADMAP.md
@@ -97,7 +97,7 @@ graph TD
| Step | Feature | Complexity | Time | Level | Dependencies | Why Learn This | Key Benefits |
|------|---------|-----------|------|-------|--------------|----------------|--------------|
-| **1** | [Slash Commands](01-slash-commands/) | ⭐ Beginner | 30 min | Level 1 | None | Quick productivity wins (60+ built-in + 10 bundled skills) | Instant automation, team standards |
+| **1** | [Slash Commands](01-slash-commands/) | ⭐ Beginner | 30 min | Level 1 | None | Quick productivity wins (60+ built-in + 20 bundled skills) | Instant automation, team standards |
| **2** | [Memory](02-memory/) | ⭐⭐ Beginner+ | 45 min | Level 1 | None | Essential for all features | Persistent context, preferences |
| **3** | [Checkpoints](08-checkpoints/) | ⭐⭐ Intermediate | 45 min | Level 1 | Session management | Safe exploration | Experimentation, recovery |
| **4** | [CLI Basics](10-cli/) | ⭐⭐ Beginner+ | 30 min | Level 1 | None | Core CLI usage | Interactive & print mode |
@@ -302,8 +302,7 @@ chmod +x ~/.claude/hooks/pre-tool-check.sh
```bash
# Exercise 1: Set up GitHub MCP
-export GITHUB_TOKEN="your_github_token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Exercise 2: Test MCP integration
# In Claude Code: /mcp__github__list_prs
@@ -370,7 +369,7 @@ Before starting Level 3, make sure you're comfortable with these Level 2 concept
✅ Background task management
✅ Auto Memory for learned preferences
✅ Auto Mode with background safety classifier
-✅ Channels for structured multi-session workflows
+✅ Channels that push events (CI results, chat messages, webhooks) into a running session
✅ Voice Dictation for hands-free interaction
✅ Remote control (generally available — your machine appears as a device card in the Claude app), desktop app, and web sessions
✅ Agent Teams for multi-agent collaboration
@@ -406,10 +405,10 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Exercise 7: Scheduled tasks
/loop 5m /check-status
-# Or use CronCreate for persistent scheduled tasks
+# Tasks are session-scoped; for persistent scheduling use Routines or Desktop scheduled tasks
-# Exercise 8: Channels for multi-session workflows
-# Use channels to organize work across sessions
+# Exercise 8: Channels (research preview)
+# A channel is an MCP server that pushes events into your running session
# Exercise 9: Voice Dictation
# Use voice input for hands-free interaction with Claude Code
@@ -421,7 +420,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
- [ ] Toggled extended thinking with Alt+T / Option+T
- [ ] Used auto mode with background safety classifier
- [ ] Used background tasks for long operations
-- [ ] Explored Channels for multi-session workflows
+- [ ] Explored Channels that push external events into a session
- [ ] Tried Voice Dictation for hands-free input
- [ ] Understand Remote Control, Desktop App, and Web sessions
- [ ] Used `notify_when_idle` on a cross-session `SendMessage` to be told when another session goes idle
@@ -453,7 +452,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
```bash
# Exercise 1: Install a complete plugin
-# In Claude Code: /plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review # from the repo root
# Exercise 2: Print mode for CI/CD
claude -p "Run all tests and generate report"
@@ -699,14 +698,14 @@ Once you've completed all milestones:
1. **Create team documentation** - Document your team's Claude Code setup
2. **Build custom plugins** - Package your team's workflows, including the newer manifest fields (`workflows`, `channels`, `dependencies`)
-3. **Try `/design`** - Sketch a UI mockup, screen flow, or landing page on a design canvas instead of hand-writing HTML (research preview, v2.1.233+)
-4. **Explore Remote Control** - Control Claude Code sessions programmatically from external tools, or start one from your phone via its device card in the Claude app
+3. **Try `/design`** - Sketch a UI mockup, screen flow, or landing page on a design canvas instead of hand-writing HTML (v2.1.265+)
+4. **Explore Remote Control** - Continue a local Claude Code session from your phone, browser or the Claude app, or start one from your phone via its device card in the Claude app
5. **Try Web Sessions** - Use Claude Code through browser-based interfaces for remote development
6. **Use the Desktop App** - Access Claude Code features through the native desktop application
7. **Use Auto Mode** - Let Claude work autonomously with a background safety classifier
8. **Leverage Auto Memory** - Let Claude learn your preferences automatically over time
9. **Set up Agent Teams** - Coordinate multiple agents on complex, multi-faceted tasks
-10. **Use Channels** - Organize work across structured multi-session workflows
+10. **Use Channels** - Connect an MCP server that pushes events (CI results, chat messages, webhooks) into your running session
11. **Try Voice Dictation** - Use hands-free voice input for interaction with Claude Code
12. **Use Scheduled Tasks** - Automate recurring checks with `/loop` and cron tools
13. **Contribute examples** - Share with the community
@@ -740,8 +739,8 @@ Once you've completed all milestones:
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/hooks
@@ -750,6 +749,12 @@ Once you've completed all milestones:
- 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/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/commands
- 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
diff --git a/QUICK_REFERENCE.md b/QUICK_REFERENCE.md
index 6a7dbb3..8bd5658 100644
--- a/QUICK_REFERENCE.md
+++ b/QUICK_REFERENCE.md
@@ -46,7 +46,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
### MCP
```bash
# Set credentials
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# Install config (project scope)
@@ -97,7 +97,7 @@ chmod +x ~/.claude/hooks/*.sh
# plan - Read-only analysis, no modifications
# auto - Background classifier decides permissions automatically
# dontAsk - Only pre-approved tools run; everything else is denied
-# bypassPermissions - Accept all actions (requires --dangerously-skip-permissions)
+# bypassPermissions - Accept all actions (--permission-mode bypassPermissions; --dangerously-skip-permissions is equivalent)
# Session management
/resume # Resume a previous conversation (no args = picker of past sessions)
@@ -132,7 +132,7 @@ claude -r "session" # Resume session by name/ID
| **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)* |
+| **Bundled Skills (20)** | Built-in | `/batch`, `/claude-api`, `/code-review [low\|medium\|high\|xhigh\|max\|ultra] [--fix] [--comment] [pr#\|branch\|path]` *(Claude can also start it on its own, everywhere since v2.1.246; 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)* |
---
@@ -264,15 +264,15 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Run a command every 5 minutes
/loop 5m /check-status
-# One-time reminder
-/loop 30m "remind me to check the deploy"
+# One-time reminder: ask in plain language (/loop repeats until cancelled)
+remind me in 30 minutes to check the deploy
```
---
## 📁 File Locations Reference
-```
+```text
Your Project/
├── .claude/
│ ├── commands/ # Slash commands go here
@@ -292,9 +292,12 @@ User Home/
│ ├── skills/ # Personal skills
│ ├── hooks/ # Hook scripts
│ ├── settings.json # User settings
-│ ├── managed-settings.d/ # Managed settings (enterprise/org)
│ └── CLAUDE.md # Personal memory
└── .claude.json # Personal MCP config (user scope)
+
+System directory/ # macOS /Library/Application Support/ClaudeCode/, Linux /etc/claude-code/, Windows C:\Program Files\ClaudeCode\
+├── managed-settings.json # Managed settings (enterprise/org)
+└── managed-settings.d/ # Managed settings drop-ins
```
---
@@ -355,7 +358,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
### Day 4-5
```bash
# Set up MCP
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
cp 05-mcp/github-mcp.json .mcp.json
# Try MCP commands
@@ -403,7 +406,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **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 | `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 |
+| **Model Selection** | Switch between Fable 5.1, Fable 5, Opus 5.5, Opus 5, Sonnet 5.5, Sonnet 5, Sonnet 4.6, Opus 4.8, Haiku 5.5, and Haiku 4.5 | `/model` (`sonnet` resolves to Sonnet 5.5 on the Anthropic API, v2.1.284+) — 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_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 |
@@ -446,7 +449,7 @@ ls -la .claude/agents/
head -20 .claude/agents/code-reviewer.md
# Test MCP connection
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
```
---
@@ -521,8 +524,8 @@ Getting started checklist:
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/workflows#set-a-size-guideline
- https://code.claude.com/docs/en/memory#agents-md
@@ -539,4 +542,7 @@ Getting started checklist:
- 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
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/code-review-local
**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 f561804..3079bb8 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@
[![GitHub Stars](https://img.shields.io/github/stars/luongnv89/claude-howto?style=flat&color=gold)](https://github.com/luongnv89/claude-howto/stargazers)
[![GitHub Forks](https://img.shields.io/github/forks/luongnv89/claude-howto?style=flat)](https://github.com/luongnv89/claude-howto/network/members)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
-[![Version](https://img.shields.io/badge/version-2.1.296-brightgreen)](CHANGELOG.md)
+[![Version](https://img.shields.io/badge/version-2.1.302-brightgreen)](CHANGELOG.md)
[![Claude Code](https://img.shields.io/badge/Claude_Code-2.1+-purple)](https://code.claude.com)
🌐 **Language / Ngôn ngữ / 语言 / Мова:** [English](README.md) | [Tiếng Việt](vi/README.md) | [中文](zh/README.md) | [Українська](uk/README.md) | [日本語](ja/README.md)
@@ -102,7 +102,7 @@ Run `/lesson-quiz [topic]` after each module. The quiz pinpoints what you missed
- **GitHub stars** from developers who use Claude Code daily
- **Forks** from teams adapting this guide for their own workflows
-- **Actively maintained** — synced with every Claude Code release (latest: v2.1.296, October 2026)
+- **Actively maintained** — synced with every Claude Code release (latest: v2.1.302, October 2026)
- **Community-driven** — contributions from developers who share their real-world configurations
[![Star History Chart](https://api.star-history.com/svg?repos=luongnv89/claude-howto&type=Date)](https://star-history.com/#luongnv89/claude-howto&Date)
@@ -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). 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.
+> **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 installation is deprecated in the official README; prefer the native installer, Homebrew (`brew install --cask claude-code`) or WinGet (`winget install Anthropic.ClaudeCode`). For reference, `npm install -g @anthropic-ai/claude-code` 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
@@ -201,7 +201,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
Yes. MIT licensed, free forever. Use it in personal projects, at work, in your team — no restrictions beyond including the license notice.
**Is this maintained?**
-Actively. The guide is synced with every Claude Code release. Current version: v2.1.296 (October 2026), compatible with Claude Code 2.1+.
+Actively. The guide is synced with every Claude Code release. Current version: v2.1.302 (October 2026), compatible with Claude Code 2.1+.
**How is this different from the official docs?**
The official docs are a feature reference. This guide is a tutorial with diagrams, production-ready templates, and a progressive learning path. They complement each other — start here to learn, reference the docs when you need specifics.
@@ -210,7 +210,7 @@ The official docs are a feature reference. This guide is a tutorial with diagram
11-13 hours for the full path. But you'll get immediate value in 15 minutes — just copy a slash command template and try it.
**Can I use this with Claude Sonnet / Haiku / Opus?**
-Yes. All templates work with Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, and Claude Haiku 4.5.
+Yes. All templates work with Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, and Claude Haiku 4.5.
**Can I contribute?**
Absolutely. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. We welcome new examples, bug fixes, documentation improvements, and community templates.
@@ -286,16 +286,15 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
cp 04-subagents/*.md .claude/agents/
# MCP
-export GITHUB_TOKEN="token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Hooks
mkdir -p ~/.claude/hooks
cp 06-hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh
-# Plugins
-/plugin install pr-review
+# Plugins (load a local plugin from the repo root)
+claude --plugin-dir ./07-plugins/pr-review
# Checkpoints (auto-enabled, configure in settings)
# See 08-checkpoints/README.md
@@ -429,11 +428,10 @@ cp 04-subagents/*.md /path/to/project/.claude/agents/
**Installation**:
```bash
# Set environment variables
-export GITHUB_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# Add MCP server via CLI
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Or add to project .mcp.json manually (see 05-mcp/ for examples)
```
@@ -450,7 +448,7 @@ claude mcp add github -- npx -y @modelcontextprotocol/server-github
**What**: Event-driven shell commands that execute automatically in response to Claude Code events
**Examples**:
-- `format-code.sh` - Auto-format code before writing
+- `format-code.sh` - Auto-format code after writing
- `pre-commit.sh` - Run tests before commits
- `security-scan.sh` - Scan for security issues
- `log-bash.sh` - Log all bash commands
@@ -468,14 +466,15 @@ Configure hooks in `~/.claude/settings.json`:
```json
{
"hooks": {
- "PreToolUse": [{
- "matcher": "Write",
- "hooks": ["~/.claude/hooks/format-code.sh"]
- }],
- "PostToolUse": [{
- "matcher": "Write",
- "hooks": ["~/.claude/hooks/security-scan.sh"]
- }]
+ "PostToolUse": [
+ {
+ "matcher": "Write",
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/format-code.sh" },
+ { "type": "command", "command": "~/.claude/hooks/security-scan.sh" }
+ ]
+ }
+ ]
}
}
```
@@ -506,9 +505,10 @@ Configure hooks in `~/.claude/settings.json`:
**Installation**:
```bash
-/plugin install pr-review
-/plugin install devops-automation
-/plugin install documentation
+# From the repo root (this repo ships no marketplace, so /plugin install does not apply)
+claude --plugin-dir ./07-plugins/pr-review
+claude --plugin-dir ./07-plugins/devops-automation
+claude --plugin-dir ./07-plugins/documentation
```
**Usage**: Use bundled slash commands and features
@@ -533,12 +533,13 @@ Configure hooks in `~/.claude/settings.json`:
# To rewind, press Esc twice or use:
/rewind
-# Then choose from five options:
+# Then choose from six options:
# 1. Restore code and conversation
# 2. Restore conversation
# 3. Restore code
# 4. Summarize from here
-# 5. Never mind
+# 5. Summarize up to here
+# 6. Never mind
```
**Use Cases**:
@@ -776,7 +777,7 @@ This project includes comprehensive automated testing:
```bash
# Install development dependencies
-uv pip install -r requirements-dev.txt
+uv pip install -r scripts/requirements-dev.txt
# Run all unit tests
pytest scripts/tests/ -v
@@ -789,7 +790,7 @@ ruff check scripts/
ruff format --check scripts/
# Run security scan
-bandit -c pyproject.toml -r scripts/ --exclude scripts/tests/
+bandit -c scripts/pyproject.toml -r scripts/ --exclude scripts/tests/
# Run type checking
mypy scripts/ --ignore-missing-imports
@@ -873,8 +874,8 @@ MIT License - see [LICENSE](LICENSE). Free to use, modify, and distribute. The o
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
@@ -888,4 +889,9 @@ MIT License - see [LICENSE](LICENSE). Free to use, modify, and distribute. The o
- 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
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/checkpointing
+- https://github.com/anthropics/claude-code
+- https://code.claude.com/docs/en/changelog#2-1-302
**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 31b26ee..8294fb5 100644
--- a/claude_concepts_guide.md
+++ b/claude_concepts_guide.md
@@ -255,7 +255,7 @@ graph TB
### Memory Hierarchy in Claude Code (7 Tiers)
-Claude Code loads memory from 7 tiers, listed from highest to lowest priority:
+Claude Code loads memory from 7 tiers. CLAUDE.md files are concatenated into context rather than overriding each other, and they load managed → user → project → local (later, more specific files are read last):
```mermaid
graph TD
@@ -285,7 +285,7 @@ graph TD
| 4. User | `~/.claude/CLAUDE.md` | Personal | Medium | Individual | Personal preferences |
| 5. User Rules | `~/.claude/rules/*.md` | Personal | Medium | Individual | Personal rule modules |
| 6. Local | `./CLAUDE.local.md` | Local | Low | Not shared | Machine-specific settings |
-| 7. Auto Memory | Automatic | Session | Lowest | Individual | Learned preferences, patterns |
+| 7. Auto Memory | Automatic | Per repository | Lowest | Individual | Learned preferences, patterns |
### Auto Memory
@@ -555,19 +555,19 @@ graph TB
### Bundled Skills
-Claude Code now includes 10 bundled skills available out of the box:
+Claude Code now includes 20 bundled skills available out of the box:
| Skill | Command | Purpose |
|-------|---------|---------|
| **Batch** | `/batch` | Run operations across multiple files or items |
-| **Claude API** | `/claude-api` | Interact with the Anthropic API directly |
+| **Claude API** | `/claude-api` | Load Claude API and Managed Agents reference material for your project's language; activates automatically when your code imports `anthropic` or `@anthropic-ai/sdk` |
| **Code Review** | `/code-review` | Review the current diff for correctness bugs at a chosen effort level. A distinct skill from `/simplify` (quality/reuse cleanups), which was split back out in v2.1.154. Explicit invocation only since v2.1.215 |
| **Simplify** | `/simplify` | Quality, reuse, and cleanup review — distinct from `/code-review` again since v2.1.154 |
-| **Debug** | `/debug` | Systematic debugging of issues with root cause analysis |
+| **Debug** | `/debug` | Turn on debug logging for the current session and troubleshoot by reading the session debug log |
| **Fewer Permission Prompts** | `/fewer-permission-prompts` | Scan transcripts and propose a prioritized allowlist for common read-only tools |
| **Loop** | `/loop` | Schedule recurring tasks on a timer |
| **Run** | `/run` | Launch and drive the project's app to verify a change (v2.1.145+) |
-| **Run Skill Generator** | `/run-skill-generator` | Scaffold a new skill from a description (v2.1.145+) |
+| **Run Skill Generator** | `/run-skill-generator` | Write a per-project skill that teaches `/run` and `/verify` how to build, launch, and drive your app (v2.1.145+) |
| **Verify** | `/verify` | Verify that a change actually works (v2.1.145+). Explicit invocation only since v2.1.215 |
These bundled skills are always available and do not require installation or configuration.
@@ -665,7 +665,7 @@ sequenceDiagram
participant Hooks
participant Tools as Configured Tools
- User->>Claude: /plugin install pr-review
+ User->>Claude: claude --plugin-dir ./07-plugins/pr-review
Claude->>Plugin: Download plugin manifest
Plugin-->>Claude: Return plugin definition
Claude->>Install: Extract components
@@ -691,39 +691,14 @@ sequenceDiagram
### Plugin Definition Structure
-```yaml
----
-name: plugin-name
-version: "1.0.0"
-description: "What this plugin does"
-author: "Your Name"
-license: MIT
-
-# Plugin metadata
-tags:
- - category
- - use-case
-
-# Requirements
-requires:
- - claude-code: ">=2.1.0"
-
-# Components bundled
-components:
- - type: commands
- path: commands/
- - type: agents
- path: agents/
- - type: mcp
- path: mcp/
- - type: hooks
- path: hooks/
-
-# Configuration
-config:
- auto_load: true
- enabled_by_default: true
----
+The manifest is JSON at `.claude-plugin/plugin.json`. Only `name` is required, and unrecognized top-level keys are stripped:
+
+```json
+{
+ "name": "plugin-name",
+ "version": "1.0.0",
+ "description": "What this plugin does"
+}
```
### Plugin Structure
@@ -741,11 +716,13 @@ my-plugin/
│ ├── specialist-2.md
│ └── configs/
├── skills/
-│ ├── skill-1.md
-│ └── skill-2.md
+│ └── skill-name/
+│ └── SKILL.md
├── hooks/
│ └── hooks.json
├── .mcp.json
+├── bin/
+│ └── my-tool
├── .lsp.json
├── settings.json
├── templates/
@@ -862,7 +839,7 @@ graph TD
1. Create plugin structure with all components
2. Write `.claude-plugin/plugin.json` manifest
3. Create `README.md` with documentation
-4. Test locally with `/plugin install ./my-plugin`
+4. Test locally with `claude --plugin-dir ./my-plugin`
5. Submit to plugin marketplace
6. Get reviewed and approved
7. Published on marketplace
@@ -884,7 +861,7 @@ See the three complete plugins in **[07-plugins/](07-plugins/)** — `pr-review/
**With Plugin (2 minutes):**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ Everything installed and configured
# ✅ Ready to use immediately
# ✅ Team can reproduce exact setup
@@ -1137,13 +1114,13 @@ Claude Code supports **33 hook events** across five hook types (command, http, m
| Hook Event | Trigger | Use Cases |
|------------|---------|-----------|
| **SessionStart** | Session begins/resumes/clear/compact | Environment setup, initialization |
-| **Setup** | Initial environment setup (one-time per session) | Provision tooling, install deps |
+| **Setup** | Launch with `--init-only`, or `-p` with `--init` / `--maintenance` (not on normal startup) | Provision tooling, install deps |
| **InstructionsLoaded** | CLAUDE.md or rules file loaded | Validation, transformation, augmentation |
| **UserPromptSubmit** | User submits prompt | Input validation, prompt filtering |
| **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 |
+| **PermissionDenied** | Auto mode denies a tool call (never on manual denials) | Logging, analytics, policy enforcement |
| **PostToolUse** | After tool succeeds | Auto-formatting, notifications, cleanup |
| **PostToolUseFailure** | Tool execution fails | Error handling, logging |
| **PostToolBatch** | After a batch of tool uses completes | Aggregate reporting, batched validation |
@@ -1164,7 +1141,7 @@ Claude Code supports **33 hook events** across five hook types (command, http, m
| **PostCompact** | After compaction completes | Post-compact actions |
| **PreModelSwitch** | Before a requested model switch is applied | Gate or veto model changes |
| **PostModelSwitch** | After the session's model changes | Log or react to model changes |
-| **WorktreeCreate** | Worktree being created | Environment setup, dependency install |
+| **WorktreeCreate** | Worktree being created | Replace default git worktree creation; must print the worktree path |
| **WorktreeRemove** | Worktree being removed | Cleanup, resource deallocation |
| **Elicitation** | MCP server requests user input | Input validation |
| **ElicitationResult** | User responds to elicitation | Response processing |
@@ -1252,12 +1229,13 @@ Esc + Esc
/rewind
```
-When you select a checkpoint, you choose from five options:
+When you select a checkpoint, you choose from six options:
1. **Restore code and conversation** -- Revert both to that point
2. **Restore conversation** -- Rewind messages, keep current code
3. **Restore code** -- Revert files, keep conversation
4. **Summarize from here** -- Compress conversation into a summary
-5. **Never mind** -- Cancel
+5. **Summarize up to here** -- Compress everything before this point into a summary
+6. **Never mind** -- Cancel
### Use Cases
@@ -1270,9 +1248,11 @@ When you select a checkpoint, you choose from five options:
### Configuration
+Checkpointing is on by default; `fileCheckpointingEnabled` controls it:
+
```json
{
- "autoCheckpoint": true
+ "fileCheckpointingEnabled": true
}
```
@@ -1303,12 +1283,11 @@ Deep reasoning for complex problems.
**Activation:**
- Toggle with `Alt+T` (or `Option+T` on macOS) during a session
-- Set `MAX_THINKING_TOKENS` environment variable for programmatic control
+- Opus 4.7+, Sonnet 5+, Haiku 5.5 and Fable always use adaptive reasoning, so a fixed `MAX_THINKING_TOKENS` budget does not apply; control depth with `/effort`
```bash
-# Enable extended thinking via environment variable
-export MAX_THINKING_TOKENS=50000
-claude -p "Should we use microservices or monolith?"
+# Control reasoning depth with the effort level
+/effort high
```
**Benefits:**
@@ -1339,7 +1318,7 @@ Control what Claude can do.
| **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 |
+| **auto** | A classifier approves safe actions and blocks risky ones; prompts return only after 3 blocks in a row or 20 in total | Balanced autonomy with safety |
| **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 |
@@ -1409,13 +1388,7 @@ claude -r "Feature" # Resume session by name/ID
- `↑ / ↓` - Command history
- `Ctrl + L` - Clear screen
-**Multi-line Input:**
-```bash
-User: \
-> Long complex prompt
-> spanning multiple lines
-> \end
-```
+**Multi-line Input:** press `\` + Enter, Option+Enter (macOS), Shift+Enter, or Ctrl+J to start a new line. There is no `\end` terminator.
### Configuration
@@ -1423,14 +1396,8 @@ Complete configuration example:
```json
{
- "planning": {
- "autoEnter": true,
- "requireApproval": true
- },
- "extendedThinking": {
- "enabled": true,
- "showThinkingProcess": true
- },
+ "alwaysThinkingEnabled": true,
+ "showThinkingSummaries": true,
"permissions": {
"defaultMode": "manual"
}
@@ -1473,9 +1440,17 @@ Claude Code supports the following models with adaptive reasoning effort:
- [Anthropic Cookbook](https://github.com/anthropics/anthropic-cookbook)
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/create
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/interactive-mode
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/memory
+- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://www.anthropic.com/news/claude-sonnet-5
- https://code.claude.com/docs/en/cli-reference
diff --git a/ja/01-slash-commands/README.md b/ja/01-slash-commands/README.md
index e5dcb52..185eb74 100644
--- a/ja/01-slash-commands/README.md
+++ b/ja/01-slash-commands/README.md
@@ -40,13 +40,13 @@
| `/cost` | `/usage` のタイピング用エイリアス — コストタブを開く(v2.1.118+) |
| `/desktop` | Desktop アプリで継続(エイリアス: `/app`) |
| `/diff` | 未コミット変更のインタラクティブ差分ビューア |
-| `/doctor` | インストール状態を診断 — Claude が応答中でも開ける。ステータスアイコンを表示。`f` で問題を自動修正(v2.1.116 で強化) |
+| `/doctor` | インストール状態を診断 — Claude が応答中でも開ける。バンドルスキルであり、Claude がセットアップを点検して修正を提案し、確認後に適用する(読み取り専用の診断は `claude doctor`) |
| `/effort [low\|medium\|high\|xhigh\|max\|auto]` | 矢印キーのスライダーで思考量を設定。レベル: `low` → `medium` → `high` → `xhigh`(v2.1.111 で追加)→ `max`。Opus 4.7 のデフォルトは `xhigh`、`max` は Opus 4.7 が必要 |
| `/exit` | REPL を終了(エイリアス: `/quit`) |
| `/export [filename]` | 現在の会話をファイルまたはクリップボードにエクスポート |
| `/extra-usage` | レート制限の追加使用量を設定 |
| `/fast [on\|off]` | 高速モードを切り替え |
-| `/feedback` | フィードバックを送信(エイリアス: `/bug`) |
+| `/feedback` | フィードバックを送信 |
| `/focus` | フォーカスビューを切り替え(v2.1.110 で追加。フォーカス切替は `Ctrl+O` から本コマンドへ移行) |
| `/help` | ヘルプを表示 |
| `/hooks` | フック設定を表示 |
@@ -89,10 +89,10 @@
| `/status` | バージョン、モデル、アカウントを表示 |
| `/statusline` | ステータスラインを設定 |
| `/tasks` | バックグラウンドタスクを一覧/管理 |
-| `/team-onboarding` | プロジェクトの Claude Code 設定からチームメイト向けランプアップガイドを生成(v2.1.101 で新規) |
+| `/team-onboarding` | 過去 30 日間の Claude Code のセッション、コマンド、MCP 利用状況からチームメイト向けランプアップガイドを生成し、共有リンクを返す(v2.1.101 で新規) |
| `/terminal-setup` | ターミナルのキーバインドを設定 |
| `/theme` | テーマピッカーを開く/カスタムテーマを管理(v2.1.118)。カスタムテーマは `~/.claude/themes/<name>.json` に JSON で定義 |
-| `/tui` | ちらつきのないフルスクリーン TUI(テキストユーザーインターフェース)モードを切り替え(v2.1.110 で追加) |
+| `/tui [default\|fullscreen]` | ターミナル UI のレンダラーを設定して再起動する(`fullscreen` でちらつきのない描画)。引数なしの `/tui` は現在のレンダラーを表示(v2.1.110 で追加) |
| `/ultrareview` | マルチエージェント分析による包括的なクラウドベースのコードレビュー(v2.1.111 で追加)。現在の推奨呼び出しは `/code-review ultra` で、`/ultrareview` はそのエイリアスとして残っている。Pro と Max では 3 回まで無料、以降は使用クレジットが必要 |
| `/upgrade` | 上位プランへのアップグレードページを開く |
| `/usage` | 正式な使用状況ダッシュボード(v2.1.118)— プラン使用量制限、レート制限、コスト、日次セッション統計を統合。`/cost` と `/stats` は特定のタブを開くタイピング用エイリアス |
@@ -107,7 +107,7 @@
| `/batch <instruction>` | ワークツリーを使った大規模並列変更をオーケストレートする |
| `/claude-api` | プロジェクトの言語に応じた Claude API リファレンスを読み込む |
| `/debug [description]` | デバッグログを有効化 |
-| `/loop [interval] <prompt>` | プロンプトを定期的に繰り返し実行 |
+| `/loop [interval] [prompt]` | プロンプトを定期的に繰り返し実行 |
| `/simplify [focus]` | 変更されたファイルをコード品質の観点でレビュー |
### 非推奨コマンド
@@ -150,7 +150,7 @@
> **v2.1.101 で新規追加**
-`/team-onboarding` を使うと、プロジェクトのローカルな Claude Code 利用状況からチームメイト向けランプアップガイドを生成できる。コマンドは `CLAUDE.md`、インストール済みのスキル、サブエージェント、フック、最近のワークフローを点検し、新しい開発者がすぐに生産的になれるオンボーディングドキュメントを作成する。
+`/team-onboarding` を使うと、プロジェクトのローカルな Claude Code 利用状況からチームメイト向けランプアップガイドを生成できる。Claude は過去 30 日間のセッション、コマンド、MCP サーバーの利用状況を分析し、新しい開発者がすぐに生産的になれるオンボーディングガイドを作成して、その共有リンクを返す。
組み込みコマンドであり、インストール作業は不要である。
@@ -160,13 +160,11 @@
claude /team-onboarding
```
-生成されるガイドは次の内容を要約する:
+生成されるガイドは次の情報をもとに作られる:
-- [`CLAUDE.md`](../02-memory/README.md) からのプロジェクトの目的と主な慣習
-- 利用可能な [スキル](../03-skills/README.md) と自動起動の条件
-- 設定済みの [サブエージェント](../04-subagents/README.md) とその責務
-- 一般的なイベントで実行される [フック](../06-hooks/README.md)
-- 新規参加者が知っておくべき共通ワークフロー
+- 最近のセッションで繰り返し現れるワークフロー
+- よく実行するコマンド
+- 利用している [MCP サーバー](../05-mcp/README.md)
**提供開始:** Claude Code v2.1.101(2026 年 4 月 11 日)に同梱。
@@ -235,7 +233,7 @@ Instructions for Claude to follow when this command is invoked.
| フィールド | 用途 | デフォルト |
|----------|------|----------|
| `name` | コマンド名(`/name` になる) | ディレクトリ名 |
-| `description` | 簡単な説明(Claude がいつ使うか判断する材料) | 最初の段落 |
+| `description` | 簡単な説明(Claude がいつ使うか判断する材料) | 最初の空でない行 |
| `argument-hint` | 自動補完用の想定引数 | なし |
| `allowed-tools` | 権限なしで使えるツール | 継承 |
| `model` | 使用する特定のモデル | 継承 |
@@ -606,8 +604,8 @@ Deploy the application to production:
---
-**最終更新**: 2026 年 10 月 15 日
-**Claude Code バージョン**: 2.1.300
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/output-styles
@@ -620,6 +618,9 @@ Deploy the application to production:
- 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
+- https://code.claude.com/docs/en/fullscreen
+- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/skills
**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 5dfa661..7dd1c43 100644
--- a/ja/02-memory/README.md
+++ b/ja/02-memory/README.md
@@ -105,7 +105,7 @@ Remember that we always use TypeScript strict mode in this project.
Please add to memory: prefer async/await over promise chains.
```
-Claude は依頼内容に基づき適切な CLAUDE.md ファイルを更新する。
+Claude に何かを覚えるよう頼むと、自動メモリに保存される。代わりに CLAUDE.md を変更したい場合は「これを CLAUDE.md に追加して」と頼むか、`/memory` でファイルを直接編集する。
**履歴用メモ**(現在は機能しない):
@@ -283,13 +283,13 @@ graph TD
// In ~/.claude/settings.json or .claude/settings.json
{
"claudeMdExcludes": [
- "packages/legacy-app/CLAUDE.md",
- "vendors/**/CLAUDE.md"
+ "**/packages/legacy-app/CLAUDE.md",
+ "**/vendors/**/CLAUDE.md"
]
}
```
-パターンはプロジェクトルートからの相対パスに対して照合される。とくに次の場合に有用である:
+パターンは glob 構文で絶対ファイルパスに対して照合されるため、リポジトリ内のパターンは `**/` で始める。とくに次の場合に有用である:
- 多くのサブプロジェクトを抱えるモノレポで、関連するのが一部のみのとき
- ベンダー製・サードパーティ製の CLAUDE.md を含むリポジトリ
@@ -321,7 +321,7 @@ Claude Code の設定(`autoMemoryDirectory`、`claudeMdExcludes` などを含
| 設定 | 型 | デフォルト | 説明 |
|------|---|---------|------|
-| `cleanupPeriodDays` | 整数(日) | 30 | ディスク上の成果物の保持期間。**v2.1.117 から**、checkpoints(`~/.claude/checkpoints/`)、tasks(`~/.claude/tasks/`)、shell-snapshots(`~/.claude/shell-snapshots/`)、backups(`~/.claude/backups/`)の 4 種すべてに適用される。期間より古いファイルは起動時に削除される。 |
+| `cleanupPeriodDays` | 整数(日) | 30 | セッショントランスクリプトおよび `~/.claude/` 配下のその他のアプリケーションデータの保持期間。`file-history/`(チェックポイントのスナップショット)、`plans/`、`debug/`、`tasks/`、`shell-snapshots/`、`backups/` などが対象となる。`~/.claude/checkpoints/` というフォルダは存在しない。期間より古いファイルは起動時に削除される。 |
```jsonc
// ~/.claude/settings.json
@@ -334,25 +334,27 @@ Claude Code の設定(`autoMemoryDirectory`、`claudeMdExcludes` などを含
| 設定 | 型 | 説明 |
|------|---|------|
-| `attribution.commit` | boolean | Claude が作成したコミットに `Co-Authored-By: Claude` トレーラを追加。非推奨の `includeCoAuthoredBy` フラグを置き換え。 |
-| `attribution.pr` | boolean | プルリクエストの説明に Claude の帰属表示を追加。PR について非推奨の `includeCoAuthoredBy` フラグを置き換え。 |
+| `attribution.commit` | string | Claude が作成したコミットに追加するテキスト(既定は `Co-Authored-By: Claude` トレーラ)。`""` で非表示。非推奨の `includeCoAuthoredBy` フラグを置き換え。 |
+| `attribution.pr` | string | Claude が作成したプルリクエストの説明に追加するテキスト。`""` で非表示。PR について非推奨の `includeCoAuthoredBy` フラグを置き換え。 |
| `voice.enabled` | boolean | プッシュトゥトーク音声入力(`/voice`)を有効化。非推奨の `voiceEnabled` フラグを置き換え。 |
-| `prUrlTemplate` | string | **v2.1.119 で新規。** フッターの PR バッジ用カスタム URL テンプレート。GitLab、Bitbucket、社内コードレビュー基盤などで有用。`{{owner}}`、`{{repo}}`、`{{number}}` プレースホルダをサポート。 |
+| `prUrlTemplate` | string | **v2.1.119 で新規。** フッターの PR バッジ用カスタム URL テンプレート。GitLab、Bitbucket、社内コードレビュー基盤などで有用。`{host}`、`{owner}`、`{repo}`、`{number}`、`{url}` プレースホルダをサポート。GitLab のマージリクエストリンクは変更されない。 |
```jsonc
// ~/.claude/settings.json
{
"attribution": {
- "commit": false,
- "pr": true
+ "commit": "",
+ "pr": ""
},
"voice": {
"enabled": true
},
- "prUrlTemplate": "https://gitlab.internal/{{owner}}/{{repo}}/-/merge_requests/{{number}}"
+ "prUrlTemplate": "https://reviews.example.com/{owner}/{repo}/pull/{number}"
}
```
+空文字列(`""`)でその帰属表示を非表示にでき、`"attribution": false` ですべて非表示になる(v2.1.281+)。
+
#### 非推奨となった設定キー
以下のレガシー設定キーは引き続き動作するが非推奨。上記の置き換えを優先する。
@@ -444,10 +446,10 @@ sequenceDiagram
participant Editor as File System
participant Memory as CLAUDE.md
- User->>Claude: "Remember: use async/await"
+ User->>Claude: "Add async/await rule to CLAUDE.md"
Claude->>User: "Which memory file?"
User->>Claude: "Project memory"
- Claude->>Editor: Open ~/.claude/settings.json
+ Claude->>Editor: Open ./CLAUDE.md
Claude->>Memory: Write to ./CLAUDE.md
Memory-->>Claude: File saved
Claude->>Claude: Load updated memory
@@ -456,15 +458,15 @@ sequenceDiagram
## 自動メモリ(Auto Memory)
-自動メモリは、Claude がプロジェクトでの作業中に学んだ内容、パターン、洞察を自動で記録する永続ディレクトリである。手動で書いて維持する CLAUDE.md ファイルとは異なり、自動メモリはセッション中に Claude 自身が書き込む。
+自動メモリは、Claude がプロジェクトでの作業中に型付きのメモ(`user`、`feedback`、`project`、`reference`)を自動で保存する永続ディレクトリである。アーキテクチャ、ファイルパス、デバッグの修正内容など、コードベースから導けるものは保存しない。手動で書いて維持する CLAUDE.md ファイルとは異なり、自動メモリはセッション中に Claude 自身が書き込む。
### 自動メモリの仕組み
- **場所**: `~/.claude/projects/<project>/memory/`
- **エントリポイント**: `MEMORY.md` が自動メモリディレクトリのメインファイルとして機能する
-- **トピックファイル**: 特定の主題向けのオプションファイル(例: `debugging.md`、`api-conventions.md`)
+- **トピックファイル**: メモリごとに 1 つのオプションファイル(例: `prefers-pnpm.md`、`release-checklist.md`)
- **ロード挙動**: セッション開始時に `MEMORY.md` の最初の 200 行(または最初の 25KB のうち先に達したほう)がコンテキストにロードされる。トピックファイルは起動時ではなくオンデマンドでロードされる
-- **読み書き**: Claude はパターンやプロジェクト固有の知識を発見しながら、セッション中にメモリファイルを読み書きする
+- **読み書き**: Claude はユーザーの好み、フィードバック、プロジェクトの文脈を学びながら、セッション中にメモリファイルを読み書きする
### 自動メモリのアーキテクチャ
@@ -472,11 +474,11 @@ sequenceDiagram
graph TD
A["Claude Session Starts"] --> B["Load MEMORY.md<br/>(first 200 lines / 25KB)"]
B --> C["Session Active"]
- C --> D["Claude discovers<br/>patterns & insights"]
+ C --> D["Claude learns<br/>preferences & feedback"]
D --> E{"Write to<br/>auto memory"}
E -->|General notes| F["MEMORY.md"]
- E -->|Topic-specific| G["debugging.md"]
- E -->|Topic-specific| H["api-conventions.md"]
+ E -->|Topic-specific| G["prefers-pnpm.md"]
+ E -->|Topic-specific| H["release-checklist.md"]
C --> I["On-demand load<br/>topic files"]
I --> C
@@ -496,9 +498,9 @@ graph TD
```
~/.claude/projects/<project>/memory/
├── MEMORY.md # Entrypoint (first 200 lines / 25KB loaded at startup)
-├── debugging.md # Topic file (loaded on demand)
-├── api-conventions.md # Topic file (loaded on demand)
-└── testing-patterns.md # Topic file (loaded on demand)
+├── prefers-pnpm.md # Topic file (loaded on demand)
+├── release-checklist.md # Topic file (loaded on demand)
+└── team-contacts.md # Topic file (loaded on demand)
```
### バージョン要件
@@ -514,13 +516,13 @@ npm install -g @anthropic-ai/claude-code@latest
デフォルトでは自動メモリは `~/.claude/projects/<project>/memory/` に保存される。`autoMemoryDirectory` 設定(**v2.1.74** 以降で利用可能)で場所を変更できる:
```jsonc
-// In ~/.claude/settings.json or .claude/settings.local.json (user/local settings only)
+// In any settings file: user, project, local, or managed policy
{
"autoMemoryDirectory": "/path/to/custom/memory/directory"
}
```
-> **注意**: `autoMemoryDirectory` はユーザーレベル(`~/.claude/settings.json`)またはローカル設定(`.claude/settings.local.json`)でのみ設定でき、プロジェクト設定や管理ポリシー設定には設定できない。
+> **注意**: `autoMemoryDirectory` はすべての設定スコープ(ユーザー、プロジェクト、ローカル、管理ポリシー、`--settings`)から読み込まれる。値は絶対パスか `~/` で始まるパスでなければならない。
これは次のような用途で便利である:
@@ -825,12 +827,12 @@ Claude に新しいルールを保存するよう依頼する。
### 例 4: セッション中のメモリ更新
-アクティブな Claude Code セッション中にメモリへ新しいルールを追加できる。方法は 2 つある。
+アクティブな Claude Code セッション中に CLAUDE.md へ新しいルールを追加できる(Claude に「覚えて」と頼むと、代わりに自動メモリに保存される)。方法は 2 つある。
#### 方法 1: 直接依頼
```markdown
-User: Remember that I prefer using React hooks instead of class components
+User: Add this to CLAUDE.md: I prefer using React hooks instead of class components
for all new components.
Claude: I'm adding that to your memory. Which memory file should this go in?
@@ -1207,8 +1209,8 @@ Claude はどのメモリファイルを更新するかを尋ねる。
- [公式メモリドキュメント](https://code.claude.com/docs/en/memory) — Anthropic ドキュメント
---
-**最終更新**: 2026 年 10 月 15 日
-**Claude Code バージョン**: 2.1.300
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/memory#agents-md
@@ -1218,4 +1220,6 @@ Claude はどのメモリファイルを更新するかを尋ねる。
- 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
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/claude-directory
**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 54d82ec..ffaec79 100644
--- a/ja/03-skills/README.md
+++ b/ja/03-skills/README.md
@@ -139,7 +139,7 @@ Show concrete examples of using this Skill.
### 推奨フィールド
-- **description**(推奨): スキルが何をするかと、いつ使うか。省略した場合、Claude Code は markdown 本文の最初の段落を使用する。`description` と `when_to_use` を合わせたテキストはスキル一覧で **1,536 文字**で切り詰められる(`skillListingMaxDescChars` で変更可能)。Claude がスキルを発火させるべきタイミングを判断する際に照合するのはこのテキストである。
+- **description**(推奨): スキルが何をするかと、いつ使うか。省略した場合、Claude Code は markdown 本文の最初の空でない行を使用する。`description` と `when_to_use` を合わせたテキストはスキル一覧で **1,536 文字**で切り詰められる(`skillListingMaxDescChars` で変更可能)。Claude がスキルを発火させるべきタイミングを判断する際に照合するのはこのテキストである。
- **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` だけである。
@@ -759,7 +759,7 @@ Claude が期待通りにスキルを使わない場合:
}
```
-`disableSkillShellExecution` が `true` のとき、スキル内の `` !`command` `` マーカーは実行されずリテラル文字列として残される。スキル自体を無効化することなく、スキルレベルのシェルインジェクション攻撃面を取り除ける。多層防御のため、`allowedTools` 許可リストとの組み合わせを検討するとよい。
+`disableSkillShellExecution` が `true` のとき、スキル内の各 `` !`command` `` マーカーは実行されず、`[shell command execution disabled by policy]` に置き換えられる。スキル自体を無効化することなく、スキルレベルのシェルインジェクション攻撃面を取り除ける。多層防御のため、`allowedTools` 許可リストとの組み合わせを検討するとよい。
## スキルと他機能の比較
@@ -781,7 +781,7 @@ Claude Code には、インストール不要で常時利用できる組み込
| `/simplify` | 変更ファイルを再利用性、品質、効率の観点でレビューする。3 つの並列レビューエージェントを起動 |
| `/batch <instruction>` | git worktree を用いてコードベース全体に大規模な並列変更をオーケストレーション |
| `/debug [description]` | デバッグログを読んで現在のセッションをトラブルシュート |
-| `/loop [interval] <prompt>` | プロンプトを定期的に繰り返し実行(例: `/loop 5m check the deploy`) |
+| `/loop [interval] [prompt]` | プロンプトを定期的に繰り返し実行(例: `/loop 5m check the deploy`) |
| `/claude-api` | Claude API/SDK リファレンスをロード。`anthropic`/`@anthropic-ai/sdk` のインポート時に自動発火 |
これらのスキルは追加インストールや設定なしでそのまま使える。カスタムスキルと同じ SKILL.md 形式に従う。
@@ -828,8 +828,8 @@ chmod +x ~/.claude/skills/my-skill/scripts/*.py
- [フックガイド](../06-hooks/) - イベント駆動の自動化
---
-**最終更新**: 2026 年 10 月 15 日
-**Claude Code バージョン**: 2.1.300
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**情報源**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/settings
@@ -842,4 +842,5 @@ chmod +x ~/.claude/skills/my-skill/scripts/*.py
- 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
+- https://code.claude.com/docs/en/commands
**対応モデル**: 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 0b2c205..d885717 100644
--- a/ja/03-skills/claude-md/SKILL.md
+++ b/ja/03-skills/claude-md/SKILL.md
@@ -96,7 +96,7 @@ For detailed build instructions, refer to `agent_docs/building_the_project.md`
CLAUDE.md を作成・更新する際:
-1. **目標の長さ**: 300 行以下(理想は 100 行以下)
+1. **目標の長さ**: 200 行未満
2. **スタイルルールなし**: lint やフォーマットの命令は除く
3. **タスク固有命令なし**: 別ファイルへ移す
4. **コードスニペットなし**: ファイル参照を用いる
@@ -153,7 +153,7 @@ Brief one-line description.
最終化前に確認:
-- [ ] 300 行以下(できれば 100 行以下)
+- [ ] 200 行未満
- [ ] すべての行があらゆるセッションに適用される
- [ ] スタイルやフォーマットのルールがない
- [ ] コードスニペットがない(ファイル参照を使う)
@@ -220,7 +220,7 @@ AGENTS.md はツール横断のプロジェクトコンテキストファイル
---
-**最終更新**: 2026 年 10 月 15 日
-**Claude Code バージョン**: 2.1.300
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/memory
diff --git a/ja/04-subagents/README.md b/ja/04-subagents/README.md
index a987e19..9fd6349 100644
--- a/ja/04-subagents/README.md
+++ b/ja/04-subagents/README.md
@@ -73,10 +73,11 @@
| 優先度 | 種類 | 場所 | スコープ |
|--------|------|------|---------|
-| 1(最高) | **CLI 定義** | `--agents` フラグ経由(JSON) | セッションのみ |
-| 2 | **プロジェクトサブエージェント** | `.claude/agents/` | 現在のプロジェクト |
-| 3 | **ユーザーサブエージェント** | `~/.claude/agents/` | 全プロジェクト |
-| 4(最低) | **プラグインエージェント** | プラグインの `agents/` ディレクトリ | プラグイン経由 |
+| 1(最高) | **マネージド** | マネージド設定 | 組織全体 |
+| 2 | **CLI 定義** | `--agents` フラグ経由(JSON) | セッションのみ |
+| 3 | **プロジェクトサブエージェント** | `.claude/agents/` | 現在のプロジェクト |
+| 4 | **ユーザーサブエージェント** | `~/.claude/agents/` | 全プロジェクト |
+| 5(最低) | **プラグインエージェント** | プラグインの `agents/` ディレクトリ | プラグイン経由 |
同名が複数存在する場合、優先度の高いソースが優先される。
@@ -122,7 +123,7 @@ hooks: # オプション — コンポーネントスコープのフック
|-----------|-----|------|
| `name` | はい | 一意な識別子(小文字とハイフン) |
| `description` | はい | 用途の自然言語による説明。"use PROACTIVELY" を含めると自動呼び出しが促進される |
-| `tools` | いいえ | 特定ツールのカンマ区切りリスト。省略するとすべてのツールを継承。`Agent(agent_name)` 構文で生成可能なサブエージェントを制限できる。MCP:`mcp__<server>__*` でサーバー全体を許可(v2.1.299+:その正確なサーバー名のみに一致) |
+| `tools` | いいえ | 特定ツールのカンマ区切りリスト。省略するとすべてのツールを継承。`Agent(agent_name)` 構文で生成可能なサブエージェントを制限できる(`claude --agent` でメインスレッドとして実行する場合のみ。サブエージェント内では型リストは無視される)。MCP:`mcp__<server>__*` でサーバー全体を許可(v2.1.299+:その正確なサーバー名のみに一致) |
| `disallowedTools` | いいえ | サブエージェントが使用してはならないツールのカンマ区切りリスト |
| `model` | いいえ | 使用モデル:`sonnet`、`opus`、`haiku`、フルモデル ID、または `inherit`。デフォルトは設定済みのサブエージェントモデル |
| `permissionMode` | いいえ | `default`(Manual モード。v2.1.200 以降 `manual` もエイリアスとして有効)、`acceptEdits`、`dontAsk`、`bypassPermissions`、`plan`、`auto`。親が `bypassPermissions`、`acceptEdits`、`auto` で動作している場合、サブエージェントの `permissionMode` は無視される |
@@ -159,7 +160,9 @@ mcpServers:
url: https://mcp.notion.com/mcp
github:
type: http
- url: https://api.github.com/mcp
+ url: https://api.githubcopilot.com/mcp/
+ headers:
+ Authorization: "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
tools: Read, Grep, Glob
---
@@ -239,12 +242,13 @@ claude --agents '{
エージェント定義は次の優先順位でロードされる(最初に一致したものが優先):
-1. **CLI 定義** — `--agents` フラグ(セッションのみ、JSON)
-2. **プロジェクトレベル** — `.claude/agents/`(現在のプロジェクト)
-3. **ユーザーレベル** — `~/.claude/agents/`(すべてのプロジェクト)
-4. **プラグインレベル** — プラグインの `agents/` ディレクトリ
+1. **マネージド** — マネージド設定(組織全体)
+2. **CLI 定義** — `--agents` フラグ(セッションのみ、JSON)
+3. **プロジェクトレベル** — `.claude/agents/`(現在のプロジェクト)
+4. **ユーザーレベル** — `~/.claude/agents/`(すべてのプロジェクト)
+5. **プラグインレベル** — プラグインの `agents/` ディレクトリ
-これにより、CLI 定義が単一セッションにおいて他のすべてのソースを上書きできる。
+これにより、CLI 定義が単一セッションにおいてプロジェクト・ユーザー・プラグインの定義を上書きできる。ただし、マネージド定義は引き続き優先される。
---
@@ -478,6 +482,7 @@ claude --agent code-reviewer
```yaml
---
name: researcher
+description: Research assistant that keeps findings in persistent memory across sessions
memory: user
---
@@ -574,35 +579,42 @@ graph TB
## フォークサブエージェント
-フォークサブエージェント(`context: fork`)は、フォーク時点の親エージェントの会話コンテキスト全体を継承し、クリーンスレートではなくその状態から開始する。これは、これまでの作業を失わずに代替案を探索する場合に有用である。
+フォークサブエージェントは、フォーク時点の親の会話全体(システムプロンプト、ツール、モデル、メッセージ履歴、プロンプトキャッシュ)を継承し、クリーンスレートではなくその状態から開始する。これは、これまでの作業を失わずに代替案を探索する場合に有用である。
-> **可用性**:v2.1.117 で GA。**v2.1.232 以降、フォークモードは対話セッションではデフォルトで有効**であり、これはファーストパーティかどうかを問わずすべてのビルドに当てはまる。非対話モード(`claude -p`)と Agent SDK ではデフォルト無効のままである。デフォルト無効の環境で有効化する場合、または v2.1.232 より古い Claude Code では、`CLAUDE_CODE_FORK_SUBAGENT=1` を設定する。
+> **可用性**:v2.1.117 で GA。**v2.1.232 以降、フォークモードは対話セッションではデフォルトで有効**であり、これはファーストパーティかどうかを問わずすべてのビルドに当てはまる。v2.1.302 以降は、非対話モード(`claude -p`)、Agent SDK、デスクトップアプリ、VS Code でもデフォルトで有効である。`claude mcp serve` はフォークサブエージェントを提供しない。デフォルト無効の環境で有効化する場合、または v2.1.232 より古い Claude Code では、`CLAUDE_CODE_FORK_SUBAGENT=1` を設定する。
### 設定
-```yaml
----
-name: alternative-explorer
-description: Explore an alternative implementation path while preserving parent context
-context: fork
-tools: Read, Edit, Bash, Grep, Glob
----
+フォークはエージェントファイルでは定義しない。Claude が Agent ツールで `subagent_type: "fork"` を指定して開始するか、ユーザーが `/subtask <task>`(v2.1.212+)で開始する:
-You are a forked subagent. You inherit the parent's full conversation and
-may explore an alternative approach. Return your findings and the parent
-will decide whether to adopt them.
+```text
+/subtask Explore an alternative implementation path and report the trade-offs
```
+フォークはさらにフォークを生成できない。フォークをブロックするには、拒否ルール `Agent(fork)` を追加する:
+
+```json
+{
+ "permissions": {
+ "deny": ["Agent(fork)"]
+ }
+}
+```
+
+> **注意**:`context: fork` は**スキル**のフロントマターフィールドであり([スキル](../03-skills/README.md)を参照)、サブエージェントのフィールドではない。Claude Code はエージェント定義内の未知のフィールドを警告なしに無視する。
+
### 外部ビルドでの有効化
+`CLAUDE_CODE_FORK_SUBAGENT=0` を設定すると、すべての環境でフォークモードを無効にできる。v2.1.302 より前のバージョンでは、`claude -p` と Agent SDK でフォークを有効にするために `1` を設定する。
+
```bash
-export CLAUDE_CODE_FORK_SUBAGENT=1
+export CLAUDE_CODE_FORK_SUBAGENT=0
claude
```
### Fork とクリーンコンテキストの使い分け
-| シナリオ | `context: fork` | クリーンコンテキスト(デフォルト) |
+| シナリオ | フォーク(`subagent_type: "fork"`) | クリーンコンテキスト(デフォルト) |
|---------|-----------------|-------------------------|
| 代替実装の探索 | はい | いいえ(コンテキストを失う) |
| 既存コンテキストを伴う長期調査 | はい | いいえ |
@@ -613,7 +625,7 @@ claude
## 生成可能なサブエージェントの制限
-`tools` フィールドで `Agent(agent_type)` 構文を使うと、特定のサブエージェントが生成できるサブエージェントを制御できる。これは委譲対象の特定サブエージェントを許可リスト化する手段を提供する。
+`tools` フィールドで `Agent(agent_type)` 構文を使うと、`claude --agent` でメインスレッドとして実行されるエージェントが生成できるサブエージェントを制御できる。これは委譲対象の特定サブエージェントを許可リスト化する手段を提供する。サブエージェント定義では、括弧内の型リストは無視される。
> **注**:v2.1.63 で `Task` ツールは `Agent` にリネームされた。既存の `Task(...)` 参照は引き続きエイリアスとして機能する。
@@ -630,7 +642,7 @@ You are a coordinator agent. You can delegate work to the "worker" and
"researcher" subagents only. Use Read and Bash for your own exploration.
```
-この例では、`coordinator` サブエージェントは `worker` と `researcher` サブエージェントのみ生成できる。他のサブエージェントが定義されていても、それらを生成することはできない。
+この例では、`claude --agent coordinator` で実行すると、メインスレッドは `worker` と `researcher` サブエージェントのみ生成できる。他のサブエージェントが定義されていても、それらを生成することはできない。`coordinator` がサブエージェントとして実行される場合、型リストは無視される。
---
@@ -721,7 +733,7 @@ claude --teammate-mode tmux
### ナビゲーション
-`Shift+Down` で分割ペインモード内のチームメイト間を移動できる。
+チームメイト間を移動するには、エージェントパネルで上下矢印キーを使って選択し Enter を押す(インプロセスモード)か、チームメイトのペインをクリックする(分割ペインモード)。
### チーム設定
@@ -901,7 +913,7 @@ graph TB
### 主要な動作
- **入れ子生成なし** — サブエージェントは他のサブエージェントを生成できない
-- **バックグラウンド権限** — バックグラウンドサブエージェントは事前承認されていない権限を自動拒否する
+- **バックグラウンド権限** — バックグラウンドサブエージェントが事前承認されていない権限を必要とすると、メインセッションに権限プロンプトが表示され、要求しているサブエージェント名が示される
- **バックグラウンド化** — `Ctrl+B` で現在実行中のタスクをバックグラウンド化
- **トランスクリプト** — サブエージェントのトランスクリプトは `~/.claude/projects/{project}/{sessionId}/subagents/agent-{agentId}.jsonl` に保存される
- **自動圧縮** — サブエージェントのコンテキストは容量約 95% で自動圧縮される(`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` 環境変数で上書き可能)
@@ -1261,8 +1273,8 @@ graph TD
---
-**最終更新**:2026 年 10 月 15 日
-**Claude Code バージョン**:2.1.300
+**最終更新**:2026 年 10 月 18 日
+**Claude Code バージョン**:2.1.302
**ソース**:
- https://code.claude.com/docs/en/sub-agents
@@ -1276,5 +1288,7 @@ graph TD
- 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
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/changelog#2-1-302
**互換モデル**: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 a6b1c73..42dbf55 100644
--- a/ja/05-mcp/README.md
+++ b/ja/05-mcp/README.md
@@ -232,7 +232,7 @@ sequenceDiagram
| `ENABLE_TOOL_SEARCH` | `true` | すべての MCP ツールを遅延 |
| `ENABLE_TOOL_SEARCH` | `false` | 無効。すべてのツールの説明が完全な形で送信される |
-> **注意:** ツール検索には `tool_reference` ブロックをサポートするモデルが必要:Claude Sonnet 4.5、Claude Haiku 4.5、Claude Opus 4.5、およびそれ以降のモデル。
+> **注意:** ツール検索には `tool_reference` ブロックをサポートするモデルが必要:Claude Opus 4、Claude Sonnet 4、Claude Haiku 4.5、およびそれ以降のモデル(Google Cloud の Agent Platform では Opus 4.5、Sonnet 4.5、Haiku 4.5 以降)。
## 動的ツール更新
@@ -295,7 +295,7 @@ Claude Code は `local` を使う。
```bash
# Project スコープ — .mcp.json に書き込まれ、チームで共有される
-claude mcp add --scope project --transport http github https://api.github.com/mcp
+claude mcp add --scope project --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# User スコープ — すべてのプロジェクトで利用できる
claude mcp add --scope user --transport stdio memory -- npx @modelcontextprotocol/server-memory
@@ -310,7 +310,10 @@ claude mcp add --scope user --transport stdio memory -- npx @modelcontextprotoco
"mcpServers": {
"github": {
"type": "http",
- "url": "https://api.github.com/mcp"
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
+ }
}
}
}
@@ -324,7 +327,7 @@ claude mcp add --scope user --transport stdio memory -- npx @modelcontextprotoco
```bash
# HTTP ベースのサーバーを追加
-claude mcp add --transport http github https://api.github.com/mcp
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# ローカル stdio サーバーを追加
claude mcp add --transport stdio database -- npx @company/db-server
@@ -368,10 +371,10 @@ claude mcp add-from-claude-desktop
{
"mcpServers": {
"github": {
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
@@ -420,9 +423,9 @@ Reviewers: @bob, @charlie
**セットアップ:**
```bash
-export GITHUB_TOKEN="your_github_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"
# または CLI で直接追加:
-claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
### 設定での環境変数展開
@@ -464,10 +467,7 @@ MCP 設定は環境変数の展開とフォールバックデフォルトをサ
"mcpServers": {
"database": {
"command": "npx",
- "args": ["@modelcontextprotocol/server-database"],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
}
}
}
@@ -497,8 +497,8 @@ ORDER BY order_count DESC;
**セットアップ:**
```bash
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-# または CLI で直接追加:
-claude mcp add --transport stdio database -- npx @modelcontextprotocol/server-database
+claude mcp add --transport stdio database -- npx -y @bytebase/dbhub \
+ --dsn "$DATABASE_URL"
```
### 例 3:マルチ MCP ワークフロー
@@ -550,9 +550,10 @@ Final Output:
**セットアップ:**
```bash
-export GITHUB_TOKEN="your_github_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-export SLACK_TOKEN="your_slack_token"
+export SLACK_BOT_TOKEN="your_slack_bot_token"
+export SLACK_TEAM_ID="your_slack_team_id"
# 各 MCP サーバーを CLI で追加するか、.mcp.json で設定する
```
@@ -633,9 +634,10 @@ sequenceDiagram
```bash
# ~/.bashrc or ~/.zshrc
-export GITHUB_TOKEN="ghp_xxxxxxxxxxxxx"
+export GITHUB_PERSONAL_ACCESS_TOKEN="ghp_xxxxxxxxxxxxx"
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-export SLACK_TOKEN="xoxb-xxxxxxxxxxxxx"
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
```
そして MCP 設定で参照する。
@@ -643,7 +645,7 @@ export SLACK_TOKEN="xoxb-xxxxxxxxxxxxx"
```json
{
"env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
```
@@ -756,6 +758,8 @@ MCP サーバーはエージェントのフロントマター内で `mcpServers:
```yaml
---
+name: my-tool-agent
+description: Uses my-tool for specialized operations
mcpServers:
my-tool:
type: http
@@ -774,7 +778,7 @@ Claude Code はコンテキストオーバーフローを防ぐため、MCP ツ
| 上限 | しきい値 | 動作 |
|------|----------|------|
| **警告** | 10,000 トークン | 出力が大きいことを示す警告を表示 |
-| **デフォルト最大値** | 25,000 トークン | この上限を超えた出力は切り詰められる |
+| **デフォルト最大値** | 25,000 トークン | この上限を超えた出力はファイルに保存され、会話にはそのファイルパスが入る |
| **ディスク永続化** | 50,000 文字 | 50K 文字を超えるツール結果はディスクに永続化される |
最大出力上限は `MAX_MCP_OUTPUT_TOKENS` 環境変数で設定可能。
@@ -1047,7 +1051,7 @@ MCPorter は上述のコード実行アプローチを補完するもので、MC
1. **最初の MCP サーバーを追加**(例:GitHub):
```bash
-claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
または、プロジェクトルートに `.mcp.json` ファイルを作成:
@@ -1055,10 +1059,10 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
{
"mcpServers": {
"github": {
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
@@ -1067,7 +1071,7 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
2. **環境変数を設定:**
```bash
-export GITHUB_TOKEN="your_github_personal_access_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_personal_access_token"
```
3. **接続をテスト:**
@@ -1090,7 +1094,7 @@ npm install -g @modelcontextprotocol/server-github
**Database MCP:**
```bash
-npm install -g @modelcontextprotocol/server-database
+npm install -g @bytebase/dbhub
```
**Filesystem MCP:**
@@ -1098,7 +1102,7 @@ npm install -g @modelcontextprotocol/server-database
npm install -g @modelcontextprotocol/server-filesystem
```
-**Slack MCP:**
+**Slack MCP(非推奨パッケージ):**
```bash
npm install -g @modelcontextprotocol/server-slack
```
@@ -1117,10 +1121,10 @@ npm install -g @modelcontextprotocol/server-github
### 認証失敗
```bash
# 環境変数が設定されているか確認
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
# 必要なら再設定
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
# トークンが正しい権限を持つか確認
# GitHub のトークンスコープは https://github.com/settings/tokens で確認
@@ -1168,8 +1172,8 @@ export GITHUB_TOKEN="your_token"
---
-**最終更新:** 2026 年 10 月 15 日
-**Claude Code バージョン:** 2.1.300
+**最終更新:** 2026 年 10 月 18 日
+**Claude Code バージョン:** 2.1.302
**情報源:**
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/mcp#configure-tool-search
@@ -1180,4 +1184,5 @@ export GITHUB_TOKEN="your_token"
- 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
+- https://code.claude.com/docs/en/sub-agents
**対応モデル:** Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/05-mcp/database-mcp.json b/ja/05-mcp/database-mcp.json
index 8b78836..dc4ee0a 100644
--- a/ja/05-mcp/database-mcp.json
+++ b/ja/05-mcp/database-mcp.json
@@ -3,10 +3,7 @@
"database": {
"type": "stdio",
"command": "npx",
- "args": ["@modelcontextprotocol/server-database"],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
}
}
}
diff --git a/ja/05-mcp/github-mcp.json b/ja/05-mcp/github-mcp.json
index d2c3946..e2dafb8 100644
--- a/ja/05-mcp/github-mcp.json
+++ b/ja/05-mcp/github-mcp.json
@@ -1,11 +1,10 @@
{
"mcpServers": {
"github": {
- "type": "stdio",
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
diff --git a/ja/05-mcp/multi-mcp.json b/ja/05-mcp/multi-mcp.json
index ceb0e0d..8611424 100644
--- a/ja/05-mcp/multi-mcp.json
+++ b/ja/05-mcp/multi-mcp.json
@@ -1,27 +1,24 @@
{
"mcpServers": {
"github": {
- "type": "stdio",
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
},
"database": {
"type": "stdio",
"command": "npx",
- "args": ["@modelcontextprotocol/server-database"],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
},
"slack": {
"type": "stdio",
"command": "npx",
"args": ["@modelcontextprotocol/server-slack"],
"env": {
- "SLACK_TOKEN": "${SLACK_TOKEN}"
+ "SLACK_BOT_TOKEN": "${SLACK_BOT_TOKEN}",
+ "SLACK_TEAM_ID": "${SLACK_TEAM_ID}"
}
},
"filesystem": {
diff --git a/ja/06-hooks/README.md b/ja/06-hooks/README.md
index b014804..9bf9d02 100644
--- a/ja/06-hooks/README.md
+++ b/ja/06-hooks/README.md
@@ -107,15 +107,17 @@ Claude Code は 5 種類のフックタイプをサポートする。
> v2.1.63 で追加。
-リモート webhook エンドポイントが、command フックと同じ JSON 入力を受け取る。HTTP フックは URL に JSON を POST し、JSON レスポンスを受け取る。サンドボックスが有効な場合、HTTP フックはサンドボックス経由でルーティングされる。URL 内の環境変数展開には、セキュリティのため明示的な `allowedEnvVars` リストが必要。
+リモート webhook エンドポイントが、command フックと同じ JSON 入力を受け取る。HTTP フックは URL に JSON を POST し、JSON レスポンスを受け取る。サンドボックスが有効な場合、HTTP フックはサンドボックス経由でルーティングされる。ヘッダー値への環境変数展開には、セキュリティのため明示的な `allowedEnvVars` リストが必要。
```json
{
"hooks": {
"PostToolUse": [{
- "type": "http",
- "url": "https://my-webhook.example.com/hook",
- "matcher": "Write"
+ "matcher": "Write",
+ "hooks": [{
+ "type": "http",
+ "url": "https://my-webhook.example.com/hook"
+ }]
}]
}
}
@@ -125,7 +127,7 @@ Claude Code は 5 種類のフックタイプをサポートする。
- `"type": "http"` -- HTTP フックであることを示す
- `"url"` -- webhook エンドポイント URL
- サンドボックスが有効ならサンドボックス経由でルーティング
-- URL 内の環境変数展開には明示的な `allowedEnvVars` リストが必要
+- `headers` の値への環境変数展開には明示的な `allowedEnvVars` リストが必要
### Prompt フック
@@ -153,7 +155,8 @@ LLM はプロンプトを評価し、構造化された判定を返す(詳細
"hooks": [{
"type": "mcp_tool",
"server": "my-mcp-server",
- "tool": "validate_edit"
+ "tool": "validate_edit",
+ "input": { "file_path": "${tool_input.file_path}" }
}]
}
```
@@ -162,8 +165,9 @@ LLM はプロンプトを評価し、構造化された判定を返す(詳細
- `"type": "mcp_tool"` -- MCP ツールフックであることを示す
- `"server"` -- 設定済み MCP サーバーの名前
- `"tool"` -- そのサーバー上で呼び出すツール名
+- `"input"` -- ツールに渡す任意の引数。文字列値ではフックの JSON 入力から `${path}` 置換が使える(例:`"${tool_input.file_path}"`)
-フック入力(ツール名、ツール入力、セッションコンテキスト)は MCP ツールの引数として渡される。MCP サーバーの設定方法は [MCP サーバーセットアップ](../05-mcp/README.md) を参照。
+ツールの引数は `input`(`${path}` 置換付き)から作られ、フック入力がそのまま渡されるわけではない。MCP サーバーの設定方法は [MCP サーバーセットアップ](../05-mcp/README.md) を参照。
### Agent フック
@@ -179,7 +183,7 @@ LLM はプロンプトを評価し、構造化された判定を返す(詳細
> **注意**: Agent フックは実験的機能であり、変更される可能性がある。
-> **注意**: v2.1.280 以降、agent フックは `PermissionRequest` では実行されない。その応答ではリクエストを許可も拒否もできないためである。`PermissionRequest` には command、http、mcp_tool、または prompt フックを使うこと。
+> **注意**: v2.1.280 以降、agent フックは `PermissionRequest` では実行されない。その応答ではリクエストを許可も拒否もできないためである。`PermissionRequest` には判定オブジェクトを返す command フックまたは HTTP フックを使うこと(prompt フックの `ok: false` は `PermissionRequest` では効果がない)。
**主要プロパティ:**
- `"type": "agent"` -- agent フックであることを示す
@@ -263,7 +267,7 @@ Claude がツールパラメータを生成した後、処理開始前に動作
- `"ask"` はユーザーに確認を求める
- `"defer"` は正常終了して後でツールを再開できるようにする。この値では `permissionDecisionReason`、`updatedInput`、`additionalContext` はいずれも無視される
- フックが何を返しても deny/ask のルールは引き続き評価される。複数の `PreToolUse` フックの判定が食い違う場合、優先順位は `deny` > `defer` > `ask` > `allow` となる
-- `permissionDecisionReason`: 判定の理由。`"allow"` と `"ask"` では(Claude ではなく)ユーザーに表示され、`"deny"` では Claude に表示される。`"defer"` では無視される
+- `permissionDecisionReason`: 判定の理由。`"ask"` では(Claude ではなく)ユーザーに表示され、`"deny"` では Claude に表示される。`"allow"` と `"defer"` ではデバッグログにのみ記録される
- `updatedInput`: 置き換え用のツール入力(入力オブジェクト全体を置き換える)。v2.1.300 以降は Claude 自身の入力と同様に検証され、未知のキーは破棄され、ツールが拒否する入力では呼び出しが拒否される。
### PostToolUse
@@ -507,7 +511,7 @@ hooks:
},
"tool_use_id": "toolu_01ABC123...",
"agent_id": "agent-abc123",
- "agent_type": "main",
+ "agent_type": "security-reviewer",
"worktree": "/path/to/worktree"
}
```
@@ -521,7 +525,7 @@ hooks:
| `cwd` | カレント作業ディレクトリ |
| `hook_event_name` | フックを発火させたイベント名 |
| `agent_id` | このフックを実行しているエージェントの識別子 |
-| `agent_type` | エージェントタイプ(`"main"`、サブエージェントタイプ名など) |
+| `agent_type` | エージェント名(例:`"Explore"`、`"security-reviewer"`)。セッションが `--agent` を使う場合か、フックがサブエージェント内で発火した場合にのみ存在する |
| `worktree` | エージェントが git ワークツリーで動作している場合のパス |
### 終了コード
@@ -530,7 +534,7 @@ hooks:
|-----------|------|------|
| **0** | 成功 | 続行、JSON stdout を解析 |
| **2** | ブロッキングエラー | 操作をブロック、stderr をエラーとして表示 |
-| **その他** | 非ブロッキングエラー | 続行、verbose モードで stderr を表示 |
+| **その他** | 非ブロッキングエラー | 続行。トランスクリプトの `<hook name> hook error` 通知に stderr の最初の行が表示される |
### JSON 出力(stdout、終了コード 0)
@@ -587,13 +591,13 @@ hooks:
**LLM レスポンススキーマ:**
```json
{
- "decision": "approve",
- "reason": "All tasks completed successfully",
- "continue": false,
- "stopReason": "Task complete"
+ "ok": false,
+ "reason": "Tests were not run after the last edit"
}
```
+`ok: true` でアクションを許可する。`ok` が `false` のときは `reason` が必須。
+
## 例
### 例 1:Bash コマンドバリデータ(PreToolUse)
@@ -1004,15 +1008,15 @@ python3 09-advanced-features/setup-auto-mode-permissions.py
`Stop` は Claude の *すべての* 応答後に発火する。`SessionEnd` はセッション終了時に
1 回だけ発火する。セッション終了時の日記エントリにはまさにこれが必要である。
-**なぜ入力に `/dev/tty` を使うのか?**
-フックスクリプトはフック JSON ペイロードを `stdin` 経由で受け取る。そのため対話的な
-`read` はターミナルに到達するために `/dev/tty` を直接使う必要がある。
+**なぜ対話プロンプトを使わないのか?**
+フックは制御端末なしで実行されるため `/dev/tty` は使えず、フックからユーザーに入力を求めることはできない。
+モジュール(と任意のメモ)は Claude Code 起動時に環境変数で渡す(例:`CLAUDE_HOWTO_MODULES=06,07 claude`)。
**ファイル:** `06-hooks/session-end.sh`
```bash
#!/usr/bin/env bash
-# SessionEnd hook: prompts for modules worked on, then appends a session record
+# SessionEnd hook: records the modules worked on, then appends a session record
# to ~/.claude-howto-progress.json for persistent learning progress tracking.
PROGRESS_FILE="$HOME/.claude-howto-progress.json"
@@ -1029,12 +1033,10 @@ fi
DATE=$(date +"%Y-%m-%d")
TIME=$(date +"%H:%M")
-echo ""
-echo " Which modules did you work on? (e.g. 06,07 or press Enter to skip)"
-echo " 01=Slash 02=Memory 03=Skills 04=Subagents 05=MCP"
-echo " 06=Hooks 07=Plugins 08=Checkpoints 09=Advanced 10=CLI"
-printf " > "
-read -r INPUT </dev/tty
+# Modules worked on, e.g. launch with: CLAUDE_HOWTO_MODULES=06,07 claude
+# 01=Slash 02=Memory 03=Skills 04=Subagents 05=MCP
+# 06=Hooks 07=Plugins 08=Checkpoints 09=Advanced 10=CLI
+INPUT="${CLAUDE_HOWTO_MODULES:-}"
if [ -z "$INPUT" ] || [ "$INPUT" = "skip" ]; then
exit 0
@@ -1056,8 +1058,8 @@ MODULES_JSON=$(echo "$INPUT" | tr ',' '\n' | tr -d ' ' | while read -r m; do
esac
done | paste -sd ',' -)
-printf " Notes? (optional, press Enter to skip): "
-read -r NOTES </dev/tty
+# Optional notes, e.g. CLAUDE_HOWTO_NOTES="tried the pre-commit example"
+NOTES="${CLAUDE_HOWTO_NOTES:-}"
# NOTES を別の引数として渡し、Python に JSON エスケープを処理させる。
# これにより、ノートに引用符やバックスラッシュを含む場合でも JSON が壊れない。
@@ -1103,7 +1105,8 @@ chmod +x .claude/hooks/session-end.sh
"hooks": [
{
"type": "command",
- "command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/session-end.sh\""
+ "command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/session-end.sh\"",
+ "timeout": 10
}
]
}
@@ -1112,6 +1115,8 @@ chmod +x .claude/hooks/session-end.sh
}
```
+SessionEnd フックのデフォルト予算は 1.5 秒。フックごとに `"timeout"`(秒)を設定すると予算がそれに合わせて引き上げられる(最大 60 秒)。独自の `timeout` を持たないフックは 1.5 秒でキャンセルされる。
+
**出力 — `~/.claude-howto-progress.json`:**
```json
@@ -1132,7 +1137,8 @@ chmod +x .claude/hooks/session-end.sh
| パターン | なぜ重要か |
|---------|-----------|
| `SessionEnd` イベント | 終了時に 1 回だけ発火 — `Stop` のように毎応答後に発火しない |
-| `read -r INPUT </dev/tty` | フックは `stdin` を占有(JSON ペイロード)するため、ユーザー入力には `/dev/tty` を使う |
+| `INPUT="${CLAUDE_HOWTO_MODULES:-}"` | フックには端末がない(`/dev/tty` は使えない)ため、入力は環境変数から受け取る |
+| `"timeout": 10` | SessionEnd フックは独自の `timeout` がなければ 1.5 秒でキャンセルされる |
| `$CLAUDE_PROJECT_DIR` | ポータブルなパス — `/Users/yourname/...` を絶対にハードコードしない |
| 先頭のガード句 | グローバル設定された場合に、無関係なプロジェクトでフックが動作するのを防ぐ |
| リポジトリ外に保存 | `~/` のパスは `git pull` でデータを上書きされず保持される |
@@ -1213,7 +1219,7 @@ MCP ツールは `mcp__<server>__<tool>` パターンに従う。
### セキュリティ上の注意点
- **ワークスペースの信頼が必要:** `statusLine` および `fileSuggestion` のフック出力コマンドは、有効化前にワークスペースの信頼を受け入れる必要がある。
-- **HTTP フックと環境変数:** HTTP フックは URL 内で環境変数の補間を使うために明示的な `allowedEnvVars` リストを必要とする。これにより、機密の環境変数がリモートエンドポイントへ意図せず漏洩することを防ぐ。
+- **HTTP フックと環境変数:** HTTP フックはヘッダー値で環境変数の補間を使うために明示的な `allowedEnvVars` リストを必要とする。これにより、機密の環境変数がリモートエンドポイントへ意図せず漏洩することを防ぐ。
- **管理対象設定の階層:** `disableAllHooks` 設定は管理対象設定の階層を尊重するようになった。つまり、組織レベルの設定でフック無効化を強制でき、個別ユーザーが上書きできない。
- **PowerShell 自動承認(v2.1.119):** PowerShell ツールコマンドは権限モードで Bash と同様に自動承認可能になった。Windows ユーザーが PowerShell バックエンドのシェルツールで Claude Code を実行する際の同等性が確保された。
@@ -1328,7 +1334,7 @@ echo $?
| 項目 | 動作 |
|------|------|
| **タイムアウト** | command/http/mcp_tool はデフォルト 600 秒(prompt は 30 秒、agent は 60 秒)、フックごとに設定可能 |
-| **並列化** | マッチしたフックはすべて並列実行 |
+| **並列化** | マッチしたフックはすべて並列実行。v2.1.302 以降、1 つのイベントで同時に実行される prompt/agent フックは最大 12 個で、残りは順番を待つ |
| **重複排除** | 同一のフックコマンドは重複排除される |
| **環境** | カレントディレクトリで Claude Code の環境のもと実行 |
@@ -1384,8 +1390,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**最終更新:** 2026 年 10 月 15 日
-**Claude Code バージョン:** 2.1.300
+**最終更新:** 2026 年 10 月 18 日
+**Claude Code バージョン:** 2.1.302
**情報源:**
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/plugins/manifest-reference#quoting-and-path-separators
diff --git a/ja/06-hooks/pre-commit.sh b/ja/06-hooks/pre-commit.sh
index 3efda43..1d7305c 100644
--- a/ja/06-hooks/pre-commit.sh
+++ b/ja/06-hooks/pre-commit.sh
@@ -8,6 +8,13 @@
# それ以外の非ゼロ値は「ブロックしないエラー」であり、コミットはそのまま続行してしまう。
# 出典:https://code.claude.com/docs/en/hooks
+# 標準入力からフックの JSON を読み取り、git commit コマンドのときだけテストを実行する
+INPUT=$(cat)
+COMMAND=$(echo "$INPUT" | sed -n 's/.*"command"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
+if ! echo "$COMMAND" | grep -q 'git commit'; then
+ exit 0
+fi
+
echo "🧪 コミット前にテストを実行しています..."
# package.json の有無を確認(Node.js プロジェクト)
diff --git a/ja/06-hooks/session-end.sh b/ja/06-hooks/session-end.sh
index c75db6d..aaa53bf 100755
--- a/ja/06-hooks/session-end.sh
+++ b/ja/06-hooks/session-end.sh
@@ -1,9 +1,10 @@
#!/usr/bin/env bash
-# SessionEnd フック:取り組んだモジュールを尋ね、~/.claude-howto-progress.json に
+# SessionEnd フック:取り組んだモジュールを記録し、~/.claude-howto-progress.json に
# セッション記録を追記して、学習進捗を永続的に追跡する。
#
# Claude Code セッション終了時に 1 回だけ発火する(応答ごとではない)。
-# 標準入力にはフックの JSON ペイロードが流れているため、対話入力には /dev/tty を使う。
+# フックは制御端末なしで実行され /dev/tty は使えないため、モジュールとメモは
+# 環境変数 CLAUDE_HOWTO_MODULES / CLAUDE_HOWTO_NOTES から受け取る。
#
# 導入:.claude/settings.json の "SessionEnd" イベントに登録する(下記参照)。
@@ -28,12 +29,10 @@ echo " Claude Code — 学習セッション終了"
echo " $DATE $TIME"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
-echo " どのモジュールに取り組みましたか?(例:06,07 / Enter でスキップ)"
-echo " 01=Slash 02=Memory 03=Skills 04=Subagents 05=MCP"
-echo " 06=Hooks 07=Plugins 08=Checkpoints 09=Advanced 10=CLI"
-echo ""
-printf " > "
-read -r INPUT </dev/tty
+# 取り組んだモジュール。例:CLAUDE_HOWTO_MODULES=06,07 claude で起動する
+# 01=Slash 02=Memory 03=Skills 04=Subagents 05=MCP
+# 06=Hooks 07=Plugins 08=Checkpoints 09=Advanced 10=CLI
+INPUT="${CLAUDE_HOWTO_MODULES:-}"
if [ -z "$INPUT" ] || [ "$INPUT" = "skip" ]; then
echo " スキップ — セッションは記録しません。"
@@ -62,8 +61,8 @@ for m in "${PARTS[@]}"; do
MODULES_JSON="${MODULES_JSON:+$MODULES_JSON,}$label"
done
-printf " メモ?(任意、Enter でスキップ): "
-read -r NOTES </dev/tty
+# 任意のメモ。例:CLAUDE_HOWTO_NOTES="pre-commit の例を試した"
+NOTES="${CLAUDE_HOWTO_NOTES:-}"
# NOTES は別引数で Python に渡し、JSON エスケープを Python 側に任せる。
# メモに引用符やバックスラッシュが含まれても JSON が壊れないようにするため。
diff --git a/ja/06-hooks/validate-prompt.sh b/ja/06-hooks/validate-prompt.sh
index 9a9958f..bf3142f 100644
--- a/ja/06-hooks/validate-prompt.sh
+++ b/ja/06-hooks/validate-prompt.sh
@@ -44,7 +44,7 @@ fi
# 特定操作におけるコンテキスト要件のチェック
if echo "$PROMPT" | grep -qi "refactor"; then
if [ ! -d "tests" ] && [ ! -d "test" ]; then
- printf '{"additionalContext": "警告: テスト無しのリファクタリングはリスクを伴います。先にテストを書くことを検討してください。"}'
+ printf '{"hookSpecificOutput": {"hookEventName": "UserPromptSubmit", "additionalContext": "警告: テスト無しのリファクタリングはリスクを伴います。先にテストを書くことを検討してください。"}}'
fi
fi
diff --git a/ja/07-plugins/README.md b/ja/07-plugins/README.md
index a439a77..96f9792 100644
--- a/ja/07-plugins/README.md
+++ b/ja/07-plugins/README.md
@@ -47,7 +47,7 @@ sequenceDiagram
participant Hooks
participant Tools as Configured Tools
- User->>Claude: /plugin install pr-review
+ User->>Claude: claude --plugin-dir ./07-plugins/pr-review
Claude->>Plugin: Download plugin manifest
Plugin-->>Claude: Return plugin definition
Claude->>Install: Extract components
@@ -104,14 +104,16 @@ my-plugin/
│ ├── specialist-2.md
│ └── configs/
├── skills/ # SKILL.md ファイルを伴うエージェントスキル
-│ ├── skill-1.md
-│ └── skill-2.md
+│ ├── skill-1/
+│ │ └── SKILL.md
+│ └── skill-2/
+│ └── SKILL.md
├── hooks/ # hooks.json のイベントハンドラ
│ └── hooks.json
├── .mcp.json # MCP サーバーの設定
├── .lsp.json # コードインテリジェンス用の LSP サーバー設定
├── bin/ # プラグイン有効化中に Bash ツールの PATH に追加される実行ファイル
-├── settings.json # プラグイン有効化時に適用されるデフォルト設定(現状は `agent` キーのみサポート)
+├── settings.json # プラグイン有効化時に適用されるデフォルト設定(有効なのは `agent` と `subagentStatusLine` キーのみ)
├── themes/ # 任意:Claude Code のカスタムテーマを同梱(v2.1.118 以降)
├── templates/
│ └── issue-template.md
@@ -206,7 +208,7 @@ my-plugin/
|----------|------|---------------|-----------------|
| `pyright-lsp` | Python | `pyright-langserver` | `pip install pyright` |
| `typescript-lsp` | TypeScript / JavaScript | `typescript-language-server` | `npm install -g typescript-language-server typescript` |
-| `rust-lsp` | Rust | `rust-analyzer` | `rustup component add rust-analyzer` でインストール |
+| `rust-analyzer-lsp` | Rust | `rust-analyzer` | `rustup component add rust-analyzer` でインストール |
#### LSP の機能
@@ -227,10 +229,14 @@ my-plugin/
"version": "1.0.0",
"userConfig": {
"apiKey": {
+ "type": "string",
+ "title": "API key",
"description": "API key for the service",
"sensitive": true
},
"region": {
+ "type": "string",
+ "title": "Region",
"description": "Deployment region",
"default": "us-east-1"
}
@@ -293,32 +299,37 @@ my-plugin/
## 設定によるインラインプラグイン(`source: 'settings'`)(v2.1.80 以降)
-プラグインは、`source: 'settings'` フィールドを使って設定ファイル中にマーケットプレイスエントリとしてインラインで定義できる。これにより、別個のリポジトリやマーケットプレイスを用意せずにプラグイン定義を直接埋め込める:
+プラグインは、`source: 'settings'` フィールドを使って設定ファイル中にマーケットプレイスエントリとしてインラインで定義できる。これにより、別個のリポジトリやマーケットプレイスを用意せずにプラグイン定義を直接埋め込める。`extraKnownMarketplaces.<name>.source` の下に宣言し、`name` はマーケットプレイスのキーと一致させる。含めるプラグインは GitHub や npm などの外部ソースを参照する必要がある(相対パスは拒否される):
```json
{
- "pluginMarketplaces": [
- {
- "name": "inline-tools",
- "source": "settings",
- "plugins": [
- {
- "name": "quick-lint",
- "source": "./local-plugins/quick-lint"
- }
- ]
+ "extraKnownMarketplaces": {
+ "inline-tools": {
+ "source": {
+ "source": "settings",
+ "name": "inline-tools",
+ "plugins": [
+ {
+ "name": "quick-lint",
+ "source": {
+ "source": "github",
+ "repo": "my-org/quick-lint"
+ }
+ }
+ ]
+ }
}
- ]
+ }
}
```
## プラグインの設定
-プラグインはデフォルト設定を提供するために `settings.json` を同梱できる。現状サポートされるのは `agent` キーで、プラグインのメインスレッドエージェントを設定する:
+プラグインはデフォルト設定を提供するために `settings.json` を同梱できる。有効なキーは `agent` と `subagentStatusLine` の 2 つで、それ以外のキーは破棄される。`agent` にはプラグイン内のエージェント名を指定し、そのエージェントをメインスレッドとして実行する:
```json
{
- "agent": "agents/specialist-1.md"
+ "agent": "specialist-1"
}
```
@@ -392,7 +403,7 @@ Specializes in finding security vulnerabilities:
**インストール:**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# Result:
# ✅ 3 slash commands installed
@@ -493,9 +504,9 @@ graph TB
| `extraKnownMarketplaces` | デフォルト以外のマーケットプレイスソースを追加 |
| `strictKnownMarketplaces` | ユーザーが追加できるマーケットプレイスを制限(管理者専用) |
| `blockedMarketplaces` | 管理者が管理するマーケットプレイスのブロックリスト(v2.1.119 以降は `hostPattern` / `pathPattern` の正規表現フィールドをサポート) |
-| `deniedPlugins` | 管理者が管理する、特定のプラグインをインストールさせないブロックリスト |
+| `enabledPlugins`(`false` に設定) | 特定のプラグインをブロック:managed settings で `"enabledPlugins": { "<plugin>@<marketplace>": false }` とすると、すべてのスコープでインストールがブロックされ、マーケットプレイスにも表示されない |
-> **より分かりやすいエイリアス(v2.1.232)**:`additionalMarketplaces` は `extraKnownMarketplaces` の、`allowedMarketplaces` は `strictKnownMarketplaces` のエイリアスとして受け付けられる。**changelog 由来** — v2.1.232 の changelog で告知されたが、公式の settings リファレンスにはまだ記載がない。正式なキーをそのまま使い続けて問題ない。
+> **より分かりやすいエイリアス(v2.1.232)**:`additionalMarketplaces` は `extraKnownMarketplaces` の、`allowedMarketplaces` は `strictKnownMarketplaces` のエイリアスとして受け付けられる。公式の settings リファレンスの [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases) に両方とも記載されている。古いバージョンはエイリアスを無視するため、正式なキーをそのまま使い続けて問題ない。
> **オーナーのワイルドカード(v2.1.223 以降)**:`"owner/*"` エントリは、ある GitHub オーナー配下のすべてのマーケットプレイスリポジトリを許可またはブロックする。**`strictKnownMarketplaces` と `blockedMarketplaces` でのみ受け付けられる。** `extraKnownMarketplaces` や `/plugin marketplace add` を含め、`github` ソースが登場する他の箇所では、`repo` の値は単一のリポジトリを指定しなければならない。
@@ -506,10 +517,8 @@ graph TB
```json
{
"blockedMarketplaces": [
- {
- "hostPattern": "^evil\\.example\\.com$",
- "pathPattern": "^/marketplaces/.*"
- }
+ { "source": "hostPattern", "hostPattern": "^evil\\.example\\.com$" },
+ { "source": "pathPattern", "pathPattern": "^/marketplaces/.*" }
]
}
```
@@ -527,14 +536,14 @@ graph TB
```json
{
"name": "my-team-plugins",
- "owner": "my-org",
+ "owner": { "name": "my-org" },
"plugins": [
{
"name": "code-standards",
"source": "./plugins/code-standards",
"description": "Enforce team coding standards",
"version": "1.2.0",
- "author": "platform-team"
+ "author": { "name": "platform-team" }
},
{
"name": "deploy-helper",
@@ -552,13 +561,13 @@ graph TB
| フィールド | 必須 | 説明 |
|----------|----|-----|
| `name` | はい | kebab-case のマーケットプレイス名 |
-| `owner` | はい | マーケットプレイスを保守する組織またはユーザー |
+| `owner` | はい | マーケットプレイスを保守する組織またはユーザー:必須の `name` を持つオブジェクト(`email`、`url` は任意) |
| `plugins` | はい | プラグインエントリの配列 |
| `plugins[].name` | はい | プラグイン名(kebab-case) |
| `plugins[].source` | はい | プラグインソース(パス文字列または source オブジェクト) |
| `plugins[].description` | いいえ | プラグインの簡単な説明 |
| `plugins[].version` | いいえ | セマンティックバージョン文字列 |
-| `plugins[].author` | いいえ | プラグイン作者名 |
+| `plugins[].author` | いいえ | プラグイン作者:必須の `name` を持つオブジェクト(`email`、`url` は任意) |
### プラグインソースの種類
@@ -571,7 +580,6 @@ graph TB
| **Git URL** | `{ "source": "url", "url": "..." }` | `{ "source": "url", "url": "https://git.internal/plugin.git" }` |
| **Git サブディレクトリ** | `{ "source": "git-subdir", "url": "...", "path": "..." }` | `{ "source": "git-subdir", "url": "https://github.com/org/monorepo.git", "path": "packages/plugin" }` |
| **npm** | `{ "source": "npm", "package": "..." }` | `{ "source": "npm", "package": "@acme/claude-plugin", "version": "^2.0" }` |
-| **pip** | `{ "source": "pip", "package": "..." }` | `{ "source": "pip", "package": "claude-data-plugin", "version": ">=1.0" }` |
GitHub および git ソースは、バージョンピン留め用に任意の `ref`(ブランチ / タグ)と `sha`(コミットハッシュ)フィールドをサポートする。
@@ -590,7 +598,7 @@ GitHub および git ソースは、バージョンピン留め用に任意の `
**プライベートリポジトリ**:git の credential helper や環境変数のトークン経由でサポートされる。ユーザーは対象リポジトリへの読み取り権限を持っている必要がある。
-**公式マーケットプレイスへの提出**:[claude.ai/settings/plugins/submit](https://claude.ai/settings/plugins/submit) または [platform.claude.com/plugins/submit](https://platform.claude.com/plugins/submit) から、Anthropic がキュレートする公式マーケットプレイスにプラグインを提出して広く配布できる。
+**Anthropic のディレクトリへの提出**:開発者ポータル [claude.ai/directory/manage](https://claude.ai/directory/manage) から Anthropic のディレクトリにプラグインを提出して広く配布できる。Anthropic の公式マーケットプレイス `claude-plugins-official` はディレクトリポータル経由の提出を受け付けていない。
### マーケットプレイスの管理
@@ -619,13 +627,13 @@ claude plugin marketplace list # List configured marketplaces
|----|----|
| 未設定 | 制限なし — ユーザーは任意のマーケットプレイスを追加可能 |
| 空配列 `[]` | ロックダウン — マーケットプレイスを追加不可 |
-| パターン配列 | 許可リスト — 一致するマーケットプレイスのみ追加可能 |
+| ソースオブジェクトの配列 | 許可リスト — 一致するマーケットプレイスのみ追加可能 |
```json
{
"strictKnownMarketplaces": [
- "my-org/*",
- "github.com/trusted-vendor/*"
+ { "source": "github", "repo": "my-org/*" },
+ { "source": "github", "repo": "trusted-vendor/*" }
]
}
```
@@ -810,13 +818,13 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
| 設定 | 説明 |
|-----|-----|
| `enabledPlugins` | デフォルトで有効化するプラグインの許可リスト |
-| `deniedPlugins` | インストールを禁止するプラグインのブロックリスト |
+| `enabledPlugins`(`false` に設定) | 特定のプラグインをブロック:managed settings で `"enabledPlugins": { "<plugin>@<marketplace>": false }` とすると、すべてのスコープでインストールがブロックされ、マーケットプレイスにも表示されない |
| `extraKnownMarketplaces` | デフォルト以外のマーケットプレイスソースを追加 |
| `strictKnownMarketplaces` | ユーザーが追加できるマーケットプレイスを制限(管理者専用、v2.1.117 以降はあらゆるプラグインのライフサイクルイベントで適用) |
| `blockedMarketplaces` | マーケットプレイスのブロックリスト(v2.1.117 以降はあらゆるライフサイクルイベントで適用、v2.1.119 以降は `hostPattern` / `pathPattern` の正規表現フィールドをサポート) |
-| `allowedChannelPlugins` | リリースチャネルごとに許可するプラグインを制御 |
+| `allowedChannelPlugins` | セッションにメッセージをプッシュできる [channel](https://code.claude.com/docs/en/channels) プラグインの許可リスト(各エントリは `marketplace` と `plugin` を指定) |
-> **より分かりやすいエイリアス(v2.1.232)**:`additionalMarketplaces` は `extraKnownMarketplaces` の、`allowedMarketplaces` は `strictKnownMarketplaces` のエイリアスとして受け付けられる。**changelog 由来** — v2.1.232 の changelog で告知されたが、公式の settings リファレンスにはまだ記載がない。正式なキーをそのまま使い続けて問題ない。
+> **より分かりやすいエイリアス(v2.1.232)**:`additionalMarketplaces` は `extraKnownMarketplaces` の、`allowedMarketplaces` は `strictKnownMarketplaces` のエイリアスとして受け付けられる。公式の settings リファレンスの [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases) に両方とも記載されている。古いバージョンはエイリアスを無視するため、正式なキーをそのまま使い続けて問題ない。
> **オーナーのワイルドカード(v2.1.223 以降)**:`"owner/*"` エントリは、ある GitHub オーナー配下のすべてのマーケットプレイスリポジトリを許可またはブロックする。**`strictKnownMarketplaces` と `blockedMarketplaces` でのみ受け付けられる。** `extraKnownMarketplaces` や `/plugin marketplace add` を含め、`github` ソースが登場する他の箇所では、`repo` の値は単一のリポジトリを指定しなければならない。
@@ -824,13 +832,14 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
## プラグインのセキュリティ
-プラグインのサブエージェントは制限付きサンドボックスで動作する。プラグインのサブエージェント定義では以下のフロントマターキーは **使用不可** である:
+プラグインのサブエージェントは以下のフロントマターキーを **無視する**(エージェント自体は読み込まれるが、これらのキーは効果を持たない):
- `hooks` — サブエージェントはイベントハンドラを登録できない
- `mcpServers` — サブエージェントは MCP サーバーを設定できない
- `permissionMode` — サブエージェントは権限モデルを上書きできない
+- `initialPrompt` — プラグインエージェントは最初のプロンプトを自動送信できない
-これにより、プラグインが宣言したスコープを超えて権限昇格したりホスト環境を変更したりできないようにしている。
+エージェントファイル単体ではフックや MCP サーバーを追加できないため、それらはプラグインレベルのフックおよび MCP サーバーとして同梱する。
## プラグインの公開
@@ -848,7 +857,7 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
**提出例:**
-```markdown
+````markdown
# PR Review Plugin
## Description
@@ -862,7 +871,7 @@ Complete PR review workflow with security, testing, and documentation checks.
## Installation
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## Features
@@ -883,7 +892,7 @@ Complete PR review workflow with security, testing, and documentation checks.
- Claude Code 2.1+
- GitHub access
- CodeQL (optional)
-```
+````
## プラグイン vs 手動設定
@@ -897,7 +906,7 @@ Complete PR review workflow with security, testing, and documentation checks.
**プラグインを使う場合(2 分):**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ Everything installed and configured
# ✅ Ready to use immediately
# ✅ Team can reproduce exact setup
@@ -933,15 +942,12 @@ Complete PR review workflow with security, testing, and documentation checks.
### マーケットプレイスからインストール
-1. **利用可能なプラグインを閲覧:**
+1. **利用可能なプラグインを閲覧**(**Discover** タブにマーケットプレイスのプラグインが一覧表示される。`/plugin list` はインストール済みのプラグインのみ表示):
```bash
- /plugin list
+ /plugin
```
-2. **プラグインの詳細を表示:**
- ```bash
- claude plugin details plugin-name
- ```
+2. **プラグインの詳細を表示:** **Discover** タブでプラグインを選択すると詳細が開く。(`claude plugin details plugin-name` はプラグインが読み込まれている場合のみ動作する:インストール済み、または `--plugin-dir` で指定)
3. **プラグインをインストール:**
```bash
@@ -951,7 +957,8 @@ Complete PR review workflow with security, testing, and documentation checks.
### ローカルパスからインストール
```bash
-/plugin install ./path/to/plugin-directory
+# /plugin install には name@marketplace が必要。パスを渡すと "marketplace not found" になる
+claude --plugin-dir ./path/to/plugin-directory
```
### GitHub からインストール
@@ -1029,7 +1036,7 @@ claude plugin update plugin-name
## トラブルシューティング
### プラグインがインストールできない
-- Claude Code のバージョン互換性を確認:`/version`
+- Claude Code のバージョン互換性を確認:`claude --version`
- JSON バリデーターで `plugin.json` の構文を検証
- インターネット接続を確認(リモートプラグインの場合)
- 権限を確認:`ls -la plugin/`
@@ -1043,7 +1050,7 @@ claude plugin update plugin-name
### MCP 接続が失敗する
- 環境変数が正しく設定されているか確認
- MCP サーバーのインストール状況と健全性を確認
-- `/mcp test` で MCP 接続を単独で確認
+- `/mcp` で MCP サーバーの状態を確認
- `mcp/` ディレクトリ内の MCP 設定を確認
### インストール後にコマンドが利用できない
@@ -1070,8 +1077,8 @@ claude plugin update plugin-name
---
-**最終更新**: 2026 年 10 月 15 日
-**Claude Code バージョン**: 2.1.300
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**出典**:
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/plugins-reference
@@ -1084,4 +1091,9 @@ claude plugin update plugin-name
- 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
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/marketplace-reference
+- https://code.claude.com/docs/en/plugins/components
+- https://code.claude.com/docs/en/plugins/publish
+- https://code.claude.com/docs/en/plugins/overview
**対応モデル**: 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/README.md b/ja/07-plugins/devops-automation/README.md
index da0ec27..8caa76b 100644
--- a/ja/07-plugins/devops-automation/README.md
+++ b/ja/07-plugins/devops-automation/README.md
@@ -22,7 +22,7 @@
## インストール
```bash
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
## 同梱内容
@@ -112,9 +112,11 @@ Result:
---
-**最終更新**: 2026 年 4 月 24 日
-**Claude Code バージョン**: 2.1.119
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**出典**:
- https://code.claude.com/docs/en/plugins
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
**対応モデル**: Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/07-plugins/documentation/README.md b/ja/07-plugins/documentation/README.md
index 7b43589..6817b7a 100644
--- a/ja/07-plugins/documentation/README.md
+++ b/ja/07-plugins/documentation/README.md
@@ -22,7 +22,7 @@
## インストール
```bash
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
## 同梱内容
@@ -124,9 +124,11 @@ export GITHUB_TOKEN="your_github_token"
---
-**最終更新**: 2026 年 4 月 24 日
-**Claude Code バージョン**: 2.1.119
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**出典**:
- https://code.claude.com/docs/en/plugins
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
**対応モデル**: Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/07-plugins/pr-review/README.md b/ja/07-plugins/pr-review/README.md
index f022222..8de877c 100644
--- a/ja/07-plugins/pr-review/README.md
+++ b/ja/07-plugins/pr-review/README.md
@@ -22,7 +22,7 @@
## インストール
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## 同梱内容
@@ -96,9 +96,11 @@ Result:
---
-**最終更新**: 2026 年 4 月 24 日
-**Claude Code バージョン**: 2.1.119
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**出典**:
- https://code.claude.com/docs/en/plugins
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
**対応モデル**: Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
diff --git a/ja/08-checkpoints/README.md b/ja/08-checkpoints/README.md
index ef0874d..cbaac3f 100644
--- a/ja/08-checkpoints/README.md
+++ b/ja/08-checkpoints/README.md
@@ -58,7 +58,7 @@
5. **Summarize up to here** -- 逆方向の対応物。選択点より *前* のすべてを AI 生成のサマリに圧縮し、そこ以降のメッセージはそのまま残す。「Summarize from here」と合わせて、コンテキストウィンドウを双方向かつ狙った範囲で圧縮できる。ディスク上のファイルは変更されず、元のメッセージはセッショントランスクリプトに保存される。
6. **Never mind** -- 操作をキャンセルし、現在の状態に戻る
-> **注意**: 会話を復元または要約した後、選択したメッセージの元のプロンプトが入力欄に復元され、再送信や編集ができる状態になる。
+> **注意**: 会話を復元した後、または「Summarize from here」を選んだ後は、選択したメッセージの元のプロンプトが入力欄に復元され、再送信や編集ができる状態になる。「Summarize up to here」を選んだ場合は会話の末尾に戻り、入力欄は空のままになる。
## 自動チェックポイント
@@ -232,14 +232,14 @@ Claude Code はチェックポイントを自動管理する:
Claude Code がスナップショットを保持するのは **直近 100 件のチェックポイント** までで、それより古いものは保持期間内であっても削除される。
-> **v2.1.117 のアップデート**: `cleanupPeriodDays` がチェックポイントだけでなく、ディスク上の 4 種類のキャッシュの保持期間を統合的に制御するようになった:
+> **v2.1.117 のアップデート**: `cleanupPeriodDays` がチェックポイントだけでなく、ディスク上の多くのキャッシュの保持期間を統合的に制御するようになった(以下はその一部。トランスクリプト、`file-history/`、`plans/`、`debug/`、`paste-cache/` なども対象):
>
> - セッションチェックポイント
> - `~/.claude/tasks/` — 永続的なタスクリスト
> - `~/.claude/shell-snapshots/` — 取得済みのシェル環境スナップショット
-> - `~/.claude/backups/` — 設定ファイル / CLAUDE.md の循環バックアップ
+> - `~/.claude/backups/` — `~/.claude.json` の以前のバージョン(最新 5 件を保持)
>
-> 1 つの設定で 4 つのディレクトリが同じ日数で一律に整理される。
+> 1 つの設定でこれらのディレクトリが同じ日数で一律に整理される。
## 制限事項
@@ -336,11 +336,12 @@ Claude Code がスナップショットを保持するのは **直近 100 件の
---
-**最終更新**: 2026 年 10 月 15 日
-**Claude Code バージョン**: 2.1.300
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**出典**:
- 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
+- https://code.claude.com/docs/en/claude-directory
**対応モデル**: 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 04ca5c2..9184c2e 100644
--- a/ja/09-advanced-features/README.md
+++ b/ja/09-advanced-features/README.md
@@ -118,7 +118,7 @@ claude --permission-mode plan
**キーボードショートカット:**
- `Shift + Tab` — 権限モードを切り替える(プランモードを含む)
-- `Alt + M` — 権限モードを切り替える(Windows/Linux)
+- `Alt + M` — 権限モードを切り替える(Windows のみ。ランタイムが VT 入力モードを有効にしない場合)
### プランニングモードのメリット
@@ -465,9 +465,9 @@ v2.1.118 以降、`autoMode.allow`、`autoMode.soft_deny`、`autoMode.environmen
これにより、分類器が確信を持って承認できない場合でも、ユーザーは常に制御を保持できる。
-### オートモード相当の権限を投入する(Team プラン不要)
+### オートモード相当の権限を投入する
-Team プランを持っていない場合、またはバックグラウンド分類器なしでよりシンプルなアプローチを取りたい場合は、`~/.claude/settings.json` に保守的なベースラインの安全な権限ルールを投入できる。スクリプトはまず読み取り専用とローカル検査のルールから始まり、編集、テスト、ローカル Git 書き込み、パッケージインストール、GitHub 書き込み操作などはオプトインで有効化する。
+バックグラウンド分類器なしでよりシンプルなアプローチを取りたい場合は、`~/.claude/settings.json` に保守的なベースラインの安全な権限ルールを投入できる。スクリプトはまず読み取り専用とローカル検査のルールから始まり、編集、テスト、ローカル Git 書き込み、パッケージインストール、GitHub 書き込み操作などはオプトインで有効化する。
**ファイル:** `09-advanced-features/setup-auto-mode-permissions.py`
@@ -724,13 +724,13 @@ export CLAUDE_CODE_DISABLE_CRON=1
| `bypassPermissions` | 全操作、権限チェックなし(危険) |
| `dontAsk` | 事前承認済みツールのみ実行、その他はすべて拒否 |
-CLI では `Shift+Tab` でモードを切り替える。デフォルトは `--permission-mode` フラグまたは `permissions.defaultMode` 設定で指定する。パーミッションモードが未設定の場合、v2.1.284 以降は対話型のターミナルセッションと VS Code セッションがすべてのプランとプロバイダーで auto モードで開始する(v2.1.283 では Bedrock、Google Cloud の Agent Platform、Foundry などのサードパーティプロバイダー上、またはテレメトリをオフにした場合に限られていた)。`permissions.defaultMode` は引き続きこれより優先され、auto モードを利用できないセッションは代わりに `default`(Manual)で開始する。`claude -p` と Agent SDK は何も設定されていない場合 `default` で開始するが、v2.1.285 以降はサードパーティプロバイダー上またはテレメトリをオフにした `claude -p` と Python Agent SDK のセッションも auto モードで開始する。`--permission-mode` は引き続きこれより優先される。
+CLI では `Shift+Tab` でモードを切り替える。デフォルトは `--permission-mode` フラグまたは `permissions.defaultMode` 設定で指定する。パーミッションモードが未設定の場合、v2.1.284 以降は対話型のターミナルセッションと VS Code セッションがすべてのプランとプロバイダーで auto モードで開始する(v2.1.283 では Bedrock、Google Cloud の Agent Platform、Foundry などのサードパーティプロバイダー上、またはテレメトリをオフにした場合に限られていた)。`permissions.defaultMode` は引き続きこれより優先され、auto モードを利用できないセッションは代わりに `default`(Manual)で開始する。v2.1.302 以降、パーミッションモードを設定していない `claude -p` と Agent SDK のセッションは、サードパーティプロバイダー上、テレメトリをオフにした場合、または新規インストール直後には `default` モードで開始する。auto モードを維持するには `--permission-mode auto` を渡す。
### 起動方法
**キーボードショートカット:**
```bash
-Shift + Tab # Cycle through all 6 modes
+Shift + Tab # Cycle default → acceptEdits → plan, then bypassPermissions/auto when available (dontAsk never appears in the cycle)
```
**スラッシュコマンド:**
@@ -985,7 +985,7 @@ claude --resume auth-refactor --fork-session "alternative approach"
### セッションリキャップ(v2.1.108)
-しばらく離れた後にセッションへ戻ると、Claude は何が達成されたかを簡潔に振り返れる。テレメトリが無効化されているユーザー(Bedrock、Vertex、Foundry ユーザー)ではデフォルトで有効である。
+しばらく離れた後にセッションへ戻ると、Claude は何が達成されたかを簡潔に振り返れる。すべてのプランとプロバイダーでデフォルトで有効であり、`/config` の **Session recap** でオフにできる。
**リキャップ動作の制御:**
@@ -1140,26 +1140,22 @@ User: Ctrl+R # Search history
### 複数行入力
-複雑なクエリには複数行モードを使う:
+複雑なクエリでは、`\` + Enter、Option+Enter(macOS)、Shift+Enter、または Ctrl+J で改行する。`\end` のような終端記号はなく、Enter で送信する:
```bash
-User: \
-> Long complex prompt
-> spanning multiple lines
-> \end
+User: Long complex prompt \
+spanning multiple lines
```
**例:**
```
-User: \
-> Implement a user authentication system
-> with the following requirements:
-> - JWT tokens
-> - Email verification
-> - Password reset
-> - 2FA support
-> \end
+User: Implement a user authentication system \
+with the following requirements: \
+- JWT tokens \
+- Email verification \
+- Password reset \
+- 2FA support
Claude: [Processes the multi-line request]
```
@@ -1229,11 +1225,12 @@ TUI(Text User Interface)モードは Claude Code をちらつきのない出
### TUI モードの有効化
-`/tui` コマンドで切り替えるか、`--tui` フラグで起動する:
+`/tui` コマンドでレンダラーを切り替えるか、起動前に `CLAUDE_CODE_NO_FLICKER=1` を設定する:
```bash
-/tui # toggle from within a session
-claude --tui # start directly in TUI mode
+/tui fullscreen # switch to fullscreen from within a session
+/tui default # switch back to the classic renderer
+CLAUDE_CODE_NO_FLICKER=1 claude # start directly in fullscreen
```
### 設定
@@ -1288,11 +1285,11 @@ claude --tui # start directly in TUI mode
### チャンネルの購読
```bash
-# Subscribe to channel plugins at startup
-claude --channels discord,telegram
+# Subscribe to a channel plugin at startup
+claude --channels plugin:telegram@claude-plugins-official
-# Subscribe to multiple sources
-claude --channels discord,telegram,imessage,webhooks
+# Subscribe to multiple sources (space-separated)
+claude --channels plugin:discord@claude-plugins-official plugin:telegram@claude-plugins-official
```
### サポート対象の連携
@@ -1310,25 +1307,29 @@ claude --channels discord,telegram,imessage,webhooks
```json
{
- "allowedChannelPlugins": ["discord", "telegram"]
+ "channelsEnabled": true,
+ "allowedChannelPlugins": [
+ { "marketplace": "claude-plugins-official", "plugin": "discord" },
+ { "marketplace": "claude-plugins-official", "plugin": "telegram" }
+ ]
}
```
-`allowedChannelPlugins` マネージド設定は、組織全体で許可されるチャンネルプラグインを制御する。
+`allowedChannelPlugins` マネージド設定は、組織全体で許可されるチャンネルプラグインを制御する。Anthropic が管理する許可リストを置き換え、`channelsEnabled: true` が必要である。
### 仕組み
1. MCP サーバが外部サービスに接続するチャンネルプラグインとして動作する
2. 受信メッセージとイベントがアクティブな Claude Code セッションへプッシュされる
3. Claude はセッションのコンテキスト内でメッセージを読んで応答できる
-4. チャンネルプラグインは `allowedChannelPlugins` マネージド設定で承認が必要
+4. チャンネルプラグインは Anthropic が管理する許可リスト、または管理者が設定した場合は組織の `allowedChannelPlugins` リストに含まれている必要がある
5. ポーリング不要 — イベントはリアルタイムでプッシュされる
---
## Chrome 連携
-Chrome 連携は、Claude Code を Chrome または Microsoft Edge ブラウザに接続し、ライブな Web 自動化とデバッグを行う機能である。これは v2.0.73 以降で利用可能なベータ機能である(Edge サポートは v1.0.36 以降で追加)。
+Chrome 連携は、Claude Code を Chrome または Microsoft Edge ブラウザに接続し、ライブな Web 自動化とデバッグを行う機能である。これは v2.0.73 以降で利用可能なベータ機能である(Claude in Chrome 拡張機能 v1.0.36 以降が必要)。
### Chrome 連携の有効化
@@ -1368,7 +1369,7 @@ Claude Code は表示されたウィンドウ内でブラウザを操作する
### 既知の制限
-- **ブラウザ対応:** Chrome と Edge のみ — Brave、Arc、その他の Chromium ブラウザは非対応
+- **ブラウザ対応:** Chrome と Edge。Claude Code は Brave、Arc、Vivaldi、Opera など他の Chromium ベースのブラウザにも接続できる
- **WSL:** Windows Subsystem for Linux では利用不可
- **サードパーティプロバイダ:** Bedrock、Vertex、Foundry の API プロバイダでは非対応
- **サービスワーカーのアイドル:** 長時間セッション中に Chrome 拡張機能のサービスワーカーがアイドル状態になることがある
@@ -1528,10 +1529,15 @@ Claude Code デスクトップアプリは、視覚的な diff レビュー、
```json
{
- "command": "npm run dev",
- "port": 3000,
- "readyPattern": "ready on",
- "persistCookies": true
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "my-app",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "dev"],
+ "port": 3000
+ }
+ ]
}
```
@@ -1561,9 +1567,10 @@ Claude Code デスクトップアプリは、視覚的な diff レビュー、
| モード | 挙動 |
|------|----------|
-| **Ask permissions**(デフォルト) | すべての編集とコマンドをレビューして承認 |
-| **Auto accept edits** | ファイル編集は自動承認、コマンドは手動承認 |
-| **Plan mode** | 変更前にアプローチをレビュー |
+| **Manual**(デフォルト) | すべての編集とコマンドをレビューして承認 |
+| **Accept edits** | ファイル編集は自動承認、コマンドは手動承認 |
+| **Plan** | 変更前にアプローチをレビュー |
+| **Auto** | 通常の確認なしで実行。バックグラウンド分類器が事前にアクションをチェックする |
| **Bypass permissions** | 自動実行(サンドボックス限定、管理者制御) |
### エンタープライズ機能
@@ -1730,8 +1737,7 @@ claude --settings '{"sandbox": {"enabled": true}}'
"allowWrite": ["/Users/me/project"],
"allowRead": ["/Users/me/project", "/usr/local/lib"],
"denyRead": ["/Users/me/.ssh", "/Users/me/.aws"]
- },
- "enableWeakerNetworkIsolation": true
+ }
}
}
```
@@ -1741,7 +1747,7 @@ claude --settings '{"sandbox": {"enabled": true}}'
- Bash コマンドはファイルシステムアクセスを制限したサンドボックス環境で動作する
- ネットワークアクセスを隔離して意図しない外部接続を防げる
- 多層防御のため権限ルールと併用できる
-- macOS では `sandbox.enableWeakerNetworkIsolation` でネットワーク制限を行う(macOS では完全なネットワーク隔離は利用不可)
+- macOS では Seatbelt がサンドボックスプロキシへの接続以外のすべてのネットワーク接続をブロックする。`sandbox.enableWeakerNetworkIsolation` はその隔離を**弱める**設定で、MITM の `httpProxyPort` プロキシ配下の Go 製 CLI などに限って使う
### ユースケース
@@ -1766,10 +1772,10 @@ claude --settings '{"sandbox": {"enabled": true}}'
### マネージドドロップイン
-v2.1.83 以降、管理者は複数のマネージド設定ファイルを `managed-settings.d/` ディレクトリに配置できる。ファイルはアルファベット順にマージされ、チーム横断のモジュラー設定が可能になる:
+v2.1.83 以降、管理者は複数のマネージド設定ファイルを `managed-settings.d/` ディレクトリに配置できる。ファイルはアルファベット順にマージされ、チーム横断のモジュラー設定が可能になる。このディレクトリはシステムディレクトリ内の `managed-settings.json` の隣に置く(macOS は `/Library/Application Support/ClaudeCode/`、Linux は `/etc/claude-code/`、Windows は `C:\Program Files\ClaudeCode\`):
```
-~/.claude/managed-settings.d/
+/etc/claude-code/managed-settings.d/
00-org-defaults.json
10-team-policies.json
20-project-overrides.json
@@ -1779,7 +1785,7 @@ v2.1.83 以降、管理者は複数のマネージド設定ファイルを `mana
| 設定 | 説明 |
|---------|-------------|
-| `disableBypassPermissionsMode` | ユーザーによる bypass permissions の有効化を防ぐ |
+| `permissions.disableBypassPermissionsMode` | `"disable"` に設定すると、ユーザーによる bypass permissions の有効化を防ぐ |
| `availableModels` | ユーザーが選択可能なモデルを制限する |
| `allowedChannelPlugins` | 許可するチャンネルプラグインを制御する |
| `autoMode.environment` | オートモードの信頼インフラを設定する |
@@ -1794,8 +1800,11 @@ v2.1.83 以降、管理者は複数のマネージド設定ファイルを `mana
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>disableBypassPermissionsMode</key>
- <true/>
+ <key>permissions</key>
+ <dict>
+ <key>disableBypassPermissionsMode</key>
+ <string>disable</string>
+ </dict>
<key>availableModels</key>
<array>
<string>claude-sonnet-4-6</string>
@@ -1811,13 +1820,14 @@ v2.1.83 以降、管理者は複数のマネージド設定ファイルを `mana
### 設定ファイルの場所
-1. **グローバル設定:** `~/.claude/config.json`
-2. **プロジェクト設定:** `./.claude/config.json`
-3. **ユーザー設定:** `~/.config/claude-code/settings.json`
+1. **ユーザー設定:** `~/.claude/settings.json`
+2. **プロジェクト設定:** `.claude/settings.json`(チェックインする)
+3. **ローカルプロジェクト設定:** `.claude/settings.local.json`(チェックインしない)
+4. **マネージド設定:** システムディレクトリ内の `managed-settings.json`([マネージド設定](#マネージド設定エンタープライズ)を参照)
### 完全な設定例
-**コア高度機能の設定:**
+**コア高度機能の設定**(`.claude/settings.json`):
```json
{
@@ -1825,16 +1835,25 @@ v2.1.83 以降、管理者は複数のマネージド設定ファイルを `mana
"defaultMode": "default"
},
"hooks": {
- "PreToolUse:Edit": "eslint --fix ${file_path}",
- "PostToolUse:Write": "~/.claude/hooks/security-scan.sh"
- },
- "mcp": {
- "enabled": true,
- "servers": {
- "github": {
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-github"]
- }
+ "PreToolUse": [
+ { "matcher": "Edit", "hooks": [{ "type": "command", "command": "~/.claude/hooks/eslint-fix.sh" }] }
+ ],
+ "PostToolUse": [
+ { "matcher": "Write", "hooks": [{ "type": "command", "command": "~/.claude/hooks/security-scan.sh" }] }
+ ]
+ }
+}
+```
+
+フックスクリプトはツール入力を stdin の JSON として受け取る(例:`tool_input.file_path`)。`${file_path}` の置換は存在しない。MCP サーバは設定キーではないため、プロジェクトルートの `.mcp.json` に定義する:
+
+```json
+{
+ "mcpServers": {
+ "github": {
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": { "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}" }
}
}
}
@@ -1846,31 +1865,20 @@ v2.1.83 以降、管理者は複数のマネージド設定ファイルを `mana
{
"permissions": {
"defaultMode": "default",
- "allowedTools": ["Bash(git log:*)", "Read"],
- "disallowedTools": ["Bash(rm -rf:*)"]
+ "allow": ["Bash(git log:*)", "Read"],
+ "deny": ["Bash(rm -rf:*)"]
},
"hooks": {
- "PreToolUse": [{ "matcher": "Edit", "hooks": ["eslint --fix ${file_path}"] }],
- "PostToolUse": [{ "matcher": "Write", "hooks": ["~/.claude/hooks/security-scan.sh"] }],
- "Stop": [{ "hooks": ["~/.claude/hooks/notify.sh"] }]
- },
-
- "mcp": {
- "enabled": true,
- "servers": {
- "github": {
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
- }
- }
- }
+ "PreToolUse": [{ "matcher": "Edit", "hooks": [{ "type": "command", "command": "~/.claude/hooks/eslint-fix.sh" }] }],
+ "PostToolUse": [{ "matcher": "Write", "hooks": [{ "type": "command", "command": "~/.claude/hooks/security-scan.sh" }] }],
+ "Stop": [{ "hooks": [{ "type": "command", "command": "~/.claude/hooks/notify.sh" }] }]
}
}
```
+この構成の GitHub MCP サーバは、上記のとおり `.mcp.json` に置く。
+
### 環境変数
設定を環境変数で上書きする:
@@ -1890,7 +1898,7 @@ export MAX_THINKING_TOKENS=16000
export CLAUDE_CODE_EFFORT_LEVEL=xhigh # low, medium, high, xhigh (Opus 4.7 only, default), or max (supported on Opus 4.7, Opus 4.6, Sonnet 4.6)
# Feature toggles
-export CLAUDE_CODE_DISABLE_AUTO_MEMORY=true
+export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 # Disable auto memory (no auto memory files are created or loaded)
export CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=true
export CLAUDE_CODE_DISABLE_CRON=1
export CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=true
@@ -1898,7 +1906,7 @@ export CLAUDE_CODE_DISABLE_TERMINAL_TITLE=true
export CLAUDE_CODE_DISABLE_1M_CONTEXT=true
export CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=true
export CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false
-export CLAUDE_CODE_ENABLE_TASKS=true
+export CLAUDE_CODE_ENABLE_TASKS=0 # Task tools are the default; 0 reverts to the legacy TodoWrite tool
export CLAUDE_CODE_SIMPLE=true # Set by --bare flag
# MCP configuration
@@ -1944,23 +1952,28 @@ User: /config
### プロジェクト単位の設定
-プロジェクトに `.claude/config.json` を作成する:
+プロジェクトに `.claude/settings.json` を作成する:
```json
{
"hooks": {
- "PreToolUse": [{ "matcher": "Bash", "hooks": ["npm test && npm run lint"] }]
+ "PreToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "npm test && npm run lint" }] }]
},
"permissions": {
"defaultMode": "default"
- },
- "mcp": {
- "servers": {
- "project-db": {
- "command": "mcp-postgres",
- "env": {
- "DATABASE_URL": "${PROJECT_DB_URL}"
- }
+ }
+}
+```
+
+プロジェクトの MCP サーバはプロジェクトルートの `.mcp.json` に置く:
+
+```json
+{
+ "mcpServers": {
+ "project-db": {
+ "command": "mcp-postgres",
+ "env": {
+ "DATABASE_URL": "${PROJECT_DB_URL}"
}
}
}
@@ -2086,8 +2099,8 @@ Claude Code および関連機能の詳細:
---
-**最終更新:** 2026 年 10 月 15 日
-**Claude Code バージョン:** 2.1.300
+**最終更新:** 2026 年 10 月 18 日
+**Claude Code バージョン:** 2.1.302
**情報源:**
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/auto-mode-classifier-billing
@@ -2110,5 +2123,13 @@ Claude Code および関連機能の詳細:
- 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/hooks
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/desktop
+- https://code.claude.com/docs/en/fullscreen
+- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/env-vars
+- https://code.claude.com/docs/en/changelog#2-1-302
**互換モデル:** 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 9070da3..0e681f2 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 ではもはやデフォルトではない。
-**推奨インストール方法**はネイティブインストーラーである(`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 以上)、プラットフォーム別のオプション依存関係を通じて同じネイティブバイナリをインストールする。
+**推奨インストール方法**はネイティブインストーラーである(`curl -fsSL https://claude.ai/install.sh | bash`、Windows では `irm https://claude.ai/install.ps1 | iex`)。公式 README では npm によるインストールは非推奨とされている。ネイティブインストーラー、Homebrew(`brew install --cask claude-code`)、または WinGet(`winget install Anthropic.ClaudeCode`)を推奨する。参考までに、`npm install -g @anthropic-ai/claude-code`(Node.js 22 以上)はプラットフォーム別のオプション依存関係を通じて同じネイティブバイナリをインストールする。
**ダウンロードホスト**(v2.1.116+): ネイティブバイナリ成果物は `https://downloads.claude.ai/claude-code-releases` から配信される。
@@ -87,8 +87,8 @@ graph TD
| `--channels` | MCP チャンネルプラグインを購読。各エントリは `plugin:<name>@<marketplace>` の形式でタグ付けする必要があり、名前のみの指定は拒否される | `claude --channels plugin:discord@my-marketplace` |
| `--chrome` / `--no-chrome` | Chrome ブラウザ統合を有効化/無効化 | `claude --chrome` |
| `--effort` | 思考労力レベルを設定 | `claude --effort high` |
-| `--init` / `--init-only` | 初期化フックを実行 | `claude --init` |
-| `--maintenance` | メンテナンスフックを実行して終了 | `claude --maintenance` |
+| `--init` / `--init-only` | `--init` はセッション前に初期化(Setup)フックを実行する(print モードのみ)。`--init-only` は Setup と `SessionStart` フックを実行して終了する | `claude -p --init "query"` |
+| `--maintenance` | セッション前にメンテナンス(Setup)フックを実行する(print モードのみ) | `claude -p --maintenance "query"` |
| `--disable-slash-commands` | すべてのスキルとスラッシュコマンドを無効化 | `claude --disable-slash-commands` |
| `--no-session-persistence` | セッション保存を無効化(プリントモード) | `claude -p --no-session-persistence "query"` |
| `--exclude-dynamic-system-prompt-sections` | プロンプトキャッシュヒット率向上のため、システムプロンプトから動的セクションを除外 | `claude -p --exclude-dynamic-system-prompt-sections "query"` |
@@ -137,14 +137,14 @@ claude -p "list todos" | grep "URGENT"
### モデル選択の例
```bash
-# 複雑なタスクには Opus 4.7
+# 複雑なタスクには Opus 5.5
claude --model opus "design a caching strategy"
# 速いタスクには Haiku(Anthropic API では v2.1.293 以降 Haiku 5.5、Bedrock・Vertex・Foundry では Haiku 4.5)
claude --model haiku -p "format this JSON"
# モデル名のフルネーム指定
-claude --model claude-sonnet-4-6-20250929 "review this code"
+claude --model claude-sonnet-4-6 "review this code"
# 信頼性のためフォールバック付き
claude -p --model opus --fallback-model sonnet "analyze architecture"
@@ -334,7 +334,7 @@ claude -r "feature-auth" --fork-session "test with different architecture"
| `--no-chrome` | Chrome ブラウザ統合を無効化 | `claude --no-chrome` |
| `--ide` | 利用可能なら IDE と自動接続 | `claude --ide` |
| `--max-turns` | エージェントターンを制限(非対話) | `claude -p --max-turns 3 "query"` |
-| `--debug` | フィルタ付きデバッグモードを有効化 | `claude --debug "api,mcp"` |
+| `--debug` | フィルタ付きデバッグモードを有効化(フィルタは `=` 形式でのみ適用) | `claude --debug=api,mcp` |
| `--enable-lsp-logging` | 詳細な LSP ログを有効化 | `claude --enable-lsp-logging` |
| `--betas` | API リクエストのベータヘッダ | `claude --betas interleaved-thinking` |
| `--plugin-dir` | ディレクトリからプラグインを読み込む(複数指定可) | `claude --plugin-dir ./my-plugin` |
@@ -342,7 +342,7 @@ claude -r "feature-auth" --fork-session "test with different architecture"
| `--effort` | 思考労力レベルを設定 | `claude --effort high` |
| `--bare` | 最小モード(フック、スキル、プラグイン、MCP、自動メモリ、CLAUDE.md をスキップ) | `claude --bare` |
| `--channels` | MCP チャンネルプラグインを購読(`plugin:<name>@<marketplace>` 形式でタグ付け) | `claude --channels plugin:discord@my-marketplace` |
-| `--tmux` | ワークツリー用に tmux セッションを作成 | `claude --tmux` |
+| `--tmux` | ワークツリー用に tmux セッションを作成(`--worktree` が必要) | `claude --worktree feature-x --tmux` |
| `--fork-session` | 再開時に新しいセッション ID を作成 | `claude --resume abc --fork-session` |
| `--max-budget-usd` | 最大支出額(プリントモード)。上限に達するとバックグラウンドのサブエージェントも停止する (v2.1.217) | `claude -p --max-budget-usd 5.00 "query"` |
| `--json-schema` | 検証付き JSON 出力 | `claude -p --json-schema '{"type":"object"}' "q"` |
@@ -360,7 +360,7 @@ claude -r "feature-auth" --fork-session "test with different architecture"
claude -p --max-turns 5 "refactor this module"
# API 呼び出しをデバッグ
-claude --debug "api" "test query"
+claude --debug=api "test query"
# IDE 統合を有効化
claude --ide "help me with this file"
@@ -642,45 +642,49 @@ claude -p --output-format json \
--json-schema '{"type":"object","properties":{"functions":{"type":"array"},"complexity":{"type":"string"}}}' \
"analyze main.py and return function list with complexity rating"
-# jq で処理に組み込む
-claude -p --output-format json "list all API endpoints" | jq '.endpoints[]'
+# jq で処理に組み込む(スキーマ出力は .structured_output に入る)
+claude -p --output-format json \
+ --json-schema '{"type":"object","properties":{"endpoints":{"type":"array"}}}' \
+ "list all API endpoints" | jq '.structured_output.endpoints[]'
# スクリプト内で利用
-RESULT=$(claude -p --output-format json "is this code secure? answer with {secure: boolean, issues: []}" < code.py)
-if echo "$RESULT" | jq -e '.secure == false' > /dev/null; then
+RESULT=$(claude -p --output-format json \
+ --json-schema '{"type":"object","properties":{"secure":{"type":"boolean"},"issues":{"type":"array"}},"required":["secure","issues"]}' \
+ "is this code secure?" < code.py)
+if echo "$RESULT" | jq -e '.structured_output.secure == false' > /dev/null; then
echo "Security issues found!"
- echo "$RESULT" | jq '.issues[]'
+ echo "$RESULT" | jq '.structured_output.issues[]'
fi
```
### jq でのパース例
-`jq` で Claude の JSON 出力をパース・処理する:
+`jq` で Claude の JSON 出力をパース・処理する。応答テキストは `.result` に入り、`--json-schema` を指定した場合は検証済みオブジェクトが `.structured_output` に入る(以下の `$SCHEMA` は各フィルタが読むフィールドを定義したスキーマを表す):
```bash
-# 特定フィールドの抽出
-claude -p --output-format json "analyze this code" | jq '.result'
+# 応答テキストの抽出
+claude -p --output-format json "analyze this code" | jq -r '.result'
# 配列要素のフィルタ
-claude -p --output-format json "list issues" | jq -r '.issues[] | select(.severity=="high")'
+claude -p --output-format json --json-schema "$SCHEMA" "list issues" | jq -r '.structured_output.issues[] | select(.severity=="high")'
# 複数フィールドの抽出
-claude -p --output-format json "describe the project" | jq -r '.{name, version, description}'
+claude -p --output-format json --json-schema "$SCHEMA" "describe the project" | jq -r '.structured_output | {name, version, description}'
# CSV への変換
-claude -p --output-format json "list functions" | jq -r '.functions[] | [.name, .lineCount] | @csv'
+claude -p --output-format json --json-schema "$SCHEMA" "list functions" | jq -r '.structured_output.functions[] | [.name, .lineCount] | @csv'
# 条件付き処理
-claude -p --output-format json "check security" | jq 'if .vulnerabilities | length > 0 then "UNSAFE" else "SAFE" end'
+claude -p --output-format json --json-schema "$SCHEMA" "check security" | jq 'if (.structured_output.vulnerabilities | length) > 0 then "UNSAFE" else "SAFE" end'
# ネストされた値の取得
-claude -p --output-format json "analyze performance" | jq '.metrics.cpu.usage'
+claude -p --output-format json --json-schema "$SCHEMA" "analyze performance" | jq '.structured_output.metrics.cpu.usage'
# 配列全体の処理
-claude -p --output-format json "find todos" | jq '.todos | length'
+claude -p --output-format json --json-schema "$SCHEMA" "find todos" | jq '.structured_output.todos | length'
# 出力の変換
-claude -p --output-format json "list improvements" | jq 'map({title: .title, priority: .priority})'
+claude -p --output-format json --json-schema "$SCHEMA" "list improvements" | jq '.structured_output.improvements | map({title: .title, priority: .priority})'
```
---
@@ -742,14 +746,14 @@ export CLAUDE_CODE_EFFORT_LEVEL=xhigh # low, medium, high, xhigh (default on O
| `MAX_THINKING_TOKENS` | 拡張思考のトークン予算を設定 |
| `CLAUDE_CODE_EFFORT_LEVEL` | 労力レベルを設定(`low`/`medium`/`high`/`xhigh`/`max`) — `xhigh` は Opus 4.7 のデフォルト、`max` は Opus 4.7 のみ |
| `CLAUDE_CODE_SIMPLE` | 最小モード(`--bare` フラグで設定される) |
-| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | CLAUDE.md の自動更新を無効化 |
+| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | `1` を設定すると自動メモリを無効化する(自動メモリファイルを作成も読み込みもしない) |
| `CLAUDE_CODE_DISABLE_BACKGROUND_TASKS` | バックグラウンドタスク実行を無効化 |
| `CLAUDE_CODE_DISABLE_CRON` | スケジュール/cron タスクを無効化 |
| `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` | git 関連の指示を無効化 |
| `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` | ターミナルタイトル更新を無効化 |
| `CLAUDE_CODE_DISABLE_1M_CONTEXT` | 1M トークンコンテキストウィンドウを無効化 |
| `CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK` | 非ストリーミングフォールバックを無効化 |
-| `CLAUDE_CODE_ENABLE_TASKS` | タスクリスト機能を有効化 |
+| `CLAUDE_CODE_ENABLE_TASKS` | Task ツールがデフォルト。`0` を設定すると従来の `TodoWrite` ツールに戻る |
| `CLAUDE_CODE_TASK_LIST_ID` | セッション間で共有する名前付きタスクディレクトリ |
| `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` | プロンプトサジェストを切り替え(`true`/`false`) |
| `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` | 実験的なエージェントチームを有効化 |
@@ -765,7 +769,7 @@ export CLAUDE_CODE_EFFORT_LEVEL=xhigh # low, medium, high, xhigh (default on O
| `CLAUDE_CODE_PERFORCE_MODE` | `1` を設定すると Perforce モードを有効化 — ファイルをデフォルトで読み取り専用として扱う(Perforce/P4 バージョン管理ワークフロー向け)(v2.1.98 追加) |
| `DISABLE_UPDATES` | 手動の `claude update` を含むすべての更新経路をブロックする。バックグラウンドの自動更新のみブロックする `DISABLE_AUTOUPDATER` より厳密(v2.1.118+) |
| `CLAUDE_CODE_HIDE_CWD` | `1` に設定すると、起動時ロゴでカレント作業ディレクトリを隠す(プライバシー/画面共有用途)(v2.1.119+) |
-| `CLAUDE_CODE_FORK_SUBAGENT` | デフォルトでフォークモードが無効な場面 — 非対話モード(`claude -p`)、Agent SDK、v2.1.232 より古い Claude Code — で `1` を設定するとフォークモードを有効化する。v2.1.232 以降、フォークモードはファーストパーティかどうかを問わずすべてのビルドの対話セッションでデフォルト有効(GA は v2.1.117) |
+| `CLAUDE_CODE_FORK_SUBAGENT` | `0` を設定するとフォークサブエージェントを無効化する。v2.1.302 以降、ターミナル、`claude -p`、Agent SDK、デスクトップアプリ、VS Code でデフォルト有効。v2.1.302 より前は、`claude -p` と Agent SDK で有効にするには `1` を設定する。 |
| `OTEL_LOG_TOOL_DETAILS` | `1` を設定すると OpenTelemetry イベント中のカスタムおよび MCP コマンド名のリダクションを解除する(v2.1.117+)。デフォルトはリダクション有効。 |
> **Vertex AI 上の `ENABLE_TOOL_SEARCH`(v2.1.119+)**: ツール検索は **Google Cloud Vertex AI 上のデプロイではデフォルト無効** である。Vertex 上でツール検索機能を使いたい場合は `export ENABLE_TOOL_SEARCH=true` で明示的にオプトインする必要がある。Anthropic API 直結ではデフォルト有効のままである。
@@ -874,8 +878,8 @@ claude -p --output-format json "query"
---
-**最終更新**: 2026 年 10 月 15 日
-**Claude Code バージョン**: 2.1.300
+**最終更新**: 2026 年 10 月 18 日
+**Claude Code バージョン**: 2.1.302
**出典**:
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/model-config
@@ -890,4 +894,10 @@ claude -p --output-format json "query"
- 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/headless
+- https://code.claude.com/docs/en/env-vars
+- https://code.claude.com/docs/en/sub-agents
+- https://code.claude.com/docs/en/changelog#2-1-302
+- https://github.com/anthropics/claude-code
+- https://platform.claude.com/docs/en/about-claude/models/overview
**対応モデル**: 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 24e87d2..5e66e4c 100644
--- a/ja/CATALOG.md
+++ b/ja/CATALOG.md
@@ -54,7 +54,7 @@
| `/mcp` | MCP サーバを一覧表示 | 外部統合の確認 |
| `/memory` | 読み込まれたメモリファイルを表示 | コンテキスト読込デバッグ |
| `/mobile` | モバイル用 QR コードを生成 | モバイルアクセス |
-| `/passes` | 使用パスを表示 | サブスクリプション情報 |
+| `/passes` | Claude Code の無料 1 週間を友人と共有(対象アカウントのみ) | 友人の紹介 |
| `/plugin` | プラグインを管理 | 拡張のインストール / 削除 |
| `/plan` | プランニングモードに入る | 複雑な実装 |
| `/proactive` | `/loop` のエイリアス(v2.1.105) | `/loop` と同じ |
@@ -76,7 +76,7 @@
| `/permissions` | 権限を管理 | アクセス制御 |
| `/rename` | 現在のセッションを改名 | セッション整理 |
| `/resume` | 過去のセッションを再開 | 作業の継続 |
-| `/tui` | フルスクリーン TUI(テキストユーザーインターフェース)モード切替 | フルスクリーン / tmux でのちらつきのない描画 |
+| `/tui [default\|fullscreen]` | ターミナル UI のレンダラーを設定(`fullscreen` = ちらつきのない代替スクリーン)。引数なしの `/tui` は現在のレンダラーを表示 | フルスクリーン / tmux でのちらつきのない描画 |
| `/tasks` | バックグラウンドタスクを表示 | 非同期処理の監視 |
| `/copy` | 直前の応答をクリップボードにコピー | 出力の素早い共有 |
| `/teleport` | セッションを別マシンに転送 | リモートでの作業継続 |
@@ -87,11 +87,11 @@
| `/fork` | 現在の会話をフォーク | 別案の探索 |
| `/stats` | `/usage` の stats タブを開くエイリアス(v2.1.118+) | セッション指標の確認 |
| `/statusline` | ステータスラインを設定 | ステータス表示のカスタマイズ |
-| `/stickers` | セッションステッカーを表示 | 楽しいご褒美 |
+| `/stickers` | Claude Code ステッカーを注文 | 楽しいご褒美 |
| `/fast` | 高速出力モード切替 | 応答の高速化 |
| `/terminal-setup` | ターミナル統合を設定 | ターミナル機能のセットアップ |
| `/undo` | `/rewind` のエイリアス(v2.1.108) | `/rewind` と同じ |
-| `/upgrade` | アップデート確認 | バージョン管理 |
+| `/upgrade` | アップグレードページを開いて上位プランに切り替え | プランのアップグレード |
| `/team-onboarding` | このプロジェクトの Claude Code 利用状況からオンボーディングガイドを生成 | 新メンバーのオンボーディング(v2.1.101) |
| `/code-review ultra` | 現在の変更に対するクラウドのマルチエージェントコードレビューを実行。`/ultrareview` はエイリアスとして残っており、`/code-review ultra` が推奨の呼び出し。Pro と Max では 3 回まで無料、以降は使用クレジットが必要 | マージ前の深いマルチエージェントレビュー(v2.1.112) |
| `/fewer-permission-prompts` | トランスクリプトをスキャンし、よく使う読取専用ツールの優先許可リストを提案 | プロジェクトでの権限プロンプト繰り返しを削減(v2.1.112) |
@@ -126,7 +126,7 @@ Claude Code はツール使用の許可を制御する 6 つの権限モード
| モード | 説明 | 利用シーン |
|------|-------------|-------------|
-| `default` | ツール呼び出しごとに確認 | 標準的な対話利用 |
+| `default` | ツール呼び出しごとに確認 | すべての操作を自分で確認したいとき。v2.1.283 以降、対話型ターミナルと VS Code セッションの組み込みの開始モードは auto |
| `acceptEdits` | ファイル編集を自動承認、それ以外は確認 | 信頼できる編集ワークフロー |
| `plan` | 調査して計画を提案。承認するまでソースは編集しない | 計画と探索 |
| `auto` | バックグラウンドの安全分類器のチェック付きで全操作を許可 | 長時間タスク、確認プロンプトの削減 |
@@ -151,7 +151,7 @@ Claude Code はツール使用の許可を制御する 6 つの権限モード
| **Plan** | 実装計画 | Read、Glob、Grep、Bash | モデル継承 | アーキテクチャ設計、計画 |
| **Explore** | コードベース探索 | Read、Glob、Grep | 継承(上限は Opus) | 高速検索、コード理解 |
| **claude** | より専門的なエージェントに当てはまらないタスク向けの汎用エージェント | 全ツール | モデル継承 | 専用エージェントがないタスク、ディスパッチされたバックグラウンドセッションのデフォルト |
-| **statusline-setup** | ステータスライン設定 | Bash、Read、Write | Sonnet 4.6 | ステータスライン表示の設定 |
+| **statusline-setup** | ステータスライン設定 | Bash、Read、Write | Sonnet | ステータスライン表示の設定 |
| **claude-code-guide** | ヘルプとドキュメント | Read、Glob、Grep | Haiku | ヘルプ、機能学習 |
### サブエージェント設定フィールド
@@ -241,8 +241,8 @@ cp -r 03-skills/* ~/.claude/skills/
| スキル | 説明 | 自動起動の条件 |
|-------|-------------|-------------------|
| `/simplify` | 品質目線でコードレビュー | コード執筆後 |
-| `/batch` | 複数ファイルでプロンプト実行 | バッチ処理 |
-| `/debug` | 失敗テスト・エラーのデバッグ | デバッグセッション |
+| `/batch` | 大きな変更を 5〜30 の独立した単位に分割し、単位ごとにバックグラウンドのサブエージェントが専用のワークツリーで実行 | 大規模な並列リファクタリング |
+| `/debug [description]` | セッションのデバッグログを有効にし、そのログを読んで問題を調査 | Claude Code 自体のデバッグ |
| `/loop` | 一定間隔でプロンプト実行 | 反復タスク |
| `/claude-api` | Claude API でアプリ構築 | API 開発 |
@@ -264,14 +264,17 @@ cp -r 03-skills/* ~/.claude/skills/
### プラグイン構造
-```
-.claude-plugin/
-├── plugin.json # マニフェストファイル
+```text
+my-plugin/
+├── .claude-plugin/
+│ └── plugin.json # マニフェストファイル(.claude-plugin/ 内はこのファイルのみ)
├── commands/ # スラッシュコマンド
├── agents/ # サブエージェント
-├── skills/ # スキル
-├── mcp/ # MCP 設定
-├── hooks/ # フックスクリプト
+├── skills/ # スキル (<name>/SKILL.md)
+├── hooks/
+│ └── hooks.json # フック設定
+├── .mcp.json # MCP 設定
+├── bin/ # 実行ファイル
└── scripts/ # ユーティリティスクリプト
```
@@ -281,7 +284,7 @@ cp -r 03-skills/* ~/.claude/skills/
```bash
/plugin list # インストール済みプラグイン一覧
/plugin install <name> # プラグインをインストール
-/plugin remove <name> # プラグインを削除
+/plugin uninstall <name> # プラグインをアンインストール
claude plugin update <name> # プラグインを更新(CLI。/plugin update というスラッシュ形式は説明文中で言及されるが、コマンドリファレンスには存在しない)
```
@@ -295,9 +298,9 @@ claude plugin update <name> # プラグインを更新(CLI。/plugin update
| サーバ | 説明 | 利用シーン | スコープ | インストール |
|--------|-------------|-------------|-------|--------------|
-| **GitHub** | PR 管理、issue、コード | GitHub ワークフロー | プロジェクト | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
-| **Database** | SQL クエリ、データアクセス | DB 操作 | プロジェクト | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
-| **Filesystem** | 高度なファイル操作 | 複雑なファイルタスク | ユーザー | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
+| **GitHub** | PR 管理、issue、コード | GitHub ワークフロー | ローカル | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
+| **Database** | SQL クエリ、データアクセス | DB 操作 | ローカル | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
+| **Filesystem** | 高度なファイル操作 | 複雑なファイルタスク | ローカル | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
| **Slack** | チームコミュニケーション | 通知、更新 | プロジェクト | 設定で構成 |
| **Google Docs** | ドキュメントアクセス | ドキュメント編集・レビュー | プロジェクト | 設定で構成 |
| **Asana** | プロジェクト管理 | タスク追跡 | プロジェクト | 設定で構成 |
@@ -305,7 +308,7 @@ claude plugin update <name> # プラグインを更新(CLI。/plugin update
| **Memory** | 永続メモリ | セッション横断の想起 | ユーザー | 設定で構成 |
| **Context7** | ライブラリドキュメント | 最新ドキュメント検索 | ユーザー | 設定で構成(サードパーティ製サーバ) |
-> **スコープ**:`プロジェクト` = チーム(`.mcp.json`)、`ユーザー` = 個人(`~/.claude.json`)、`組み込み` = プリインストール
+> **スコープ**:`ローカル` = `--scope` なしの `claude mcp add` の既定(自分のみ・このプロジェクト、`~/.claude.json`)、`プロジェクト` = チーム(`.mcp.json`、`--scope project`)、`ユーザー` = 個人(`~/.claude.json`、`--scope user`)、`組み込み` = プリインストール
### MCP 設定例
@@ -397,13 +400,17 @@ Claude Code のイベントでシェルコマンドを自動実行するイベ
"PreToolUse": [
{
"matcher": "Bash",
- "command": "~/.claude/hooks/validate-bash.py"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/validate-bash.py" }
+ ]
}
],
"PostToolUse": [
{
"matcher": "Write",
- "command": "~/.claude/hooks/format-code.sh"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/format-code.sh" }
+ ]
}
]
}
@@ -454,7 +461,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **/focus** | 注意散漫を防ぐ出力表示のためのフォーカスビュー切替(v2.1.110) | `/focus` で長時間タスク中の視覚的ノイズを低減 |
| **/proactive** | `/loop` のエイリアス — 同じ反復タスク動作(v2.1.105) | `/proactive` を `/loop` と互換に利用 |
| **/recap** | 既存セッションに戻ったときに要約を表示(v2.1.108) | 離席後に `/recap` を実行して文脈を取り戻す |
-| **/tui** | フルスクリーン TUI モードを切替してちらつきのない描画(v2.1.110) | フルスクリーンターミナルや tmux で `/tui` を使う |
+| **/tui** | ターミナル UI のレンダラーを設定:`/tui fullscreen` でちらつきのない描画、`/tui default` で元に戻す。引数なしなら現在のレンダラーを表示(v2.1.110) | フルスクリーンターミナルや tmux で `/tui fullscreen` を使う |
| **/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` を実行 |
@@ -475,7 +482,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **チャンネル** | 複数チャネル通信(Telegram、Slack など)(Research Preview) | チャンネルプラグインを設定、2026 年 3 月 |
| **音声入力** | プロンプトの音声入力 | マイクアイコンまたは音声キーバインドを使う |
| **Agent フック種別** | シェルコマンド実行ではなくサブエージェントを生成するフック | フック設定で `"type": "agent"` を指定 |
-| **Prompt フック種別** | プロンプトテキストを会話に注入するフック | フック設定で `"type": "prompt"` を指定 |
+| **Prompt フック種別** | Claude モデルにプロンプトを送って単一ターンで評価させるフック。モデルは判定を JSON で返す | フック設定で `"type": "prompt"` を指定 |
| **MCP Elicitation** | MCP サーバがツール実行中にユーザー入力を要求できる | `Elicitation` および `ElicitationResult` フックイベントで処理 |
| **プラグイン LSP サポート** | プラグイン経由の Language Server Protocol 統合 | エディタ機能のため `plugin.json` で LSP サーバを設定 |
| **マネージド Drop-in** | 組織管理のドロップイン設定(v2.1.83) | 管理ポリシーで管理者が設定、全ユーザーに自動適用 |
@@ -538,8 +545,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**最終更新**:2026 年 10 月 15 日
-**Claude Code バージョン**:2.1.300
+**最終更新**:2026 年 10 月 18 日
+**Claude Code バージョン**:2.1.302
**情報源**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/overview
@@ -554,4 +561,6 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/cli-reference
**互換モデル**: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 4a7c1f5..7cadf79 100644
--- a/ja/INDEX.md
+++ b/ja/INDEX.md
@@ -262,7 +262,7 @@ pr-review/
**コマンド**:`/review-pr`、`/check-security`、`/check-tests`
-**インストール**:`/plugin install pr-review`
+**インストール**:`claude --plugin-dir ./07-plugins/pr-review` (リポジトリのルートから)
---
@@ -296,7 +296,7 @@ devops-automation/
**コマンド**:`/deploy`、`/rollback`、`/status`、`/incident`
-**インストール**:`/plugin install devops-automation`
+**インストール**:`claude --plugin-dir ./07-plugins/devops-automation` (リポジトリのルートから)
---
@@ -327,7 +327,7 @@ documentation/
**コマンド**:`/generate-api-docs`、`/generate-readme`、`/sync-docs`、`/validate-docs`
-**インストール**:`/plugin install documentation`
+**インストール**:`claude --plugin-dir ./07-plugins/documentation` (リポジトリのルートから)
**追加**:`README.md` — プラグイン概要と使用ガイド
@@ -354,7 +354,7 @@ documentation/
# 巻き戻しは Esc を 2 回押すか、次を実行:
/rewind
# 選択肢: コードと会話の復元、会話の復元、
-# コードの復元、ここから要約、やめる
+# コードの復元、ここから要約、ここまでを要約、やめる
```
**ユースケース**:
@@ -405,7 +405,7 @@ documentation/
- **plan**:読み取り専用分析、変更なし
- **auto**:バックグラウンドの安全チェック付きで全操作を実行 — 分類器がコマンドと保護ディレクトリへの書き込みを審査する(`autoMode` 設定オブジェクトで構成)
- **dontAsk**:事前承認済みのツールのみ — 本来プロンプトが出る呼び出しはすべて自動的に拒否される。Claude が実行できるのは `permissions.allow` に一致するもの、読み取り専用の Bash コマンド、`PreToolUse` フックが承認した呼び出しに限られる
-- **bypassPermissions**:すべて承認(`--dangerously-skip-permissions` が必要)
+- **bypassPermissions**:すべて承認(`--permission-mode bypassPermissions` または同等の `--dangerously-skip-permissions` で有効化)
### ヘッドレスモード(`claude -p`)
- CI/CD 統合
@@ -677,13 +677,13 @@ cp 04-subagents/code-reviewer.md .claude/agents/
cp -r 03-skills/code-review-specialist ~/.claude/skills/
# あるいは完全プラグインをインストール
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
### DevOps とデプロイ
```bash
# プラグインをインストール (すべて含む)
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
### ドキュメント
@@ -698,7 +698,7 @@ cp 04-subagents/documentation-writer.md .claude/agents/
cp -r 03-skills/doc-generator ~/.claude/skills/
# あるいは完全プラグインをインストール
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
### チーム標準
@@ -712,8 +712,10 @@ cp 02-memory/project-CLAUDE.md ./CLAUDE.md
### 外部統合
```bash
# 環境変数を設定
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
# MCP 設定をインストール (プロジェクトスコープ)
cp 05-mcp/multi-mcp.json .mcp.json
@@ -882,8 +884,8 @@ Run tests in background
---
-**最終更新**:2026 年 10 月 15 日
-**Claude Code バージョン**:2.1.300
+**最終更新**:2026 年 10 月 18 日
+**Claude Code バージョン**:2.1.302
**互換モデル**:Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5
**例題総数**:100 ファイル超
**カテゴリ**:10 機能
@@ -899,3 +901,6 @@ Run tests in background
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/permission-modes
diff --git a/ja/LEARNING-ROADMAP.md b/ja/LEARNING-ROADMAP.md
index 47d2611..b069db3 100644
--- a/ja/LEARNING-ROADMAP.md
+++ b/ja/LEARNING-ROADMAP.md
@@ -101,7 +101,7 @@ graph TD
| ステップ | 機能 | 複雑度 | 時間 | レベル | 依存 | 学ぶ理由 | 主な利点 |
|------|---------|-----------|------|-------|--------------|----------------|--------------|
-| **1** | [スラッシュコマンド](01-slash-commands/) | ⭐ 初級 | 30 分 | レベル 1 | なし | すぐ得られる生産性向上(組み込み 55 個 + バンドル 5 スキル) | 即時自動化、チーム標準化 |
+| **1** | [スラッシュコマンド](01-slash-commands/) | ⭐ 初級 | 30 分 | レベル 1 | なし | すぐ得られる生産性向上(組み込み 55 個 + バンドル 20 スキル) | 即時自動化、チーム標準化 |
| **2** | [メモリ](02-memory/) | ⭐⭐ 初級+ | 45 分 | レベル 1 | なし | 全機能の基礎 | 永続コンテキスト、設定保持 |
| **3** | [チェックポイント](08-checkpoints/) | ⭐⭐ 中級 | 45 分 | レベル 1 | セッション管理 | 安全な探索 | 実験、復旧 |
| **4** | [CLI 基礎](10-cli/) | ⭐⭐ 初級+ | 30 分 | レベル 1 | なし | コア CLI の使い方 | 対話モード・印字モード |
@@ -306,8 +306,7 @@ chmod +x ~/.claude/hooks/pre-tool-check.sh
```bash
# 演習 1: GitHub MCP をセットアップ
-export GITHUB_TOKEN="your_github_token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# 演習 2: MCP 統合をテスト
# Claude Code で: /mcp__github__list_prs
@@ -374,7 +373,7 @@ cp 04-subagents/*.md .claude/agents/
✅ バックグラウンドタスク管理
✅ 学習済み設定のための Auto Memory
✅ バックグラウンド安全性分類器付きの Auto Mode
-✅ 構造化マルチセッションワークフロー向けチャンネル
+✅ 実行中のセッションにイベント(CI 結果、チャットメッセージ、Webhook)をプッシュするチャンネル
✅ ハンズフリー操作のための音声入力
✅ リモート操作、デスクトップアプリ、Web セッション
✅ マルチエージェント協調のための Agent Teams
@@ -410,10 +409,10 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# 演習 7: スケジュールタスク
/loop 5m /check-status
-# あるいは永続的なスケジュールタスクには CronCreate を使う
+# タスクはセッション単位。永続的なスケジュールには Routines または Desktop のスケジュールタスクを使う
-# 演習 8: マルチセッションワークフローのチャンネル
-# セッションをまたぐ作業をチャンネルで整理する
+# 演習 8: チャンネル(リサーチプレビュー)
+# チャンネルは実行中のセッションにイベントをプッシュする MCP サーバである
# 演習 9: 音声入力
# ハンズフリーで Claude Code とやり取りするため音声入力を使う
@@ -425,7 +424,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
- [ ] Alt+T / Option+T で拡張思考を切り替えた
- [ ] バックグラウンド安全性分類器付き auto モードを使った
- [ ] 長時間処理でバックグラウンドタスクを使った
-- [ ] マルチセッションワークフローのためチャンネルを試した
+- [ ] 外部イベントをセッションにプッシュするチャンネルを試した
- [ ] ハンズフリー入力のため音声入力を試した
- [ ] リモート操作、デスクトップアプリ、Web セッションを理解している
- [ ] 協調作業のため Agent Teams を有効化して使った
@@ -456,7 +455,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
```bash
# 演習 1: 完全プラグインをインストール
-# Claude Code で: /plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review # リポジトリのルートから
# 演習 2: CI/CD のための印字モード
claude -p "Run all tests and generate report"
@@ -702,13 +701,13 @@ done
1. **チームドキュメントを作成** — チームの Claude Code セットアップを文書化
2. **カスタムプラグインを構築** — チームのワークフローをパッケージ化
-3. **リモートコントロールを試す** — 外部ツールから Claude Code セッションをプログラムで制御
+3. **リモートコントロールを試す** — ローカルの Claude Code セッションをスマートフォン、ブラウザ、または Claude アプリから継続
4. **Web セッションを試す** — リモート開発のためブラウザベースインターフェースで Claude Code を使う
5. **デスクトップアプリを使う** — ネイティブデスクトップアプリで Claude Code 機能を利用
6. **Auto Mode を使う** — バックグラウンド安全性分類器付きで Claude を自律的に動かす
7. **Auto Memory を活用** — Claude に好みを時間とともに自動学習させる
8. **Agent Teams をセットアップ** — 複雑で多面的なタスクで複数エージェントを協調させる
-9. **チャンネルを使う** — 構造化マルチセッションワークフローで作業を整理
+9. **チャンネルを使う** — 実行中のセッションにイベント(CI 結果、チャットメッセージ、Webhook)をプッシュする MCP サーバを接続
10. **音声入力を試す** — ハンズフリー音声入力で Claude Code とやり取りする
11. **スケジュールタスクを使う** — `/loop` や cron ツールで反復チェックを自動化
12. **例をコントリビュート** — コミュニティと共有する
@@ -742,13 +741,19 @@ done
---
-**最終更新**:2026 年 10 月 15 日
-**Claude Code バージョン**:2.1.300
+**最終更新**:2026 年 10 月 18 日
+**Claude Code バージョン**:2.1.302
**情報源**:
- 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/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/commands
- 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 9d81a47..94d6704 100644
--- a/ja/QUICK_REFERENCE.md
+++ b/ja/QUICK_REFERENCE.md
@@ -50,7 +50,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
### MCP
```bash
# 認証情報を設定
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# 設定をインストール (プロジェクトスコープ)
@@ -101,7 +101,7 @@ chmod +x ~/.claude/hooks/*.sh
# plan - 読み取り専用分析、変更なし
# dontAsk - 事前承認済みのツールのみ実行、それ以外はすべて拒否
# auto - バックグラウンド分類器が自動的に権限を判断
-# bypassPermissions - すべて承認 (--dangerously-skip-permissions が必要)
+# bypassPermissions - すべて承認 (--permission-mode bypassPermissions。--dangerously-skip-permissions も同等)
# セッション管理
/resume # 過去の会話を再開
@@ -266,15 +266,15 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# 5 分ごとにコマンドを実行
/loop 5m /check-status
-# 一回限りのリマインダー
-/loop 30m "remind me to check the deploy"
+# 一回限りのリマインダー:普通の言葉で頼む(/loop はキャンセルするまで繰り返す)
+30 分後にデプロイを確認するようリマインドして
```
---
## 📁 ファイル配置リファレンス
-```
+```text
Your Project/
├── .claude/
│ ├── commands/ # スラッシュコマンドはここ
@@ -294,9 +294,12 @@ User Home/
│ ├── skills/ # 個人スキル
│ ├── hooks/ # フックスクリプト
│ ├── settings.json # ユーザー設定
-│ ├── managed-settings.d/ # 管理設定 (エンタープライズ / 組織)
│ └── CLAUDE.md # 個人メモリ
└── .claude.json # 個人 MCP 設定 (ユーザースコープ)
+
+システムディレクトリ/ # macOS /Library/Application Support/ClaudeCode/、Linux /etc/claude-code/、Windows C:\Program Files\ClaudeCode\
+├── managed-settings.json # 管理設定 (エンタープライズ / 組織)
+└── managed-settings.d/ # 管理設定のドロップイン
```
---
@@ -357,7 +360,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
### 4〜5 日目
```bash
# MCP をセットアップ
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
cp 05-mcp/github-mcp.json .mcp.json
# MCP コマンドを試す
@@ -402,7 +405,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **タスクリスト** | バックグラウンドタスクの管理 | `/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` フラグ |
+| **モデル選択** | Fable 5.1、Fable 5、Opus 5、Sonnet 5.5、Sonnet 5、Sonnet 4.6、Opus 4.8、Haiku 4.5 を切替 | `/model` または `--model` フラグ(Anthropic API では `sonnet` は Sonnet 5.5 を指す、v2.1.284+) |
| **Agent Teams** | タスク上の複数エージェントを協調 | 環境変数 `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` で有効化(実験的) |
| **スケジュールタスク** | `/loop` による反復タスク | `/loop 5m /command` または CronCreate ツール |
| **Chrome 連携** | ブラウザ自動化 | `--chrome` フラグまたは `/chrome` コマンド |
@@ -434,7 +437,7 @@ ls -la .claude/agents/
head -20 .claude/agents/code-reviewer.md
# MCP 接続をテスト
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
```
---
@@ -509,8 +512,8 @@ A:もちろん。カスタマイズ用のテンプレートである。
**このカード**:手元に置いてクイックリファレンスとして!
---
-**最終更新**:2026 年 10 月 15 日
-**Claude Code バージョン**:2.1.300
+**最終更新**:2026 年 10 月 18 日
+**Claude Code バージョン**:2.1.302
**情報源**:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/hooks
@@ -520,4 +523,8 @@ A:もちろん。カスタマイズ用のテンプレートである。
- 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
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/model-config
**互換モデル**: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 5c7e2be..cded76d 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)として配布される。推奨のインストール方法はネイティブインストーラー(`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` であり、企業プロキシではこのホストを許可リストに加える必要がある。
+> **インストールに関する注記**:v2.1.113 以降、Claude Code はプラットフォーム別のネイティブバイナリ(macOS / Linux / Windows)として配布される。推奨のインストール方法はネイティブインストーラー(`curl -fsSL https://claude.ai/install.sh | bash`)である。公式 README では npm によるインストールは非推奨とされているため、ネイティブインストーラー、Homebrew(`brew install --cask claude-code`)または WinGet(`winget install Anthropic.ClaudeCode`)を推奨する。参考までに、`npm install -g @anthropic-ai/claude-code` はインストール時にプラットフォーム別のオプション依存関係を通じて同じネイティブバイナリを取得する。v2.1.116 以降、ダウンロード元は `https://downloads.claude.ai/claude-code-releases` であり、企業プロキシではこのホストを許可リストに加える必要がある。
```bash
# 1. ガイドをクローン
@@ -214,7 +214,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
完全パスで 11〜13 時間。ただし 15 分で即座に価値が得られる。スラッシュコマンドのテンプレートをコピーして試すだけでよい。
**Claude Sonnet / Haiku / Opus と一緒に使えるか?**
-使える。すべてのテンプレートは Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5 で動作する。
+使える。すべてのテンプレートは Claude Sonnet 5.5、Claude Sonnet 4.6、Claude Opus 4.7、Claude Haiku 4.5 で動作する。
**コントリビュートできるか?**
もちろん。ガイドラインは [CONTRIBUTING.md](CONTRIBUTING.md) を参照。新しい例、バグ修正、ドキュメント改善、コミュニティテンプレートを歓迎する。
@@ -290,16 +290,15 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
cp 04-subagents/*.md .claude/agents/
# MCP
-export GITHUB_TOKEN="token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Hooks
mkdir -p ~/.claude/hooks
cp 06-hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh
-# Plugins
-/plugin install pr-review
+# Plugins(リポジトリのルートからローカルプラグインを読み込む)
+claude --plugin-dir ./07-plugins/pr-review
# Checkpoints (自動有効、設定で調整)
# 08-checkpoints/README.md を参照
@@ -433,11 +432,10 @@ cp 04-subagents/*.md /path/to/project/.claude/agents/
**インストール**:
```bash
# 環境変数を設定
-export GITHUB_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# CLI で MCP サーバを追加
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# またはプロジェクト .mcp.json に手動追加 (例は 05-mcp/ を参照)
```
@@ -454,7 +452,7 @@ claude mcp add github -- npx -y @modelcontextprotocol/server-github
**概要**:Claude Code のイベントに応じて自動実行されるイベント駆動シェルコマンド
**例**:
-- `format-code.sh` — 書き込み前にコードを自動整形
+- `format-code.sh` — 書き込み後にコードを自動整形
- `pre-commit.sh` — コミット前にテストを実行
- `security-scan.sh` — セキュリティ問題のスキャン
- `log-bash.sh` — すべての bash コマンドをログに記録
@@ -472,14 +470,15 @@ chmod +x ~/.claude/hooks/*.sh
```json
{
"hooks": {
- "PreToolUse": [{
- "matcher": "Write",
- "hooks": ["~/.claude/hooks/format-code.sh"]
- }],
- "PostToolUse": [{
- "matcher": "Write",
- "hooks": ["~/.claude/hooks/security-scan.sh"]
- }]
+ "PostToolUse": [
+ {
+ "matcher": "Write",
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/format-code.sh" },
+ { "type": "command", "command": "~/.claude/hooks/security-scan.sh" }
+ ]
+ }
+ ]
}
}
```
@@ -510,9 +509,10 @@ chmod +x ~/.claude/hooks/*.sh
**インストール**:
```bash
-/plugin install pr-review
-/plugin install devops-automation
-/plugin install documentation
+# リポジトリのルートから実行(このリポジトリにはマーケットプレイスがないため /plugin install は使えない)
+claude --plugin-dir ./07-plugins/pr-review
+claude --plugin-dir ./07-plugins/devops-automation
+claude --plugin-dir ./07-plugins/documentation
```
**使い方**:バンドルされたスラッシュコマンドや機能を利用する
@@ -537,12 +537,13 @@ chmod +x ~/.claude/hooks/*.sh
# 巻き戻しは Esc を 2 回押すか、次を実行:
/rewind
-# 5 つの選択肢から選ぶ:
+# 6 つの選択肢から選ぶ:
# 1. コードと会話を復元
# 2. 会話のみ復元
# 3. コードのみ復元
# 4. ここから要約
-# 5. やめる
+# 5. ここまでを要約
+# 6. やめる
```
**ユースケース**:
@@ -877,8 +878,8 @@ MIT License — [LICENSE](../LICENSE) を参照。利用、変更、再配布は
---
-**最終更新**:2026 年 10 月 15 日
-**Claude Code バージョン**:2.1.300
+**最終更新**:2026 年 10 月 18 日
+**Claude Code バージョン**:2.1.302
**情報源**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
@@ -887,4 +888,9 @@ MIT License — [LICENSE](../LICENSE) を参照。利用、変更、再配布は
- 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
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/model-config
+- https://github.com/anthropics/claude-code
**互換モデル**: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 2568216..0e4ba24 100644
--- a/ja/claude_concepts_guide.md
+++ b/ja/claude_concepts_guide.md
@@ -567,7 +567,7 @@ graph TB
### Claude Code のメモリ階層(7 層)
-Claude Code は 7 層からメモリを読み込む。優先度の高い順に:
+Claude Code は 7 層からメモリを読み込む。CLAUDE.md ファイルは互いに上書きせずコンテキストに連結され、managed → user → project → local の順に読み込まれる(より具体的なファイルほど後に読まれる):
```mermaid
graph TD
@@ -597,7 +597,7 @@ graph TD
| 4. User | `~/.claude/CLAUDE.md` | 個人 | 中 | 個人 | 個人の好み |
| 5. User Rules | `~/.claude/rules/*.md` | 個人 | 中 | 個人 | 個人ルールのモジュール化 |
| 6. Local | `./CLAUDE.local.md` | ローカル | 低 | 共有しない | マシン固有設定 |
-| 7. Auto Memory | 自動 | セッション | 最低 | 個人 | 学習された好み・パターン |
+| 7. Auto Memory | 自動 | リポジトリ単位 | 最低 | 個人 | 学習された好み・パターン |
### Auto Memory
@@ -1312,15 +1312,15 @@ graph TB
### 同梱スキル
-Claude Code には標準で 5 つの同梱スキルが含まれる:
+Claude Code には標準で 20 の同梱スキルが含まれる:
| スキル | コマンド | 用途 |
|-------|---------|---------|
| **Simplify** | `/simplify` | 複雑なコードや説明を単純化 |
| **Batch** | `/batch` | 複数ファイル・項目に対する一括操作 |
-| **Debug** | `/debug` | 根本原因分析を伴う体系的デバッグ |
+| **Debug** | `/debug` | 現在のセッションのデバッグログを有効にし、そのログを読んで問題を調査 |
| **Loop** | `/loop` | タイマーで定期実行 |
-| **Claude API** | `/claude-api` | Anthropic API への直接アクセス |
+| **Claude API** | `/claude-api` | プロジェクトの言語向けに Claude API と Managed Agents のリファレンスを読み込む。コードが `anthropic` または `@anthropic-ai/sdk` をインポートすると自動で有効化 |
これらの同梱スキルは常に利用可能であり、インストールや設定は不要である。
@@ -2200,7 +2200,7 @@ sequenceDiagram
participant Hooks
participant Tools as Configured Tools
- User->>Claude: /plugin install pr-review
+ User->>Claude: claude --plugin-dir ./07-plugins/pr-review
Claude->>Plugin: Download plugin manifest
Plugin-->>Claude: Return plugin definition
Claude->>Install: Extract components
@@ -2226,39 +2226,14 @@ sequenceDiagram
### プラグイン定義の構造
-```yaml
----
-name: plugin-name
-version: "1.0.0"
-description: "What this plugin does"
-author: "Your Name"
-license: MIT
+マニフェストは `.claude-plugin/plugin.json` に置く JSON である。必須は `name` のみで、認識されないトップレベルキーは除去される:
-# プラグインのメタデータ
-tags:
- - category
- - use-case
-
-# 要件
-requires:
- - claude-code: ">=1.0.0"
-
-# 同梱コンポーネント
-components:
- - type: commands
- path: commands/
- - type: agents
- path: agents/
- - type: mcp
- path: mcp/
- - type: hooks
- path: hooks/
-
-# 設定
-config:
- auto_load: true
- enabled_by_default: true
----
+```json
+{
+ "name": "plugin-name",
+ "version": "1.0.0",
+ "description": "What this plugin does"
+}
```
### プラグインのディレクトリ構造
@@ -2276,11 +2251,13 @@ my-plugin/
│ ├── specialist-2.md
│ └── configs/
├── skills/
-│ ├── skill-1.md
-│ └── skill-2.md
+│ └── skill-name/
+│ └── SKILL.md
├── hooks/
│ └── hooks.json
├── .mcp.json
+├── bin/
+│ └── my-tool
├── .lsp.json
├── settings.json
├── templates/
@@ -2353,7 +2330,7 @@ Specializes in finding security vulnerabilities:
**インストール:**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# 結果:
# ✅ 3 slash commands installed
@@ -2508,7 +2485,7 @@ graph TD
1. すべてのコンポーネントを含むプラグイン構造を作る
2. `.claude-plugin/plugin.json` マニフェストを記述する
3. ドキュメント付きの `README.md` を作る
-4. `/plugin install ./my-plugin` でローカルテスト
+4. `claude --plugin-dir ./my-plugin` でローカルテスト
5. プラグインマーケットプレイスへ提出する
6. レビューを受けて承認される
7. マーケットプレイスで公開される
@@ -2530,7 +2507,7 @@ Complete PR review workflow with security, testing, and documentation checks.
## Installation
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## Features
@@ -2565,7 +2542,7 @@ Complete PR review workflow with security, testing, and documentation checks.
**プラグイン利用(2 分):**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ すべてインストール・設定完了
# ✅ 即座に使える
# ✅ チームでも完全に同じ環境を再現可能
@@ -2818,13 +2795,13 @@ Claude Code は 5 種類(command、http、mcp_tool、prompt、agent)にわ
| フックイベント | トリガー | ユースケース |
|------------|---------|-----------|
| **SessionStart** | セッション開始 / 再開 / クリア / 圧縮時 | 環境構築、初期化 |
-| **Setup** | 初期環境セットアップ(セッションごとに 1 回) | ツール準備、依存関係インストール |
+| **Setup** | `--init-only` で起動したとき、または `-p` と `--init` / `--maintenance` を併用したとき(通常の起動では発火しない) | ツール準備、依存関係インストール |
| **InstructionsLoaded** | CLAUDE.md やルールファイル読み込み時 | 検証、変換、補強 |
| **UserPromptSubmit** | ユーザーがプロンプト送信時 | 入力検証、プロンプトフィルタ |
| **UserPromptExpansion** | 入力したスラッシュコマンド(スキル、カスタムコマンド、MCP プロンプト)がプロンプトに展開される。展開をブロック可能 | 直接の `/command` 使用のブロック・記録、スキルごとのコンテキスト追加 |
| **PreToolUse** | 任意のツール実行前 | 検証、承認ゲート、ログ |
| **PermissionRequest** | 権限ダイアログ表示時 | 自動承認・拒否フロー |
-| **PermissionDenied** | ユーザーが権限要求を拒否 | ログ、分析、ポリシー適用 |
+| **PermissionDenied** | auto モードがツール呼び出しを拒否したとき(手動での拒否では発火しない) | ログ、分析、ポリシー適用 |
| **PostToolUse** | ツール成功後 | 自動整形、通知、後処理 |
| **PostToolUseFailure** | ツール実行失敗時 | エラー処理、ログ |
| **PostToolBatch** | ツール実行バッチの完了後 | 集約レポート、バッチ検証 |
@@ -2845,7 +2822,7 @@ Claude Code は 5 種類(command、http、mcp_tool、prompt、agent)にわ
| **PostCompact** | 圧縮完了後 | 圧縮後の処理 |
| **PreModelSwitch** | モデル切り替えが適用される直前 | モデル変更のゲート・拒否 |
| **PostModelSwitch** | セッションのモデルが変更された後 | モデル変更のログ・連動 |
-| **WorktreeCreate** | ワークツリー作成時 | 環境構築、依存関係インストール |
+| **WorktreeCreate** | ワークツリー作成時 | デフォルトの git ワークツリー作成を置き換える。ワークツリーのパスを出力する必要がある |
| **WorktreeRemove** | ワークツリー削除時 | クリーンアップ、リソース解放 |
| **Elicitation** | MCP サーバーがユーザー入力を要求時 | 入力検証 |
| **ElicitationResult** | ユーザーが入力要求に応答時 | 応答処理 |
@@ -2933,12 +2910,13 @@ Esc + Esc
/rewind
```
-チェックポイントを選ぶと 5 つのオプションから選択できる:
+チェックポイントを選ぶと 6 つのオプションから選択できる:
1. **コードと会話を復元** — 両方をその時点へ戻す
2. **会話を復元** — メッセージを巻き戻し、現在のコードは保つ
3. **コードを復元** — ファイルを戻し、会話は保つ
4. **ここから要約** — 会話を要約に圧縮
-5. **キャンセル** — 取り消す
+5. **ここまでを要約** — この時点より前をすべて要約に圧縮
+6. **キャンセル** — 取り消す
### ユースケース
@@ -2951,9 +2929,11 @@ Esc + Esc
### 設定
+チェックポイントはデフォルトで有効であり、`fileCheckpointingEnabled` で制御する:
+
```json
{
- "autoCheckpoint": true
+ "fileCheckpointingEnabled": true
}
```
@@ -2984,12 +2964,11 @@ Esc + Esc
**起動:**
- セッション中に `Alt+T`(macOS では `Option+T`)でトグル
-- プログラム制御には環境変数 `MAX_THINKING_TOKENS` を設定
+- Opus 4.7 以降、Sonnet 5 以降、Haiku 5.5、Fable は常に適応型推論を使うため、固定の `MAX_THINKING_TOKENS` 予算は適用されない。推論の深さは `/effort` で調整する
```bash
-# 環境変数で拡張思考を有効化
-export MAX_THINKING_TOKENS=50000
-claude -p "Should we use microservices or monolith?"
+# effort レベルで推論の深さを調整
+/effort high
```
**メリット:**
@@ -3020,7 +2999,7 @@ Claude にできることを制御する。
| **default** | 標準権限。機微な操作はプロンプト | 一般開発 |
| **acceptEdits** | ファイル編集を確認なく承認 | 信頼できる編集ワークフロー |
| **plan** | 解析・計画のみ、ファイル変更不可 | コードレビュー、アーキテクチャ計画 |
-| **auto** | 安全な操作は自動承認、リスクのみ確認 | 安全性とのバランス自律性 |
+| **auto** | 分類器が安全な操作を承認し、リスクのある操作をブロック。連続 3 回または合計 20 回ブロックされると確認が戻る | 安全性とのバランス自律性 |
| **dontAsk** | 確認が必要な操作はすべて自動拒否。事前承認済みツールと読み取りのみ実行 | ロックダウンした CI・スクリプト |
| **bypassPermissions** | 制限なし、安全チェックなし | CI/CD、信頼できるスクリプト |
@@ -3090,13 +3069,7 @@ claude -r "Feature" # 名前 / ID でセッションを再開
- `↑ / ↓` — コマンド履歴
- `Ctrl + L` — 画面クリア
-**複数行入力:**
-```bash
-User: \
-> Long complex prompt
-> spanning multiple lines
-> \end
-```
+**複数行入力:** `\` + Enter、Option+Enter(macOS)、Shift+Enter、または Ctrl+J で改行する。`\end` のような終端記号はない。
### 設定
@@ -3104,14 +3077,8 @@ User: \
```json
{
- "planning": {
- "autoEnter": true,
- "requireApproval": true
- },
- "extendedThinking": {
- "enabled": true,
- "showThinkingProcess": true
- },
+ "alwaysThinkingEnabled": true,
+ "showThinkingSummaries": true,
"permissions": {
"defaultMode": "default"
}
@@ -3152,9 +3119,16 @@ Claude Code は推論努力を調整可能な 3 モデルをサポートする
*収録機能:フック、チェックポイント、プラニングモード、拡張思考、バックグラウンドタスク、権限モード(6 種)、ヘッドレスモード、セッション管理、Auto Memory、Agent Teams、定期タスク、Chrome 連携、Channels、音声入力、同梱スキル*
---
-**最終更新:** 2026 年 10 月 15 日
-**Claude Code バージョン:** 2.1.300
+**最終更新:** 2026 年 10 月 18 日
+**Claude Code バージョン:** 2.1.302
**出典:**
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/create
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/interactive-mode
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/hooks
diff --git a/ja/resources.md b/ja/resources.md
index b35bfcd..11da6b4 100644
--- a/ja/resources.md
+++ b/ja/resources.md
@@ -239,10 +239,10 @@ graph TD
| 機能 | 説明 | 詳細 |
|---------|-------------|------------|
| **Auto Memory** | Claude がセッションをまたいで好みを自動的に学習・記憶する | [メモリガイド](02-memory/) |
-| **Remote Control** | 外部ツールやスクリプトから Claude Code セッションをプログラム的に制御 | [高度な機能](09-advanced-features/) |
+| **Remote Control** | ローカルの Claude Code セッションをスマートフォン、ブラウザ、または Claude アプリから継続 | [高度な機能](09-advanced-features/) |
| **Web Sessions** | リモート開発のためのブラウザ経由の Claude Code アクセス | [CLI リファレンス](10-cli/) |
| **Desktop App** | UI を強化した Claude Code のネイティブデスクトップアプリ | [Claude Code Docs](https://code.claude.com/docs/en/desktop) |
-| **Extended Thinking** | `Alt+T`/`Option+T` または `MAX_THINKING_TOKENS` 環境変数による深い推論の切り替え | [高度な機能](09-advanced-features/) |
+| **Extended Thinking** | `Alt+T`/`Option+T` による深い推論の切り替え。Opus 4.7 以降、Sonnet 5 以降、Haiku 5.5、Fable は常にアダプティブ推論を使うため、`MAX_THINKING_TOKENS` による固定予算は適用されない(深さは `/effort` で調整) | [高度な機能](09-advanced-features/) |
| **Permission Modes** | きめ細かい制御:default、acceptEdits、plan、auto、dontAsk、bypassPermissions | [高度な機能](09-advanced-features/) |
| **7-Tier Memory** | Managed Policy、Project、Project Rules、User、User Rules、Local、Auto Memory | [メモリガイド](02-memory/) |
| **Hook Events** | 33 イベント:PreToolUse、PostToolUse、PostToolUseFailure、Stop、StopFailure、SubagentStart、SubagentStop、Notification、Elicitation など | [フックガイド](06-hooks/) |
@@ -253,12 +253,13 @@ graph TD
| **Monitor Tool** | バックグラウンドコマンドの stdout ストリームを監視し、ポーリングではなくイベントに反応する(v2.1.98+) | [高度な機能](09-advanced-features/) |
---
-**Last Updated**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**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
+- https://code.claude.com/docs/en/remote-control
**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 980745d..070784b 100644
--- a/resources.md
+++ b/resources.md
@@ -24,6 +24,7 @@
| Auto Mode | Automatic permission management | [code.claude.com/docs/en/permissions](https://code.claude.com/docs/en/permissions) |
| Channels | Multi-channel communication | [code.claude.com/docs/en/channels](https://code.claude.com/docs/en/channels) |
| Voice Dictation | Voice input for Claude Code | [code.claude.com/docs/en/voice-dictation](https://code.claude.com/docs/en/voice-dictation) |
+| Code Review | Managed pull-request reviews through the Claude GitHub App (Team and Enterprise) | [code.claude.com/docs/en/code-review](https://code.claude.com/docs/en/code-review) |
## Anthropic Engineering Blog
@@ -235,10 +236,10 @@ These steps capture the core recommendations for smooth workflows with Claude Co
| Feature | Description | Learn More |
|---------|-------------|------------|
| **Auto Memory** | Claude automatically learns and remembers your preferences across sessions | [Memory Guide](02-memory/) |
-| **Remote Control** | Programmatically control Claude Code sessions from external tools and scripts | [Advanced Features](09-advanced-features/) |
+| **Remote Control** | Continue a local Claude Code session from your phone, browser or the Claude app | [Advanced Features](09-advanced-features/) |
| **Web Sessions** | Access Claude Code through browser-based interfaces for remote development | [CLI Reference](10-cli/) |
| **Desktop App** | Native desktop application for Claude Code with enhanced UI | [Claude Code Docs](https://code.claude.com/docs/en/desktop) |
-| **Extended Thinking** | Deep reasoning toggle via `Alt+T`/`Option+T` or `MAX_THINKING_TOKENS` env var | [Advanced Features](09-advanced-features/) |
+| **Extended Thinking** | Deep reasoning toggle via `Alt+T`/`Option+T`; Opus 4.7+, Sonnet 5+, Haiku 5.5 and Fable always use adaptive reasoning, so a fixed `MAX_THINKING_TOKENS` budget does not apply (control depth with `/effort`) | [Advanced Features](09-advanced-features/) |
| **Permission Modes** | Fine-grained control: manual (formerly default), acceptEdits, plan, auto, dontAsk, bypassPermissions | [Advanced Features](09-advanced-features/) |
| **7-Tier Memory** | Managed Policy, Project, Project Rules, User, User Rules, Local, Auto Memory | [Memory Guide](02-memory/) |
| **Hook Events** | 33 events: PreToolUse, PostToolUse, PostToolUseFailure, Stop, StopFailure, SubagentStart, SubagentStop, Notification, Elicitation, and more | [Hooks Guide](06-hooks/) |
@@ -252,8 +253,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**: October 15, 2026
-**Claude Code Version**: 2.1.300
+**Last Updated**: October 18, 2026
+**Claude Code Version**: 2.1.302
**Sources**:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/changelog
@@ -263,4 +264,6 @@ These steps capture the core recommendations for smooth workflows with Claude Co
- 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
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/code-review
**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 b92a03b..b88208e 100644
--- a/uk/01-slash-commands/README.md
+++ b/uk/01-slash-commands/README.md
@@ -46,7 +46,7 @@
| `/export [filename]` | Експортувати розмову у файл або буфер |
| `/extra-usage` | Налаштування додаткового використання для лімітів |
| `/fast [on\|off]` | Перемкнути швидкий режим |
-| `/feedback` | Надіслати відгук (аліас: `/bug`) |
+| `/feedback` | Надіслати відгук |
| `/help` | Показати довідку |
| `/hooks` | Переглянути конфігурації хуків |
| `/ide` | Управління IDE-інтеграціями |
@@ -100,7 +100,7 @@
| `/batch <instruction>` | Оркестрація масштабних паралельних змін через worktrees |
| `/claude-api` | Завантажити довідник Claude API для мови проекту |
| `/debug [description]` | Увімкнути налагоджувальне логування |
-| `/loop [interval] <prompt>` | Запускати промпт повторно за інтервалом |
+| `/loop [interval] [prompt]` | Запускати промпт повторно за інтервалом |
| `/simplify [focus]` | Перевірити змінені файли на якість коду |
### Застарілі команди
@@ -196,7 +196,7 @@ description: Що робить ця команда і коли її викори
| Поле | Призначення | За замовчуванням |
|------|------------|-----------------|
| `name` | Ім'я команди (стає `/name`) | Ім'я каталогу |
-| `description` | Короткий опис (допомагає Claude знати коли використовувати) | Перший абзац |
+| `description` | Короткий опис (допомагає Claude знати коли використовувати) | Перший непорожній рядок |
| `argument-hint` | Очікувані аргументи для автодоповнення | Немає |
| `allowed-tools` | Інструменти без запиту дозволу | Успадковується |
| `model` | Конкретна модель для використання | Успадковується |
@@ -580,8 +580,8 @@ Deploy the application to production:
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/output-styles
@@ -590,6 +590,7 @@ Deploy the application to production:
- 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
+- https://code.claude.com/docs/en/skills
**Сумісні моделі**: 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 e70a910..041a0ac 100644
--- a/uk/02-memory/README.md
+++ b/uk/02-memory/README.md
@@ -105,7 +105,7 @@ Remember that we always use TypeScript strict mode in this project.
Please add to memory: prefer async/await over promise chains.
```
-Claude оновить відповідний файл CLAUDE.md на основі вашого запиту.
+Якщо попросити Claude щось запам'ятати, це збережеться в auto memory. Щоб змінити CLAUDE.md, скажіть «додай це до CLAUDE.md» або відредагуйте файл самостійно через `/memory`.
**Історична довідка** (більше не працює):
@@ -282,13 +282,13 @@ graph TD
// В ~/.claude/settings.json або .claude/settings.json
{
"claudeMdExcludes": [
- "packages/legacy-app/CLAUDE.md",
- "vendors/**/CLAUDE.md"
+ "**/packages/legacy-app/CLAUDE.md",
+ "**/vendors/**/CLAUDE.md"
]
}
```
-Патерни зіставляються зі шляхами відносно кореня проєкту. Це особливо корисно для:
+Патерни зіставляються з абсолютними шляхами файлів за синтаксисом glob, тому починайте патерни для репозиторію з `**/`. Це особливо корисно для:
- Монорепозиторіїв з багатьма підпроєктами, де релевантні лише деякі
- Репозиторіїв із вендорними або сторонніми файлами CLAUDE.md
@@ -396,10 +396,10 @@ sequenceDiagram
participant Editor as File System
participant Memory as CLAUDE.md
- User->>Claude: "Remember: use async/await"
+ User->>Claude: "Add async/await rule to CLAUDE.md"
Claude->>User: "Which memory file?"
User->>Claude: "Project memory"
- Claude->>Editor: Open ~/.claude/settings.json
+ Claude->>Editor: Open ./CLAUDE.md
Claude->>Memory: Write to ./CLAUDE.md
Memory-->>Claude: File saved
Claude->>Claude: Load updated memory
@@ -408,15 +408,15 @@ sequenceDiagram
## Auto Memory
-Auto memory — це постійний каталог, куди Claude автоматично записує висновки, патерни та інсайти під час роботи з вашим проєктом. На відміну від файлів CLAUDE.md, які ви пишете та підтримуєте вручну, auto memory записується самим Claude під час сесій.
+Auto memory — це постійний каталог, куди Claude автоматично зберігає типізовані нотатки (`user`, `feedback`, `project`, `reference`) під час роботи з вашим проєктом. Claude пропускає все, що можна вивести з кодової бази, як-от архітектуру, шляхи до файлів або виправлення під час налагодження. На відміну від файлів CLAUDE.md, які ви пишете та підтримуєте вручну, auto memory записується самим Claude під час сесій.
### Як працює Auto Memory
- **Розташування**: `~/.claude/projects/<project>/memory/`
- **Точка входу**: `MEMORY.md` — головний файл у каталозі auto memory
-- **Тематичні файли**: додаткові файли для конкретних тем (наприклад, `debugging.md`, `api-conventions.md`)
+- **Тематичні файли**: необов'язкові додаткові файли, по одному на кожен запис пам'яті (наприклад, `prefers-pnpm.md`, `release-checklist.md`)
- **Поведінка завантаження**: перші 200 рядків `MEMORY.md` (або перші 25 КБ — що менше) завантажуються в контекст на початку сесії. Тематичні файли завантажуються за потребою, не при запуску.
-- **Читання/запис**: Claude читає та записує файли пам'яті під час сесій, виявляючи патерни та знання, специфічні для проєкту
+- **Читання/запис**: Claude читає та записує файли пам'яті під час сесій, дізнаючись ваші вподобання, відгуки та контекст проєкту
### Архітектура Auto Memory
@@ -424,11 +424,11 @@ Auto memory — це постійний каталог, куди Claude авто
graph TD
A["Claude Session Starts"] --> B["Load MEMORY.md<br/>(first 200 lines / 25KB)"]
B --> C["Session Active"]
- C --> D["Claude discovers<br/>patterns & insights"]
+ C --> D["Claude learns<br/>preferences & feedback"]
D --> E{"Write to<br/>auto memory"}
E -->|General notes| F["MEMORY.md"]
- E -->|Topic-specific| G["debugging.md"]
- E -->|Topic-specific| H["api-conventions.md"]
+ E -->|Topic-specific| G["prefers-pnpm.md"]
+ E -->|Topic-specific| H["release-checklist.md"]
C --> I["On-demand load<br/>topic files"]
I --> C
@@ -448,9 +448,9 @@ graph TD
```
~/.claude/projects/<project>/memory/
├── MEMORY.md # Точка входу (перші 200 рядків / 25 КБ завантажуються при запуску)
-├── debugging.md # Тематичний файл (завантажується за потребою)
-├── api-conventions.md # Тематичний файл (завантажується за потребою)
-└── testing-patterns.md # Тематичний файл (завантажується за потребою)
+├── prefers-pnpm.md # Тематичний файл (завантажується за потребою)
+├── release-checklist.md # Тематичний файл (завантажується за потребою)
+└── team-contacts.md # Тематичний файл (завантажується за потребою)
```
### Вимога до версії
@@ -466,13 +466,13 @@ npm install -g @anthropic-ai/claude-code@latest
За замовчуванням auto memory зберігається в `~/.claude/projects/<project>/memory/`. Ви можете змінити це розташування за допомогою налаштування `autoMemoryDirectory` (доступне з **v2.1.74**):
```jsonc
-// В ~/.claude/settings.json або .claude/settings.local.json (тільки налаштування користувача/локальні)
+// У будь-якому файлі налаштувань: користувача, проєкту, локальному або managed policy
{
"autoMemoryDirectory": "/path/to/custom/memory/directory"
}
```
-> **Примітка**: `autoMemoryDirectory` можна встановити лише в налаштуваннях рівня користувача (`~/.claude/settings.json`) або локальних налаштуваннях (`.claude/settings.local.json`), а не в налаштуваннях проєкту чи managed policy.
+> **Примітка**: `autoMemoryDirectory` зчитується з будь-якої області налаштувань: користувача, проєкту, локальної, managed policy або `--settings`. Значення має бути абсолютним шляхом або починатися з `~/`.
Це корисно, коли ви хочете:
@@ -777,12 +777,12 @@ Claude не зберіг правило, бо у мене ніде не було
### Приклад 4: Оновлення пам'яті під час сесії
-Ви можете додавати нові правила до пам'яті під час активної сесії Claude Code. Є два способи це зробити:
+Ви можете додавати нові правила до CLAUDE.md під час активної сесії Claude Code (прохання *запам'ятати* щось зберігає це в auto memory, а не в CLAUDE.md). Є два способи це зробити:
#### Метод 1: Прямий запит
```markdown
-User: Remember that I prefer using React hooks instead of class components
+User: Add this to CLAUDE.md: I prefer using React hooks instead of class components
for all new components.
Claude: I'm adding that to your memory. Which memory file should this go in?
@@ -1159,12 +1159,14 @@ Claude запропонує обрати, який файл пам'яті оно
- [Офіційна документація пам'яті](https://code.claude.com/docs/en/memory) — документація Anthropic
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- 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
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/claude-directory
**Сумісні моделі**: 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 2221adc..3d7eda5 100644
--- a/uk/03-skills/README.md
+++ b/uk/03-skills/README.md
@@ -139,7 +139,7 @@ Show concrete examples of using this Skill.
### Рекомендовані поля
-- **description** (рекомендовано): що навичка робить І коли її використовувати. Якщо поле пропущено, Claude Code бере перший абзац markdown-вмісту. Об'єднаний текст `description` + `when_to_use` обрізається до **1 536 символів** у переліку навичок (налаштовується через `skillListingMaxDescChars`). Саме за цим текстом Claude визначає, коли активувати навичку.
+- **description** (рекомендовано): що навичка робить І коли її використовувати. Якщо поле пропущено, Claude Code бере перший непорожній рядок markdown-вмісту. Об'єднаний текст `description` + `when_to_use` обрізається до **1 536 символів** у переліку навичок (налаштовується через `skillListingMaxDescChars`). Саме за цим текстом Claude визначає, коли активувати навичку.
- **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`.
@@ -768,7 +768,7 @@ Claude Code постачається з кількома вбудованими
| `/simplify` | Перевірка змінених файлів на повторне використання, якість та ефективність; запускає 3 паралельних агенти рев'ю |
| `/batch <instruction>` | Оркестрація масштабних паралельних змін по кодовій базі з використанням git worktrees |
| `/debug [description]` | Усунення несправностей поточної сесії через читання журналу налагодження |
-| `/loop [interval] <prompt>` | Циклічне виконання промпта з інтервалом (наприклад, `/loop 5m check the deploy`) |
+| `/loop [interval] [prompt]` | Циклічне виконання промпта з інтервалом (наприклад, `/loop 5m check the deploy`) |
| `/claude-api` | Завантаження довідника Claude API/SDK; автоактивується при імпортах `anthropic`/`@anthropic-ai/sdk` |
Ці навички доступні одразу і не потребують встановлення чи конфігурації. Вони використовують той самий формат SKILL.md, що й власні навички.
@@ -815,8 +815,8 @@ chmod +x ~/.claude/skills/my-skill/scripts/*.py
- [Посібник хуків](../06-hooks/) — автоматизація за подіями
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/settings-reference
@@ -827,4 +827,5 @@ chmod +x ~/.claude/skills/my-skill/scripts/*.py
- 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
+- https://code.claude.com/docs/en/commands
**Сумісні моделі**: 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 023b614..b4c86fc 100644
--- a/uk/03-skills/claude-md/SKILL.md
+++ b/uk/03-skills/claude-md/SKILL.md
@@ -93,7 +93,7 @@ For detailed build instructions, refer to `agent_docs/building_the_project.md`
При створенні або оновленні CLAUDE.md:
-1. **Цільова довжина**: Менше 300 рядків (ідеально — менше 100)
+1. **Цільова довжина**: Менше 200 рядків
2. **Без правил стилю**: Видалити будь-які інструкції лінтингу/форматування
3. **Без інструкцій для конкретних завдань**: Перемістити до окремих файлів
4. **Без фрагментів коду**: Використовувати посилання на файли замість цього
@@ -150,7 +150,7 @@ For detailed build instructions, refer to `agent_docs/building_the_project.md`
Перед фіналізацією перевірте:
-- [ ] Менше 300 рядків (бажано менше 100)
+- [ ] Менше 200 рядків
- [ ] Кожен рядок застосовний до ВСІХ сесій
- [ ] Без правил стилю/форматування
- [ ] Без фрагментів коду (використані посилання на файли)
@@ -217,7 +217,7 @@ AGENTS.md — це міжінструментальний файл контек
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/memory
diff --git a/uk/04-subagents/README.md b/uk/04-subagents/README.md
index 8323385..d426d7f 100644
--- a/uk/04-subagents/README.md
+++ b/uk/04-subagents/README.md
@@ -73,10 +73,11 @@
| Пріоритет | Тип | Розташування | Область дії |
|-----------|-----|-------------|-------------|
-| 1 (найвищий) | **CLI-визначені** | Через прапорець `--agents` (JSON) | Лише сесія |
-| 2 | **Субагенти проєкту** | `.claude/agents/` | Поточний проєкт |
-| 3 | **Субагенти користувача** | `~/.claude/agents/` | Усі проєкти |
-| 4 (найнижчий) | **Агенти плагінів** | Каталог `agents/` плагіна | Через плагіни |
+| 1 (найвищий) | **Керовані (managed)** | Керовані налаштування | Уся організація |
+| 2 | **CLI-визначені** | Через прапорець `--agents` (JSON) | Лише сесія |
+| 3 | **Субагенти проєкту** | `.claude/agents/` | Поточний проєкт |
+| 4 | **Субагенти користувача** | `~/.claude/agents/` | Усі проєкти |
+| 5 (найнижчий) | **Агенти плагінів** | Каталог `agents/` плагіна | Через плагіни |
Коли існують дублікати імен, джерела з вищим пріоритетом мають перевагу.
@@ -123,7 +124,7 @@ to solving problems.
|------|-------------|------|
| `name` | Так | Унікальний ідентифікатор (малі літери та дефіси) |
| `description` | Так | Опис призначення природною мовою. Включіть "use PROACTIVELY" для заохочення автоматичного виклику |
-| `tools` | Ні | Список інструментів через кому. Пропустіть для успадкування всіх. Підтримує синтаксис `Agent(agent_name)` для обмеження створюваних субагентів. MCP: `mcp__<server>__*` надає доступ до всього сервера (v2.1.299+: збігається лише з точною назвою цього сервера). |
+| `tools` | Ні | Список інструментів через кому. Пропустіть для успадкування всіх. Підтримує синтаксис `Agent(agent_name)` для обмеження створюваних субагентів, коли агент працює як головний потік через `claude --agent`; усередині субагента список типів ігнорується. MCP: `mcp__<server>__*` надає доступ до всього сервера (v2.1.299+: збігається лише з точною назвою цього сервера). |
| `disallowedTools` | Ні | Список заборонених інструментів через кому |
| `model` | Ні | Модель: `sonnet`, `opus`, `haiku`, повний ID моделі або `inherit`. За замовч. — налаштована модель субагента |
| `permissionMode` | Ні | `default` (режим Manual; `manual` приймається як псевдонім з v2.1.200), `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, `auto`. Коли батьківська сесія працює в `bypassPermissions`, `acceptEdits` або `auto`, `permissionMode` субагента ігнорується |
@@ -197,12 +198,13 @@ claude --agents '{
**Пріоритет визначень агентів:**
Визначення агентів завантажуються з таким пріоритетом (перший збіг виграє):
-1. **CLI-визначені** — прапорець `--agents` (лише сесія, JSON)
-2. **Рівень проєкту** — `.claude/agents/` (поточний проєкт)
-3. **Рівень користувача** — `~/.claude/agents/` (усі проєкти)
-4. **Рівень плагіна** — каталог `agents/` плагіна
+1. **Керовані (managed)** — керовані налаштування (уся організація)
+2. **CLI-визначені** — прапорець `--agents` (лише сесія, JSON)
+3. **Рівень проєкту** — `.claude/agents/` (поточний проєкт)
+4. **Рівень користувача** — `~/.claude/agents/` (усі проєкти)
+5. **Рівень плагіна** — каталог `agents/` плагіна
-Це дозволяє CLI-визначенням перевизначати всі інші джерела для однієї сесії.
+Це дозволяє CLI-визначенням перевизначати визначення проєкту, користувача та плагінів для однієї сесії; керовані визначення все одно мають перевагу.
---
@@ -433,6 +435,7 @@ claude --agent code-reviewer
```yaml
---
name: researcher
+description: Research assistant that keeps findings in persistent memory across sessions
memory: user
---
@@ -529,7 +532,7 @@ graph TB
## Обмеження створюваних субагентів
-Ви можете контролювати, яких субагентів може створювати конкретний субагент, використовуючи синтаксис `Agent(agent_type)` у полі `tools`. Це дозволяє створити список дозволених субагентів для делегування.
+Ви можете контролювати, яких субагентів може створювати агент, що працює як головний потік через `claude --agent`, використовуючи синтаксис `Agent(agent_type)` у полі `tools`. Це дозволяє створити список дозволених субагентів для делегування. У визначенні субагента будь-який список типів у дужках ігнорується.
> **Примітка**: У v2.1.63 інструмент `Task` було перейменовано на `Agent`. Існуючі посилання `Task(...)` все ще працюють як псевдоніми.
@@ -546,7 +549,7 @@ You are a coordinator agent. You can delegate work to the "worker" and
"researcher" subagents only. Use Read and Bash for your own exploration.
```
-У цьому прикладі субагент `coordinator` може створювати лише субагентів `worker` та `researcher`. Він не може створювати інших субагентів, навіть якщо вони визначені деінде.
+У цьому прикладі, коли ви запускаєте `claude --agent coordinator`, головний потік може створювати лише субагентів `worker` та `researcher`. Він не може створювати інших субагентів, навіть якщо вони визначені деінде. Якщо `coordinator` працює як субагент, список типів ігнорується.
---
@@ -637,7 +640,7 @@ claude --teammate-mode tmux
### Навігація
-Використовуйте `Shift+Down` для навігації між тіммейтами в режимі split-pane.
+Щоб переходити між тіммейтами, використовуйте стрілки вгору/вниз на панелі агентів і натисніть Enter (режим in-process) або клацніть на панель тіммейта (режим split-pane).
### Конфігурація команди
@@ -817,7 +820,7 @@ graph TB
### Ключові поведінки
- **Без вкладеного створення** — субагенти не можуть створювати інших субагентів
-- **Фонові дозволи** — фонові субагенти автоматично відхиляють дозволи, що не були попередньо схвалені
+- **Фонові дозволи** — коли фоновому субагенту потрібен дозвіл, який не був попередньо схвалений, запит з'являється в головній сесії й називає субагента, який його робить
- **Переведення у фон** — натисніть `Ctrl+B` для переведення поточного завдання у фон
- **Транскрипти** — транскрипти субагентів зберігаються в `~/.claude/projects/{project}/{sessionId}/subagents/agent-{agentId}.jsonl`
- **Автокомпакція** — контекст субагента автоматично компактується при ~95% заповненості (перевизначити через змінну оточення `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`)
@@ -1129,8 +1132,8 @@ graph TD
- [Посібник хуків](../06-hooks/) — для автоматизації за подіями
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/commands
@@ -1140,4 +1143,7 @@ graph TD
- 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
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/changelog#2-1-302
**Сумісні моделі**: 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 8184992..e879e5a 100644
--- a/uk/05-mcp/README.md
+++ b/uk/05-mcp/README.md
@@ -230,7 +230,7 @@ sequenceDiagram
| `ENABLE_TOOL_SEARCH` | `true` | Усі інструменти MCP відкладаються |
| `ENABLE_TOOL_SEARCH` | `false` | Вимкнено; всі описи інструментів надсилаються повністю |
-> **Примітка:** Пошук інструментів потребує моделі з підтримкою блоків `tool_reference`: Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.5 та новіших моделей.
+> **Примітка:** Пошук інструментів потребує моделі з підтримкою блоків `tool_reference`: Claude Opus 4, Claude Sonnet 4, Claude Haiku 4.5 та новіших моделей (на Agent Platform від Google Cloud — Opus 4.5, Sonnet 4.5, Haiku 4.5 та новіших).
## Динамічне оновлення інструментів
@@ -293,7 +293,7 @@ MCP-сервери можуть надавати промпти, що відоб
```bash
# Рівень project — записує в .mcp.json, щоб конфігурацію бачила вся команда
-claude mcp add --scope project --transport http github https://api.github.com/mcp
+claude mcp add --scope project --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Рівень user — доступний у кожному проєкті
claude mcp add --scope user --transport stdio memory -- npx @modelcontextprotocol/server-memory
@@ -308,7 +308,10 @@ claude mcp add --scope user --transport stdio memory -- npx @modelcontextprotoco
"mcpServers": {
"github": {
"type": "http",
- "url": "https://api.github.com/mcp"
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
+ }
}
}
}
@@ -322,7 +325,7 @@ claude mcp add --scope user --transport stdio memory -- npx @modelcontextprotoco
```bash
# Додати HTTP-сервер
-claude mcp add --transport http github https://api.github.com/mcp
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Додати локальний stdio-сервер
claude mcp add --transport stdio database -- npx @company/db-server
@@ -371,10 +374,10 @@ claude mcp add-json events-server '{"type":"stdio","command":"npx","args":["@mod
{
"mcpServers": {
"github": {
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
@@ -423,9 +426,9 @@ Reviewers: @bob, @charlie
**Налаштування**:
```bash
-export GITHUB_TOKEN="your_github_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"
# Або додайте через CLI:
-claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
### Підстановка змінних оточення в конфігурації
@@ -467,10 +470,7 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
"mcpServers": {
"database": {
"command": "npx",
- "args": ["@modelcontextprotocol/server-database"],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
}
}
}
@@ -500,8 +500,8 @@ ORDER BY order_count DESC;
**Налаштування**:
```bash
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-# Або додайте через CLI:
-claude mcp add --transport stdio database -- npx @modelcontextprotocol/server-database
+claude mcp add --transport stdio database -- npx -y @bytebase/dbhub \
+ --dsn "$DATABASE_URL"
```
### Приклад 3: Мульти-MCP воркфлов
@@ -605,9 +605,10 @@ sequenceDiagram
```bash
# ~/.bashrc або ~/.zshrc
-export GITHUB_TOKEN="ghp_xxxxxxxxxxxxx"
+export GITHUB_PERSONAL_ACCESS_TOKEN="ghp_xxxxxxxxxxxxx"
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-export SLACK_TOKEN="xoxb-xxxxxxxxxxxxx"
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
```
Потім посилайтесь на них у конфігурації MCP:
@@ -615,7 +616,7 @@ export SLACK_TOKEN="xoxb-xxxxxxxxxxxxx"
```json
{
"env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
```
@@ -728,6 +729,8 @@ MCP-сервери можна визначати вбудовано у фрон
```yaml
---
+name: my-tool-agent
+description: Uses my-tool for specialized operations
mcpServers:
my-tool:
type: http
@@ -746,7 +749,7 @@ Claude Code встановлює ліміти на вивід інструмен
| Ліміт | Поріг | Поведінка |
|-------|-------|----------|
| **Попередження** | 10 000 токенів | Відображається попередження про великий вивід |
-| **Максимум за замовч.** | 25 000 токенів | Вивід обрізається за цим лімітом |
+| **Максимум за замовч.** | 25 000 токенів | Більший вивід зберігається у файл, а в розмову потрапляє шлях до файлу |
| **Збереження на диск** | 50 000 символів | Результати інструментів, що перевищують 50K символів, зберігаються на диск |
Максимальний ліміт виводу налаштовується через змінну оточення `MAX_MCP_OUTPUT_TOKENS`:
@@ -1019,7 +1022,7 @@ MCPorter доповнює підхід з виконанням коду, опи
1. **Додайте перший MCP-сервер** через CLI (приклад: GitHub):
```bash
-claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
Або створіть файл `.mcp.json` у корені проєкту:
@@ -1027,10 +1030,10 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
{
"mcpServers": {
"github": {
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
@@ -1039,7 +1042,7 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
2. **Встановіть змінні оточення:**
```bash
-export GITHUB_TOKEN="your_github_personal_access_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_personal_access_token"
```
3. **Протестуйте підключення:**
@@ -1062,7 +1065,7 @@ npm install -g @modelcontextprotocol/server-github
**Database MCP:**
```bash
-npm install -g @modelcontextprotocol/server-database
+npm install -g @bytebase/dbhub
```
**Filesystem MCP:**
@@ -1070,7 +1073,7 @@ npm install -g @modelcontextprotocol/server-database
npm install -g @modelcontextprotocol/server-filesystem
```
-**Slack MCP:**
+**Slack MCP (застарілий пакет):**
```bash
npm install -g @modelcontextprotocol/server-slack
```
@@ -1089,10 +1092,10 @@ npm install -g @modelcontextprotocol/server-github
### Помилка автентифікації
```bash
# Перевірте, чи встановлена змінна оточення
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
# Перевстановіть, якщо потрібно
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
# Перевірте дозволи токена
# Дозволи GitHub-токена: https://github.com/settings/tokens
@@ -1139,8 +1142,8 @@ export GITHUB_TOKEN="your_token"
- [Документація Claude API](https://docs.anthropic.com)
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/mcp#configure-tool-search
@@ -1149,4 +1152,5 @@ export GITHUB_TOKEN="your_token"
- 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
+- https://code.claude.com/docs/en/sub-agents
**Сумісні моделі**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
diff --git a/uk/05-mcp/database-mcp.json b/uk/05-mcp/database-mcp.json
index adaf255..7228f06 100644
--- a/uk/05-mcp/database-mcp.json
+++ b/uk/05-mcp/database-mcp.json
@@ -4,11 +4,11 @@
"type": "stdio",
"command": "npx",
"args": [
- "@modelcontextprotocol/server-database"
- ],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "-y",
+ "@bytebase/dbhub",
+ "--dsn",
+ "${DATABASE_URL}"
+ ]
}
}
}
diff --git a/uk/05-mcp/github-mcp.json b/uk/05-mcp/github-mcp.json
index 829fbb9..e2dafb8 100644
--- a/uk/05-mcp/github-mcp.json
+++ b/uk/05-mcp/github-mcp.json
@@ -1,13 +1,10 @@
{
"mcpServers": {
"github": {
- "type": "stdio",
- "command": "npx",
- "args": [
- "@modelcontextprotocol/server-github"
- ],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
diff --git a/uk/05-mcp/multi-mcp.json b/uk/05-mcp/multi-mcp.json
index 983a718..24f13bb 100644
--- a/uk/05-mcp/multi-mcp.json
+++ b/uk/05-mcp/multi-mcp.json
@@ -1,24 +1,21 @@
{
"mcpServers": {
"github": {
- "type": "stdio",
- "command": "npx",
- "args": [
- "@modelcontextprotocol/server-github"
- ],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
},
"database": {
"type": "stdio",
"command": "npx",
"args": [
- "@modelcontextprotocol/server-database"
- ],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "-y",
+ "@bytebase/dbhub",
+ "--dsn",
+ "${DATABASE_URL}"
+ ]
},
"slack": {
"type": "stdio",
@@ -27,7 +24,8 @@
"@modelcontextprotocol/server-slack"
],
"env": {
- "SLACK_TOKEN": "${SLACK_TOKEN}"
+ "SLACK_BOT_TOKEN": "${SLACK_BOT_TOKEN}",
+ "SLACK_TEAM_ID": "${SLACK_TEAM_ID}"
}
},
"filesystem": {
diff --git a/uk/06-hooks/README.md b/uk/06-hooks/README.md
index 7f886be..6e9c5a6 100644
--- a/uk/06-hooks/README.md
+++ b/uk/06-hooks/README.md
@@ -107,15 +107,17 @@ Claude Code підтримує чотири типи хуків:
> Додано у v2.1.63.
-Віддалені вебхук-ендпоінти, які отримують той самий JSON-вхід, що й command-хуки. HTTP-хуки надсилають POST JSON на URL і отримують JSON-відповідь. HTTP-хуки маршрутизуються через пісочницю (sandbox), коли вона увімкнена. Інтерполяція змінних оточення в URL вимагає явного списку `allowedEnvVars` з міркувань безпеки.
+Віддалені вебхук-ендпоінти, які отримують той самий JSON-вхід, що й command-хуки. HTTP-хуки надсилають POST JSON на URL і отримують JSON-відповідь. HTTP-хуки маршрутизуються через пісочницю (sandbox), коли вона увімкнена. Інтерполяція змінних оточення у значення заголовків вимагає явного списку `allowedEnvVars` з міркувань безпеки.
```json
{
"hooks": {
"PostToolUse": [{
- "type": "http",
- "url": "https://my-webhook.example.com/hook",
- "matcher": "Write"
+ "matcher": "Write",
+ "hooks": [{
+ "type": "http",
+ "url": "https://my-webhook.example.com/hook"
+ }]
}]
}
}
@@ -125,7 +127,7 @@ Claude Code підтримує чотири типи хуків:
- `"type": "http"` — ідентифікує як HTTP-хук
- `"url"` — URL ендпоінту вебхука
- Маршрутизується через sandbox, коли sandbox увімкнено
-- Вимагає явного списку `allowedEnvVars` для будь-якої інтерполяції змінних оточення в URL
+- Вимагає явного списку `allowedEnvVars` для будь-якої інтерполяції змінних оточення у значеннях `headers`
### MCP tool-хуки
@@ -177,7 +179,7 @@ LLM оцінює промпт і повертає структуроване р
> **Примітка**: Agent-хуки є експериментальними і можуть змінитися.
-> **Примітка**: Починаючи з v2.1.280, agent-хуки не запускаються на `PermissionRequest` — їхня відповідь ніколи не могла дозволити чи відхилити запит. Використовуйте там хук типу command, http, mcp_tool або prompt.
+> **Примітка**: Починаючи з v2.1.280, agent-хуки не запускаються на `PermissionRequest` — їхня відповідь ніколи не могла дозволити чи відхилити запит. Використовуйте там хук типу command або HTTP, що повертає об'єкт рішення (`ok: false` prompt-хука не діє на `PermissionRequest`).
**Ключові властивості:**
- `"type": "agent"` — ідентифікує як agent-хук
@@ -259,7 +261,7 @@ Claude Code підтримує **33 події хуків**:
- `"ask"` просить користувача підтвердити
- `"defer"` коректно завершує роботу, щоб інструмент можна було відновити пізніше; `permissionDecisionReason`, `updatedInput` та `additionalContext` для цього значення ігноруються
- Правила deny та ask обчислюються незалежно від того, що повертає хук. Якщо кілька хуків `PreToolUse` дають різні рішення, пріоритет такий: `deny` > `defer` > `ask` > `allow`
-- `permissionDecisionReason`: Пояснення рішення. Показується користувачеві (не Claude) для `"allow"` та `"ask"`; показується Claude для `"deny"`; ігнорується для `"defer"`
+- `permissionDecisionReason`: Пояснення рішення. Показується користувачеві (не Claude) для `"ask"`; показується Claude для `"deny"`; для `"allow"` та `"defer"` записується лише в журнал налагодження (debug log)
- `updatedInput`: Замінні вхідні дані інструмента (замінюють увесь вхідний об'єкт). З v2.1.300 вони перевіряються так само, як власні вхідні дані Claude — невідомі ключі відкидаються, а вхідні дані, які інструмент відхиляє, призводять до відмови у виклику.
### PostToolUse
@@ -497,7 +499,7 @@ hooks:
},
"tool_use_id": "toolu_01ABC123...",
"agent_id": "agent-abc123",
- "agent_type": "main",
+ "agent_type": "security-reviewer",
"worktree": "/path/to/worktree"
}
```
@@ -511,7 +513,7 @@ hooks:
| `cwd` | Поточний робочий каталог |
| `hook_event_name` | Назва події, що запустила хук |
| `agent_id` | Ідентифікатор агента, що запускає хук |
-| `agent_type` | Тип агента (`"main"`, назва типу субагента тощо) |
+| `agent_type` | Ім'я агента (наприклад, `"Explore"` або `"security-reviewer"`); присутнє лише тоді, коли сесія використовує `--agent` або хук спрацьовує всередині субагента |
| `worktree` | Шлях до git worktree, якщо агент працює в ньому |
### Коди виходу
@@ -520,7 +522,7 @@ hooks:
|-----------|----------|----------|
| **0** | Успіх | Продовжити, розібрати JSON stdout |
| **2** | Блокуюча помилка | Заблокувати операцію, stderr показується як помилка |
-| **Інші** | Неблокуюча помилка | Продовжити, stderr показується у verbose-режимі |
+| **Інші** | Неблокуюча помилка | Продовжити; сповіщення `<hook name> hook error` у транскрипті показує перший рядок stderr |
### JSON-вивід (stdout, код виходу 0)
@@ -579,13 +581,13 @@ hooks:
**Схема відповіді LLM:**
```json
{
- "decision": "approve",
- "reason": "All tasks completed successfully",
- "continue": false,
- "stopReason": "Task complete"
+ "ok": false,
+ "reason": "Tests were not run after the last edit"
}
```
+`ok: true` дозволяє дію; `reason` обов'язковий, коли `ok` дорівнює `false`.
+
## Приклади
### Приклад 1: Валідатор Bash-команд (PreToolUse)
@@ -1051,7 +1053,7 @@ MCP-інструменти використовують шаблон `mcp__<serv
### Примітки щодо безпеки
- **Потрібна довіра до робочого простору:** Команди виводу хуків `statusLine` та `fileSuggestion` тепер вимагають прийняття довіри до робочого простору перед набранням чинності.
-- **HTTP-хуки та змінні оточення:** HTTP-хуки вимагають явного списку `allowedEnvVars` для використання інтерполяції змінних оточення в URL. Це запобігає випадковому витоку чутливих змінних оточення на віддалені ендпоінти.
+- **HTTP-хуки та змінні оточення:** HTTP-хуки вимагають явного списку `allowedEnvVars` для використання інтерполяції змінних оточення у значеннях заголовків. Це запобігає випадковому витоку чутливих змінних оточення на віддалені ендпоінти.
- **Ієрархія керованих налаштувань:** Налаштування `disableAllHooks` тепер поважає ієрархію керованих налаштувань, тобто налаштування рівня організації можуть примусово вимкнути хуки, що не може бути перевизначено окремими користувачами.
### Найкращі практики
@@ -1165,7 +1167,7 @@ echo $?
| Аспект | Поведінка |
|--------|----------|
| **Таймаут** | 60 секунд за замовчуванням, налаштовується для кожної команди |
-| **Паралелізація** | Усі відповідні хуки запускаються паралельно |
+| **Паралелізація** | Усі відповідні хуки запускаються паралельно; починаючи з v2.1.302, одночасно виконується не більше 12 prompt- або agent-хуків однієї події, решта чекає своєї черги |
| **Дедуплікація** | Ідентичні команди хуків дедуплікуються |
| **Середовище** | Запускається в поточному каталозі з середовищем Claude Code |
@@ -1220,8 +1222,8 @@ chmod +x ~/.claude/hooks/*.sh
- **[Посібник з памʼяті](../02-memory/)** — конфігурація постійного контексту
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/plugins/manifest-reference#quoting-and-path-separators
diff --git a/uk/06-hooks/pre-commit.sh b/uk/06-hooks/pre-commit.sh
index 66d98a8..7976c55 100644
--- a/uk/06-hooks/pre-commit.sh
+++ b/uk/06-hooks/pre-commit.sh
@@ -8,6 +8,13 @@
# Any other non-zero value is a NON-blocking error — the commit would proceed.
# Source: https://code.claude.com/docs/en/hooks
+# Read the hook JSON from stdin; only run the tests for git commit commands
+INPUT=$(cat)
+COMMAND=$(echo "$INPUT" | sed -n 's/.*"command"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
+if ! echo "$COMMAND" | grep -q 'git commit'; then
+ exit 0
+fi
+
echo "🧪 Running tests before commit..."
# Check if package.json exists (Node.js project)
diff --git a/uk/06-hooks/validate-prompt.sh b/uk/06-hooks/validate-prompt.sh
index e0b9f21..a6f7758 100644
--- a/uk/06-hooks/validate-prompt.sh
+++ b/uk/06-hooks/validate-prompt.sh
@@ -44,7 +44,7 @@ fi
# Check for required context in certain operations
if echo "$PROMPT" | grep -qi "refactor"; then
if [ ! -d "tests" ] && [ ! -d "test" ]; then
- printf '{"additionalContext": "Warning: Refactoring without tests may be risky. Consider writing tests first."}'
+ printf '{"hookSpecificOutput": {"hookEventName": "UserPromptSubmit", "additionalContext": "Warning: Refactoring without tests may be risky. Consider writing tests first."}}'
fi
fi
diff --git a/uk/07-plugins/README.md b/uk/07-plugins/README.md
index 605d0da..3288294 100644
--- a/uk/07-plugins/README.md
+++ b/uk/07-plugins/README.md
@@ -47,7 +47,7 @@ sequenceDiagram
participant Hooks
participant Tools as Configured Tools
- User->>Claude: /plugin install pr-review
+ User->>Claude: claude --plugin-dir ./07-plugins/pr-review
Claude->>Plugin: Download plugin manifest
Plugin-->>Claude: Return plugin definition
Claude->>Install: Extract components
@@ -104,14 +104,16 @@ my-plugin/
│ ├── specialist-2.md
│ └── configs/
├── skills/ # Навички агентів з файлами SKILL.md
-│ ├── skill-1.md
-│ └── skill-2.md
+│ ├── skill-1/
+│ │ └── SKILL.md
+│ └── skill-2/
+│ └── SKILL.md
├── hooks/ # Обробники подій у hooks.json
│ └── hooks.json
├── .mcp.json # Конфігурації MCP-серверів
├── .lsp.json # Конфігурації LSP-серверів для інтелектуальної роботи з кодом
├── bin/ # Виконувані файли, додані до PATH інструменту Bash поки плагін увімкнено
-├── settings.json # Стандартні налаштування при увімкненні плагіна (наразі підтримується лише ключ `agent`)
+├── settings.json # Стандартні налаштування при увімкненні плагіна (діють лише ключі `agent` і `subagentStatusLine`)
├── templates/
│ └── issue-template.md
├── scripts/
@@ -205,7 +207,7 @@ my-plugin/
|--------|------|----------------------|---------------------|
| `pyright-lsp` | Python | `pyright-langserver` | `pip install pyright` |
| `typescript-lsp` | TypeScript/JavaScript | `typescript-language-server` | `npm install -g typescript-language-server typescript` |
-| `rust-lsp` | Rust | `rust-analyzer` | Встановлення через `rustup component add rust-analyzer` |
+| `rust-analyzer-lsp` | Rust | `rust-analyzer` | Встановлення через `rustup component add rust-analyzer` |
#### Можливості LSP
@@ -226,10 +228,14 @@ my-plugin/
"version": "1.0.0",
"userConfig": {
"apiKey": {
+ "type": "string",
+ "title": "API key",
"description": "API key for the service",
"sensitive": true
},
"region": {
+ "type": "string",
+ "title": "Region",
"description": "Deployment region",
"default": "us-east-1"
}
@@ -263,32 +269,37 @@ my-plugin/
## Інлайн-плагін через налаштування (`source: 'settings'`) (v2.1.80+)
-Плагіни можна визначати інлайн у файлах налаштувань як записи маркетплейсу з полем `source: 'settings'`. Це дозволяє вбудовувати визначення плагіна безпосередньо, без окремого репозиторію або маркетплейсу:
+Плагіни можна визначати інлайн у файлах налаштувань як записи маркетплейсу з полем `source: 'settings'`. Це дозволяє вбудовувати визначення плагіна безпосередньо, без окремого репозиторію або маркетплейсу. Оголосіть його в `extraKnownMarketplaces.<name>.source`; `name` має збігатися з ключем маркетплейсу, а його плагіни мають посилатися на зовнішні джерела, як-от GitHub або npm (відносні шляхи відхиляються):
```json
{
- "pluginMarketplaces": [
- {
- "name": "inline-tools",
- "source": "settings",
- "plugins": [
- {
- "name": "quick-lint",
- "source": "./local-plugins/quick-lint"
- }
- ]
+ "extraKnownMarketplaces": {
+ "inline-tools": {
+ "source": {
+ "source": "settings",
+ "name": "inline-tools",
+ "plugins": [
+ {
+ "name": "quick-lint",
+ "source": {
+ "source": "github",
+ "repo": "my-org/quick-lint"
+ }
+ }
+ ]
+ }
}
- ]
+ }
}
```
## Налаштування плагіна
-Плагіни можуть постачатися з файлом `settings.json` для стандартної конфігурації. Наразі підтримується ключ `agent`, який встановлює основного агента потоку для плагіна:
+Плагіни можуть постачатися з файлом `settings.json` для стандартної конфігурації. Діють два ключі, `agent` і `subagentStatusLine`; усі інші ключі відкидаються. `agent` приймає імʼя одного з агентів плагіна і запускає його як основний потік:
```json
{
- "agent": "agents/specialist-1.md"
+ "agent": "specialist-1"
}
```
@@ -362,7 +373,7 @@ Specializes in finding security vulnerabilities:
**Встановлення:**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# Результат:
# ✅ 3 слеш-команди встановлено
@@ -462,9 +473,9 @@ graph TB
|-------------|------|
| `extraKnownMarketplaces` | Додати додаткові джерела маркетплейсу крім стандартних |
| `strictKnownMarketplaces` | Контролювати, які маркетплейси дозволено додавати користувачам |
-| `deniedPlugins` | Блок-список для запобігання встановленню конкретних плагінів (керований адміністратором) |
+| `enabledPlugins` (значення `false`) | Блокування конкретного плагіна: `"enabledPlugins": { "<plugin>@<marketplace>": false }` у керованих налаштуваннях блокує встановлення в усіх областях і приховує плагін у маркетплейсі |
-> **Дружніші аліаси (v2.1.232)**: `additionalMarketplaces` приймається як аліас для `extraKnownMarketplaces`, а `allowedMarketplaces` — для `strictKnownMarketplaces`. **Джерело — changelog**: changelog v2.1.232 оголошує їх, але офіційна довідка з налаштувань поки не містить жодної з цих назв. Канонічні ключі безпечно використовувати й далі.
+> **Дружніші аліаси (v2.1.232)**: `additionalMarketplaces` приймається як аліас для `extraKnownMarketplaces`, а `allowedMarketplaces` — для `strictKnownMarketplaces`. Офіційна довідка з налаштувань наводить обидва в розділі [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases). Старіші версії ігнорують аліаси, тож канонічні ключі безпечно використовувати й далі.
> **Шаблони власника (v2.1.223+)**: запис `"owner/*"` дозволяє або блокує всі репозиторії маркетплейсів під одним власником GitHub. **Приймається лише у `strictKnownMarketplaces` та `blockedMarketplaces`.** Скрізь інде, де зʼявляється джерело `github` — включно з `extraKnownMarketplaces` і `/plugin marketplace add` — значення `repo` має вказувати на один репозиторій.
@@ -481,14 +492,14 @@ graph TB
```json
{
"name": "my-team-plugins",
- "owner": "my-org",
+ "owner": { "name": "my-org" },
"plugins": [
{
"name": "code-standards",
"source": "./plugins/code-standards",
"description": "Enforce team coding standards",
"version": "1.2.0",
- "author": "platform-team"
+ "author": { "name": "platform-team" }
},
{
"name": "deploy-helper",
@@ -506,13 +517,13 @@ graph TB
| Поле | Обовʼязкове | Опис |
|------|-------------|------|
| `name` | Так | Назва маркетплейсу в kebab-case |
-| `owner` | Так | Організація або користувач, що підтримує маркетплейс |
+| `owner` | Так | Організація або користувач, що підтримує маркетплейс: обʼєкт з обовʼязковим `name` (`email`, `url` необовʼязкові) |
| `plugins` | Так | Масив записів плагінів |
| `plugins[].name` | Так | Назва плагіна (kebab-case) |
| `plugins[].source` | Так | Джерело плагіна (рядок шляху або обʼєкт джерела) |
| `plugins[].description` | Ні | Короткий опис плагіна |
| `plugins[].version` | Ні | Рядок семантичної версії |
-| `plugins[].author` | Ні | Імʼя автора плагіна |
+| `plugins[].author` | Ні | Автор плагіна: обʼєкт з обовʼязковим `name` (`email`, `url` необовʼязкові) |
### Типи джерел плагінів
@@ -525,7 +536,6 @@ graph TB
| **Git URL** | `{ "source": "url", "url": "..." }` | `{ "source": "url", "url": "https://git.internal/plugin.git" }` |
| **Підкаталог Git** | `{ "source": "git-subdir", "url": "...", "path": "..." }` | `{ "source": "git-subdir", "url": "https://github.com/org/monorepo.git", "path": "packages/plugin" }` |
| **npm** | `{ "source": "npm", "package": "..." }` | `{ "source": "npm", "package": "@acme/claude-plugin", "version": "^2.0" }` |
-| **pip** | `{ "source": "pip", "package": "..." }` | `{ "source": "pip", "package": "claude-data-plugin", "version": ">=1.0" }` |
Джерела GitHub та git підтримують необовʼязкові поля `ref` (гілка/тег) та `sha` (хеш коміту) для фіксації версій.
@@ -544,7 +554,7 @@ graph TB
**Приватні репозиторії**: Підтримуються через git credential helpers або токени оточення. Користувачі повинні мати доступ на читання до репозиторію.
-**Подання до офіційного маркетплейсу**: Подавайте плагіни до курованого Anthropic маркетплейсу для ширшої дистрибуції через [claude.ai/settings/plugins/submit](https://claude.ai/settings/plugins/submit) або [platform.claude.com/plugins/submit](https://platform.claude.com/plugins/submit).
+**Подання до каталогу Anthropic**: Подавайте плагіни до каталогу Anthropic для ширшої дистрибуції через портал розробника [claude.ai/directory/manage](https://claude.ai/directory/manage). Офіційний маркетплейс Anthropic `claude-plugins-official` не приймає подання через цей портал.
### Суворий режим (strict mode)
@@ -561,13 +571,13 @@ graph TB
|----------|-------|
| Не встановлено | Без обмежень — користувачі можуть додавати будь-який маркетплейс |
| Порожній масив `[]` | Блокування — маркетплейси заборонені |
-| Масив патернів | Білий список — дозволено лише маркетплейси, що відповідають патернам |
+| Масив обʼєктів джерел | Білий список — дозволено лише маркетплейси, що відповідають записам |
```json
{
"strictKnownMarketplaces": [
- "my-org/*",
- "github.com/trusted-vendor/*"
+ { "source": "github", "repo": "my-org/*" },
+ { "source": "github", "repo": "trusted-vendor/*" }
]
}
```
@@ -709,12 +719,12 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
| Налаштування | Опис |
|-------------|------|
| `enabledPlugins` | Білий список плагінів, увімкнених за замовчуванням |
-| `deniedPlugins` | Блок-список плагінів, які не можна встановити |
+| `enabledPlugins` (значення `false`) | Блокування конкретного плагіна: `"enabledPlugins": { "<plugin>@<marketplace>": false }` у керованих налаштуваннях блокує встановлення в усіх областях і приховує плагін у маркетплейсі |
| `extraKnownMarketplaces` | Додаткові джерела маркетплейсу крім стандартних |
| `strictKnownMarketplaces` | Обмеження маркетплейсів, які дозволено додавати користувачам |
-| `allowedChannelPlugins` | Контроль дозволених плагінів для кожного каналу випуску |
+| `allowedChannelPlugins` | Білий список плагінів [каналів](https://code.claude.com/docs/en/channels), яким дозволено надсилати повідомлення в сесії (кожен запис містить `marketplace` і `plugin`) |
-> **Дружніші аліаси (v2.1.232)**: `additionalMarketplaces` приймається як аліас для `extraKnownMarketplaces`, а `allowedMarketplaces` — для `strictKnownMarketplaces`. **Джерело — changelog**: changelog v2.1.232 оголошує їх, але офіційна довідка з налаштувань поки не містить жодної з цих назв. Канонічні ключі безпечно використовувати й далі.
+> **Дружніші аліаси (v2.1.232)**: `additionalMarketplaces` приймається як аліас для `extraKnownMarketplaces`, а `allowedMarketplaces` — для `strictKnownMarketplaces`. Офіційна довідка з налаштувань наводить обидва в розділі [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases). Старіші версії ігнорують аліаси, тож канонічні ключі безпечно використовувати й далі.
> **Шаблони власника (v2.1.223+)**: запис `"owner/*"` дозволяє або блокує всі репозиторії маркетплейсів під одним власником GitHub. **Приймається лише у `strictKnownMarketplaces` та `blockedMarketplaces`.** Скрізь інде, де зʼявляється джерело `github` — включно з `extraKnownMarketplaces` і `/plugin marketplace add` — значення `repo` має вказувати на один репозиторій.
@@ -722,13 +732,14 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
## Безпека плагінів
-Субагенти плагінів працюють в обмеженій пісочниці (sandbox). Наступні ключі frontmatter **заборонені** у визначеннях субагентів плагінів:
+Субагенти плагінів **ігнорують** наступні ключі frontmatter (агент усе одно завантажується; ці ключі не діють):
- `hooks` — субагенти не можуть реєструвати обробники подій
- `mcpServers` — субагенти не можуть налаштовувати MCP-сервери
- `permissionMode` — субагенти не можуть перевизначати модель дозволів
+- `initialPrompt` — агенти плагінів не можуть автоматично надсилати перший промпт
-Це гарантує, що плагіни не можуть підвищити привілеї або модифікувати хост-середовище за межами оголошеної області.
+Файл агента не може сам додати хуки чи MCP-сервери; постачайте їх як хуки та MCP-сервери рівня плагіна.
## Публікація плагіна
@@ -745,7 +756,7 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
**Приклад подання:**
-```markdown
+````markdown
# PR Review Plugin
## Description
@@ -759,7 +770,7 @@ Complete PR review workflow with security, testing, and documentation checks.
## Installation
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## Features
@@ -780,7 +791,7 @@ Complete PR review workflow with security, testing, and documentation checks.
- Claude Code 2.1+
- GitHub access
- CodeQL (optional)
-```
+````
## Плагін vs ручна конфігурація
@@ -794,7 +805,7 @@ Complete PR review workflow with security, testing, and documentation checks.
**З плагіном (2 хвилини):**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ Все встановлено та налаштовано
# ✅ Готово до використання одразу
# ✅ Команда може відтворити точну конфігурацію
@@ -830,15 +841,12 @@ Complete PR review workflow with security, testing, and documentation checks.
### Встановлення з маркетплейсу
-1. **Перегляд доступних плагінів:**
+1. **Перегляд доступних плагінів** (вкладка **Discover** показує плагіни з ваших маркетплейсів; `/plugin list` показує лише встановлені плагіни):
```bash
- /plugin list
+ /plugin
```
-2. **Деталі плагіна:**
- ```bash
- claude plugin details plugin-name
- ```
+2. **Деталі плагіна:** виберіть плагін на вкладці **Discover**, щоб відкрити його деталі. (`claude plugin details plugin-name` працює лише для завантаженого плагіна: встановленого або переданого через `--plugin-dir`.)
3. **Встановлення плагіна:**
```bash
@@ -857,7 +865,8 @@ Complete PR review workflow with security, testing, and documentation checks.
### Встановлення з локального шляху
```bash
-/plugin install ./path/to/plugin-directory
+# /plugin install потребує name@marketplace; шлях дає помилку "marketplace not found"
+claude --plugin-dir ./path/to/plugin-directory
```
### Встановлення з GitHub
@@ -935,7 +944,7 @@ claude plugin update plugin-name
## Усунення несправностей
### Плагін не встановлюється
-- Перевірте сумісність версії Claude Code: `/version`
+- Перевірте сумісність версії Claude Code: `claude --version`
- Перевірте синтаксис `plugin.json` валідатором JSON
- Перевірте підключення до інтернету (для віддалених плагінів)
- Перевірте дозволи: `ls -la plugin/`
@@ -949,7 +958,7 @@ claude plugin update plugin-name
### Збій підключення MCP
- Переконайтеся, що змінні оточення встановлені правильно
- Перевірте встановлення та працездатність MCP-сервера
-- Протестуйте підключення MCP окремо за допомогою `/mcp test`
+- Перевірте стан MCP-серверів за допомогою `/mcp`
- Перегляньте конфігурацію MCP у каталозі `mcp/`
### Команди недоступні після встановлення
@@ -975,12 +984,17 @@ claude plugin update plugin-name
- [Довідник системи хуків](../06-hooks/README.md)
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/settings
- https://code.claude.com/docs/en/plugins/install
- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/marketplace-reference
+- https://code.claude.com/docs/en/plugins/components
+- https://code.claude.com/docs/en/plugins/publish
+- https://code.claude.com/docs/en/plugins/overview
**Сумісні моделі**: 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/07-plugins/devops-automation/README.md b/uk/07-plugins/devops-automation/README.md
index 71bf5ee..0a0cecb 100644
--- a/uk/07-plugins/devops-automation/README.md
+++ b/uk/07-plugins/devops-automation/README.md
@@ -18,7 +18,7 @@
## Встановлення
```bash
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
## Що включено
@@ -105,3 +105,11 @@ Claude:
🚀 Поди: 3/3 готові
⏱️ Час: 2хв 34с
```
+
+---
+
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
+**Джерела**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/uk/07-plugins/documentation/README.md b/uk/07-plugins/documentation/README.md
index cd8648b..df60e86 100644
--- a/uk/07-plugins/documentation/README.md
+++ b/uk/07-plugins/documentation/README.md
@@ -18,7 +18,7 @@
## Встановлення
```bash
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
## Що включено
@@ -117,3 +117,11 @@ export GITHUB_TOKEN="your_github_token"
- Включайте практичні приклади
- Регулярно валідуйте
- Використовуйте шаблони для консистентності
+
+---
+
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
+**Джерела**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/uk/07-plugins/pr-review/README.md b/uk/07-plugins/pr-review/README.md
index 1cdd8a9..19a19c4 100644
--- a/uk/07-plugins/pr-review/README.md
+++ b/uk/07-plugins/pr-review/README.md
@@ -18,7 +18,7 @@
## Встановлення
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## Що включено
@@ -89,3 +89,11 @@ Claude:
✅ Продуктивність: Суттєвого впливу немає
📝 Рекомендації: Додати тести для граничних випадків
```
+
+---
+
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
+**Джерела**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/uk/08-checkpoints/README.md b/uk/08-checkpoints/README.md
index 180fcdf..fd94250 100644
--- a/uk/08-checkpoints/README.md
+++ b/uk/08-checkpoints/README.md
@@ -60,7 +60,7 @@
4. **Підсумувати звідси** — Стиснути розмову від цієї точки вперед в AI-згенерований підсумок, звільняючи контекстне вікно. Повідомлення до обраної точки залишаються недоторканими. Жодні файли на диску не змінюються. Оригінальні повідомлення зберігаються в транскрипті сесії. Можна додатково вказати інструкції для фокусування підсумку на конкретних темах.
5. **Скасувати** — Скасувати та повернутися до поточного стану
-> **Примітка**: Після відновлення розмови або підсумовування оригінальний промпт з обраного повідомлення відновлюється в полі вводу, щоб ви могли повторно надіслати або відредагувати його.
+> **Примітка**: Після відновлення розмови або вибору «Підсумувати звідси» оригінальний промпт з обраного повідомлення відновлюється в полі вводу, щоб ви могли повторно надіслати або відредагувати його.
## Автоматичні контрольні точки
@@ -336,8 +336,8 @@ Claude Code зберігає знімки для **100 найновіших ко
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/checkpointing
- https://code.claude.com/docs/en/commands
diff --git a/uk/09-advanced-features/README.md b/uk/09-advanced-features/README.md
index bc98ba5..ca97828 100644
--- a/uk/09-advanced-features/README.md
+++ b/uk/09-advanced-features/README.md
@@ -112,7 +112,7 @@ claude --permission-mode plan
**Клавіатурне скорочення**:
- `Shift + Tab` — Перемикання режимів дозволів (включно з plan)
-- `Alt + M` — Перемикання режимів дозволів (Windows/Linux)
+- `Alt + M` — Перемикання режимів дозволів (лише Windows, коли середовище виконання не вмикає режим VT-вводу)
### Переваги режиму планування
@@ -426,9 +426,9 @@ claude auto-mode defaults
Це гарантує, що користувач завжди зберігає контроль, коли класифікатор не може впевнено затвердити дію.
-### Посів дозволів Auto-Mode без Team-плану
+### Посів дозволів Auto-Mode
-Якщо у вас немає Team-плану або ви хочете простіший підхід без фонового класифікатора, ви можете наповнити ваш `~/.claude/settings.json` консервативним базовим набором безпечних правил дозволів. Скрипт починає з правил тільки для читання та локального інспектування, потім дозволяє вам додавати редагування, тести, локальний запис у git, встановлення пакетів та дії запису GitHub лише за потреби.
+Якщо ви хочете простіший підхід без фонового класифікатора, ви можете наповнити ваш `~/.claude/settings.json` консервативним базовим набором безпечних правил дозволів. Скрипт починає з правил тільки для читання та локального інспектування, потім дозволяє вам додавати редагування, тести, локальний запис у git, встановлення пакетів та дії запису GitHub лише за потреби.
**Файл:** `09-advanced-features/setup-auto-mode-permissions.py`
@@ -648,13 +648,13 @@ export CLAUDE_CODE_DISABLE_CRON=1
| `bypassPermissions` | Усі дії, без перевірки дозволів (небезпечно) |
| `dontAsk` | Виконуються лише попередньо затверджені інструменти; всі інші відхиляються |
-Перемикайте режими через `Shift+Tab` у CLI. Встановіть режим за замовчуванням через прапорець `--permission-mode` або налаштування `permissions.defaultMode`. Якщо режим дозволів не налаштовано, інтерактивні сесії в терміналі та VS Code починаючи з v2.1.284 запускаються в режимі auto на будь-якому плані та в будь-якого провайдера (у v2.1.283 так було лише у сторонніх провайдерів, як-от Bedrock, Agent Platform від Google Cloud і Foundry, або з вимкненою телеметрією); `permissions.defaultMode` і далі має пріоритет, а сесія, де режим auto недоступний, натомість запускається в режимі `default` (Manual). `claude -p` та Agent SDK запускаються в `default`, якщо нічого не налаштовано, за винятком того, що починаючи з v2.1.285 сесії `claude -p` і Python Agent SDK у сторонніх провайдерів або з вимкненою телеметрією також запускаються в режимі auto; `--permission-mode` і далі має пріоритет.
+Перемикайте режими через `Shift+Tab` у CLI. Встановіть режим за замовчуванням через прапорець `--permission-mode` або налаштування `permissions.defaultMode`. Якщо режим дозволів не налаштовано, інтерактивні сесії в терміналі та VS Code починаючи з v2.1.284 запускаються в режимі auto на будь-якому плані та в будь-якого провайдера (у v2.1.283 так було лише у сторонніх провайдерів, як-от Bedrock, Agent Platform від Google Cloud і Foundry, або з вимкненою телеметрією); `permissions.defaultMode` і далі має пріоритет, а сесія, де режим auto недоступний, натомість запускається в режимі `default` (Manual). Починаючи з v2.1.302, сесії `claude -p` та Agent SDK, у яких не задано режим дозволів, запускаються в режимі `default` у сторонніх провайдерів, з вимкненою телеметрією або на свіжій інсталяції; передайте `--permission-mode auto`, щоб зберегти режим auto.
### Методи активації
**Клавіатурне скорочення**:
```bash
-Shift + Tab # Перемикання між усіма 6 режимами
+Shift + Tab # Цикл default → acceptEdits → plan, далі bypassPermissions/auto, коли доступні (dontAsk ніколи не зʼявляється в циклі)
```
**Слеш-команда**:
@@ -1047,26 +1047,22 @@ User: Ctrl+R # Пошук в історії
### Багаторядковий ввід
-Для складних запитів використовуйте багаторядковий режим:
+Для складних запитів переходьте на новий рядок через `\` + Enter, Option+Enter (macOS), Shift+Enter або Ctrl+J. Термінатора `\end` немає — натисніть Enter, щоб надіслати:
```bash
-User: \
-> Long complex prompt
-> spanning multiple lines
-> \end
+User: Long complex prompt \
+spanning multiple lines
```
**Приклад:**
```
-User: \
-> Implement a user authentication system
-> with the following requirements:
-> - JWT tokens
-> - Email verification
-> - Password reset
-> - 2FA support
-> \end
+User: Implement a user authentication system \
+with the following requirements: \
+- JWT tokens \
+- Email verification \
+- Password reset \
+- 2FA support
Claude: [Processes the multi-line request]
```
@@ -1147,11 +1143,11 @@ User: Deploy to prodcution<Backspace><Backspace>uction
### Підписка на канали
```bash
-# Підписка на плагіни каналів при запуску
-claude --channels discord,telegram
+# Підписка на плагін каналу при запуску
+claude --channels plugin:telegram@claude-plugins-official
-# Підписка на кілька джерел
-claude --channels discord,telegram,imessage,webhooks
+# Підписка на кілька джерел (через пробіл)
+claude --channels plugin:discord@claude-plugins-official plugin:telegram@claude-plugins-official
```
### Підтримувані інтеграції
@@ -1169,25 +1165,29 @@ claude --channels discord,telegram,imessage,webhooks
```json
{
- "allowedChannelPlugins": ["discord", "telegram"]
+ "channelsEnabled": true,
+ "allowedChannelPlugins": [
+ { "marketplace": "claude-plugins-official", "plugin": "discord" },
+ { "marketplace": "claude-plugins-official", "plugin": "telegram" }
+ ]
}
```
-Керована настройка `allowedChannelPlugins` контролює, які плагіни каналів дозволені в організації.
+Керована настройка `allowedChannelPlugins` контролює, які плагіни каналів дозволені в організації. Вона замінює підтримуваний Anthropic список дозволених і потребує `channelsEnabled: true`.
### Як це працює
1. MCP-сервери діють як плагіни каналів, що підключаються до зовнішніх сервісів
2. Вхідні повідомлення та події надсилаються в активну сесію Claude Code
3. Claude може читати та відповідати на повідомлення в контексті сесії
-4. Плагіни каналів мають бути затверджені через керовану настройку `allowedChannelPlugins`
+4. Плагіни каналів мають бути в списку дозволених, який підтримує Anthropic, або в списку `allowedChannelPlugins` вашої організації, якщо адміністратор його задав
5. Опитування не потрібне — події надсилаються в реальному часі
---
## Інтеграція Chrome
-Інтеграція Chrome підключає Claude Code до вашого браузера Chrome або Microsoft Edge для автоматизації та відлагодження веб-сторінок у реальному часі. Це бета-функція, доступна з v2.0.73+ (підтримка Edge додана в v1.0.36+).
+Інтеграція Chrome підключає Claude Code до вашого браузера Chrome або Microsoft Edge для автоматизації та відлагодження веб-сторінок у реальному часі. Це бета-функція, доступна з v2.0.73+ (потрібне розширення Claude in Chrome v1.0.36+).
### Увімкнення інтеграції Chrome
@@ -1227,7 +1227,7 @@ Claude Code керує браузером у видимому вікні — в
### Відомі обмеження
-- **Підтримка браузерів**: Тільки Chrome та Edge — Brave, Arc та інші браузери на базі Chromium не підтримуються
+- **Підтримка браузерів**: Chrome та Edge; Claude Code також підключається в інших браузерах на базі Chromium, як-от Brave, Arc, Vivaldi та Opera
- **WSL**: Недоступно у Windows Subsystem for Linux
- **Сторонні провайдери**: Не підтримується з провайдерами API Bedrock, Vertex або Foundry
- **Idle service worker**: Service worker розширення Chrome може переходити у неактивний стан під час тривалих сесій
@@ -1377,10 +1377,15 @@ claude --teleport
```json
{
- "command": "npm run dev",
- "port": 3000,
- "readyPattern": "ready on",
- "persistCookies": true
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "my-app",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "dev"],
+ "port": 3000
+ }
+ ]
}
```
@@ -1410,9 +1415,10 @@ claude --teleport
| Режим | Поведінка |
|------|----------|
-| **Ask permissions** (за замовчуванням) | Перегляд та затвердження кожного редагування та команди |
-| **Auto accept edits** | Редагування файлів автозатверджуються; команди потребують ручного затвердження |
-| **Plan mode** | Перегляд підходу перед будь-якими змінами |
+| **Manual** (за замовчуванням) | Перегляд та затвердження кожного редагування та команди |
+| **Accept edits** | Редагування файлів автозатверджуються; команди потребують ручного затвердження |
+| **Plan** | Перегляд підходу перед будь-якими змінами |
+| **Auto** | Робота без рутинних запитів; фоновий класифікатор спершу перевіряє дії |
| **Bypass permissions** | Автоматичне виконання (лише у пісочниці, контролюється адміністратором) |
### Корпоративні функції
@@ -1562,8 +1568,7 @@ claude --settings '{"sandbox": {"enabled": true}}'
"allowWrite": ["/Users/me/project"],
"allowRead": ["/Users/me/project", "/usr/local/lib"],
"denyRead": ["/Users/me/.ssh", "/Users/me/.aws"]
- },
- "enableWeakerNetworkIsolation": true
+ }
}
}
```
@@ -1573,7 +1578,7 @@ claude --settings '{"sandbox": {"enabled": true}}'
- Bash-команди виконуються у пісочниці з обмеженим доступом до файлової системи
- Мережевий доступ може бути ізольований для запобігання небажаним зовнішнім зʼєднанням
- Працює разом з правилами дозволів для глибокого захисту
-- На macOS використовуйте `sandbox.enableWeakerNetworkIsolation` для мережевих обмежень (повна ізоляція мережі недоступна на macOS)
+- На macOS Seatbelt блокує всі мережеві зʼєднання, крім зʼєднання з проксі пісочниці; `sandbox.enableWeakerNetworkIsolation` **послаблює** цю ізоляцію і потрібен лише для інструментів на кшталт Go CLI за MITM-проксі `httpProxyPort`
### Випадки використання
@@ -1598,10 +1603,10 @@ claude --settings '{"sandbox": {"enabled": true}}'
### Керовані Drop-ins
-Починаючи з v2.1.83, адміністратори можуть розгортати кілька файлів керованих налаштувань у директорію `managed-settings.d/`. Файли обʼєднуються в алфавітному порядку, дозволяючи модульну конфігурацію між командами:
+Починаючи з v2.1.83, адміністратори можуть розгортати кілька файлів керованих налаштувань у директорію `managed-settings.d/`. Файли обʼєднуються в алфавітному порядку, дозволяючи модульну конфігурацію між командами. Директорія розташована поруч із `managed-settings.json` у системній директорії (`/Library/Application Support/ClaudeCode/` на macOS, `/etc/claude-code/` на Linux, `C:\Program Files\ClaudeCode\` на Windows):
```
-~/.claude/managed-settings.d/
+/etc/claude-code/managed-settings.d/
00-org-defaults.json
10-team-policies.json
20-project-overrides.json
@@ -1611,7 +1616,7 @@ claude --settings '{"sandbox": {"enabled": true}}'
| Налаштування | Опис |
|---------|-------------|
-| `disableBypassPermissionsMode` | Заборонити користувачам вмикати обхід дозволів |
+| `permissions.disableBypassPermissionsMode` | Встановіть `"disable"`, щоб заборонити користувачам вмикати обхід дозволів |
| `availableModels` | Обмежити моделі, доступні для вибору |
| `allowedChannelPlugins` | Контролювати дозволені плагіни каналів |
| `autoMode.environment` | Налаштувати довірену інфраструктуру для auto mode |
@@ -1625,8 +1630,11 @@ claude --settings '{"sandbox": {"enabled": true}}'
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>disableBypassPermissionsMode</key>
- <true/>
+ <key>permissions</key>
+ <dict>
+ <key>disableBypassPermissionsMode</key>
+ <string>disable</string>
+ </dict>
<key>availableModels</key>
<array>
<string>claude-sonnet-4-6</string>
@@ -1642,13 +1650,14 @@ claude --settings '{"sandbox": {"enabled": true}}'
### Розташування файлів конфігурації
-1. **Глобальна конфігурація**: `~/.claude/config.json`
-2. **Конфігурація проєкту**: `./.claude/config.json`
-3. **Конфігурація користувача**: `~/.config/claude-code/settings.json`
+1. **Налаштування користувача**: `~/.claude/settings.json`
+2. **Налаштування проєкту**: `.claude/settings.json` (у репозиторії)
+3. **Локальні налаштування проєкту**: `.claude/settings.local.json` (не в репозиторії)
+4. **Керовані налаштування**: `managed-settings.json` у системній директорії (див. розділ про керовані налаштування вище)
### Повний приклад конфігурації
-**Конфігурація основних розширених функцій:**
+**Конфігурація основних розширених функцій** (`.claude/settings.json`):
```json
{
@@ -1656,16 +1665,25 @@ claude --settings '{"sandbox": {"enabled": true}}'
"defaultMode": "manual"
},
"hooks": {
- "PreToolUse:Edit": "eslint --fix ${file_path}",
- "PostToolUse:Write": "~/.claude/hooks/security-scan.sh"
- },
- "mcp": {
- "enabled": true,
- "servers": {
- "github": {
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-github"]
- }
+ "PreToolUse": [
+ { "matcher": "Edit", "hooks": [{ "type": "command", "command": "~/.claude/hooks/eslint-fix.sh" }] }
+ ],
+ "PostToolUse": [
+ { "matcher": "Write", "hooks": [{ "type": "command", "command": "~/.claude/hooks/security-scan.sh" }] }
+ ]
+ }
+}
+```
+
+Скрипти хуків отримують вхідні дані інструмента як JSON через stdin (наприклад, `tool_input.file_path`); підстановки `${file_path}` немає. MCP-сервери не є ключем налаштувань — визначайте їх у `.mcp.json` у корені проєкту:
+
+```json
+{
+ "mcpServers": {
+ "github": {
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": { "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}" }
}
}
}
@@ -1677,31 +1695,20 @@ claude --settings '{"sandbox": {"enabled": true}}'
{
"permissions": {
"defaultMode": "manual",
- "allowedTools": ["Bash(git log:*)", "Read"],
- "disallowedTools": ["Bash(rm -rf:*)"]
+ "allow": ["Bash(git log:*)", "Read"],
+ "deny": ["Bash(rm -rf:*)"]
},
"hooks": {
- "PreToolUse": [{ "matcher": "Edit", "hooks": ["eslint --fix ${file_path}"] }],
- "PostToolUse": [{ "matcher": "Write", "hooks": ["~/.claude/hooks/security-scan.sh"] }],
- "Stop": [{ "hooks": ["~/.claude/hooks/notify.sh"] }]
- },
-
- "mcp": {
- "enabled": true,
- "servers": {
- "github": {
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
- }
- }
- }
+ "PreToolUse": [{ "matcher": "Edit", "hooks": [{ "type": "command", "command": "~/.claude/hooks/eslint-fix.sh" }] }],
+ "PostToolUse": [{ "matcher": "Write", "hooks": [{ "type": "command", "command": "~/.claude/hooks/security-scan.sh" }] }],
+ "Stop": [{ "hooks": [{ "type": "command", "command": "~/.claude/hooks/notify.sh" }] }]
}
}
```
+GitHub MCP-сервер для цього налаштування розміщується в `.mcp.json`, як показано вище.
+
### Змінні оточення
Перевизначення конфігурації через змінні оточення:
@@ -1721,7 +1728,7 @@ export MAX_THINKING_TOKENS=16000
export CLAUDE_CODE_EFFORT_LEVEL=high
# Перемикачі функцій
-export CLAUDE_CODE_DISABLE_AUTO_MEMORY=true
+export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 # Вимкнути auto memory (файли auto memory не створюються і не завантажуються)
export CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=true
export CLAUDE_CODE_DISABLE_CRON=1
export CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=true
@@ -1729,7 +1736,7 @@ export CLAUDE_CODE_DISABLE_TERMINAL_TITLE=true
export CLAUDE_CODE_DISABLE_1M_CONTEXT=true
export CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=true
export CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false
-export CLAUDE_CODE_ENABLE_TASKS=true
+export CLAUDE_CODE_ENABLE_TASKS=0 # Інструменти Task використовуються за замовчуванням; 0 повертає застарілий інструмент TodoWrite
export CLAUDE_CODE_SIMPLE=true # Встановлюється прапорцем --bare
# Конфігурація MCP
@@ -1770,23 +1777,28 @@ User: /config
### Конфігурація на рівні проєкту
-Створіть `.claude/config.json` у вашому проєкті:
+Створіть `.claude/settings.json` у вашому проєкті:
```json
{
"hooks": {
- "PreToolUse": [{ "matcher": "Bash", "hooks": ["npm test && npm run lint"] }]
+ "PreToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "npm test && npm run lint" }] }]
},
"permissions": {
"defaultMode": "manual"
- },
- "mcp": {
- "servers": {
- "project-db": {
- "command": "mcp-postgres",
- "env": {
- "DATABASE_URL": "${PROJECT_DB_URL}"
- }
+ }
+}
+```
+
+MCP-сервери проєкту розмістіть у `.mcp.json` у корені проєкту:
+
+```json
+{
+ "mcpServers": {
+ "project-db": {
+ "command": "mcp-postgres",
+ "env": {
+ "DATABASE_URL": "${PROJECT_DB_URL}"
}
}
}
@@ -1911,8 +1923,8 @@ claude --teammate-mode in-process
- [Офіційна документація Agent Teams](https://code.claude.com/docs/en/agent-teams)
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/auto-mode-classifier-billing
@@ -1929,4 +1941,12 @@ claude --teammate-mode in-process
- 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
+- https://code.claude.com/docs/en/settings
+- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/desktop
+- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/env-vars
+- https://code.claude.com/docs/en/changelog#2-1-302
**Сумісні моделі**: 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 627ac23..6196851 100644
--- a/uk/10-cli/README.md
+++ b/uk/10-cli/README.md
@@ -72,8 +72,8 @@ graph TD
| `--channels` | Підписка на MCP channel plugins. Кожен запис має бути позначений як `plugin:<name>@<marketplace>`; голі імена відхиляються | `claude --channels plugin:discord@my-marketplace` |
| `--chrome` / `--no-chrome` | Увімкнути/вимкнути інтеграцію з браузером Chrome | `claude --chrome` |
| `--effort` | Встановити рівень зусиль мислення | `claude --effort high` |
-| `--init` / `--init-only` | Запуск хуків ініціалізації | `claude --init` |
-| `--maintenance` | Запуск хуків обслуговування та вихід | `claude --maintenance` |
+| `--init` / `--init-only` | `--init` запускає хуки ініціалізації (Setup) перед сесією, лише в режимі print; `--init-only` запускає хуки Setup і `SessionStart`, а потім завершує роботу | `claude -p --init "query"` |
+| `--maintenance` | Запуск хуків обслуговування (Setup) перед сесією (лише в режимі print) | `claude -p --maintenance "query"` |
| `--disable-slash-commands` | Вимкнути всі навички та слеш-команди | `claude --disable-slash-commands` |
| `--no-session-persistence` | Вимкнути збереження сесії (print mode) | `claude -p --no-session-persistence "query"` |
@@ -121,14 +121,14 @@ claude -p "list todos" | grep "URGENT"
### Приклади вибору моделі
```bash
-# Opus 4.6 для складних завдань
+# Opus 5.5 для складних завдань
claude --model opus "design a caching strategy"
# Haiku для швидких завдань (Haiku 5.5 в Anthropic API з v2.1.293; Haiku 4.5 у Bedrock, Vertex і Foundry)
claude --model haiku -p "format this JSON"
# Повна назва моделі
-claude --model claude-sonnet-4-6-20250929 "review this code"
+claude --model claude-sonnet-4-6 "review this code"
# З фолбеком для надійності
claude -p --model opus --fallback-model sonnet "analyze architecture"
@@ -312,7 +312,7 @@ claude -r "feature-auth" --fork-session "test with different architecture"
| `--no-chrome` | Вимкнути інтеграцію з Chrome | `claude --no-chrome` |
| `--ide` | Автопідключення до IDE, якщо доступна | `claude --ide` |
| `--max-turns` | Обмежити кількість агентних кроків (неінтерактивний режим) | `claude -p --max-turns 3 "query"` |
-| `--debug` | Увімкнути режим налагодження з фільтрацією | `claude --debug "api,mcp"` |
+| `--debug` | Увімкнути режим налагодження з фільтрацією (фільтр діє лише у формі з `=`) | `claude --debug=api,mcp` |
| `--enable-lsp-logging` | Увімкнути детальне логування LSP | `claude --enable-lsp-logging` |
| `--betas` | Beta-заголовки для API-запитів | `claude --betas interleaved-thinking` |
| `--plugin-dir` | Завантажити плагіни з каталогу (повторюваний) | `claude --plugin-dir ./my-plugin` |
@@ -320,7 +320,7 @@ claude -r "feature-auth" --fork-session "test with different architecture"
| `--effort` | Встановити рівень зусиль мислення | `claude --effort high` |
| `--bare` | Мінімальний режим (без хуків, навичок, плагінів, MCP, auto memory, CLAUDE.md) | `claude --bare` |
| `--channels` | Підписка на MCP channel plugins (позначені як `plugin:<name>@<marketplace>`) | `claude --channels plugin:discord@my-marketplace` |
-| `--tmux` | Створити tmux-сесію для worktree | `claude --tmux` |
+| `--tmux` | Створити tmux-сесію для worktree (потребує `--worktree`) | `claude --worktree feature-x --tmux` |
| `--fork-session` | Створити новий ID сесії при відновленні | `claude --resume abc --fork-session` |
| `--max-budget-usd` | Максимальні витрати (print mode); також зупиняє фонові subagent-и при досягненні ліміту (v2.1.217) | `claude -p --max-budget-usd 5.00 "query"` |
| `--json-schema` | Валідований JSON-вивід | `claude -p --json-schema '{"type":"object"}' "q"` |
@@ -332,7 +332,7 @@ claude -r "feature-auth" --fork-session "test with different architecture"
claude -p --max-turns 5 "refactor this module"
# Налагодження API-викликів
-claude --debug "api" "test query"
+claude --debug=api "test query"
# Увімкнути інтеграцію з IDE
claude --ide "help me with this file"
@@ -614,45 +614,49 @@ claude -p --output-format json \
--json-schema '{"type":"object","properties":{"functions":{"type":"array"},"complexity":{"type":"string"}}}' \
"analyze main.py and return function list with complexity rating"
-# Інтеграція з jq для обробки
-claude -p --output-format json "list all API endpoints" | jq '.endpoints[]'
+# Інтеграція з jq для обробки (вивід за схемою потрапляє в .structured_output)
+claude -p --output-format json \
+ --json-schema '{"type":"object","properties":{"endpoints":{"type":"array"}}}' \
+ "list all API endpoints" | jq '.structured_output.endpoints[]'
# Використання в скриптах
-RESULT=$(claude -p --output-format json "is this code secure? answer with {secure: boolean, issues: []}" < code.py)
-if echo "$RESULT" | jq -e '.secure == false' > /dev/null; then
+RESULT=$(claude -p --output-format json \
+ --json-schema '{"type":"object","properties":{"secure":{"type":"boolean"},"issues":{"type":"array"}},"required":["secure","issues"]}' \
+ "is this code secure?" < code.py)
+if echo "$RESULT" | jq -e '.structured_output.secure == false' > /dev/null; then
echo "Security issues found!"
- echo "$RESULT" | jq '.issues[]'
+ echo "$RESULT" | jq '.structured_output.issues[]'
fi
```
### Приклади парсингу jq
-Парсинг та обробка JSON-виводу Claude за допомогою `jq`:
+Парсинг та обробка JSON-виводу Claude за допомогою `jq`. Текст відповіді міститься в `.result`; з `--json-schema` перевірений обʼєкт міститься в `.structured_output` (`$SCHEMA` нижче позначає схему, що визначає поля, які читає кожен фільтр):
```bash
-# Витяг конкретних полів
-claude -p --output-format json "analyze this code" | jq '.result'
+# Витяг тексту відповіді
+claude -p --output-format json "analyze this code" | jq -r '.result'
# Фільтрація елементів масиву
-claude -p --output-format json "list issues" | jq -r '.issues[] | select(.severity=="high")'
+claude -p --output-format json --json-schema "$SCHEMA" "list issues" | jq -r '.structured_output.issues[] | select(.severity=="high")'
# Витяг кількох полів
-claude -p --output-format json "describe the project" | jq -r '.{name, version, description}'
+claude -p --output-format json --json-schema "$SCHEMA" "describe the project" | jq -r '.structured_output | {name, version, description}'
# Конвертація в CSV
-claude -p --output-format json "list functions" | jq -r '.functions[] | [.name, .lineCount] | @csv'
+claude -p --output-format json --json-schema "$SCHEMA" "list functions" | jq -r '.structured_output.functions[] | [.name, .lineCount] | @csv'
# Умовна обробка
-claude -p --output-format json "check security" | jq 'if .vulnerabilities | length > 0 then "UNSAFE" else "SAFE" end'
+claude -p --output-format json --json-schema "$SCHEMA" "check security" | jq 'if (.structured_output.vulnerabilities | length) > 0 then "UNSAFE" else "SAFE" end'
# Витяг вкладених значень
-claude -p --output-format json "analyze performance" | jq '.metrics.cpu.usage'
+claude -p --output-format json --json-schema "$SCHEMA" "analyze performance" | jq '.structured_output.metrics.cpu.usage'
# Обробка всього масиву
-claude -p --output-format json "find todos" | jq '.todos | length'
+claude -p --output-format json --json-schema "$SCHEMA" "find todos" | jq '.structured_output.todos | length'
# Трансформація виводу
-claude -p --output-format json "list improvements" | jq 'map({title: .title, priority: .priority})'
+claude -p --output-format json --json-schema "$SCHEMA" "list improvements" | jq '.structured_output.improvements | map({title: .title, priority: .priority})'
```
---
@@ -714,14 +718,14 @@ export CLAUDE_CODE_EFFORT_LEVEL=high # low, medium, high або max (лише
| `MAX_THINKING_TOKENS` | Бюджет токенів розширеного мислення |
| `CLAUDE_CODE_EFFORT_LEVEL` | Рівень зусиль (`low`/`medium`/`high`/`max`) |
| `CLAUDE_CODE_SIMPLE` | Мінімальний режим, встановлюється прапорцем `--bare` |
-| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | Вимкнути автоматичне оновлення CLAUDE.md |
+| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | Встановіть `1`, щоб вимкнути auto memory (файли auto memory не створюються і не завантажуються) |
| `CLAUDE_CODE_DISABLE_BACKGROUND_TASKS` | Вимкнути виконання фонових завдань |
| `CLAUDE_CODE_DISABLE_CRON` | Вимкнути заплановані/cron-завдання |
| `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` | Вимкнути git-інструкції |
| `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` | Вимкнути оновлення заголовка терміналу |
| `CLAUDE_CODE_DISABLE_1M_CONTEXT` | Вимкнути контекстне вікно 1M токенів |
| `CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK` | Вимкнути фолбек без стрімінгу |
-| `CLAUDE_CODE_ENABLE_TASKS` | Увімкнути функцію списку завдань |
+| `CLAUDE_CODE_ENABLE_TASKS` | Інструменти Task використовуються за замовчуванням; встановіть `0`, щоб повернути застарілий інструмент `TodoWrite` |
| `CLAUDE_CODE_TASK_LIST_ID` | Іменований каталог завдань, спільний між сесіями |
| `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` | Увімкнути/вимкнути пропозиції промптів (`true`/`false`) |
| `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` | Увімкнути експериментальні Agent Teams |
@@ -838,10 +842,13 @@ claude -p --output-format json "query"
*Частина серії посібників [Claude How To](../)*
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/headless
+- https://code.claude.com/docs/en/env-vars
+- https://platform.claude.com/docs/en/about-claude/models/overview
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/setup
diff --git a/uk/CATALOG.md b/uk/CATALOG.md
index 71bae34..89a877a 100644
--- a/uk/CATALOG.md
+++ b/uk/CATALOG.md
@@ -54,7 +54,7 @@
| `/mcp` | Список MCP-серверів | Перевірка зовнішніх інтеграцій |
| `/memory` | Переглянути завантажені файли пам'яті | Налагодження контексту |
| `/mobile` | Згенерувати QR-код для мобільного | Мобільний доступ |
-| `/passes` | Переглянути використання пропусків | Інформація про підписку |
+| `/passes` | Поділитися безкоштовним тижнем Claude Code з друзями (лише для відповідних акаунтів) | Запрошення друзів |
| `/plugin` | Управління плагінами | Встановлення/видалення розширень |
| `/plan` | Увійти в режим планування | Складні реалізації |
| `/rewind` | Відкат до контрольної точки | Скасування змін, дослідження альтернатив |
@@ -83,10 +83,10 @@
| `/fork` | Розгалужити поточну розмову | Дослідження альтернатив |
| `/stats` | Показати статистику сесії | Перегляд метрик сесії |
| `/statusline` | Налаштувати рядок стану | Кастомізація відображення |
-| `/stickers` | Переглянути стікери сесії | Ігрові нагороди |
+| `/stickers` | Замовити стікери Claude Code | Ігрові нагороди |
| `/fast` | Перемкнути швидкий режим | Прискорення відповідей |
| `/terminal-setup` | Налаштувати інтеграцію з терміналом | Налаштування терміналу |
-| `/upgrade` | Перевірити оновлення | Управління версіями |
+| `/upgrade` | Відкрити сторінку оновлення, щоб перейти на вищий тарифний план | Оновлення плану |
### Кастомні команди (приклади)
@@ -119,7 +119,7 @@ Claude Code підтримує 6 режимів дозволів, що конт
| Режим | Опис | Коли використовувати |
|-------|------|---------------------|
-| `default` | Запитувати дозвіл на кожен виклик | Стандартна інтерактивна робота |
+| `default` | Запитувати дозвіл на кожен виклик | Коли ви самі переглядаєте кожну дію. З v2.1.283 вбудований початковий режим для інтерактивних сесій у терміналі та VS Code — auto |
| `acceptEdits` | Автоприйняття редагувань, запит на інше | Довірені процеси редагування |
| `plan` | Дослідити й запропонувати план; без змін у коді, доки ви його не схвалите | Планування та дослідження |
| `auto` | Усі дії з перевірками фонового класифікатора безпеки | Тривалі завдання, менше запитів на дозвіл |
@@ -144,7 +144,7 @@ Claude Code підтримує 6 режимів дозволів, що конт
| **Plan** | Планування реалізації | Read, Glob, Grep, Bash | Успадкована | Проєктування архітектури, планування |
| **Explore** | Дослідження кодової бази | Read, Glob, Grep | Успадковує (максимум Opus) | Швидкий пошук, розуміння коду |
| **claude** | Універсальний агент для задач, які не підходять спеціалізованим агентам | Усі інструменти | Успадкована | Задачі без спеціалізованого агента; типовий агент для диспетчеризованої фонової сесії |
-| **statusline-setup** | Налаштування рядка стану | Bash, Read, Write | Sonnet 4.6 | Конфігурація рядка стану |
+| **statusline-setup** | Налаштування рядка стану | Bash, Read, Write | Sonnet | Конфігурація рядка стану |
| **claude-code-guide** | Довідка та документація | Read, Glob, Grep | Haiku | Отримання допомоги, вивчення функцій |
### Поля конфігурації субагентів
@@ -236,8 +236,8 @@ cp -r 03-skills/* ~/.claude/skills/
| Навичка | Опис | Коли автоматично викликається |
|---------|------|------------------------------|
| `/simplify` | Ревʼю коду на якість | Після написання коду |
-| `/batch` | Запуск промптів для кількох файлів | Пакетні операції |
-| `/debug` | Налагодження помилок/тестів | Сесії налагодження |
+| `/batch` | Розбити велику зміну на 5–30 незалежних частин; кожну виконує фоновий субагент у власному worktree | Масштабні паралельні рефакторинги |
+| `/debug [description]` | Увімкнути журнал налагодження для сесії та шукати причину проблем у ньому | Налагодження самого Claude Code |
| `/loop` | Запуск промптів за інтервалом | Повторювані завдання |
| `/claude-api` | Створення застосунків з Claude API | Розробка з API |
@@ -259,14 +259,17 @@ cp -r 03-skills/* ~/.claude/skills/
### Структура плагіна
-```
-.claude-plugin/
-├── plugin.json # Файл маніфесту
+```text
+my-plugin/
+├── .claude-plugin/
+│ └── plugin.json # Файл маніфесту (єдиний файл у .claude-plugin/)
├── commands/ # Слеш-команди
├── agents/ # Субагенти
-├── skills/ # Навички
-├── mcp/ # Конфігурації MCP
-├── hooks/ # Скрипти хуків
+├── skills/ # Навички (<name>/SKILL.md)
+├── hooks/
+│ └── hooks.json # Конфігурація хуків
+├── .mcp.json # Конфігурації MCP
+├── bin/ # Виконувані файли
└── scripts/ # Допоміжні скрипти
```
@@ -277,7 +280,7 @@ cp -r 03-skills/* ~/.claude/skills/
```bash
/plugin list # Список встановлених плагінів
/plugin install <name> # Встановити плагін
-/plugin remove <name> # Видалити плагін
+/plugin uninstall <name> # Видалити плагін
claude plugin update <name> # Оновити плагін (CLI; форма зі скісною рискою /plugin update згадується в тексті, але відсутня в довіднику команд)
```
@@ -291,9 +294,9 @@ claude plugin update <name> # Оновити плагін (CLI; форма з
| Сервер | Опис | Коли використовувати | Область | Встановлення |
|--------|------|---------------------|---------|-------------|
-| **GitHub** | Управління PR, issues, код | Процеси з GitHub | Проект | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
-| **Database** | SQL-запити, доступ до даних | Операції з БД | Проект | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
-| **Filesystem** | Розширені файлові операції | Складна робота з файлами | Користувач | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
+| **GitHub** | Управління PR, issues, код | Процеси з GitHub | Локальний | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
+| **Database** | SQL-запити, доступ до даних | Операції з БД | Локальний | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
+| **Filesystem** | Розширені файлові операції | Складна робота з файлами | Локальний | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
| **Slack** | Комунікація команди | Сповіщення, оновлення | Проект | Налаштування в settings |
| **Google Docs** | Доступ до документів | Редагування, ревʼю документів | Проект | Налаштування в settings |
| **Asana** | Управління проектами | Відстеження завдань | Проект | Налаштування в settings |
@@ -301,7 +304,7 @@ claude plugin update <name> # Оновити плагін (CLI; форма з
| **Memory** | Постійна пам'ять | Згадування між сесіями | Користувач | Налаштування в settings |
| **Context7** | Документація бібліотек | Пошук актуальної документації | Користувач | Налаштування в settings (сторонній сервер) |
-> **Область**: `Проект` = командний (`.mcp.json`), `Користувач` = персональний (`~/.claude.json`), `Вбудований` = попередньо встановлений
+> **Область**: `Локальний` = типова область `claude mcp add` без `--scope` (лише ви, цей проект; `~/.claude.json`), `Проект` = командний (`.mcp.json`, `--scope project`), `Користувач` = персональний (`~/.claude.json`, `--scope user`), `Вбудований` = попередньо встановлений
### Приклад конфігурації MCP
@@ -394,13 +397,17 @@ export GITHUB_TOKEN="your_token" && claude mcp add github -- npx -y @modelcontex
"PreToolUse": [
{
"matcher": "Bash",
- "command": "~/.claude/hooks/validate-bash.py"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/validate-bash.py" }
+ ]
}
],
"PostToolUse": [
{
"matcher": "Write",
- "command": "~/.claude/hooks/format-code.sh"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/format-code.sh" }
+ ]
}
]
}
@@ -467,7 +474,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **Канали** | Багатоканальна комунікація (Telegram, Slack тощо) (Research Preview) | Налаштування канальних плагінів |
| **Голосовий ввід** | Голосове введення промптів | Іконка мікрофона або клавіша |
| **Тип хука Agent** | Хуки, що запускають субагента замість shell-команди | `"type": "agent"` у конфігурації хука |
-| **Тип хука Prompt** | Хуки, що вставляють текст промпту в розмову | `"type": "prompt"` у конфігурації хука |
+| **Тип хука Prompt** | Хуки, що надсилають промпт моделі Claude для одноходової оцінки; модель повертає рішення у JSON | `"type": "prompt"` у конфігурації хука |
| **MCP Elicitation** | MCP-сервери можуть запитувати ввід користувача | Обробка через події `Elicitation` та `ElicitationResult` |
| **Plugin LSP** | Інтеграція Language Server Protocol через плагіни | LSP-сервери в `plugin.json` |
| **Керовані drop-ins** | Конфігурації, керовані організацією (v2.1.83) | Налаштовуються адмінами через керовані політики |
@@ -530,8 +537,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/commands
@@ -544,3 +551,5 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/cli-reference
diff --git a/uk/INDEX.md b/uk/INDEX.md
index 58fdedd..2bbd596 100644
--- a/uk/INDEX.md
+++ b/uk/INDEX.md
@@ -271,7 +271,7 @@ pr-review/
**Команди**: `/review-pr`, `/check-security`, `/check-tests`
-**Встановлення**: `/plugin install pr-review`
+**Встановлення**: `claude --plugin-dir ./07-plugins/pr-review` (з кореня репозиторію)
---
@@ -306,7 +306,7 @@ devops-automation/
**Команди**: `/deploy`, `/rollback`, `/status`, `/incident`
-**Встановлення**: `/plugin install devops-automation`
+**Встановлення**: `claude --plugin-dir ./07-plugins/devops-automation` (з кореня репозиторію)
---
@@ -338,7 +338,7 @@ documentation/
**Команди**: `/generate-api-docs`, `/generate-readme`, `/sync-docs`, `/validate-docs`
-**Встановлення**: `/plugin install documentation`
+**Встановлення**: `claude --plugin-dir ./07-plugins/documentation` (з кореня репозиторію)
**Додатково**: `README.md` — огляд плагінів та керівництво
@@ -366,7 +366,7 @@ documentation/
# Для відкату натисніть Esc двічі або скористайтеся:
/rewind
# Потім оберіть: Відновити код і розмову, Відновити розмову,
-# Відновити код, Підсумувати звідси, або Скасувати
+# Відновити код, Підсумувати звідси, Підсумувати до цього місця, або Скасувати
```
**Сценарії**:
@@ -422,7 +422,7 @@ documentation/
- **plan**: Лише аналіз, без змін (тільки читання)
- **auto**: Виконує все з фоновими перевірками безпеки — класифікатор перевіряє команди та запис у захищені каталоги (налаштовується через об'єкт `autoMode` у налаштуваннях)
- **dontAsk**: Лише попередньо затверджені інструменти — автоматично відхиляє кожен виклик, який інакше вимагав би запиту. Claude виконує лише збіги з `permissions.allow`, Bash-команди лише для читання та виклики, схвалені хуком `PreToolUse`
-- **bypassPermissions**: Приймати все (потребує `--dangerously-skip-permissions`)
+- **bypassPermissions**: Приймати все (вмикається через `--permission-mode bypassPermissions` або еквівалентний `--dangerously-skip-permissions`)
### Headless-режим (`claude -p`)
@@ -705,14 +705,14 @@ cp 04-subagents/code-reviewer.md .claude/agents/
cp -r 03-skills/code-review-specialist ~/.claude/skills/
# Або встановити повний плагін
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
### DevOps та розгортання
```bash
# Встановити плагін (включає все)
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
### Документація
@@ -728,7 +728,7 @@ cp 04-subagents/documentation-writer.md .claude/agents/
cp -r 03-skills/doc-generator ~/.claude/skills/
# Або встановити повний плагін
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
### Командні стандарти
@@ -744,8 +744,10 @@ cp 02-memory/project-CLAUDE.md ./CLAUDE.md
```bash
# Встановити змінні оточення
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
# Встановити конфігурацію MCP (рівень проекту)
cp 05-mcp/multi-mcp.json .mcp.json
@@ -932,8 +934,8 @@ Run tests in background
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Прикладів**: 100+ файлів
**Категорій**: 10 функцій
**Хуків**: 8 скриптів автоматизації
@@ -945,3 +947,6 @@ Run tests in background
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/permission-modes
diff --git a/uk/LEARNING-ROADMAP.md b/uk/LEARNING-ROADMAP.md
index 1152f62..81d8afe 100644
--- a/uk/LEARNING-ROADMAP.md
+++ b/uk/LEARNING-ROADMAP.md
@@ -102,7 +102,7 @@ graph TD
| Крок | Функція | Складність | Час | Рівень | Залежності | Чому вивчати | Ключові переваги |
|------|---------|-----------|-----|--------|------------|-------------|-----------------|
-| **1** | [Слеш-команди](01-slash-commands/) | ⭐ Початківець | 30 хв | Рівень 1 | Немає | Швидкий приріст продуктивності (55+ вбудованих + 5 навичок) | Миттєва автоматизація |
+| **1** | [Слеш-команди](01-slash-commands/) | ⭐ Початківець | 30 хв | Рівень 1 | Немає | Швидкий приріст продуктивності (55+ вбудованих + 20 навичок) | Миттєва автоматизація |
| **2** | [Пам'ять](02-memory/) | ⭐⭐ Початківець+ | 45 хв | Рівень 1 | Немає | Необхідна для всіх функцій | Постійний контекст |
| **3** | [Контрольні точки](08-checkpoints/) | ⭐⭐ Середній | 45 хв | Рівень 1 | Управління сесіями | Безпечне дослідження | Експериментування, відновлення |
| **4** | [Основи CLI](10-cli/) | ⭐⭐ Початківець+ | 30 хв | Рівень 1 | Немає | Базове використання CLI | Інтерактивний та print mode |
@@ -318,8 +318,7 @@ chmod +x ~/.claude/hooks/pre-tool-check.sh
```bash
# Вправа 1: Налаштуйте GitHub MCP
-export GITHUB_TOKEN="your_github_token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Вправа 2: Перевірте MCP-інтеграцію
# У Claude Code: /mcp__github__list_prs
@@ -391,7 +390,7 @@ cp 04-subagents/*.md .claude/agents/
✅ Управління фоновими завданнями
✅ Автопам'ять для вивчених налаштувань
✅ Auto Mode з фоновим класифікатором безпеки
-✅ Канали для структурованих багатосесійних процесів
+✅ Канали, що надсилають події (результати CI, повідомлення чату, вебхуки) у запущену сесію
✅ Голосовий ввід для роботи без клавіатури
✅ Віддалене керування, десктопний застосунок та веб-сесії
✅ Команди агентів для багатоагентної співпраці
@@ -427,10 +426,10 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Вправа 7: Заплановані завдання
/loop 5m /check-status
-# Або CronCreate для постійних запланованих завдань
+# Завдання живуть лише в межах сесії; для постійного планування використовуйте Routines або заплановані завдання Desktop
-# Вправа 8: Канали для багатосесійних процесів
-# Використовуйте канали для організації роботи між сесіями
+# Вправа 8: Канали (research preview)
+# Канал — це MCP-сервер, що надсилає події у вашу запущену сесію
# Вправа 9: Голосовий ввід
# Використовуйте голосовий ввід для роботи без клавіатури з Claude Code
@@ -443,7 +442,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
- [ ] Увімкнено розширене мислення з Alt+T / Option+T
- [ ] Використано auto mode з класифікатором безпеки
- [ ] Використано фонові завдання для тривалих операцій
-- [ ] Досліджено канали для багатосесійних процесів
+- [ ] Досліджено канали, що надсилають зовнішні події в сесію
- [ ] Спробовано голосовий ввід
- [ ] Розуміння віддаленого керування, десктопного застосунку та веб-сесій
- [ ] Увімкнено та використано команди агентів для спільних завдань
@@ -476,7 +475,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
```bash
# Вправа 1: Встановіть повний плагін
-# У Claude Code: /plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review # з кореня репозиторію
# Вправа 2: Print mode для CI/CD
claude -p "Run all tests and generate report"
@@ -747,13 +746,13 @@ done
1. **Створіть командну документацію** — задокументуйте налаштування Claude Code вашої команди
2. **Створіть кастомні плагіни** — запакуйте процеси команди
-3. **Дослідіть віддалене керування** — керуйте сесіями програмно
+3. **Дослідіть віддалене керування** — продовжуйте локальну сесію Claude Code з телефона, браузера або застосунку Claude
4. **Спробуйте веб-сесії** — використовуйте Claude Code через браузер
5. **Використовуйте десктопний застосунок** — нативний десктопний доступ
6. **Використовуйте Auto Mode** — автономна робота з класифікатором безпеки
7. **Використовуйте автопам'ять** — Claude автоматично вивчає ваші налаштування
8. **Налаштуйте команди агентів** — координуйте кількох агентів для складних завдань
-9. **Використовуйте канали** — організуйте роботу між сесіями
+9. **Використовуйте канали** — підключіть MCP-сервер, що надсилає події (результати CI, повідомлення чату, вебхуки) у вашу запущену сесію
10. **Спробуйте голосовий ввід** — робота без клавіатури
11. **Використовуйте заплановані завдання** — автоматизуйте з `/loop` та cron
12. **Додавайте приклади** — діліться зі спільнотою
@@ -790,11 +789,17 @@ done
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/commands
**Підтримується**: Контриб'ютори Claude How-To
**Ліцензія**: Освітні цілі, вільне використання та адаптація
diff --git a/uk/QUICK_REFERENCE.md b/uk/QUICK_REFERENCE.md
index e69afd5..5378252 100644
--- a/uk/QUICK_REFERENCE.md
+++ b/uk/QUICK_REFERENCE.md
@@ -55,7 +55,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
```bash
# Встановити облікові дані
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# Встановити конфігурацію (рівень проекту)
@@ -110,7 +110,7 @@ chmod +x ~/.claude/hooks/*.sh
# plan - Лише аналіз, без змін (тільки читання)
# dontAsk - Лише попередньо затверджені інструменти; решта відхиляється
# auto - Фоновий класифікатор вирішує автоматично
-# bypassPermissions - Приймати все (потребує --dangerously-skip-permissions)
+# bypassPermissions - Приймати все (--permission-mode bypassPermissions; --dangerously-skip-permissions є еквівалентом)
# Управління сесіями
/resume # Відновити попередню розмову
@@ -286,15 +286,15 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Запускати команду кожні 5 хвилин
/loop 5m /check-status
-# Одноразове нагадування
-/loop 30m "remind me to check the deploy"
+# Одноразове нагадування: попросіть звичайними словами (/loop повторюється, доки його не скасують)
+нагадай мені через 30 хвилин перевірити деплой
```
---
## 📁 Довідник розташування файлів
-```
+```text
Ваш проект/
├── .claude/
│ ├── commands/ # Слеш-команди тут
@@ -314,9 +314,12 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
│ ├── skills/ # Персональні навички
│ ├── hooks/ # Скрипти хуків
│ ├── settings.json # Налаштування користувача
-│ ├── managed-settings.d/ # Керовані налаштування (enterprise/org)
│ └── CLAUDE.md # Персональна пам'ять
└── .claude.json # Персональна конфігурація MCP (рівень користувача)
+
+Системний каталог/ # macOS /Library/Application Support/ClaudeCode/, Linux /etc/claude-code/, Windows C:\Program Files\ClaudeCode\
+├── managed-settings.json # Керовані налаштування (enterprise/org)
+└── managed-settings.d/ # Додаткові файли керованих налаштувань
```
---
@@ -383,7 +386,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
```bash
# Налаштувати MCP
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
cp 05-mcp/github-mcp.json .mcp.json
# Спробувати MCP-команди
@@ -430,7 +433,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **Список завдань** | Управління фоновими завданнями | `/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` |
+| **Вибір моделі** | Перемикання між Fable 5.1, Fable 5, Opus 5, Sonnet 5.5, Sonnet 5, Sonnet 4.6, Opus 4.8 та Haiku 4.5 | `/model` або прапорець `--model` (`sonnet` на Anthropic API вказує на Sonnet 5.5, v2.1.284+) |
| **Команди агентів** | Координація кількох агентів | Увімкнути з `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` (експериментально) |
| **Заплановані завдання** | Повторювані завдання з `/loop` | `/loop 5m /command` або CronCreate |
| **Інтеграція з Chrome** | Автоматизація браузера | Прапорець `--chrome` або `/chrome` |
@@ -465,7 +468,7 @@ ls -la .claude/agents/
head -20 .claude/agents/code-reviewer.md
# Перевірити MCP-з'єднання
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
```
---
@@ -541,8 +544,8 @@ echo $GITHUB_TOKEN
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/commands
@@ -550,3 +553,7 @@ echo $GITHUB_TOKEN
- 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
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/model-config
diff --git a/uk/README.md b/uk/README.md
index 0b99a75..4fafa2e 100644
--- a/uk/README.md
+++ b/uk/README.md
@@ -187,7 +187,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
11-13 годин для повного шляху. Але ви отримаєте цінність за 15 хвилин — просто скопіюйте шаблон слеш-команди та спробуйте.
**Чи працює це з Claude Sonnet / Haiku / Opus?**
-Так. Усі шаблони працюють з Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5.
+Так. Усі шаблони працюють з Claude Fable 5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5.
**Чи можна долучитися?**
Звичайно. Див. [CONTRIBUTING.md](CONTRIBUTING.md) для настанов. Ми вітаємо нові приклади, виправлення, покращення документації та шаблони спільноти.
@@ -262,16 +262,15 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
cp 04-subagents/*.md .claude/agents/
# MCP
-export GITHUB_TOKEN="token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Хуки
mkdir -p ~/.claude/hooks
cp 06-hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh
-# Плагіни
-/plugin install pr-review
+# Плагіни (завантажити локальний плагін з кореня репозиторію)
+claude --plugin-dir ./07-plugins/pr-review
# Контрольні точки (увімкнені за замовчуванням)
# Див. 08-checkpoints/README.md
@@ -403,11 +402,10 @@ cp 04-subagents/*.md /path/to/project/.claude/agents/
**Встановлення**:
```bash
# Встановити змінні оточення
-export GITHUB_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# Додати MCP-сервер через CLI
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
**Використання**: MCP-інструменти автоматично доступні Claude після налаштування
@@ -422,7 +420,7 @@ claude mcp add github -- npx -y @modelcontextprotocol/server-github
**Що**: Shell-команди на основі подій, що виконуються автоматично у відповідь на події Claude Code
**Приклади**:
-- `format-code.sh` — Автоформатування коду перед записом
+- `format-code.sh` — Автоформатування коду після запису
- `pre-commit.sh` — Запуск тестів перед комітами
- `security-scan.sh` — Сканування на проблеми безпеки
- `log-bash.sh` — Логування всіх bash-команд
@@ -462,9 +460,10 @@ chmod +x ~/.claude/hooks/*.sh
**Встановлення**:
```bash
-/plugin install pr-review
-/plugin install devops-automation
-/plugin install documentation
+# З кореня репозиторію (цей репозиторій не має marketplace, тому /plugin install не підходить)
+claude --plugin-dir ./07-plugins/pr-review
+claude --plugin-dir ./07-plugins/devops-automation
+claude --plugin-dir ./07-plugins/documentation
```
**Використання**: Використовуйте пакетні слеш-команди та функції
@@ -494,7 +493,8 @@ chmod +x ~/.claude/hooks/*.sh
# 2. Відновити розмову
# 3. Відновити код
# 4. Підсумувати звідси
-# 5. Скасувати
+# 5. Підсумувати до цього місця
+# 6. Скасувати
```
</details>
@@ -659,10 +659,13 @@ Claude:
---
-**Останнє оновлення**: 19 вересня 2026
-**Версія Claude Code**: 2.1.278
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/checkpointing
**Сумісні моделі**: 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/claude_concepts_guide.md b/uk/claude_concepts_guide.md
index 337cead..20659d4 100644
--- a/uk/claude_concepts_guide.md
+++ b/uk/claude_concepts_guide.md
@@ -563,7 +563,7 @@ graph TB
### Ієрархія пам'яті в Claude Code (7 рівнів)
-Claude Code завантажує пам'ять із 7 рівнів, від найвищого до найнижчого пріоритету:
+Claude Code завантажує пам'ять із 7 рівнів. Файли CLAUDE.md не перевизначають один одного, а об'єднуються в контексті й завантажуються в порядку managed → user → project → local (пізніші, більш специфічні файли читаються останніми):
```mermaid
graph TD
@@ -593,7 +593,7 @@ graph TD
| 4. Користувач | `~/.claude/CLAUDE.md` | Персональний | Середній | Індивідуальний | Особисті налаштування |
| 5. Правила користувача | `~/.claude/rules/*.md` | Персональний | Середній | Індивідуальний | Персональні модулі правил |
| 6. Локальний | `./CLAUDE.local.md` | Локальний | Низький | Не спільний | Налаштування конкретної машини |
-| 7. Авто-пам'ять | Автоматичний | Сесія | Найнижчий | Індивідуальний | Засвоєні вподобання, патерни |
+| 7. Авто-пам'ять | Автоматичний | Репозиторій | Найнижчий | Індивідуальний | Засвоєні вподобання, патерни |
### Авто-пам'ять
@@ -1308,15 +1308,15 @@ graph TB
### Комплектні навички
-Claude Code тепер включає 5 комплектних навичок, доступних одразу:
+Claude Code тепер включає 20 комплектних навичок, доступних одразу:
| Навичка | Команда | Призначення |
|-------|---------|---------|
| **Simplify** | `/simplify` | Спрощення складного коду або пояснень |
| **Batch** | `/batch` | Виконання операцій над кількома файлами або елементами |
-| **Debug** | `/debug` | Систематичне налагодження з аналізом кореневої причини |
+| **Debug** | `/debug` | Увімкнути журнал налагодження поточної сесії та шукати причину проблем, читаючи цей журнал |
| **Loop** | `/loop` | Планування повторюваних завдань за таймером |
-| **Claude API** | `/claude-api` | Пряма взаємодія з Anthropic API |
+| **Claude API** | `/claude-api` | Завантажити довідкові матеріали Claude API та Managed Agents для мови вашого проєкту; вмикається автоматично, коли код імпортує `anthropic` або `@anthropic-ai/sdk` |
Ці комплектні навички завжди доступні і не потребують встановлення або конфігурації.
@@ -2195,7 +2195,7 @@ sequenceDiagram
participant Hooks
participant Tools as Configured Tools
- User->>Claude: /plugin install pr-review
+ User->>Claude: claude --plugin-dir ./07-plugins/pr-review
Claude->>Plugin: Download plugin manifest
Plugin-->>Claude: Return plugin definition
Claude->>Install: Extract components
@@ -2221,39 +2221,14 @@ sequenceDiagram
### Структура визначення плагіна
-```yaml
----
-name: plugin-name
-version: "1.0.0"
-description: "What this plugin does"
-author: "Your Name"
-license: MIT
+Маніфест — це JSON-файл `.claude-plugin/plugin.json`. Обов'язкове лише поле `name`, а нерозпізнані ключі верхнього рівня відкидаються:
-# Plugin metadata
-tags:
- - category
- - use-case
-
-# Requirements
-requires:
- - claude-code: ">=1.0.0"
-
-# Components bundled
-components:
- - type: commands
- path: commands/
- - type: agents
- path: agents/
- - type: mcp
- path: mcp/
- - type: hooks
- path: hooks/
-
-# Configuration
-config:
- auto_load: true
- enabled_by_default: true
----
+```json
+{
+ "name": "plugin-name",
+ "version": "1.0.0",
+ "description": "What this plugin does"
+}
```
### Структура плагіна
@@ -2271,11 +2246,13 @@ my-plugin/
│ ├── specialist-2.md
│ └── configs/
├── skills/
-│ ├── skill-1.md
-│ └── skill-2.md
+│ └── skill-name/
+│ └── SKILL.md
├── hooks/
│ └── hooks.json
├── .mcp.json
+├── bin/
+│ └── my-tool
├── .lsp.json
├── settings.json
├── templates/
@@ -2348,7 +2325,7 @@ Specializes in finding security vulnerabilities:
**Встановлення:**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# Result:
# ✅ 3 slash commands installed
@@ -2503,7 +2480,7 @@ graph TD
1. Створіть структуру плагіна з усіма компонентами
2. Напишіть маніфест `.claude-plugin/plugin.json`
3. Створіть `README.md` з документацією
-4. Протестуйте локально за допомогою `/plugin install ./my-plugin`
+4. Протестуйте локально за допомогою `claude --plugin-dir ./my-plugin`
5. Надішліть на маркетплейс плагінів
6. Пройдіть перевірку та затвердження
7. Опубліковано на маркетплейсі
@@ -2525,7 +2502,7 @@ Complete PR review workflow with security, testing, and documentation checks.
## Installation
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## Features
@@ -2560,7 +2537,7 @@ Complete PR review workflow with security, testing, and documentation checks.
**З плагіном (2 хвилини):**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ Everything installed and configured
# ✅ Ready to use immediately
# ✅ Team can reproduce exact setup
@@ -2813,13 +2790,13 @@ Claude Code підтримує **33 події хуків** у п'яти тип
| Подія хука | Тригер | Сценарії використання |
|------------|---------|-----------|
| **SessionStart** | Початок/відновлення/очищення/ущільнення сесії | Налаштування середовища, ініціалізація |
-| **Setup** | Початкове налаштування середовища (один раз на сесію) | Підготовка інструментів, встановлення залежностей |
+| **Setup** | Запуск із `--init-only` або `-p` з `--init` / `--maintenance` (не спрацьовує при звичайному запуску) | Підготовка інструментів, встановлення залежностей |
| **InstructionsLoaded** | Завантажено CLAUDE.md або файл правил | Валідація, трансформація, доповнення |
| **UserPromptSubmit** | Користувач надсилає промпт | Валідація вводу, фільтрація промптів |
| **UserPromptExpansion** | Введена слеш-команда (навичка, користувацька команда, MCP-промпт) розгортається в промпт; може заблокувати розгортання | Блокування чи логування прямого використання `/command`, додавання контексту для навички |
| **PreToolUse** | Перед запуском будь-якого інструменту | Валідація, шлюзи затвердження, логування |
| **PermissionRequest** | Показано діалог дозволу | Авто-затвердження/відхилення |
-| **PermissionDenied** | Користувач відхилив запит дозволу | Логування, аналітика, політики |
+| **PermissionDenied** | Режим auto відхилив виклик інструмента (ніколи при ручному відхиленні) | Логування, аналітика, політики |
| **PostToolUse** | Після успішного виконання інструменту | Авто-форматування, сповіщення, очищення |
| **PostToolUseFailure** | Помилка виконання інструменту | Обробка помилок, логування |
| **PostToolBatch** | Після завершення пакета викликів інструментів | Зведені звіти, пакетна валідація |
@@ -2840,7 +2817,7 @@ Claude Code підтримує **33 події хуків** у п'яти тип
| **PostCompact** | Після завершення ущільнення | Дії після ущільнення |
| **PreModelSwitch** | Перед застосуванням запитаного перемикання моделі | Контроль або блокування зміни моделі |
| **PostModelSwitch** | Після зміни моделі сесії | Логування або реакція на зміну моделі |
-| **WorktreeCreate** | Створення worktree | Налаштування середовища, встановлення залежностей |
+| **WorktreeCreate** | Створення worktree | Замінює стандартне створення git worktree; має вивести шлях до worktree |
| **WorktreeRemove** | Видалення worktree | Очищення, звільнення ресурсів |
| **Elicitation** | MCP-сервер запитує введення користувача | Валідація вводу |
| **ElicitationResult** | Користувач відповідає на запит | Обробка відповіді |
@@ -2928,12 +2905,13 @@ Esc + Esc
/rewind
```
-При виборі контрольної точки доступні п'ять варіантів:
+При виборі контрольної точки доступні шість варіантів:
1. **Відновити код і розмову** — Повернути обидва до цього моменту
2. **Відновити розмову** — Повернути повідомлення, залишити поточний код
3. **Відновити код** — Повернути файли, залишити розмову
4. **Підсумувати звідси** — Стиснути розмову у підсумок
-5. **Скасувати** — Відмінити
+5. **Підсумувати до цього місця** — Стиснути все до цієї точки у підсумок
+6. **Скасувати** — Відмінити
### Сценарії використання
@@ -2946,9 +2924,11 @@ Esc + Esc
### Конфігурація
+Контрольні точки увімкнені за замовчуванням; їх контролює `fileCheckpointingEnabled`:
+
```json
{
- "autoCheckpoint": true
+ "fileCheckpointingEnabled": true
}
```
@@ -2979,12 +2959,11 @@ Esc + Esc
**Активація:**
- Перемикання `Alt+T` (або `Option+T` на macOS) під час сесії
-- Встановіть змінну середовища `MAX_THINKING_TOKENS` для програмного контролю
+- Opus 4.7+, Sonnet 5+, Haiku 5.5 і Fable завжди використовують адаптивне міркування, тож фіксований бюджет `MAX_THINKING_TOKENS` до них не застосовується; глибину регулюйте через `/effort`
```bash
-# Enable extended thinking via environment variable
-export MAX_THINKING_TOKENS=50000
-claude -p "Should we use microservices or monolith?"
+# Control reasoning depth with the effort level
+/effort high
```
**Переваги:**
@@ -3015,7 +2994,7 @@ Claude: Started task bg-1234
| **default** | Стандартні дозволи з запитами для чутливих дій | Загальна розробка |
| **acceptEdits** | Автоматично приймати редагування файлів без підтвердження | Довірені робочі процеси редагування |
| **plan** | Лише аналіз і планування, без модифікації файлів | Код-рев'ю, планування архітектури |
-| **auto** | Автоматично затверджувати безпечні дії, запитувати лише ризиковані | Збалансована автономія з безпекою |
+| **auto** | Класифікатор затверджує безпечні дії та блокує ризиковані; запити повертаються лише після 3 блокувань поспіль або 20 загалом | Збалансована автономія з безпекою |
| **dontAsk** | Автоматично відхиляє все, що потребує запиту; виконуються лише попередньо схвалені інструменти та читання | Закриті CI та скрипти |
| **bypassPermissions** | Повний необмежений доступ, без перевірок безпеки | CI/CD-конвеєри, довірені скрипти |
@@ -3085,13 +3064,7 @@ claude -r "Feature" # Resume session by name/ID
- `↑ / ↓` — Історія команд
- `Ctrl + L` — Очистити екран
-**Багаторядковий ввід:**
-```bash
-User: \
-> Long complex prompt
-> spanning multiple lines
-> \end
-```
+**Багаторядковий ввід:** натисніть `\` + Enter, Option+Enter (macOS), Shift+Enter або Ctrl+J, щоб почати новий рядок. Термінатора `\end` не існує.
### Конфігурація
@@ -3099,14 +3072,8 @@ User: \
```json
{
- "planning": {
- "autoEnter": true,
- "requireApproval": true
- },
- "extendedThinking": {
- "enabled": true,
- "showThinkingProcess": true
- },
+ "alwaysThinkingEnabled": true,
+ "showThinkingSummaries": true,
"permissions": {
"defaultMode": "manual"
}
@@ -3133,9 +3100,17 @@ User: \
*Тепер включає: хуки, контрольні точки, режим планування, розширене мислення, фонові завдання, режими дозволів (6 режимів), headless-режим, управління сесіями, авто-пам'ять, команди агентів, заплановані завдання, інтеграцію з Chrome, канали, голосовий ввід та комплектні навички*
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/create
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/interactive-mode
+- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/memory
- 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
diff --git a/uk/resources.md b/uk/resources.md
index c238a39..6b0978e 100644
--- a/uk/resources.md
+++ b/uk/resources.md
@@ -239,10 +239,10 @@ graph TD
| Функція | Опис | Дізнатися більше |
|---------|------|------------------|
| **Auto Memory** | Claude автоматично вивчає та запам'ятовує ваші уподобання між сесіями | [Посібник з пам'яті](02-memory/) |
-| **Remote Control** | Програмне управління сесіями Claude Code із зовнішніх інструментів та скриптів | [Просунуті функції](09-advanced-features/) |
+| **Remote Control** | Продовження локальної сесії Claude Code з телефона, браузера або застосунку Claude | [Просунуті функції](09-advanced-features/) |
| **Web Sessions** | Доступ до Claude Code через браузерні інтерфейси для віддаленої розробки | [Довідник CLI](10-cli/) |
| **Desktop App** | Нативний десктопний додаток Claude Code з покращеним UI | [Claude Code Docs](https://code.claude.com/docs/en/desktop) |
-| **Extended Thinking** | Перемикання глибокого мислення через `Alt+T`/`Option+T` або змінну `MAX_THINKING_TOKENS` | [Просунуті функції](09-advanced-features/) |
+| **Extended Thinking** | Перемикання глибокого мислення через `Alt+T`/`Option+T`; Opus 4.7+, Sonnet 5+, Haiku 5.5 і Fable завжди використовують адаптивне мислення, тож фіксований бюджет `MAX_THINKING_TOKENS` не застосовується (глибину керуйте через `/effort`) | [Просунуті функції](09-advanced-features/) |
| **Permission Modes** | Тонке управління: default, acceptEdits, plan, auto, dontAsk, bypassPermissions | [Просунуті функції](09-advanced-features/) |
| **7-Tier Memory** | Managed Policy, Project, Project Rules, User, User Rules, Local, Auto Memory | [Посібник з пам'яті](02-memory/) |
| **Hook Events** | 33 події: PreToolUse, PostToolUse, PostToolUseFailure, Stop, StopFailure, SubagentStart, SubagentStop, Notification, Elicitation та інші | [Посібник з хуків](06-hooks/) |
@@ -252,7 +252,9 @@ graph TD
| **Keyboard Customization** | Налаштування клавіатурних скорочень включаючи chord-послідовності | [Просунуті функції](09-advanced-features/) |
---
-**Останнє оновлення**: 15 жовтня 2026
-**Версія Claude Code**: 2.1.300
+**Останнє оновлення**: 18 жовтня 2026
+**Версія Claude Code**: 2.1.302
**Джерела**:
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/model-config
diff --git a/vi/01-slash-commands/README.md b/vi/01-slash-commands/README.md
index e287cbc..384022b 100644
--- a/vi/01-slash-commands/README.md
+++ b/vi/01-slash-commands/README.md
@@ -44,7 +44,7 @@ Lệnh tích hợp sẵn là các lối tắt cho các hành động phổ biế
| `/export [filename]` | Xuất cuộc hội thoại hiện tại sang file hoặc clipboard |
| `/extra-usage` | Cấu hình sử dụng thêm cho giới hạn tốc độ |
| `/fast [on\|off]` | Bật/tắt chế độ nhanh |
-| `/feedback` | Gửi phản hồi (bí danh: `/bug`) |
+| `/feedback` | Gửi phản hồi |
| `/help` | Hiển thị trợ giúp |
| `/hooks` | Xem cấu hình hooks |
| `/ide` | Quản lý tích hợp IDE |
@@ -97,7 +97,7 @@ Những skills này được gửi kèm với Claude Code và được gọi nh
| `/batch <instruction>` | Điều phối các thay đổi song song quy mô lớn sử dụng worktrees |
| `/claude-api` | Tải tài liệu tham khảo Claude API cho ngôn ngữ dự án |
| `/debug [description]` | Bật ghi log debug |
-| `/loop [interval] <prompt>` | Chạy prompt lặp lại trên khoảng thời gian |
+| `/loop [interval] [prompt]` | Chạy prompt lặp lại trên khoảng thời gian |
| `/simplify [focus]` | Review các file đã thay đổi để kiểm tra chất lượng code |
### Lệnh Đã Lỗi Thời
@@ -190,7 +190,7 @@ Hướng dẫn cho Claude để theo khi lệnh này được gọi.
| Trường | Mục Đích | Mặc Định |
|-------|---------|---------|
| `name` | Tên lệnh (trở thành `/name`) | Tên thư mục |
-| `description` | Mô tả ngắn (giúp Claude biết khi nào sử dụng) | Đoạn đầu tiên |
+| `description` | Mô tả ngắn (giúp Claude biết khi nào sử dụng) | Dòng không trống đầu tiên |
| `argument-hint` | Các đối số mong đợi cho tự động hoàn thành | Không có |
| `allowed-tools` | Các công cụ lệnh có thể sử dụng mà không cần quyền | Kế thừa |
| `model` | Mô hình cụ thể để sử dụng | Kế thừa |
@@ -561,8 +561,8 @@ 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 15 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.300
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/output-styles
@@ -571,6 +571,7 @@ Nếu cả hai tồn tại với cùng tên, **skill sẽ được ưu tiên**.
- 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
+- https://code.claude.com/docs/en/skills
**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 a39cd77..0ad7510 100644
--- a/vi/02-memory/README.md
+++ b/vi/02-memory/README.md
@@ -291,13 +291,13 @@ Trong các monorepos lớn, một số file CLAUDE.md có thể không liên qua
// In ~/.claude/settings.json hoặc .claude/settings.json
{
"claudeMdExcludes": [
- "packages/legacy-app/CLAUDE.md",
- "vendors/**/CLAUDE.md"
+ "**/packages/legacy-app/CLAUDE.md",
+ "**/vendors/**/CLAUDE.md"
]
}
```
-Các mẫu được so khớp với các đường dẫn tương đối với root dự án. Điều này đặc biệt hữu ích cho:
+Các mẫu được so khớp với đường dẫn file tuyệt đối theo cú pháp glob, vì vậy hãy bắt đầu các mẫu trong repo bằng `**/`. Điều này đặc biệt hữu ích cho:
- Monorepos với nhiều dự án con, trong đó chỉ một số có liên quan
- Các kho chứa chứa các file CLAUDE.md của bên thứ ba hoặc được bán
@@ -405,10 +405,10 @@ sequenceDiagram
participant Editor as File System
participant Memory as CLAUDE.md
- User->>Claude: "Remember: use async/await"
+ User->>Claude: "Add async/await rule to CLAUDE.md"
Claude->>User: "Which memory file?"
User->>Claude: "Project memory"
- Claude->>Editor: Open ~/.claude/settings.json
+ Claude->>Editor: Open ./CLAUDE.md
Claude->>Memory: Write to ./CLAUDE.md
Memory-->>Claude: File saved
Claude->>Claude: Load updated memory
@@ -417,15 +417,15 @@ sequenceDiagram
## Auto Memory
-Auto memory là một thư mục liên tục nơi Claude tự động ghi lại các bài học, mẫu, và thông tin chi tiết khi nó làm việc với dự án của bạn. Không giống như các file CLAUDE.md mà bạn viết và duy trì thủ công, auto memory được viết bởi Claude bản thân trong các phiên.
+Auto memory là một thư mục liên tục nơi Claude tự động lưu các ghi chú có phân loại (`user`, `feedback`, `project`, `reference`) khi nó làm việc với dự án của bạn. Claude bỏ qua những gì có thể suy ra từ codebase, như kiến trúc, đường dẫn file, hoặc các bản sửa lỗi debug. Không giống như các file CLAUDE.md mà bạn viết và duy trì thủ công, auto memory được viết bởi Claude bản thân trong các phiên.
### Cách Auto Memory Hoạt Động
- **Vị trí**: `~/.claude/projects/<project>/memory/`
- **Điểm vào**: `MEMORY.md` phục vụ như file chính trong thư mục auto memory
-- **Files chủ đề**: Các file bổ sung tùy chọn cho các chủ đề cụ thể (ví dụ: `debugging.md`, `api-conventions.md`)
+- **Files chủ đề**: Các file bổ sung tùy chọn, mỗi file một mục nhớ (ví dụ: `prefers-pnpm.md`, `release-checklist.md`)
- **Hành vi tải**: 200 dòng đầu tiên của `MEMORY.md` được tải vào system prompt khi bắt đầu phiên. Các file chủ đề được tải theo yêu cầu, không phải khi khởi động.
-- **Đọc/ghi**: Claude đọc và ghi các file bộ nhớ trong các phiên khi nó khám phá các mẫu và kiến thức cụ thể dự án
+- **Đọc/ghi**: Claude đọc và ghi các file bộ nhớ trong các phiên khi nó học được sở thích, phản hồi của bạn và bối cảnh dự án
### Kiến Trúc Auto Memory
@@ -433,11 +433,11 @@ Auto memory là một thư mục liên tục nơi Claude tự động ghi lại
graph TD
A["Claude Session Starts"] --> B["Load MEMORY.md<br/>(first 200 lines)"]
B --> C["Session Active"]
- C --> D["Claude discovers<br/>patterns & insights"]
+ C --> D["Claude learns<br/>preferences & feedback"]
D --> E{"Write to<br/>auto memory"}
E -->|General notes| F["MEMORY.md"]
- E -->|Topic-specific| G["debugging.md"]
- E -->|Topic-specific| H["api-conventions.md"]
+ E -->|Topic-specific| G["prefers-pnpm.md"]
+ E -->|Topic-specific| H["release-checklist.md"]
C --> I["On-demand load<br/>topic files"]
I --> C
@@ -457,9 +457,9 @@ graph TD
```
~/.claude/projects/<project>/memory/
├── MEMORY.md # Entrypoint (200 dòng đầu tiên được tải khi khởi động)
-├── debugging.md # Topic file (được tải theo yêu cầu)
-├── api-conventions.md # Topic file (được tải theo yêu cầu)
-└── testing-patterns.md # Topic file (được tải theo yêu cầu)
+├── prefers-pnpm.md # Topic file (được tải theo yêu cầu)
+├── release-checklist.md # Topic file (được tải theo yêu cầu)
+└── team-contacts.md # Topic file (được tải theo yêu cầu)
```
### Yêu Cầu Phiên Bản
@@ -475,13 +475,13 @@ npm install -g @anthropic-ai/claude-code@latest
Theo mặc định, auto memory được lưu trữ trong `~/.claude/projects/<project>/memory/`. Bạn có thể thay đổi vị trí này sử dụng cài đặt `autoMemoryDirectory` (có sẵn kể từ **v2.1.74**):
```jsonc
-// In ~/.claude/settings.json hoặc .claude/settings.local.json (chỉ cài đặt người dùng/cục bộ)
+// Trong bất kỳ file cài đặt nào: người dùng, dự án, cục bộ hoặc chính sách được quản lý
{
"autoMemoryDirectory": "/path/to/custom/memory/directory"
}
```
-> **Lưu ý**: `autoMemoryDirectory` chỉ có thể được đặt ở cấp người dùng (`~/.claude/settings.json`) hoặc cài đặt cục bộ (`.claude/settings.local.json`), không phải trong cài đặt dự án hoặc chính sách được quản lý.
+> **Lưu ý**: `autoMemoryDirectory` được đọc từ mọi phạm vi cài đặt: người dùng, dự án, cục bộ, chính sách được quản lý, hoặc `--settings`. Giá trị phải là đường dẫn tuyệt đối hoặc bắt đầu bằng `~/`.
Điều này hữu ích khi bạn muốn:
@@ -776,12 +776,12 @@ I organize my projects as:
### Ví Dụ 4: Cập Nhật Bộ Nhớ Trong Phiên
-Bạn có thể thêm các quy tắc mới vào bộ nhớ trong một phiên Claude Code đang hoạt động. Có hai cách để làm điều này:
+Bạn có thể thêm các quy tắc mới vào CLAUDE.md trong một phiên Claude Code đang hoạt động (yêu cầu Claude *ghi nhớ* điều gì đó sẽ lưu vào auto memory thay vì CLAUDE.md). Có hai cách để làm điều này:
#### Phương Pháp 1: Yêu Cầu Trực Tiếp
```markdown
-User: Remember that I prefer using React hooks instead of class components
+User: Add this to CLAUDE.md: I prefer using React hooks instead of class components
for all new components.
Claude: I'm adding that to your memory. Which memory file should this go in?
@@ -1159,12 +1159,14 @@ 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 15 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.300
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**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
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/claude-directory
**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 08d24d4..e21c5e6 100644
--- a/vi/03-skills/README.md
+++ b/vi/03-skills/README.md
@@ -100,7 +100,7 @@ Khi skills chia sẻ cùng tên qua các cấp, vị trí ưu tiên cao hơn th
**Thư mục `--add-dir`**: Skills từ các thư mục được thêm qua `--add-dir` được tải tự động với phát hiện thay đổi trực tiếp. Bất kỳ chỉnh sửa nào cho các file skill trong các thư mục đó có hiệu lực ngay lập tức mà không cần khởi động lại Claude Code.
-**Ngân sách description**: Các mô tả Skill (metadata cấp 1) được giới hạn ở **2% của cửa sổ bối cảnh** (fallback: **16,000 ký tự**). Nếu bạn có nhiều skills được cài đặt, một số có thể bị loại bỏ. Chạy `/context` để kiểm tra các cảnh báo. Ghi đè ngân sách với biến môi trường `SLASH_COMMAND_TOOL_CHAR_BUDGET`.
+**Ngân sách description**: Các mô tả Skill (metadata cấp 1) được giới hạn ở **1% của cửa sổ bối cảnh** (fallback: **8,000 ký tự**). Nếu bạn có nhiều skills được cài đặt, một số có thể bị loại bỏ. Chạy `/context` để kiểm tra các cảnh báo. Ghi đè ngân sách với biến môi trường `SLASH_COMMAND_TOOL_CHAR_BUDGET`.
## Tạo Skills Tùy Chỉnh
@@ -135,7 +135,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.
+- **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 dòng không trống đầ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ự) 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ị.
@@ -411,7 +411,7 @@ Một skill tạo ra các hình ảnh hóa HTML tương tác:
**File:** `~/.claude/skills/codebase-visualizer/SKILL.md`
-```yaml
+````yaml
---
name: codebase-visualizer
description: Generate an interactive collapsible tree visualization of your codebase. Use when exploring a new repo, understanding project structure, or identifying large files.
@@ -438,7 +438,7 @@ This creates `codebase-map.html` and opens it in your default browser.
- **File sizes**: Displayed next to each file
- **Colors**: Different colors for different file types
- **Directory totals**: Shows aggregate size of each folder
-```
+````
Script Python được gói thực hiện công việc nặng trong khi Claude xử lý điều phối.
@@ -762,7 +762,7 @@ Claude Code được gửi với một số skills được tích hợp sẵn lu
| `/simplify` | Review các file đã thay đổi để tái sử dụng, chất lượng, và hiệu quả; tạo ra 3 tác nhân review song song |
| `/batch <instruction>` | Điều phối các thay đổi song song quy mô lớn qua codebase sử dụng git worktrees |
| `/debug [description]` | Khắc phục sự cố phiên hiện tại bằng cách đọc debug log |
-| `/loop [interval] <prompt>` | Chạy prompt lặp lại trên khoảng thời gian (ví dụ: `/loop 5m check the deploy`) |
+| `/loop [interval] [prompt]` | Chạy prompt lặp lại trên khoảng thời gian (ví dụ: `/loop 5m check the deploy`) |
| `/claude-api` | Tải tài liệu tham khảo Claude API/SDK; tự động kích hoạt trên các imports `anthropic`/`@anthropic-ai/sdk` |
Các skills này có sẵn ngay lập tức và không cần được cài đặt hoặc cấu hình. Chúng theo cùng định dạng SKILL.md như các skills tùy chỉnh.
@@ -810,8 +810,8 @@ 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 15 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.300
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/hooks#hooks-in-skills-and-agents
@@ -821,4 +821,6 @@ Khi bạn bắt đầu xây dựng skills một cách nghiêm túc, hai điều
- 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
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/commands
**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 20d6d41..dcb572f 100644
--- a/vi/03-skills/claude-md/SKILL.md
+++ b/vi/03-skills/claude-md/SKILL.md
@@ -93,7 +93,7 @@ Trong CLAUDE.md, tham khảo các file này với các hướng dẫn như:
Khi tạo hoặc cập nhật CLAUDE.md:
-1. **Độ Dài Mục Tiêu**: Dưới 300 dòng (lý tưởng dưới 100)
+1. **Độ Dài Mục Tiêu**: Dưới 200 dòng
2. **Không Quy Tắc Phong Cách**: Loại bỏ bất kỳ hướng dẫn linting/formatting nào
3. **Không Hướng Dẫn Cụ Theo Tác Vụ**: Di chuyển sang các file riêng
4. **Không Đoạn Code**: Sử dụng tham chiếu file thay thế
@@ -150,7 +150,7 @@ Mô tả ngắn một dòng.
Trước khi hoàn thành, xác minh:
-- [ ] Dưới 300 dòng (lý tưởng dưới 100)
+- [ ] Dưới 200 dòng
- [ ] Mọi dòng áp dụng cho TẤT CẢ các phiên
- [ ] Không quy tắc phong cách/formatting
- [ ] Không đoạn code (sử dụng tham chiếu file)
@@ -217,7 +217,7 @@ Subagents được định nghĩa riêng, trong `.claude/agents/*.md` — không
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/memory
diff --git a/vi/04-subagents/README.md b/vi/04-subagents/README.md
index 0d1d94a..0d39707 100644
--- a/vi/04-subagents/README.md
+++ b/vi/04-subagents/README.md
@@ -69,10 +69,11 @@ Files tác nhân con có thể được lưu trữ ở nhiều vị trí với c
| Ưu Tiên | Loại | Vị Trí | Phạm Vi |
|----------|------|----------|-------|
-| 1 (cao nhất) | **Được định nghĩa qua CLI** | Qua cờ `--agents` (JSON) | Chỉ phiên |
-| 2 | **Tác nhân dự án** | `.claude/agents/` | Dự án hiện tại |
-| 3 | **Tác nhân người dùng** | `~/.claude/agents/` | Tất cả dự án |
-| 4 (thấp nhất) | **Tác nhân plugin** | Thư mục `agents/` của plugin | Qua plugins |
+| 1 (cao nhất) | **Được quản lý (managed)** | Managed settings | Toàn tổ chức |
+| 2 | **Được định nghĩa qua CLI** | Qua cờ `--agents` (JSON) | Chỉ phiên |
+| 3 | **Tác nhân dự án** | `.claude/agents/` | Dự án hiện tại |
+| 4 | **Tác nhân người dùng** | `~/.claude/agents/` | Tất cả dự án |
+| 5 (thấp nhất) | **Tác nhân plugin** | Thư mục `agents/` của plugin | Qua plugins |
Khi tên trùng lặp tồn tại, nguồn ưu tiên cao hơn sẽ được ưu tiên.
@@ -119,7 +120,7 @@ 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. MCP: `mcp__<server>__*` cấp quyền cho toàn bộ một server (v2.1.299+: chỉ khớp đúng tên server đó). |
+| `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 khi tác nhân chạy như luồng chính với `claude --agent`; bên trong một tác nhân con, danh sách loại bị bỏ qua. 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 | `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 |
@@ -192,12 +193,13 @@ claude --agents '{
**Ưu Tiên Định Nghĩa Tác Nhân:**
Các định nghĩa tác nhân được tải với thứ tự ưu tiên này (khớp đầu tiên thắng):
-1. **Được định nghĩa qua CLI** - cờ `--agents` (phiên chỉ, JSON)
-2. **Cấp dự án** - `.claude/agents/` (dự án hiện tại)
-3. **Cấp người dùng** - `~/.claude/agents/` (tất cả dự án)
-4. **Cấp plugin** - Thư mục `agents/` của plugin
+1. **Được quản lý (managed)** - managed settings (toàn tổ chức)
+2. **Được định nghĩa qua CLI** - cờ `--agents` (phiên chỉ, JSON)
+3. **Cấp dự án** - `.claude/agents/` (dự án hiện tại)
+4. **Cấp người dùng** - `~/.claude/agents/` (tất cả dự án)
+5. **Cấp plugin** - Thư mục `agents/` của plugin
-Điều này cho phép định nghĩa CLI ghi đè tất cả các nguồn khác cho một phiên duy nhất.
+Điều này cho phép định nghĩa CLI ghi đè các định nghĩa cấp dự án, người dùng và plugin cho một phiên duy nhất; định nghĩa được quản lý (managed) vẫn được ưu tiên hơn.
---
@@ -428,6 +430,7 @@ Trường `memory` cung cấp cho tác nhân con một thư mục liên tục t
```yaml
---
name: researcher
+description: Research assistant that keeps findings in persistent memory across sessions
memory: user
---
@@ -524,7 +527,7 @@ graph TB
## Hạn Chế Tác Nhân Con Có Thể Tạo
-Bạn có thể kiểm soát các tác nhân con mà một tác nhân con cho phép tạo bằng cách sử dụng cú pháp `Agent(agent_type)` trong trường `tools`. Điều này cung cấp một cách để cho phép danh sách các tác nhân con cụ thể cho ủy quyền.
+Bạn có thể kiểm soát các tác nhân con mà một tác nhân chạy như luồng chính với `claude --agent` được phép tạo bằng cách sử dụng cú pháp `Agent(agent_type)` trong trường `tools`. Điều này cung cấp một cách để cho phép danh sách các tác nhân con cụ thể cho ủy quyền. Trong định nghĩa tác nhân con, mọi danh sách loại trong dấu ngoặc đều bị bỏ qua.
> **Lưu ý**: Trong v2.1.63, công cụ `Task` đã được đổi tên thành `Agent`. Các tham chiếu `Task(...)` hiện có vẫn hoạt động như bí danh.
@@ -541,7 +544,7 @@ You are a coordinator agent. You can delegate work to the "worker" and
"researcher" subagents only. Use Read and Bash for your own exploration.
```
-Trong ví dụ này, tác nhân con `coordinator` chỉ có thể tạo các tác nhân con `worker` và `researcher`. Nó không thể tạo bất kỳ tác nhân con nào khác, ngay cả khi chúng được định nghĩa ở nơi khác.
+Trong ví dụ này, khi bạn chạy `claude --agent coordinator`, luồng chính chỉ có thể tạo các tác nhân con `worker` và `researcher`. Nó không thể tạo bất kỳ tác nhân con nào khác, ngay cả khi chúng được định nghĩa ở nơi khác. Nếu `coordinator` chạy như một tác nhân con, danh sách loại bị bỏ qua.
---
@@ -632,7 +635,7 @@ Bạn cũng có thể đặt chế độ hiển thị trong `settings.json`:
### Điều hướng
-Sử dụng `Shift+Down` để điều hướng giữa các đồng nghiệp trong chế độ split-pane.
+Để di chuyển giữa các đồng nghiệp, dùng phím mũi tên lên/xuống trong bảng agent rồi nhấn Enter (chế độ in-process), hoặc nhấp vào pane của đồng nghiệp (chế độ split-pane).
### Cấu hình đội
@@ -812,7 +815,7 @@ graph TB
### Hành Vi Chính
- **Không tạo lồng nhau** - Tác nhân con không thể tạo các tác nhân con khác
-- **Quyền nền** - Tác nhân con nền tự động từ chối bất kỳ quyền nào không được phê duyệt trước
+- **Quyền nền** - Khi tác nhân con nền cần một quyền chưa được phê duyệt trước, lời nhắc xuất hiện trong phiên chính và nêu tên tác nhân con đang yêu cầu
- **Chạy nền** - Nhấn `Ctrl+B` để chạy nền một tác vụ đang chạy
- **Bản ghi** - Bản ghi tác nhân con được lưu tại `~/.claude/projects/{project}/{sessionId}/subagents/agent-{agentId}.jsonl`
- **Tự động nén** - Bối cảnh tác nhân con tự động nén ở ~95% dung lượng (ghi đè qua biến môi trường `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`)
@@ -1127,8 +1130,8 @@ graph TD
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/commands
@@ -1138,4 +1141,7 @@ graph TD
- 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
+- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/changelog#2-1-302
**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 a7652f1..0b6b8a5 100644
--- a/vi/05-mcp/README.md
+++ b/vi/05-mcp/README.md
@@ -226,7 +226,7 @@ Tìm kiếm công cụ được bật theo mặc định: các công cụ MCP đ
| `ENABLE_TOOL_SEARCH` | `true` | Tất cả công cụ MCP được hoãn lại |
| `ENABLE_TOOL_SEARCH` | `false` | Đã tắt; tất cả mô tả công cụ được gửi đầy đủ |
-> **Lưu Ý:** Tìm kiếm công cụ yêu cầu một mô hình hỗ trợ các khối `tool_reference`: Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.5, và các mô hình mới hơn.
+> **Lưu Ý:** Tìm kiếm công cụ yêu cầu một mô hình hỗ trợ các khối `tool_reference`: Claude Opus 4, Claude Sonnet 4, Claude Haiku 4.5, và các mô hình mới hơn (Opus 4.5, Sonnet 4.5, Haiku 4.5 trở lên trên Agent Platform của Google Cloud).
## Cập Nhật Công Cụ Động / Dynamic Tool Updates
@@ -285,7 +285,7 @@ Code sử dụng `local`:
```bash
# Phạm vi project — ghi vào .mcp.json để cả nhóm dùng chung
-claude mcp add --scope project --transport http github https://api.github.com/mcp
+claude mcp add --scope project --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Phạm vi user — có sẵn trong mọi project
claude mcp add --scope user --transport stdio memory -- npx @modelcontextprotocol/server-memory
@@ -300,7 +300,10 @@ Lưu trữ cấu hình MCP cụ thể project trong `.mcp.json`:
"mcpServers": {
"github": {
"type": "http",
- "url": "https://api.github.com/mcp"
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
+ }
}
}
}
@@ -314,7 +317,7 @@ Các thành viên nhóm sẽ thấy prompt chấp thuận khi sử dụng projec
```bash
# Thêm server dựa trên HTTP
-claude mcp add --transport http github https://api.github.com/mcp
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Thêm server stdio cục bộ
claude mcp add --transport stdio database -- npx @company/db-server
@@ -358,10 +361,10 @@ claude mcp add-from-claude-desktop
{
"mcpServers": {
"github": {
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
@@ -410,9 +413,9 @@ Reviewers: @bob, @charlie
**Thiết Lập:**
```bash
-export GITHUB_TOKEN="your_github_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"
# Hoặc sử dụng CLI để thêm trực tiếp:
-claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
### Mở Rộng Biến Môi Trường Trong Cấu Hình / Environment Variable Expansion in Configuration
@@ -454,10 +457,7 @@ Các biến được mở rộng tại runtime:
"mcpServers": {
"database": {
"command": "npx",
- "args": ["@modelcontextprotocol/server-database"],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
}
}
}
@@ -487,8 +487,8 @@ ORDER BY order_count DESC;
**Thiết Lập:**
```bash
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-# Hoặc sử dụng CLI để thêm trực tiếp:
-claude mcp add --transport stdio database -- npx @modelcontextprotocol/server-database
+claude mcp add --transport stdio database -- npx -y @bytebase/dbhub \
+ --dsn "$DATABASE_URL"
```
### Ví Dụ 3: Workflow Multi-MCP / Example 3: Multi-MCP Workflow
@@ -540,9 +540,10 @@ Final Output:
**Thiết Lập:**
```bash
-export GITHUB_TOKEN="your_github_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-export SLACK_TOKEN="your_slack_token"
+export SLACK_BOT_TOKEN="your_slack_bot_token"
+export SLACK_TEAM_ID="your_slack_team_id"
# Thêm mỗi MCP server qua CLI hoặc cấu hình chúng trong .mcp.json
```
@@ -623,9 +624,10 @@ Lưu trữ credentials nhạy cảm trong các biến môi trường:
```bash
# ~/.bashrc hoặc ~/.zshrc
-export GITHUB_TOKEN="ghp_xxxxxxxxxxxxx"
+export GITHUB_PERSONAL_ACCESS_TOKEN="ghp_xxxxxxxxxxxxx"
export DATABASE_URL="postgresql://user:pass@localhost/mydb"
-export SLACK_TOKEN="xoxb-xxxxxxxxxxxxx"
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
```
Sau đó tham khảo chúng trong cấu hình MCP:
@@ -633,7 +635,7 @@ Sau đó tham khảo chúng trong cấu hình MCP:
```json
{
"env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
```
@@ -746,6 +748,8 @@ Các MCP server có thể được định nghĩa inline trong frontmatter agent
```yaml
---
+name: my-tool-agent
+description: Uses my-tool for specialized operations
mcpServers:
my-tool:
type: http
@@ -764,7 +768,7 @@ Claude Code thực thi các giới hạn trên đầu ra công cụ MCP để ng
| Giới Hạn | Ngưỡng | Hành Vi |
|-------|-----------|----------|
| **Cảnh Báo** | 10,000 tokens | Một cảnh báo được hiển thị rằng đầu ra lớn |
-| **Max mặc định** | 25,000 tokens | Đầu ra bị cắt ngắn vượt quá giới hạn này |
+| **Max mặc định** | 25,000 tokens | Đầu ra lớn hơn được lưu vào một file, và đường dẫn file được đưa vào cuộc hội thoại thay thế |
| **Persist đĩa** | 50,000 ký tự | Kết quả công cụ vượt quá 50K ký tự được persist đến đĩa |
Giới hạn đầu ra tối đa có thể cấu hình qua biến môi trường `MAX_MCP_OUTPUT_TOKENS`:
@@ -1037,7 +1041,7 @@ MCPorter bổ sung cho cách tiếp cận thực thi code được mô tả ở
1. **Thêm MCP server đầu tiên của bạn** sử dụng CLI (ví dụ: GitHub):
```bash
-claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
```
Hoặc tạo một file `.mcp.json` trong thư mục gốc project của bạn:
@@ -1045,10 +1049,10 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
{
"mcpServers": {
"github": {
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
@@ -1057,7 +1061,7 @@ claude mcp add --transport stdio github -- npx @modelcontextprotocol/server-gith
2. **Đặt các biến môi trường:**
```bash
-export GITHUB_TOKEN="your_github_personal_access_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_personal_access_token"
```
3. **Test kết nối:**
@@ -1080,7 +1084,7 @@ npm install -g @modelcontextprotocol/server-github
**Database MCP:**
```bash
-npm install -g @modelcontextprotocol/server-database
+npm install -g @bytebase/dbhub
```
**Filesystem MCP:**
@@ -1088,7 +1092,7 @@ npm install -g @modelcontextprotocol/server-database
npm install -g @modelcontextprotocol/server-filesystem
```
-**Slack MCP:**
+**Slack MCP (gói đã ngừng hỗ trợ):**
```bash
npm install -g @modelcontextprotocol/server-slack
```
@@ -1107,10 +1111,10 @@ npm install -g @modelcontextprotocol/server-github
### Authentication Failed
```bash
# Xác minh biến môi trường được đặt
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
# Re-export nếu cần
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
# Xác minh token có các quyền đúng
# Check GitHub token scopes tại: https://github.com/settings/tokens
@@ -1158,8 +1162,8 @@ export GITHUB_TOKEN="your_token"
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/managed-mcp
@@ -1168,4 +1172,5 @@ export GITHUB_TOKEN="your_token"
- 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
+- https://code.claude.com/docs/en/sub-agents
**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/database-mcp.json b/vi/05-mcp/database-mcp.json
index 8b78836..dc4ee0a 100644
--- a/vi/05-mcp/database-mcp.json
+++ b/vi/05-mcp/database-mcp.json
@@ -3,10 +3,7 @@
"database": {
"type": "stdio",
"command": "npx",
- "args": ["@modelcontextprotocol/server-database"],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
}
}
}
diff --git a/vi/05-mcp/github-mcp.json b/vi/05-mcp/github-mcp.json
index d2c3946..e2dafb8 100644
--- a/vi/05-mcp/github-mcp.json
+++ b/vi/05-mcp/github-mcp.json
@@ -1,11 +1,10 @@
{
"mcpServers": {
"github": {
- "type": "stdio",
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
diff --git a/vi/05-mcp/multi-mcp.json b/vi/05-mcp/multi-mcp.json
index ceb0e0d..8611424 100644
--- a/vi/05-mcp/multi-mcp.json
+++ b/vi/05-mcp/multi-mcp.json
@@ -1,27 +1,24 @@
{
"mcpServers": {
"github": {
- "type": "stdio",
- "command": "npx",
- "args": ["@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": {
+ "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
},
"database": {
"type": "stdio",
"command": "npx",
- "args": ["@modelcontextprotocol/server-database"],
- "env": {
- "DATABASE_URL": "${DATABASE_URL}"
- }
+ "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
},
"slack": {
"type": "stdio",
"command": "npx",
"args": ["@modelcontextprotocol/server-slack"],
"env": {
- "SLACK_TOKEN": "${SLACK_TOKEN}"
+ "SLACK_BOT_TOKEN": "${SLACK_BOT_TOKEN}",
+ "SLACK_TEAM_ID": "${SLACK_TEAM_ID}"
}
},
"filesystem": {
diff --git a/vi/06-hooks/README.md b/vi/06-hooks/README.md
index 157b2d4..2af4f1d 100644
--- a/vi/06-hooks/README.md
+++ b/vi/06-hooks/README.md
@@ -95,15 +95,17 @@ Loại hook mặc định. Thực thi một lệnh shell và giao tiếp qua JSO
> Thêm vào v2.1.63.
-Các endpoints webhook từ xa nhận cùng đầu vào JSON như command hooks. HTTP hooks POST JSON đến URL và nhận phản hồi JSON. HTTP hooks được định tuyến qua sandbox khi sandboxing được bật. Nội suy biến môi trường trong URLs yêu cầu danh sách `allowedEnvVars` rõ ràng để bảo mật.
+Các endpoints webhook từ xa nhận cùng đầu vào JSON như command hooks. HTTP hooks POST JSON đến URL và nhận phản hồi JSON. HTTP hooks được định tuyến qua sandbox khi sandboxing được bật. Nội suy biến môi trường vào giá trị header yêu cầu danh sách `allowedEnvVars` rõ ràng để bảo mật.
```json
{
"hooks": {
"PostToolUse": [{
- "type": "http",
- "url": "https://my-webhook.example.com/hook",
- "matcher": "Write"
+ "matcher": "Write",
+ "hooks": [{
+ "type": "http",
+ "url": "https://my-webhook.example.com/hook"
+ }]
}]
}
}
@@ -113,7 +115,7 @@ Các endpoints webhook từ xa nhận cùng đầu vào JSON như command hooks.
- `"type": "http"` -- xác định đây là một HTTP hook
- `"url"` -- URL endpoint webhook
- Được định tuyến qua sandbox khi sandbox được bật
-- Yêu cầu danh sách `allowedEnvVars` rõ ràng cho bất kỳ nội suy biến môi trường nào trong URL
+- Yêu cầu danh sách `allowedEnvVars` rõ ràng cho bất kỳ nội suy biến môi trường nào trong giá trị `headers`
### MCP Tool Hooks / Hooks Công Cụ MCP
@@ -165,7 +167,7 @@ Hooks xác thực dựa trên subagent mà spawn một agent chuyên dụng đ
> **Lưu ý**: Agent hooks là tính năng thử nghiệm và có thể thay đổi.
-> **Lưu ý**: Kể từ v2.1.280, agent hooks không chạy trên `PermissionRequest` — câu trả lời của chúng không bao giờ có thể cho phép hoặc từ chối yêu cầu. Hãy dùng hook command, http, mcp_tool, hoặc prompt ở đó.
+> **Lưu ý**: Kể từ v2.1.280, agent hooks không chạy trên `PermissionRequest` — câu trả lời của chúng không bao giờ có thể cho phép hoặc từ chối yêu cầu. Hãy dùng hook command hoặc HTTP trả về đối tượng quyết định ở đó (`ok: false` của prompt hook không có tác dụng trên `PermissionRequest`).
**Các thuộc tính chính:**
- `"type": "agent"` -- xác định đây là một agent hook
@@ -247,7 +249,7 @@ Chạy sau khi Claude tạo tham số công cụ và trước khi xử lý. Sử
- `"ask"` nhắc người dùng xác nhận
- `"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"`
+- `permissionDecisionReason`: Giải thích cho quyết định. Hiển thị cho người dùng (không phải Claude) với `"ask"`; hiển thị cho Claude với `"deny"`; với `"allow"` và `"defer"`, chỉ được ghi vào debug log
- `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
@@ -485,7 +487,7 @@ Tất cả hooks nhận đầu vào JSON qua stdin:
},
"tool_use_id": "toolu_01ABC123...",
"agent_id": "agent-abc123",
- "agent_type": "main",
+ "agent_type": "security-reviewer",
"worktree": "/path/to/worktree"
}
```
@@ -499,7 +501,7 @@ Tất cả hooks nhận đầu vào JSON qua stdin:
| `cwd` | Thư mục làm việc hiện tại |
| `hook_event_name` | Tên của sự kiện kích hoạt hook |
| `agent_id` | Định danh của agent chạy hook này |
-| `agent_type` | Loại agent (`"main"`, tên loại subagent, v.v.) |
+| `agent_type` | Tên agent (ví dụ `"Explore"` hoặc `"security-reviewer"`); chỉ có khi phiên dùng `--agent` hoặc hook chạy bên trong subagent |
| `worktree` | Đường dẫn đến git worktree, nếu agent chạy trong một |
### Exit Codes
@@ -508,7 +510,7 @@ Tất cả hooks nhận đầu vào JSON qua stdin:
|-----------|---------|----------|
| **0** | Thành công | Tiếp tục, phân tích cú pháp JSON stdout |
| **2** | Lỗi chặn | Chặn thao tác, stderr được hiển thị như lỗi |
-| **Khác** | Lỗi không chặn | Tiếp tục, stderr được hiển thị trong chế độ verbose |
+| **Khác** | Lỗi không chặn | Tiếp tục; thông báo `<hook name> hook error` trong transcript hiển thị dòng đầu tiên của stderr |
### Đầu Ra JSON (stdout, exit code 0) / JSON Output (stdout, exit code 0)
@@ -567,13 +569,13 @@ Tất cả hooks nhận đầu vào JSON qua stdin:
**Schema Phản Hồi LLM:**
```json
{
- "decision": "approve",
- "reason": "All tasks completed successfully",
- "continue": false,
- "stopReason": "Task complete"
+ "ok": false,
+ "reason": "Tests were not run after the last edit"
}
```
+`ok: true` cho phép hành động; `reason` là bắt buộc khi `ok` là `false`.
+
## Ví Dụ / Examples
### Ví Dụ 1: Trình Xác Thực Lệnh Bash (PreToolUse) / Example 1: Bash Command Validator
@@ -808,7 +810,7 @@ Các công cụ MCP theo mẫu `mcp__<server>__<tool>`:
### Ghi Chú Bảo Mật / Security Notes
- **Cần tin cậy workspace:** Các output commands hook `statusLine` và `fileSuggestion` bây giờ yêu cầu chấp nhận tin cậy workspace trước khi chúng có hiệu lực.
-- **HTTP hooks và biến môi trường:** HTTP hooks yêu cầu danh sách `allowedEnvVars` rõ ràng để sử dụng nội suy biến môi trường trong URLs. Điều này ngăn chặn lộ vô ý các biến môi trường nhạy cảm đến các endpoints từ xa.
+- **HTTP hooks và biến môi trường:** HTTP hooks yêu cầu danh sách `allowedEnvVars` rõ ràng để sử dụng nội suy biến môi trường trong giá trị header. Điều này ngăn chặn lộ vô ý các biến môi trường nhạy cảm đến các endpoints từ xa.
- **Phân cấp settings được quản lý:** Cài đặt `disableAllHooks` bây giờ tôn trọng phân cấp settings được quản lý, nghĩa là settings cấp tổ chức có thể thực thi vô hiệu hóa hook mà người dùng cá nhân không thể ghi đè.
### Thực Hành Tốt Nhất / Best Practices
@@ -880,8 +882,8 @@ 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 15 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.300
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
diff --git a/vi/06-hooks/pre-commit.sh b/vi/06-hooks/pre-commit.sh
index 6521ac2..bc79511 100644
--- a/vi/06-hooks/pre-commit.sh
+++ b/vi/06-hooks/pre-commit.sh
@@ -8,6 +8,13 @@
# Bất kỳ giá trị khác 0 nào khác đều là lỗi KHÔNG chặn — commit vẫn tiếp tục.
# Nguồn: https://code.claude.com/docs/en/hooks
+# Đọc JSON của hook từ stdin; chỉ chạy test với lệnh git commit
+INPUT=$(cat)
+COMMAND=$(echo "$INPUT" | sed -n 's/.*"command"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)
+if ! echo "$COMMAND" | grep -q 'git commit'; then
+ exit 0
+fi
+
echo "🧪 Running tests before commit..."
# Check if package.json exists (Node.js project)
diff --git a/vi/07-plugins/README.md b/vi/07-plugins/README.md
index 7e1827c..390ae71 100644
--- a/vi/07-plugins/README.md
+++ b/vi/07-plugins/README.md
@@ -43,7 +43,7 @@ sequenceDiagram
participant Hooks
participant Tools as Configured Tools
- User->>Claude: /plugin install pr-review
+ User->>Claude: claude --plugin-dir ./07-plugins/pr-review
Claude->>Plugin: Download plugin manifest
Plugin-->>Claude: Return plugin definition
Claude->>Install: Extract components
@@ -100,8 +100,10 @@ my-plugin/
│ ├── specialist-2.md
│ └── configs/
├── skills/ # Agent Skills với các file SKILL.md
-│ ├── skill-1.md
-│ └── skill-2.md
+│ ├── skill-1/
+│ │ └── SKILL.md
+│ └── skill-2/
+│ └── SKILL.md
├── hooks/ # Event handlers trong hooks.json
│ └── hooks.json
├── .mcp.json # Cấu hình MCP server
@@ -200,7 +202,7 @@ Marketplace chính thức bao gồm các plugin LSP được cấu hình trướ
|--------|----------|---------------|----------------|
| `pyright-lsp` | Python | `pyright-langserver` | `pip install pyright` |
| `typescript-lsp` | TypeScript/JavaScript | `typescript-language-server` | `npm install -g typescript-language-server typescript` |
-| `rust-lsp` | Rust | `rust-analyzer` | Cài đặt qua `rustup component add rust-analyzer` |
+| `rust-analyzer-lsp` | Rust | `rust-analyzer` | Cài đặt qua `rustup component add rust-analyzer` |
#### Khả năng LSP / LSP capabilities
@@ -221,10 +223,14 @@ Plugins có thể khai báo các tùy chọn có thể cấu hình bởi ngườ
"version": "1.0.0",
"userConfig": {
"apiKey": {
+ "type": "string",
+ "title": "API key",
"description": "API key for the service",
"sensitive": true
},
"region": {
+ "type": "string",
+ "title": "Region",
"description": "Deployment region",
"default": "us-east-1"
}
@@ -258,32 +264,37 @@ Thư mục (`~/.claude/plugins/data/<id>/`) được tạo lần đầu tiên kh
## Plugin Inline qua Settings (`source: 'settings'`) (v2.1.80+)
-Plugins có thể được định nghĩa inline trong các file settings như các mục marketplace sử dụng trường `source: 'settings'`. Điều này cho phép nhúng định nghĩa plugin trực tiếp mà không cần repository hoặc marketplace riêng:
+Plugins có thể được định nghĩa inline trong các file settings như các mục marketplace sử dụng trường `source: 'settings'`. Điều này cho phép nhúng định nghĩa plugin trực tiếp mà không cần repository hoặc marketplace riêng. Khai báo nó trong `extraKnownMarketplaces.<name>.source`; `name` phải trùng với key của marketplace, và các plugin của nó phải tham chiếu nguồn bên ngoài như GitHub hoặc npm (đường dẫn tương đối bị từ chối):
```json
{
- "pluginMarketplaces": [
- {
- "name": "inline-tools",
- "source": "settings",
- "plugins": [
- {
- "name": "quick-lint",
- "source": "./local-plugins/quick-lint"
- }
- ]
+ "extraKnownMarketplaces": {
+ "inline-tools": {
+ "source": {
+ "source": "settings",
+ "name": "inline-tools",
+ "plugins": [
+ {
+ "name": "quick-lint",
+ "source": {
+ "source": "github",
+ "repo": "my-org/quick-lint"
+ }
+ }
+ ]
+ }
}
- ]
+ }
}
```
## Cài Đặt Plugin / Plugin Settings
-Plugins có thể gửi một file `settings.json` để cung cấp cấu hình mặc định. Điều này hiện hỗ trợ key `agent`, thiết lập agent luồng chính cho plugin:
+Plugins có thể gửi một file `settings.json` để cung cấp cấu hình mặc định. Hai key có hiệu lực là `agent` và `subagentStatusLine`; mọi key khác bị bỏ qua. `agent` nhận tên của một agent trong plugin và chạy nó làm luồng chính:
```json
{
- "agent": "agents/specialist-1.md"
+ "agent": "specialist-1"
}
```
@@ -357,7 +368,7 @@ Chuyên về việc tìm các lỗ hổng bảo mật:
**Cài Đặt:**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# Result:
# ✅ 3 slash commands installed
@@ -457,9 +468,9 @@ Người dùng enterprise và nâng cao có thể kiểm soát hành vi marketpl
|---------|-------------|
| `extraKnownMarketplaces` | Thêm các nguồn marketplace bổ sung ngoài mặc định |
| `strictKnownMarketplaces` | Kiểm soát marketplace nào người dùng được phép thêm |
-| `deniedPlugins` | Blocklist do quản trị viên quản lý để ngăn cài đặt các plugin cụ thể |
+| `enabledPlugins` (đặt `false`) | Chặn một plugin cụ thể: `"enabledPlugins": { "<plugin>@<marketplace>": false }` trong managed settings chặn cài đặt ở mọi phạm vi và ẩn plugin khỏi marketplace |
-> **Bí danh thân thiện hơn (v2.1.232)**: `additionalMarketplaces` được chấp nhận như bí danh của `extraKnownMarketplaces`, và `allowedMarketplaces` của `strictKnownMarketplaces`. **Nguồn changelog** — changelog v2.1.232 công bố chúng, nhưng trang settings chính thức chưa liệt kê. Các khóa chuẩn vẫn an toàn để tiếp tục dùng.
+> **Bí danh thân thiện hơn (v2.1.232)**: `additionalMarketplaces` được chấp nhận như bí danh của `extraKnownMarketplaces`, và `allowedMarketplaces` của `strictKnownMarketplaces`. Trang settings chính thức liệt kê cả hai tại [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases). Các phiên bản cũ hơn bỏ qua bí danh, nên các khóa chuẩn vẫn an toàn để tiếp tục dùng.
> **Ký tự đại diện theo owner (v2.1.223+)**: một mục `"owner/*"` cho phép hoặc chặn mọi repo marketplace thuộc một owner GitHub. **Chỉ được chấp nhận trong `strictKnownMarketplaces` và `blockedMarketplaces`.** Ở mọi nơi khác dùng nguồn `github` — kể cả `extraKnownMarketplaces` và `/plugin marketplace add` — giá trị `repo` phải chỉ đúng một repository.
@@ -476,14 +487,14 @@ Plugin marketplaces được định nghĩa trong `.claude-plugin/marketplace.js
```json
{
"name": "my-team-plugins",
- "owner": "my-org",
+ "owner": { "name": "my-org" },
"plugins": [
{
"name": "code-standards",
"source": "./plugins/code-standards",
"description": "Enforce team coding standards",
"version": "1.2.0",
- "author": "platform-team"
+ "author": { "name": "platform-team" }
},
{
"name": "deploy-helper",
@@ -501,13 +512,13 @@ Plugin marketplaces được định nghĩa trong `.claude-plugin/marketplace.js
| Trường | Bắt Buộc | Mô Tả |
|-------|----------|-------------|
| `name` | Có | Tên marketplace trong kebab-case |
-| `owner` | Có | Tổ chức hoặc người dùng duy trì marketplace |
+| `owner` | Có | Tổ chức hoặc người dùng duy trì marketplace: một object với `name` bắt buộc (`email`, `url` tùy chọn) |
| `plugins` | Có | Mảng các mục plugin |
| `plugins[].name` | Có | Tên plugin (kebab-case) |
| `plugins[].source` | Có | Nguồn plugin (chuỗi đường dẫn hoặc object nguồn) |
| `plugins[].description` | Không | Mô tả plugin ngắn |
| `plugins[].version` | Không | Chuỗi phiên bản semantic |
-| `plugins[].author` | Không | Tên tác giả plugin |
+| `plugins[].author` | Không | Tác giả plugin: một object với `name` bắt buộc (`email`, `url` tùy chọn) |
### Các loại nguồn plugin / Plugin source types
@@ -520,7 +531,6 @@ Plugins có thể được sourced từ nhiều vị trí:
| **Git URL** | `{ "source": "url", "url": "..." }` | `{ "source": "url", "url": "https://git.internal/plugin.git" }` |
| **Git subdirectory** | `{ "source": "git-subdir", "url": "...", "path": "..." }` | `{ "source": "git-subdir", "url": "https://github.com/org/monorepo.git", "path": "packages/plugin" }` |
| **npm** | `{ "source": "npm", "package": "..." }` | `{ "source": "npm", "package": "@acme/claude-plugin", "version": "^2.0" }` |
-| **pip** | `{ "source": "pip", "package": "..." }` | `{ "source": "pip", "package": "claude-data-plugin", "version": ">=1.0" }` |
Các nguồn GitHub và git hỗ trợ các trường tùy chọn `ref` (nhánh/tag) và `sha` (hash commit) để version pinning.
@@ -539,7 +549,7 @@ Các nguồn GitHub và git hỗ trợ các trường tùy chọn `ref` (nhánh/
**Repository riêng tư**: Được hỗ trợ qua các git credential helpers hoặc token môi trường. Người dùng phải có quyền truy cập đọc đến repository.
-**Nộp marketplace chính thức**: Gửi plugins đến marketplace do Anthropic quản lý để phân phối rộng hơn.
+**Nộp vào thư mục của Anthropic**: Gửi plugins đến thư mục (directory) của Anthropic để phân phối rộng hơn qua cổng nhà phát triển [claude.ai/directory/manage](https://claude.ai/directory/manage). Marketplace chính thức `claude-plugins-official` không nhận bài nộp qua cổng này.
### Chế độ nghiêm ngặt / Strict mode
@@ -556,13 +566,13 @@ Kiểm soát cách các định nghĩa marketplace tương tác với các file
|-------|--------|
| Không được đặt | Không có hạn chế — người dùng có thể thêm bất kỳ marketplace nào |
| Mảng rỗng `[]` | Khóa — không cho phép marketplaces |
-| Mảng các mẫu | Allowlist — chỉ các marketplaces khớp có thể được thêm |
+| Mảng các đối tượng nguồn | Allowlist — chỉ các marketplaces khớp có thể được thêm |
```json
{
"strictKnownMarketplaces": [
- "my-org/*",
- "github.com/trusted-vendor/*"
+ { "source": "github", "repo": "my-org/*" },
+ { "source": "github", "repo": "trusted-vendor/*" }
]
}
```
@@ -713,12 +723,12 @@ Các quản trị viên có thể kiểm soát hành vi plugin trên một tổ
| Cài Đặt | Mô Tả |
|---------|-------------|
| `enabledPlugins` | Allowlist của các plugin được kích hoạt theo mặc định |
-| `deniedPlugins` | Blocklist của các plugin không thể được cài đặt |
+| `enabledPlugins` (đặt `false`) | Chặn một plugin cụ thể: `"enabledPlugins": { "<plugin>@<marketplace>": false }` trong managed settings chặn cài đặt ở mọi phạm vi và ẩn plugin khỏi marketplace |
| `extraKnownMarketplaces` | Thêm các nguồn marketplace bổ sung ngoài mặc định |
| `strictKnownMarketplaces` | Hạn chế marketplace nào người dùng được phép thêm |
-| `allowedChannelPlugins` | Kiểm soát plugins nào được phép theo kênh phát hành |
+| `allowedChannelPlugins` | Allowlist các plugin [channel](https://code.claude.com/docs/en/channels) được phép đẩy tin nhắn vào phiên (mỗi mục gồm `marketplace` và `plugin`) |
-> **Bí danh thân thiện hơn (v2.1.232)**: `additionalMarketplaces` được chấp nhận như bí danh của `extraKnownMarketplaces`, và `allowedMarketplaces` của `strictKnownMarketplaces`. **Nguồn changelog** — changelog v2.1.232 công bố chúng, nhưng trang settings chính thức chưa liệt kê. Các khóa chuẩn vẫn an toàn để tiếp tục dùng.
+> **Bí danh thân thiện hơn (v2.1.232)**: `additionalMarketplaces` được chấp nhận như bí danh của `extraKnownMarketplaces`, và `allowedMarketplaces` của `strictKnownMarketplaces`. Trang settings chính thức liệt kê cả hai tại [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases). Các phiên bản cũ hơn bỏ qua bí danh, nên các khóa chuẩn vẫn an toàn để tiếp tục dùng.
> **Ký tự đại diện theo owner (v2.1.223+)**: một mục `"owner/*"` cho phép hoặc chặn mọi repo marketplace thuộc một owner GitHub. **Chỉ được chấp nhận trong `strictKnownMarketplaces` và `blockedMarketplaces`.** Ở mọi nơi khác dùng nguồn `github` — kể cả `extraKnownMarketplaces` và `/plugin marketplace add` — giá trị `repo` phải chỉ đúng một repository.
@@ -726,13 +736,14 @@ Các cài đặt này có thể được áp dụng ở cấp tổ chức qua c
## Bảo Mật Plugin / Plugin Security
-Các subagent plugin chạy trong một sandbox bị hạn chế. Các key frontmatter sau **không được phép** trong định nghĩa subagent plugin:
+Các subagent plugin **bỏ qua** các key frontmatter sau (agent vẫn được tải; các key này không có tác dụng):
- `hooks` -- Subagents không thể đăng ký event handlers
- `mcpServers` -- Subagents không thể cấu hình MCP servers
- `permissionMode` -- Subagents không thể ghi đè mô hình quyền
+- `initialPrompt` -- Plugin agents không thể tự động gửi prompt đầu tiên
-Điều này đảm bảo rằng plugins không thể leo thang đặc quyền hoặc sửa đổi môi trường host vượt quá phạm vi được khai báo của chúng.
+Một file agent không thể tự thêm hooks hoặc MCP servers; hãy cung cấp chúng dưới dạng hooks và MCP servers cấp plugin.
## Xuất Bản Một Plugin / Publishing a Plugin
@@ -749,7 +760,7 @@ Các subagent plugin chạy trong một sandbox bị hạn chế. Các key front
**Ví dụ gửi:**
-```markdown
+````markdown
# PR Review Plugin
## Mô Tả
@@ -763,7 +774,7 @@ Workflow PR review hoàn chỉnh với các kiểm tra bảo mật, testing, và
## Cài Đặt
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## Tính Năng
@@ -784,7 +795,7 @@ Workflow PR review hoàn chỉnh với các kiểm tra bảo mật, testing, và
- Claude Code 2.1+
- Truy cập GitHub
- CodeQL (tùy chọn)
-```
+````
## Plugin vs Cấu Hình Thủ Công / Plugin vs Manual Configuration
@@ -798,7 +809,7 @@ Workflow PR review hoàn chỉnh với các kiểm tra bảo mật, testing, và
**Với Plugin (2 phút):**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ Mọi thứ được cài đặt và cấu hình
# ✅ Sẵn sàng sử dụng ngay lập tức
# ✅ Nhóm có thể tái sản xuất thiết lập chính xác
@@ -834,15 +845,12 @@ Workflow PR review hoàn chỉnh với các kiểm tra bảo mật, testing, và
### Cài Đặt Từ Marketplace
-1. **Duyệt các plugins có sẵn:**
+1. **Duyệt các plugins có sẵn** (tab **Discover** liệt kê plugin từ các marketplace của bạn; `/plugin list` chỉ hiển thị plugin đã cài):
```bash
- /plugin list
+ /plugin
```
-2. **Xem chi tiết plugin:**
- ```bash
- claude plugin details plugin-name
- ```
+2. **Xem chi tiết plugin:** chọn plugin trong tab **Discover** để mở chi tiết. (`claude plugin details plugin-name` chỉ hoạt động khi plugin đã được tải: đã cài, hoặc truyền qua `--plugin-dir`.)
3. **Cài đặt một plugin:**
```bash
@@ -852,7 +860,8 @@ Workflow PR review hoàn chỉnh với các kiểm tra bảo mật, testing, và
### Cài Đặt Từ Đường Dẫn Cục Bộ
```bash
-/plugin install ./path/to/plugin-directory
+# /plugin install cần name@marketplace; truyền đường dẫn sẽ báo lỗi "marketplace not found"
+claude --plugin-dir ./path/to/plugin-directory
```
### Cài Đặt Từ GitHub
@@ -930,7 +939,7 @@ Các tính năng Claude Code sau hoạt động cùng với plugins:
## Xử Lý Sự Cố / Troubleshooting
### Plugin Won't Install
-- Kiểm tra tính tương thích phiên bản Claude Code: `/version`
+- Kiểm tra tính tương thích phiên bản Claude Code: `claude --version`
- Xác minh cú pháp `plugin.json` với một trình xác thực JSON
- Kiểm tra kết nối internet (cho plugins từ xa)
- Review quyền: `ls -la plugin/`
@@ -944,7 +953,7 @@ Các tính năng Claude Code sau hoạt động cùng với plugins:
### MCP Connection Failed
- Xác minh các biến môi trường được đặt đúng
- Kiểm tra cài đặt và sức khỏe MCP server
-- Test kết nối MCP độc lập với `/mcp test`
+- Kiểm tra trạng thái MCP server bằng `/mcp`
- Review cấu hình MCP trong thư mục `mcp/`
### Commands Not Available After Install
@@ -971,12 +980,17 @@ 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 15 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.300
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/settings
- https://code.claude.com/docs/en/plugins/install
- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/marketplace-reference
+- https://code.claude.com/docs/en/plugins/components
+- https://code.claude.com/docs/en/plugins/publish
+- https://code.claude.com/docs/en/plugins/overview
**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/07-plugins/devops-automation/README.md b/vi/07-plugins/devops-automation/README.md
index 489f12b..9edded6 100644
--- a/vi/07-plugins/devops-automation/README.md
+++ b/vi/07-plugins/devops-automation/README.md
@@ -18,7 +18,7 @@ Complete DevOps automation for deployment, monitoring, and incident response.
## Installation
```bash
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
## What's Included
@@ -105,3 +105,11 @@ Result:
🚀 Pods: 3/3 ready
⏱️ Time: 2m 34s
```
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/vi/07-plugins/documentation/README.md b/vi/07-plugins/documentation/README.md
index 6b6c338..cf51fd6 100644
--- a/vi/07-plugins/documentation/README.md
+++ b/vi/07-plugins/documentation/README.md
@@ -18,7 +18,7 @@ Comprehensive documentation generation and maintenance for your project.
## Installation
```bash
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
## What's Included
@@ -117,3 +117,11 @@ export GITHUB_TOKEN="your_github_token"
- Include practical examples
- Validate regularly
- Use templates for consistency
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/vi/07-plugins/pr-review/README.md b/vi/07-plugins/pr-review/README.md
index 763fd6a..18c3d23 100644
--- a/vi/07-plugins/pr-review/README.md
+++ b/vi/07-plugins/pr-review/README.md
@@ -18,7 +18,7 @@ Complete PR review workflow with security, testing, and documentation checks.
## Installation
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## What's Included
@@ -89,3 +89,11 @@ Result:
✅ Performance: No significant impact
📝 Recommendations: Add tests for edge cases
```
+
+---
+
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
+**Nguồn**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/vi/09-advanced-features/README.md b/vi/09-advanced-features/README.md
index 5627fcc..c2ba914 100644
--- a/vi/09-advanced-features/README.md
+++ b/vi/09-advanced-features/README.md
@@ -111,7 +111,7 @@ claude --permission-mode plan
**Keyboard shortcut**:
- `Shift + Tab` - Toggle permission modes (including plan)
-- `Alt + M` - Toggle permission modes (Windows/Linux)
+- `Alt + M` - Toggle permission modes (Windows only, when the runtime doesn't enable VT input mode)
### Benefits of Planning Mode
@@ -424,9 +424,9 @@ When the classifier is uncertain, auto mode falls back to prompting the user:
This ensures the user always retains control when the classifier cannot confidently approve an action.
-### Seeding Auto-Mode-Equivalent Permissions (No Team Plan Required)
+### Seeding Auto-Mode-Equivalent Permissions
-If you don't have a Team plan or want a simpler approach without the background classifier, you can seed your `~/.claude/settings.json` with a conservative baseline of safe permission rules. The script starts with read-only and local-inspection rules, then lets you opt into edits, tests, local git writes, package installs, and GitHub write actions only when you want them.
+If you want a simpler approach without the background classifier, you can seed your `~/.claude/settings.json` with a conservative baseline of safe permission rules. The script starts with read-only and local-inspection rules, then lets you opt into edits, tests, local git writes, package installs, and GitHub write actions only when you want them.
**File:** `09-advanced-features/setup-auto-mode-permissions.py`
@@ -646,13 +646,13 @@ Permission modes control what actions Claude can take without explicit approval.
| `bypassPermissions` | All actions, no permission checks (dangerous) |
| `dontAsk` | Only pre-approved tools execute; all others denied |
-Cycle through modes with `Shift+Tab` in the CLI. Set a default with the `--permission-mode` flag or the `permissions.defaultMode` setting. When no permission mode is configured, interactive terminal and VS Code sessions start in auto mode on every plan and provider since v2.1.284 (v2.1.283 did this only on third-party providers such as Bedrock, Google Cloud's Agent Platform, and Foundry, or with telemetry off); `permissions.defaultMode` still overrides it, and a session where auto mode isn't available starts in Manual instead. `claude -p` and the Agent SDK start in `default` when nothing is configured, except that since v2.1.285 `claude -p` and Python Agent SDK sessions on third-party providers or with telemetry off also start in auto mode; `--permission-mode` still overrides it.
+Cycle through modes with `Shift+Tab` in the CLI. Set a default with the `--permission-mode` flag or the `permissions.defaultMode` setting. When no permission mode is configured, interactive terminal and VS Code sessions start in auto mode on every plan and provider since v2.1.284 (v2.1.283 did this only on third-party providers such as Bedrock, Google Cloud's Agent Platform, and Foundry, or with telemetry off); `permissions.defaultMode` still overrides it, and a session where auto mode isn't available starts in Manual instead. Since v2.1.302, `claude -p` and Agent SDK sessions that set no permission mode start in `default` mode on third-party providers, with telemetry off, or on a fresh install; pass `--permission-mode auto` to keep auto mode.
### Activation Methods
**Keyboard shortcut**:
```bash
-Shift + Tab # Cycle through all 6 modes
+Shift + Tab # Cycle default → acceptEdits → plan, then bypassPermissions/auto when available (dontAsk never appears in the cycle)
```
**Slash command**:
@@ -1045,26 +1045,22 @@ User: Ctrl+R # Search history
### Multi-line Input
-For complex queries, use multi-line mode:
+For complex queries, start a new line with `\` + Enter, Option+Enter (macOS), Shift+Enter, or Ctrl+J. There is no `\end` terminator — press Enter to send:
```bash
-User: \
-> Long complex prompt
-> spanning multiple lines
-> \end
+User: Long complex prompt \
+spanning multiple lines
```
**Example:**
```
-User: \
-> Implement a user authentication system
-> with the following requirements:
-> - JWT tokens
-> - Email verification
-> - Password reset
-> - 2FA support
-> \end
+User: Implement a user authentication system \
+with the following requirements: \
+- JWT tokens \
+- Email verification \
+- Password reset \
+- 2FA support
Claude: [Processes the multi-line request]
```
@@ -1145,8 +1141,8 @@ Channels (Research Preview) allow MCP servers to push messages into running Clau
### Subscribing to Channels
```bash
-# Subscribe to channel plugins at startup
-claude --channels discord,telegram
+# Subscribe to channel plugins at startup (space-separated)
+claude --channels plugin:discord@claude-plugins-official plugin:telegram@claude-plugins-official
```
### Supported Integrations
@@ -1162,24 +1158,28 @@ claude --channels discord,telegram
```json
{
- "allowedChannelPlugins": ["discord", "telegram"]
+ "channelsEnabled": true,
+ "allowedChannelPlugins": [
+ { "marketplace": "claude-plugins-official", "plugin": "discord" },
+ { "marketplace": "claude-plugins-official", "plugin": "telegram" }
+ ]
}
```
-The `allowedChannelPlugins` managed setting controls which channel plugins are permitted across the organization.
+The `allowedChannelPlugins` managed setting controls which channel plugins are permitted across the organization. It replaces the Anthropic-maintained allowlist and requires `channelsEnabled: true`.
### How It Works
1. MCP servers act as channel plugins that connect to external services
2. Incoming messages are pushed into the active Claude Code session
3. Claude can read and respond to messages within the session context
-4. Channel plugins must be approved via the `allowedChannelPlugins` managed setting
+4. Channel plugins must be on the Anthropic-maintained allowlist, or on your organization's `allowedChannelPlugins` list when an admin sets one
---
## Chrome Integration
-Chrome Integration connects Claude Code to your Chrome or Microsoft Edge browser for live web automation and debugging. This is a beta feature available since v2.0.73+ (Edge support added in v1.0.36+).
+Chrome Integration connects Claude Code to your Chrome or Microsoft Edge browser for live web automation and debugging. This is a beta feature available since v2.0.73+ (requires Claude in Chrome extension v1.0.36+).
### Enabling Chrome Integration
@@ -1219,7 +1219,7 @@ Claude Code controls the browser in a visible window — you can watch actions h
### Known limitations
-- **Browser support**: Chrome and Edge only — Brave, Arc, and other Chromium browsers are not supported
+- **Browser support**: Chrome and Edge; Claude Code also connects in other Chromium-based browsers such as Brave, Arc, Vivaldi, and Opera
- **WSL**: Not available in Windows Subsystem for Linux
- **Third-party providers**: Not supported with Bedrock, Vertex, or Foundry API providers
- **Service worker idle**: The Chrome extension service worker may go idle during extended sessions
@@ -1369,10 +1369,15 @@ Configure dev server behavior in `.claude/launch.json`:
```json
{
- "command": "npm run dev",
- "port": 3000,
- "readyPattern": "ready on",
- "persistCookies": true
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "my-app",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "dev"],
+ "port": 3000
+ }
+ ]
}
```
@@ -1402,9 +1407,10 @@ The Desktop App supports the same permission modes as the CLI:
| Mode | Behavior |
|------|----------|
-| **Ask permissions** (default) | Review and approve every edit and command |
-| **Auto accept edits** | File edits auto-approved; commands require manual approval |
-| **Plan mode** | Review approach before any changes are made |
+| **Manual** (default) | Review and approve every edit and command |
+| **Accept edits** | File edits auto-approved; commands require manual approval |
+| **Plan** | Review approach before any changes are made |
+| **Auto** | Runs without routine prompts; a background classifier checks actions first |
| **Bypass permissions** | Automatic execution (sandbox-only, admin-controlled) |
### Enterprise features
@@ -1554,8 +1560,7 @@ claude --settings '{"sandbox": {"enabled": true}}'
"allowWrite": ["/Users/me/project"],
"allowRead": ["/Users/me/project", "/usr/local/lib"],
"denyRead": ["/Users/me/.ssh", "/Users/me/.aws"]
- },
- "enableWeakerNetworkIsolation": true
+ }
}
}
```
@@ -1565,7 +1570,7 @@ claude --settings '{"sandbox": {"enabled": true}}'
- Bash commands run in a sandboxed environment with restricted filesystem access
- Network access can be isolated to prevent unintended external connections
- Works alongside permission rules for defense in depth
-- On macOS, use `sandbox.enableWeakerNetworkIsolation` for network restrictions (full network isolation is not available on macOS)
+- On macOS, Seatbelt blocks all network connections except the one to the sandbox proxy; `sandbox.enableWeakerNetworkIsolation` **weakens** that isolation and is only for tools such as Go CLIs behind a MITM `httpProxyPort` proxy
### Use Cases
@@ -1590,10 +1595,10 @@ Managed Settings enable enterprise administrators to deploy Claude Code configur
### Managed Drop-ins
-Since v2.1.83, administrators can deploy multiple managed settings files into a `managed-settings.d/` directory. Files are merged in alphabetical order, allowing modular configuration across teams:
+Since v2.1.83, administrators can deploy multiple managed settings files into a `managed-settings.d/` directory. Files are merged in alphabetical order, allowing modular configuration across teams. The directory sits next to `managed-settings.json` in the system directory (`/Library/Application Support/ClaudeCode/` on macOS, `/etc/claude-code/` on Linux, `C:\Program Files\ClaudeCode\` on Windows):
```
-~/.claude/managed-settings.d/
+/etc/claude-code/managed-settings.d/
00-org-defaults.json
10-team-policies.json
20-project-overrides.json
@@ -1603,7 +1608,7 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
| Setting | Description |
|---------|-------------|
-| `disableBypassPermissionsMode` | Prevent users from enabling bypass permissions |
+| `permissions.disableBypassPermissionsMode` | Set to `"disable"` to prevent users from enabling bypass permissions |
| `availableModels` | Restrict which models users can select |
| `allowedChannelPlugins` | Control which channel plugins are permitted |
| `autoMode.environment` | Configure trusted infrastructure for auto mode |
@@ -1617,8 +1622,11 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>disableBypassPermissionsMode</key>
- <true/>
+ <key>permissions</key>
+ <dict>
+ <key>disableBypassPermissionsMode</key>
+ <string>disable</string>
+ </dict>
<key>availableModels</key>
<array>
<string>claude-sonnet-4-6</string>
@@ -1634,13 +1642,14 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
### Configuration File Locations
-1. **Global config**: `~/.claude/config.json`
-2. **Project config**: `./.claude/config.json`
-3. **User config**: `~/.config/claude-code/settings.json`
+1. **User settings**: `~/.claude/settings.json`
+2. **Project settings**: `.claude/settings.json` (checked in)
+3. **Local project settings**: `.claude/settings.local.json` (not checked in)
+4. **Managed settings**: `managed-settings.json` in the system directory (see Managed Settings above)
### Complete Configuration Example
-**Core advanced features configuration:**
+**Core advanced features configuration** (`.claude/settings.json`):
```json
{
@@ -1648,16 +1657,25 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
"defaultMode": "manual"
},
"hooks": {
- "PreToolUse:Edit": "eslint --fix ${file_path}",
- "PostToolUse:Write": "~/.claude/hooks/security-scan.sh"
- },
- "mcp": {
- "enabled": true,
- "servers": {
- "github": {
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-github"]
- }
+ "PreToolUse": [
+ { "matcher": "Edit", "hooks": [{ "type": "command", "command": "~/.claude/hooks/eslint-fix.sh" }] }
+ ],
+ "PostToolUse": [
+ { "matcher": "Write", "hooks": [{ "type": "command", "command": "~/.claude/hooks/security-scan.sh" }] }
+ ]
+ }
+}
+```
+
+Hook scripts receive the tool input as JSON on stdin (for example `tool_input.file_path`); there is no `${file_path}` substitution. MCP servers are not a settings key — define them in `.mcp.json` at the project root:
+
+```json
+{
+ "mcpServers": {
+ "github": {
+ "type": "http",
+ "url": "https://api.githubcopilot.com/mcp/",
+ "headers": { "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}" }
}
}
}
@@ -1669,31 +1687,20 @@ Since v2.1.83, administrators can deploy multiple managed settings files into a
{
"permissions": {
"defaultMode": "manual",
- "allowedTools": ["Bash(git log:*)", "Read"],
- "disallowedTools": ["Bash(rm -rf:*)"]
+ "allow": ["Bash(git log:*)", "Read"],
+ "deny": ["Bash(rm -rf:*)"]
},
"hooks": {
- "PreToolUse": [{ "matcher": "Edit", "hooks": ["eslint --fix ${file_path}"] }],
- "PostToolUse": [{ "matcher": "Write", "hooks": ["~/.claude/hooks/security-scan.sh"] }],
- "Stop": [{ "hooks": ["~/.claude/hooks/notify.sh"] }]
- },
-
- "mcp": {
- "enabled": true,
- "servers": {
- "github": {
- "command": "npx",
- "args": ["-y", "@modelcontextprotocol/server-github"],
- "env": {
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
- }
- }
- }
+ "PreToolUse": [{ "matcher": "Edit", "hooks": [{ "type": "command", "command": "~/.claude/hooks/eslint-fix.sh" }] }],
+ "PostToolUse": [{ "matcher": "Write", "hooks": [{ "type": "command", "command": "~/.claude/hooks/security-scan.sh" }] }],
+ "Stop": [{ "hooks": [{ "type": "command", "command": "~/.claude/hooks/notify.sh" }] }]
}
}
```
+The GitHub MCP server for this setup goes in `.mcp.json`, as shown above.
+
### Environment Variables
Override config with environment variables:
@@ -1713,7 +1720,7 @@ export MAX_THINKING_TOKENS=16000
export CLAUDE_CODE_EFFORT_LEVEL=high
# Feature toggles
-export CLAUDE_CODE_DISABLE_AUTO_MEMORY=true
+export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 # Disable auto memory (no auto memory files are created or loaded)
export CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=true
export CLAUDE_CODE_DISABLE_CRON=1
export CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=true
@@ -1721,7 +1728,7 @@ export CLAUDE_CODE_DISABLE_TERMINAL_TITLE=true
export CLAUDE_CODE_DISABLE_1M_CONTEXT=true
export CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=true
export CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false
-export CLAUDE_CODE_ENABLE_TASKS=true
+export CLAUDE_CODE_ENABLE_TASKS=0 # Task tools are the default; 0 reverts to the legacy TodoWrite tool
export CLAUDE_CODE_SIMPLE=true # Set by --bare flag
# MCP configuration
@@ -1762,23 +1769,28 @@ The `/config` command provides an interactive menu to toggle settings such as:
### Per-Project Configuration
-Create `.claude/config.json` in your project:
+Create `.claude/settings.json` in your project:
```json
{
"hooks": {
- "PreToolUse": [{ "matcher": "Bash", "hooks": ["npm test && npm run lint"] }]
+ "PreToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "npm test && npm run lint" }] }]
},
"permissions": {
"defaultMode": "manual"
- },
- "mcp": {
- "servers": {
- "project-db": {
- "command": "mcp-postgres",
- "env": {
- "DATABASE_URL": "${PROJECT_DB_URL}"
- }
+ }
+}
+```
+
+Put the project's MCP servers in `.mcp.json` at the project root:
+
+```json
+{
+ "mcpServers": {
+ "project-db": {
+ "command": "mcp-postgres",
+ "env": {
+ "DATABASE_URL": "${PROJECT_DB_URL}"
}
}
}
@@ -1846,8 +1858,8 @@ For more information about Claude Code and related features:
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/auto-mode-classifier-billing
@@ -1863,4 +1875,12 @@ For more information about Claude Code and related features:
- 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
+- https://code.claude.com/docs/en/settings
+- https://code.claude.com/docs/en/hooks
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/desktop
+- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/env-vars
+- https://code.claude.com/docs/en/changelog#2-1-302
**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 80e22fb..b7a7104 100644
--- a/vi/10-cli/README.md
+++ b/vi/10-cli/README.md
@@ -68,8 +68,8 @@ graph TD
| `--channels` | Đăng ký các plugin kênh MCP. Mỗi mục phải được gắn thẻ `plugin:<name>@<marketplace>`; tên trần sẽ bị từ chối | `claude --channels plugin:discord@my-marketplace` |
| `--chrome` / `--no-chrome` | Bật/tắt tích hợp trình duyệt Chrome | `claude --chrome` |
| `--effort` | Đặt mức độ suy nghĩ | `claude --effort high` |
-| `--init` / `--init-only` | Chạy các hooks khởi tạo | `claude --init` |
-| `--maintenance` | Chạy các hooks bảo trì và thoát | `claude --maintenance` |
+| `--init` / `--init-only` | `--init` chạy các hooks khởi tạo (Setup) trước phiên, chỉ ở print mode; `--init-only` chạy Setup và `SessionStart` hooks rồi thoát | `claude -p --init "query"` |
+| `--maintenance` | Chạy các hooks bảo trì (Setup) trước phiên (chỉ ở print mode) | `claude -p --maintenance "query"` |
| `--disable-slash-commands` | Vô hiệu hóa tất cả skills và lệnh slash | `claude --disable-slash-commands` |
| `--no-session-persistence` | Vô hiệu hóa lưu session (chế độ in) | `claude -p --no-session-persistence "query"` |
@@ -117,14 +117,14 @@ claude -p "list todos" | grep "URGENT"
### Ví Dụ Chọn Mô Hình / Model Selection Examples
```bash
-# Sử dụng Opus 4.6 cho các tác vụ phức tạp
+# Sử dụng Opus 5.5 cho các tác vụ phức tạp
claude --model opus "design a caching strategy"
# Sử dụng Haiku cho các tác vụ nhanh (Haiku 5.5 trên Anthropic API từ v2.1.293; Haiku 4.5 trên Bedrock, Vertex và Foundry)
claude --model haiku -p "format this JSON"
# Tên mô hình đầy đủ
-claude --model claude-sonnet-4-6-20250929 "review this code"
+claude --model claude-sonnet-4-6 "review this code"
# Với fallback để đảm bảo độ tin cậy
claude -p --model opus --fallback-model sonnet "analyze architecture"
@@ -308,7 +308,7 @@ Session gốc vẫn không thay đổi, và fork trở thành một session đ
| `--no-chrome` | Tắt tích hợp trình duyệt Chrome | `claude --no-chrome` |
| `--ide` | Tự động kết nối đến IDE nếu có | `claude --ide` |
| `--max-turns` | Giới hạn agentic turns (non-interactive) | `claude -p --max-turns 3 "query"` |
-| `--debug` | Bật debug mode với filtering | `claude --debug "api,mcp"` |
+| `--debug` | Bật debug mode với filtering (filter chỉ áp dụng ở dạng `=`) | `claude --debug=api,mcp` |
| `--enable-lsp-logging` | Bật verbose LSP logging | `claude --enable-lsp-logging` |
| `--betas` | Beta headers cho API requests | `claude --betas interleaved-thinking` |
| `--plugin-dir` | Tải plugins từ thư mục (có thể lặp lại) | `claude --plugin-dir ./my-plugin` |
@@ -316,7 +316,7 @@ Session gốc vẫn không thay đổi, và fork trở thành một session đ
| `--effort` | Đặt mức độ suy nghĩ | `claude --effort high` |
| `--bare` | Chế độ tối thiểu (bỏ qua hooks, skills, plugins, MCP, auto memory, CLAUDE.md) | `claude --bare` |
| `--channels` | Đăng ký các plugin kênh MCP (gắn thẻ `plugin:<name>@<marketplace>`) | `claude --channels plugin:discord@my-marketplace` |
-| `--tmux` | Tạo tmux session cho worktree | `claude --tmux` |
+| `--tmux` | Tạo tmux session cho worktree (yêu cầu `--worktree`) | `claude --worktree feature-x --tmux` |
| `--fork-session` | Tạo session ID mới khi resume | `claude --resume abc --fork-session` |
| `--max-budget-usd` | Chi phí tối đa (chế độ in); cũng dừng các subagent chạy nền khi đạt giới hạn (v2.1.217) | `claude -p --max-budget-usd 5.00 "query"` |
| `--json-schema` | Validate JSON output | `claude -p --json-schema '{"type":"object"}' "q"` |
@@ -328,7 +328,7 @@ Session gốc vẫn không thay đổi, và fork trở thành một session đ
claude -p --max-turns 5 "refactor this module"
# Debug API calls
-claude --debug "api" "test query"
+claude --debug=api "test query"
# Bật IDE integration
claude --ide "help me with this file"
@@ -610,45 +610,49 @@ claude -p --output-format json \
--json-schema '{"type":"object","properties":{"functions":{"type":"array"},"complexity":{"type":"string"}}}' \
"analyze main.py and return function list with complexity rating"
-# Integrate with jq for processing
-claude -p --output-format json "list all API endpoints" | jq '.endpoints[]'
+# Integrate with jq for processing (schema output lands in .structured_output)
+claude -p --output-format json \
+ --json-schema '{"type":"object","properties":{"endpoints":{"type":"array"}}}' \
+ "list all API endpoints" | jq '.structured_output.endpoints[]'
# Use in scripts
-RESULT=$(claude -p --output-format json "is this code secure? answer with {secure: boolean, issues: []}" < code.py)
-if echo "$RESULT" | jq -e '.secure == false' > /dev/null; then
+RESULT=$(claude -p --output-format json \
+ --json-schema '{"type":"object","properties":{"secure":{"type":"boolean"},"issues":{"type":"array"}},"required":["secure","issues"]}' \
+ "is this code secure?" < code.py)
+if echo "$RESULT" | jq -e '.structured_output.secure == false' > /dev/null; then
echo "Security issues found!"
- echo "$RESULT" | jq '.issues[]'
+ echo "$RESULT" | jq '.structured_output.issues[]'
fi
```
### Ví Dụ jq Parsing
-Parse và xử lý JSON output của Claude bằng `jq`:
+Parse và xử lý JSON output của Claude bằng `jq`. Văn bản phản hồi nằm trong `.result`; khi dùng `--json-schema`, đối tượng đã được xác thực nằm trong `.structured_output` (`$SCHEMA` bên dưới đại diện cho một schema định nghĩa các trường mà mỗi filter đọc):
```bash
-# Extract specific fields
-claude -p --output-format json "analyze this code" | jq '.result'
+# Extract the response text
+claude -p --output-format json "analyze this code" | jq -r '.result'
# Filter array elements
-claude -p --output-format json "list issues" | jq -r '.issues[] | select(.severity=="high")'
+claude -p --output-format json --json-schema "$SCHEMA" "list issues" | jq -r '.structured_output.issues[] | select(.severity=="high")'
# Extract multiple fields
-claude -p --output-format json "describe the project" | jq -r '.{name, version, description}'
+claude -p --output-format json --json-schema "$SCHEMA" "describe the project" | jq -r '.structured_output | {name, version, description}'
# Convert to CSV
-claude -p --output-format json "list functions" | jq -r '.functions[] | [.name, .lineCount] | @csv'
+claude -p --output-format json --json-schema "$SCHEMA" "list functions" | jq -r '.structured_output.functions[] | [.name, .lineCount] | @csv'
# Conditional processing
-claude -p --output-format json "check security" | jq 'if .vulnerabilities | length > 0 then "UNSAFE" else "SAFE" end'
+claude -p --output-format json --json-schema "$SCHEMA" "check security" | jq 'if (.structured_output.vulnerabilities | length) > 0 then "UNSAFE" else "SAFE" end'
# Extract nested values
-claude -p --output-format json "analyze performance" | jq '.metrics.cpu.usage'
+claude -p --output-format json --json-schema "$SCHEMA" "analyze performance" | jq '.structured_output.metrics.cpu.usage'
# Process entire array
-claude -p --output-format json "find todos" | jq '.todos | length'
+claude -p --output-format json --json-schema "$SCHEMA" "find todos" | jq '.structured_output.todos | length'
# Transform output
-claude -p --output-format json "list improvements" | jq 'map({title: .title, priority: .priority})'
+claude -p --output-format json --json-schema "$SCHEMA" "list improvements" | jq '.structured_output.improvements | map({title: .title, priority: .priority})'
```
---
@@ -710,14 +714,14 @@ Từ khóa "ultrathink" trong prompts kích hoạt deep reasoning. Mức `max` e
| `MAX_THINKING_TOKENS` | Set extended thinking token budget |
| `CLAUDE_CODE_EFFORT_LEVEL` | Set effort level (`low`/`medium`/`high`/`max`) |
| `CLAUDE_CODE_SIMPLE` | Minimal mode, set by `--bare` flag |
-| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | Disable automatic CLAUDE.md updates |
+| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | Set to `1` to disable auto memory (no auto memory files are created or loaded) |
| `CLAUDE_CODE_DISABLE_BACKGROUND_TASKS` | Disable background task execution |
| `CLAUDE_CODE_DISABLE_CRON` | Disable scheduled/cron tasks |
| `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` | Disable git-related instructions |
| `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` | Disable terminal title updates |
| `CLAUDE_CODE_DISABLE_1M_CONTEXT` | Disable 1M token context window |
| `CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK` | Disable non-streaming fallback |
-| `CLAUDE_CODE_ENABLE_TASKS` | Enable task list feature |
+| `CLAUDE_CODE_ENABLE_TASKS` | Task tools are the default; set to `0` to revert to the legacy `TodoWrite` tool |
| `CLAUDE_CODE_TASK_LIST_ID` | Named task directory shared across sessions |
| `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` | Toggle prompt suggestions (`true`/`false`) |
| `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` | Enable experimental agent teams |
@@ -835,12 +839,14 @@ claude -p --output-format json "query"
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**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
+- https://code.claude.com/docs/en/headless
+- https://code.claude.com/docs/en/env-vars
**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 64273d6..4bcc55a 100644
--- a/vi/CATALOG.md
+++ b/vi/CATALOG.md
@@ -50,7 +50,7 @@ Commands là các lệnh tắt do người dùng gọi thực hiện các hành
| `/mcp` | Liệt kê MCP servers | Kiểm tra tích hợp bên ngoài |
| `/memory` | Xem các file bộ nhớ đã tải | Debug tải context |
| `/mobile` | Tạo QR code mobile | Truy cập mobile |
-| `/passes` | Xem usage passes | Thông tin subscription |
+| `/passes` | Chia sẻ một tuần dùng Claude Code miễn phí với bạn bè (chỉ tài khoản đủ điều kiện) | Giới thiệu bạn bè |
| `/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 |
@@ -81,10 +81,10 @@ Commands là các lệnh tắt do người dùng gọi thực hiện các hành
| `/subtask` | Spawn một subagent được fork kế thừa cuộc hội thoại và báo cáo lại (v2.1.212+) | Giao một tác vụ phụ mà không mất chỗ đang làm |
| `/stats` | Hiển thị thống kê session | Review metrics session |
| `/statusline` | Cấu hình status line | Tùy chỉnh hiển thị trạng thái |
-| `/stickers` | Xem stickers của session | Phần thưởng vui |
+| `/stickers` | Đặt mua stickers Claude Code | Phần thưởng vui |
| `/fast` | Bật/tắt mode output nhanh | Tăng tốc độ responses |
| `/terminal-setup` | Cấu hình tích hợp terminal | Thiết lập tính năng terminal |
-| `/upgrade` | Kiểm tra cập nhật | Quản lý phiên bản |
+| `/upgrade` | Mở trang nâng cấp để chuyển sang gói cao hơn | Nâng cấp gói |
### Custom Commands (Ví Dụ)
@@ -116,7 +116,7 @@ Claude Code hỗ trợ 6 permission modes điều khiển cách tool use đượ
| Mode | Mô Tả | Khi Nào Dùng |
|------|-------------|-------------|
-| `default` | Hỏi cho mỗi tool call | Sử dụng tương tác tiêu chuẩn |
+| `default` | Hỏi cho mỗi tool call | Tự xem xét mọi hành động. Từ v2.1.283, auto là chế độ khởi đầu tích hợp sẵn cho session terminal tương tác và VS Code |
| `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` | 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 |
@@ -141,7 +141,7 @@ Các trợ lý AI chuyên biệt với context bị cô lập cho các tasks c
| **Plan** | Lập kế hoạch triển khai | Read, Glob, Grep, Bash | Kế thừa model | Thiết kế kiến trúc, lập kế hoạch |
| **Explore** | Khám phá codebase | Read, Glob, Grep | Kế thừa (giới hạn ở Opus) | Tìm kiếm nhanh, hiểu code |
| **claude** | Tác nhân dự phòng cho các tác vụ không khớp tác nhân chuyên biệt nào | All tools | Kế thừa model | Tác vụ không có tác nhân chuyên biệt; tác nhân mặc định cho phiên nền được điều phối |
-| **statusline-setup** | Cấu hình status line | Bash, Read, Write | Sonnet 4.6 | Cấu hình hiển thị status line |
+| **statusline-setup** | Cấu hình status line | Bash, Read, Write | Sonnet | Cấu hình hiển thị status line |
| **claude-code-guide** | Trợ giúp và tài liệu | Read, Glob, Grep | Haiku | Nhận trợ giúp, học tính năng |
### Subagent Configuration Fields
@@ -230,8 +230,8 @@ cp -r ../03-skills/* ~/.claude/skills/
| Skill | Mô Tả | Khi Tự Động Gọi |
|-------|-------------|-------------------|
| `/simplify` | Review code về chất lượng | Sau khi viết code |
-| `/batch` | Chạy prompts trên nhiều files | Operations hàng loạt |
-| `/debug` | Debug tests/errors thất bại | Sessions debugging |
+| `/batch` | Chia một thay đổi lớn thành 5–30 phần độc lập, mỗi phần do một subagent nền chạy trong worktree riêng | Refactor song song quy mô lớn |
+| `/debug [description]` | Bật debug logging cho session và xử lý sự cố từ debug log của session | Debug chính Claude Code |
| `/loop` | Chạy prompts theo interval | Tasks định kỳ |
| `/claude-api` | Xây dựng apps với Claude API | Phát triển API |
@@ -253,14 +253,17 @@ Bộ sưu tập được đóng gói của commands, agents, MCP servers, và ho
### Plugin Structure
-```
-.claude-plugin/
-├── plugin.json # File manifest
+```text
+my-plugin/
+├── .claude-plugin/
+│ └── plugin.json # File manifest (file duy nhất trong .claude-plugin/)
├── commands/ # Lệnh slash
├── agents/ # Tác nhân con
-├── skills/ # Skills
-├── mcp/ # Cấu hình MCP
-├── hooks/ # Script hooks
+├── skills/ # Skills (<name>/SKILL.md)
+├── hooks/
+│ └── hooks.json # Cấu hình hook
+├── .mcp.json # Cấu hình MCP
+├── bin/ # File thực thi
└── scripts/ # Scripts tiện ích
```
@@ -270,7 +273,7 @@ Bộ sưu tập được đóng gói của commands, agents, MCP servers, và ho
```bash
/plugin list # Liệt kê plugins đã cài
/plugin install <name> # Cài plugin
-/plugin remove <name> # Gỡ plugin
+/plugin uninstall <name> # Gỡ plugin
claude plugin update <name> # Cập nhật plugin (CLI; dạng slash /plugin update được nhắc trong phần văn bản nhưng không có trong tài liệu tham chiếu lệnh)
```
@@ -284,9 +287,9 @@ Máy chủ Model Context Protocol cho truy cập công cụ và API bên ngoài.
| Server | Mô Tả | Khi Nào Dùng | Phạm Vi | Cài Đặt |
|--------|-------------|-------------|-------|--------------|
-| **GitHub** | Quản lý PR, issues, code | Workflows GitHub | Project | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
-| **Database** | Truy vấn SQL, truy cập dữ liệu | Operations database | Project | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
-| **Filesystem** | Operations file nâng cao | Tasks file phức tạp | User | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
+| **GitHub** | Quản lý PR, issues, code | Workflows GitHub | Local | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
+| **Database** | Truy vấn SQL, truy cập dữ liệu | Operations database | Local | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
+| **Filesystem** | Operations file nâng cao | Tasks file phức tạp | Local | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
| **Slack** | Communication team | Thông báo, cập nhật | Project | Cấu hình trong settings |
| **Google Docs** | Truy cập tài liệu | Chỉnh sửa, review docs | Project | Cấu hình trong settings |
| **Asana** | Quản lý dự án | Theo dõi tasks | Project | Cấu hình trong settings |
@@ -294,7 +297,7 @@ Máy chủ Model Context Protocol cho truy cập công cụ và API bên ngoài.
| **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 | 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
+> **Phạm Vi**: `Local` = mặc định của `claude mcp add` khi không có `--scope` (chỉ bạn, dự án này; `~/.claude.json`), `Project` = team (`.mcp.json`, `--scope project`), `User` = cá nhân (`~/.claude.json`, `--scope user`), `Built-in` = được cài trước
### MCP Configuration Example
@@ -385,13 +388,17 @@ Tự động hóa dựa trên sự kiện thực thi shell commands trên các s
"PreToolUse": [
{
"matcher": "Bash",
- "command": "~/.claude/hooks/validate-bash.py"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/validate-bash.py" }
+ ]
}
],
"PostToolUse": [
{
"matcher": "Write",
- "command": "~/.claude/hooks/format-code.sh"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/format-code.sh" }
+ ]
}
]
}
@@ -456,7 +463,7 @@ cp ../02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **Channels** | Communication đa kênh (Telegram, Slack, v.v.) (Research Preview) | Cấu hình plugins channels; Tháng 3 năm 2026 |
| **Voice Dictation** | Input giọng nói cho prompts | Sử dụng icon microphone hoặc keybinding giọng nói |
| **Agent Hook Type** | Hooks tạo subagent thay vì chạy shell command | Đặt `"type": "agent"` trong cấu hình hook |
-| **Prompt Hook Type** | Hooks chèn văn bản prompt vào conversation | Đặt `"type": "prompt"` trong cấu hình hook |
+| **Prompt Hook Type** | Hooks gửi prompt tới một model Claude để đánh giá trong một lượt; model trả về quyết định dạng JSON | Đặt `"type": "prompt"` trong cấu hình hook |
| **MCP Elicitation** | MCP servers có thể yêu cầu input người dùng trong khi thực thi tool | Xử lý qua các sự kiện hook `Elicitation` và `ElicitationResult` |
| **WebSocket MCP Transport** | Transport dựa trên WebSocket cho kết nối MCP server | Sử dụng `"transport": "websocket"` trong cấu hình MCP server |
| **Plugin LSP Support** | Tích hợp Language Server Protocol qua plugins | Cấu hình servers LSP trong `plugin.json` cho tính năng editor |
@@ -520,8 +527,8 @@ chmod +x ~/.claude/hooks/*.sh
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/commands
@@ -534,3 +541,5 @@ chmod +x ~/.claude/hooks/*.sh
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/cli-reference
diff --git a/vi/INDEX.md b/vi/INDEX.md
index 25bddc7..94f32c8 100644
--- a/vi/INDEX.md
+++ b/vi/INDEX.md
@@ -256,7 +256,7 @@ pr-review/
**Commands**: `/review-pr`, `/check-security`, `/check-tests`
-**Cài Đặt**: `/plugin install pr-review`
+**Cài Đặt**: `claude --plugin-dir ./07-plugins/pr-review` (từ thư mục gốc của repo)
---
@@ -290,7 +290,7 @@ devops-automation/
**Commands**: `/deploy`, `/rollback`, `/status`, `/incident`
-**Cài Đặt**: `/plugin install devops-automation`
+**Cài Đặt**: `claude --plugin-dir ./07-plugins/devops-automation` (từ thư mục gốc của repo)
---
@@ -321,7 +321,7 @@ documentation/
**Commands**: `/generate-api-docs`, `/generate-readme`, `/sync-docs`, `/validate-docs`
-**Cài Đặt**: `/plugin install documentation`
+**Cài Đặt**: `claude --plugin-dir ./07-plugins/documentation` (từ thư mục gốc của repo)
**Plus**: `README.md` - Tổng quan plugins và hướng dẫn sử dụng
@@ -347,7 +347,7 @@ Lưu trạng thái conversation và khám phá các cách tiếp cận thay th
# Để rewind, nhấn Esc hai lần hoặc dùng:
/rewind
# Sau đó chọn: Khôi phục code và conversation, Khôi phục conversation,
-# Khôi phục code, Tóm tắt từ đây, hoặc Bỏ qua
+# Khôi phục code, Tóm tắt từ đây, Tóm tắt đến đây, hoặc Bỏ qua
```
**Use Cases**:
@@ -397,7 +397,7 @@ Các khả năng nâng cao cho workflows phức tạp.
- **plan**: Phân tích read-only, không sửa đổi
- **auto**: Mọi thứ, với kiểm tra an toàn chạy nền — một classifier review các lệnh và thao tác ghi vào thư mục được bảo vệ (cấu hình qua đối tượng settings `autoMode`)
- **dontAsk**: Chỉ các tool đã được phê duyệt trước — tự động từ chối mọi lệnh gọi lẽ ra sẽ hỏi. Claude chỉ chạy các mục khớp `permissions.allow`, các lệnh Bash chỉ-đọc, và các lệnh gọi được hook `PreToolUse` phê duyệt
-- **bypassPermissions**: Chấp nhận tất cả (yêu cầu `--dangerously-skip-permissions`)
+- **bypassPermissions**: Chấp nhận tất cả (bật bằng `--permission-mode bypassPermissions` hoặc `--dangerously-skip-permissions` tương đương)
### Headless Mode (`claude -p`)
- Tích hợp CI/CD
@@ -669,13 +669,13 @@ cp 04-subagents/code-reviewer.md .claude/agents/
cp -r 03-skills/code-review-specialist ~/.claude/skills/
# Hoặc cài đặt plugin hoàn chỉnh
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
### DevOps & Triển Khai
```bash
# Cài đặt plugin (bao gồm tất cả)
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
### Tài Liệu
@@ -690,7 +690,7 @@ cp 04-subagents/documentation-writer.md .claude/agents/
cp -r 03-skills/doc-generator ~/.claude/skills/
# Hoặc cài đặt plugin hoàn chỉnh
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
### Tiêu Chuẩn Nhóm
@@ -704,8 +704,10 @@ cp 02-memory/project-CLAUDE.md ./CLAUDE.md
### Tích Hợp Bên Ngoài
```bash
# Đặt biến môi trường
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
# Cài đặt config MCP (phạm vi dự án)
cp 05-mcp/multi-mcp.json .mcp.json
@@ -728,7 +730,7 @@ chmod +x ~/.claude/hooks/*.sh
# Để rewind: nhấn Esc+Esc hoặc dùng:
/rewind
# Sau đó chọn: Khôi phục code và conversation, Khôi phục conversation,
-# Khôi phục code, Tóm tắt từ đây, hoặc Bỏ qua
+# Khôi phục code, Tóm tắt từ đây, Tóm tắt đến đây, hoặc Bỏ qua
# Xem 08-checkpoints/README.md cho ví dụ
```
@@ -876,8 +878,8 @@ Muốn thêm ví dụ nữa? Theo cấu trúc:
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Tổng Số Ví Dụ**: 100+ files
**Danh Mục**: 10 tính năng
**Hooks**: 8 scripts tự động hóa
@@ -889,3 +891,6 @@ Muốn thêm ví dụ nữa? Theo cấu trúc:
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/permission-modes
diff --git a/vi/LEARNING-ROADMAP.md b/vi/LEARNING-ROADMAP.md
index f5e088e..0f6f5ed 100644
--- a/vi/LEARNING-ROADMAP.md
+++ b/vi/LEARNING-ROADMAP.md
@@ -92,7 +92,7 @@ graph TD
| Bước | Tính Năng | Độ Phức Tạp | Thời Gian | Cấp Độ | Dependencies | Tại Sao Học Cái Này | Lợi Ích Chính |
|------|---------|-----------|----------|-------|--------------|------------------|--------------|
-| **1** | [Lệnh Slash](01-slash-commands/) | ⭐ Người mới | 30 phút | Level 1 | None | Gains năng suất nhanh (55+ built-in + 10 bundled skills) | Tự động hóa tức thì, tiêu chuẩn team |
+| **1** | [Lệnh Slash](01-slash-commands/) | ⭐ Người mới | 30 phút | Level 1 | None | Gains năng suất nhanh (55+ built-in + 20 bundled skills) | Tự động hóa tức thì, tiêu chuẩn team |
| **2** | [Bộ Nhớ](02-memory/) | ⭐⭐ Người mới+ | 45 phút | Level 1 | None | Thiết yếu cho tất cả tính năng | Ngữ cảnh lưu trữ, sở thích |
| **3** | [Checkpoints](08-checkpoints/) | ⭐⭐ Trung cấp | 45 phút | Level 1 | Quản lý session | Khám phá an toàn | Thử nghiệm, phục hồi |
| **4** | [CLI Cơ Bản](10-cli/) | ⭐⭐ Người mới+ | 30 phút | Level 1 | None | Sử dụng CLI cốt | Mode tương tác & print |
@@ -297,8 +297,7 @@ chmod +x ~/.claude/hooks/pre-tool-check.sh
```bash
# Exercise 1: Thiết lập GitHub MCP
-export GITHUB_TOKEN="your_github_token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Exercise 2: Test tích hợp MCP
# Trong Claude Code: /mcp__github__list_prs
@@ -365,7 +364,7 @@ Trước khi bắt đầu Level 3, đảm bảo bạn thoải mái với các kh
✅ Quản lý background tasks
✅ Auto Memory cho các sở thích đã học
✅ Auto Mode với bộ phân loại an toàn nền
-✅ Channels cho workflows đa session có cấu trúc
+✅ Channels đẩy sự kiện (kết quả CI, tin nhắn chat, webhooks) vào session đang chạy
✅ Voice Dictation để tương tác không cần tay
✅ Remote control, desktop app, và web sessions
✅ Agent Teams cho cộng tác multi-agent
@@ -401,10 +400,10 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Exercise 7: Tasks định kỳ
/loop 5m /check-status
-# Hoặc sử dụng CronCreate cho scheduled tasks tồn tại
+# Tasks chỉ tồn tại trong session; để lên lịch lâu dài hãy dùng Routines hoặc Desktop scheduled tasks
-# Exercise 8: Channels cho workflows đa session
-# Sử dụng channels để tổ chức công việc qua sessions
+# Exercise 8: Channels (research preview)
+# Channel là một MCP server đẩy sự kiện vào session đang chạy của bạn
# Exercise 9: Voice Dictation
# Sử dụng input giọng nói để tương tác không cần tay với Claude Code
@@ -416,7 +415,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
- [ ] Đã toggle extended thinking với Alt+T / Option+T
- [ ] Đã sử dụng auto mode với background safety classifier
- [ ] Đã sử dụng background tasks cho operations dài
-- [ ] Đã khám phá Channels cho workflows đa session
+- [ ] Đã khám phá Channels đẩy sự kiện bên ngoài vào session
- [ ] Đã thử Voice Dictation cho input không cần tay
- [ ] Hiểu Remote Control, Desktop App, và Web sessions
- [ ] Đã bật và sử dụng Agent Teams cho các tasks cộng tác
@@ -447,7 +446,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
```bash
# Exercise 1: Cài đặt một plugin hoàn chỉnh
-# Trong Claude Code: /plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review # từ thư mục gốc của repo
# Exercise 2: Print mode cho CI/CD
claude -p "Chạy tất cả tests và tạo báo cáo"
@@ -693,13 +692,13 @@ Khi bạn đã hoàn thành tất cả milestones:
1. **Tạo tài liệu team** - Tài liệu hóa thiết lập Claude Code của team
2. **Xây dựng custom plugins** - Đóng gói workflows của team
-3. **Khám Phá Remote Control** - Điều khiển sessions Claude Code theo chương trình từ các công cụ bên ngoài
+3. **Khám Phá Remote Control** - Tiếp tục một session Claude Code cục bộ từ điện thoại, trình duyệt hoặc ứng dụng Claude
4. **Thử Web Sessions** - Sử dụng Claude Code qua interfaces dựa trên trình duyệt để phát triển từ xa
5. **Sử dụng Desktop App** - Truy cập các tính năng Claude Code qua ứng dụng desktop native
6. **Sử Dụng Auto Mode** - Để Claude làm việc tự động với bộ phân loại an toàn nền
7. **Tận Dụng Auto Memory** - Để Claude học các sở thích của bạn tự động theo thời gian
8. **Thiết Lập Agent Teams** - Phối hợp nhiều agents trên các tasks phức tạp, đa diện
-9. **Sử Dụng Channels** - Tổ chức công việc qua workflows đa session có cấu trúc
+9. **Sử Dụng Channels** - Kết nối một MCP server đẩy sự kiện (kết quả CI, tin nhắn chat, webhooks) vào session đang chạy
10. **Thử Voice Dictation** - Sử dụng input giọng nói không cần tay để tương tác với Claude Code
11. **Sử Dụng Scheduled Tasks** - Tự động hóa các kiểm tra định kỳ với `/loop` và cron tools
12. **Đóng góp ví dụ** - Chia sẻ với cộng đồng
@@ -733,11 +732,17 @@ Khi bạn đã hoàn thành tất cả milestones:
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/commands
- 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 0d4d9a0..f3041cc 100644
--- a/vi/QUICK_REFERENCE.md
+++ b/vi/QUICK_REFERENCE.md
@@ -46,7 +46,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
### MCP
```bash
# Thiết lập thông tin xác thực
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# Cài đặt cấu hình (phạm vi dự án)
@@ -97,7 +97,7 @@ chmod +x ~/.claude/hooks/*.sh
# plan - Chỉ đọc phân tích, không sửa đổi
# dontAsk - Chỉ các tool đã phê duyệt trước được chạy; mọi thứ khác bị từ chối
# auto - Bộ phân loại nền quyết định quyền tự động
-# bypassPermissions - Chấp nhận tất cả hành động (yêu cầu --dangerously-skip-permissions)
+# bypassPermissions - Chấp nhận tất cả hành động (--permission-mode bypassPermissions; --dangerously-skip-permissions tương đương)
# Quản lý phiên
/resume # Tiếp tục cuộc hội thoại trước
@@ -262,15 +262,15 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Chạy một lệnh mỗi 5 phút
/loop 5m /check-status
-# Nhắc nhở một lần
-/loop 30m "nhắc tôi kiểm tra deploy"
+# Nhắc nhở một lần: hỏi bằng ngôn ngữ tự nhiên (/loop lặp lại cho đến khi bị hủy)
+nhắc tôi kiểm tra deploy sau 30 phút
```
---
## 📁 Tham Khảo Vị Trí File
-```
+```text
Dự Án Của Bạn/
├── .claude/
│ ├── commands/ # Lệnh slash đặt ở đây
@@ -290,9 +290,12 @@ Home Người Dùng/
│ ├── skills/ # Skills cá nhân
│ ├── hooks/ # Script hooks
│ ├── settings.json # Cài đặt người dùng
-│ ├── managed-settings.d/ # Cài đặt được quản lý (doanh nghiệp/tổ chức)
│ └── CLAUDE.md # Bộ nhớ cá nhân
└── .claude.json # Cấu hình MCP cá nhân (phạm vi người dùng)
+
+Thư mục hệ thống/ # macOS /Library/Application Support/ClaudeCode/, Linux /etc/claude-code/, Windows C:\Program Files\ClaudeCode\
+├── managed-settings.json # Cài đặt được quản lý (doanh nghiệp/tổ chức)
+└── managed-settings.d/ # Các file bổ sung cho cài đặt được quản lý
```
---
@@ -353,7 +356,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
### Ngày 4-5
```bash
# Thiết lập MCP
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
cp 05-mcp/github-mcp.json .mcp.json
# Thử lệnh MCP
@@ -399,7 +402,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **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` |
+| **Chọn Mô Hình** | Chuyển đổi giữa Fable 5.1, Fable 5, Opus 5, Sonnet 5.5, Sonnet 5, Sonnet 4.6, Opus 4.8 và Haiku 4.5 | `/model` hoặc cờ `--model` (`sonnet` trỏ tới Sonnet 5.5 trên Anthropic API, v2.1.284+) |
| **Độ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` |
@@ -431,7 +434,7 @@ ls -la .claude/agents/
head -20 .claude/agents/code-reviewer.md
# Kiểm tra kết nối MCP
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
```
---
@@ -507,8 +510,8 @@ Checklist bắt đầu:
---
-**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
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/commands
@@ -516,3 +519,7 @@ Checklist bắt đầu:
- 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
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/model-config
diff --git a/vi/resources.md b/vi/resources.md
index 1fd4da7..a90cc1f 100644
--- a/vi/resources.md
+++ b/vi/resources.md
@@ -234,10 +234,10 @@ Các bước này capture các core recommendations cho smooth workflows với C
| Tính Năng | Mô Tả | Tìm Hiểu Thêm |
|---------|-------------|------------|
| **Auto Memory** | Claude tự động học và nhớ preferences của bạn qua các phiên | [Memory Guide](02-memory/) |
-| **Remote Control** | Điều khiển Claude Code sessions từ các external tools và scripts | [Advanced Features](09-advanced-features/) |
+| **Remote Control** | Tiếp tục một session Claude Code cục bộ từ điện thoại, trình duyệt hoặc ứng dụng Claude | [Advanced Features](09-advanced-features/) |
| **Web Sessions** | Truy cập Claude Code qua browser-based interfaces cho remote development | [CLI Reference](10-cli/) |
| **Desktop App** | Native desktop application cho Claude Code với enhanced UI | [Claude Code Docs](https://code.claude.com/docs/en/desktop) |
-| **Extended Thinking** | Deep reasoning toggle qua `Alt+T`/`Option+T` hoặc `MAX_THINKING_TOKENS` env var | [Advanced Features](09-advanced-features/) |
+| **Extended Thinking** | Deep reasoning toggle qua `Alt+T`/`Option+T`; Opus 4.7+, Sonnet 5+, Haiku 5.5 và Fable luôn dùng adaptive reasoning, nên ngân sách cố định `MAX_THINKING_TOKENS` không áp dụng (điều chỉnh độ sâu bằng `/effort`) | [Advanced Features](09-advanced-features/) |
| **Permission Modes** | Fine-grained control: default, acceptEdits, plan, auto, dontAsk, bypassPermissions | [Advanced Features](09-advanced-features/) |
| **7-Tier Memory** | Managed Policy, Project, Project Rules, User, User Rules, Local, Auto Memory | [Memory Guide](02-memory/) |
| **Hook Events** | 33 events: PreToolUse, PostToolUse, PostToolUseFailure, Stop, StopFailure, SubagentStart, SubagentStop, Notification, Elicitation, và nhiều hơn | [Hooks Guide](06-hooks/) |
@@ -247,7 +247,9 @@ Các bước này capture các core recommendations cho smooth workflows với C
| **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**: Ngày 15 tháng 10 năm 2026
-**Phiên Bản Claude Code**: 2.1.300
+**Cập Nhật Lần Cuối**: Ngày 18 tháng 10 năm 2026
+**Phiên Bản Claude Code**: 2.1.302
**Nguồn**:
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/model-config
diff --git a/zh/01-slash-commands/README.md b/zh/01-slash-commands/README.md
index a04010e..6f946ae 100644
--- a/zh/01-slash-commands/README.md
+++ b/zh/01-slash-commands/README.md
@@ -44,7 +44,7 @@ Claude Code 目前提供 55+ 个内置命令和约 20 个内置 Skills。你可
| `/export [filename]` | 将当前对话导出为文件或剪贴板内容 |
| `/extra-usage` | 配置额外用量以应对速率限制 |
| `/fast [on\|off]` | 切换快速模式 |
-| `/feedback` | 提交反馈(别名:`/bug`) |
+| `/feedback` | 提交反馈 |
| `/help` | 显示帮助 |
| `/hooks` | 查看 hook 配置 |
| `/ide` | 管理 IDE 集成 |
@@ -95,7 +95,7 @@ Claude Code 目前提供 55+ 个内置命令和约 20 个内置 Skills。你可
| `/batch <instruction>` | 使用 worktree 编排大规模并行修改 |
| `/claude-api` | 加载 Claude API 参考,便于为项目所用语言编写代码 |
| `/debug [description]` | 启用调试日志 |
-| `/loop [interval] <prompt>` | 按固定间隔重复运行提示词 |
+| `/loop [interval] [prompt]` | 按固定间隔重复运行提示词 |
| `/simplify [focus]` | 审查改动文件的代码质量 |
### 已弃用命令
@@ -180,7 +180,7 @@ description: 这个命令的作用,以及何时使用它
| 字段 | 作用 | 默认值 |
|-------|---------|---------|
| `name` | 命令名(会变成 `/name`) | 目录名 |
-| `description` | 简短说明,帮助 Claude 判断何时使用 | 第一段 |
+| `description` | 简短说明,帮助 Claude 判断何时使用 | 第一个非空行 |
| `argument-hint` | 自动补全时显示的参数提示 | 无 |
| `allowed-tools` | 命令可无权限使用的工具 | 继承 |
| `model` | 指定要使用的模型 | 继承 |
@@ -552,8 +552,8 @@ allowed-tools: Bash(npm *), Bash(git *)
---
-**最后更新**: 2026 年 10 月 15 日
-**Claude Code 版本**: 2.1.300
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
**来源**:
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/output-styles
@@ -562,6 +562,7 @@ allowed-tools: Bash(npm *), Bash(git *)
- 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
+- https://code.claude.com/docs/en/skills
**兼容模型**: 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/claude-md/SKILL.md b/zh/03-skills/claude-md/SKILL.md
index 904662d..e45fed6 100644
--- a/zh/03-skills/claude-md/SKILL.md
+++ b/zh/03-skills/claude-md/SKILL.md
@@ -93,7 +93,7 @@ agent_docs/
创建或更新 CLAUDE.md 时:
-1. **目标长度**:少于 300 行,理想情况下少于 100 行
+1. **目标长度**:少于 200 行
2. **不要写风格规则**:移除任何 lint/format 相关说明
3. **不要写任务特定说明**:移到单独文件中
4. **不要写代码片段**:改用文件引用
@@ -150,7 +150,7 @@ agent_docs/
在最终确定前,检查:
-- [ ] 少于 300 行(最好少于 100 行)
+- [ ] 少于 200 行
- [ ] 每一行都适用于所有会话
- [ ] 没有风格/格式规则
- [ ] 没有代码片段(使用文件引用)
@@ -217,7 +217,7 @@ Subagents 是单独定义的,放在 `.claude/agents/*.md` 里 — 不在 AGENT
---
-**最后更新**: 2026 年 10 月 15 日
-**Claude Code 版本**: 2.1.300
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
**来源**:
- https://code.claude.com/docs/en/memory
diff --git a/zh/07-plugins/README.md b/zh/07-plugins/README.md
index 9cafa4b..d37db78 100644
--- a/zh/07-plugins/README.md
+++ b/zh/07-plugins/README.md
@@ -87,8 +87,10 @@ my-plugin/
│ ├── specialist-2.md
│ └── configs/
├── skills/ # 带有 SKILL.md 文件的技能
-│ ├── skill-1.md
-│ └── skill-2.md
+│ ├── skill-1/
+│ │ └── SKILL.md
+│ └── skill-2/
+│ └── SKILL.md
├── hooks/ # hooks.json 中的事件处理器
│ └── hooks.json
├── .mcp.json # MCP server 配置
@@ -187,7 +189,7 @@ my-plugin/
|------|------|---------------|----------|
| `pyright-lsp` | Python | `pyright-langserver` | `pip install pyright` |
| `typescript-lsp` | TypeScript/JavaScript | `typescript-language-server` | `npm install -g typescript-language-server typescript` |
-| `rust-lsp` | Rust | `rust-analyzer` | 使用 `rustup component add rust-analyzer` 安装 |
+| `rust-analyzer-lsp` | Rust | `rust-analyzer` | 使用 `rustup component add rust-analyzer` 安装 |
#### LSP 能力
@@ -208,10 +210,14 @@ my-plugin/
"version": "1.0.0",
"userConfig": {
"apiKey": {
+ "type": "string",
+ "title": "API key",
"description": "服务的 API key",
"sensitive": true
},
"region": {
+ "type": "string",
+ "title": "Region",
"description": "部署区域",
"default": "us-east-1"
}
@@ -245,32 +251,37 @@ my-plugin/
## 通过设置文件内联定义插件(`source: 'settings'`)(v2.1.80+)
-插件可以在设置文件中以内联市场条目的方式定义,使用 `source: 'settings'` 字段即可。这允许你直接嵌入插件定义,而不必单独准备仓库或市场:
+插件可以在设置文件中以内联市场条目的方式定义,使用 `source: 'settings'` 字段即可。这允许你直接嵌入插件定义,而不必单独准备仓库或市场。请在 `extraKnownMarketplaces.<name>.source` 下声明,`name` 必须与市场键名一致,其中的插件必须引用 GitHub 或 npm 等外部源(相对路径会被拒绝):
```json
{
- "pluginMarketplaces": [
- {
- "name": "inline-tools",
- "source": "settings",
- "plugins": [
- {
- "name": "quick-lint",
- "source": "./local-plugins/quick-lint"
- }
- ]
+ "extraKnownMarketplaces": {
+ "inline-tools": {
+ "source": {
+ "source": "settings",
+ "name": "inline-tools",
+ "plugins": [
+ {
+ "name": "quick-lint",
+ "source": {
+ "source": "github",
+ "repo": "my-org/quick-lint"
+ }
+ }
+ ]
+ }
}
- ]
+ }
}
```
## 插件设置
-插件可以提供一个 `settings.json` 文件来定义默认配置。目前支持 `agent` 键,用来指定插件的主线程 agent:
+插件可以提供一个 `settings.json` 文件来定义默认配置。生效的键有两个:`agent` 和 `subagentStatusLine`,其他键都会被丢弃。`agent` 填写插件中某个 agent 的名称,并将其作为主线程运行:
```json
{
- "agent": "agents/specialist-1.md"
+ "agent": "specialist-1"
}
```
@@ -344,7 +355,7 @@ tools: Read, Grep, Bash
**安装:**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# 结果:
# ✅ 已安装 3 个 slash commands
@@ -444,9 +455,9 @@ graph TB
|------|------|
| `extraKnownMarketplaces` | 在默认列表之外添加额外的市场源 |
| `strictKnownMarketplaces` | 控制允许用户添加哪些市场 |
-| `deniedPlugins` | 管理员维护的黑名单,阻止特定插件被安装 |
+| `enabledPlugins`(设为 `false`) | 阻止特定插件:在 managed settings 中设置 `"enabledPlugins": { "<plugin>@<marketplace>": false }`,即可在所有作用域阻止安装,并在市场中隐藏该插件 |
-> **更友好的别名(v2.1.232)**:`additionalMarketplaces` 被接受为 `extraKnownMarketplaces` 的别名,`allowedMarketplaces` 为 `strictKnownMarketplaces` 的别名。**来源为 changelog** —— v2.1.232 的 changelog 公布了它们,但官方 settings 参考页面尚未列出。继续使用规范键名是安全的。
+> **更友好的别名(v2.1.232)**:`additionalMarketplaces` 被接受为 `extraKnownMarketplaces` 的别名,`allowedMarketplaces` 为 `strictKnownMarketplaces` 的别名。官方 settings 参考页面已在 [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases) 中列出这两个别名。旧版本会忽略别名,因此继续使用规范键名是安全的。
> **owner 通配符(v2.1.223+)**:`"owner/*"` 条目可允许或阻止某个 GitHub owner 名下的所有市场仓库。**仅在 `strictKnownMarketplaces` 和 `blockedMarketplaces` 中被接受。** 在其他出现 `github` 源的地方 —— 包括 `extraKnownMarketplaces` 和 `/plugin marketplace add` —— `repo` 的值必须指向单个仓库。
@@ -463,14 +474,14 @@ graph TB
```json
{
"name": "my-team-plugins",
- "owner": "my-org",
+ "owner": { "name": "my-org" },
"plugins": [
{
"name": "code-standards",
"source": "./plugins/code-standards",
"description": "强制执行团队编码规范",
"version": "1.2.0",
- "author": "platform-team"
+ "author": { "name": "platform-team" }
},
{
"name": "deploy-helper",
@@ -488,13 +499,13 @@ graph TB
| 字段 | 必填 | 说明 |
|------|------|------|
| `name` | 是 | 使用 kebab-case 的市场名称 |
-| `owner` | 是 | 维护该市场的组织或用户 |
+| `owner` | 是 | 维护该市场的组织或用户:包含必填 `name` 的对象(`email`、`url` 可选) |
| `plugins` | 是 | 插件条目数组 |
| `plugins[].name` | 是 | 插件名称(kebab-case) |
| `plugins[].source` | 是 | 插件来源(路径字符串或来源对象) |
| `plugins[].description` | 否 | 插件的简要描述 |
| `plugins[].version` | 否 | 语义化版本字符串 |
-| `plugins[].author` | 否 | 插件作者名称 |
+| `plugins[].author` | 否 | 插件作者:包含必填 `name` 的对象(`email`、`url` 可选) |
### 插件来源类型
@@ -507,7 +518,6 @@ graph TB
| **Git URL** | `{ "source": "url", "url": "..." }` | `{ "source": "url", "url": "https://git.internal/plugin.git" }` |
| **Git 子目录** | `{ "source": "git-subdir", "url": "...", "path": "..." }` | `{ "source": "git-subdir", "url": "https://github.com/org/monorepo.git", "path": "packages/plugin" }` |
| **npm** | `{ "source": "npm", "package": "..." }` | `{ "source": "npm", "package": "@acme/claude-plugin", "version": "^2.0" }` |
-| **pip** | `{ "source": "pip", "package": "..." }` | `{ "source": "pip", "package": "claude-data-plugin", "version": ">=1.0" }` |
GitHub 和 git 来源支持可选的 `ref`(分支/标签)和 `sha`(提交哈希)字段用于版本锁定。
@@ -526,7 +536,7 @@ GitHub 和 git 来源支持可选的 `ref`(分支/标签)和 `sha`(提交
**私有仓库**:可以通过 git credential helper 或环境令牌支持。用户必须有该仓库的读取权限。
-**官方市场提交**:可以将插件提交到 Anthropic 审核维护的市场,以便更广泛分发。
+**提交到 Anthropic 目录**:通过开发者门户 [claude.ai/directory/manage](https://claude.ai/directory/manage) 将插件提交到 Anthropic 的目录,以便更广泛分发。Anthropic 官方市场 `claude-plugins-official` 不通过目录门户接受提交。
### 严格模式
@@ -543,13 +553,13 @@ GitHub 和 git 来源支持可选的 `ref`(分支/标签)和 `sha`(提交
|----|------|
| 未设置 | 无限制,用户可以添加任意市场 |
| 空数组 `[]` | 锁定模式,不允许任何市场 |
-| 模式数组 | 白名单模式,只允许匹配的市场被添加 |
+| 源对象数组 | 白名单模式,只允许匹配的市场被添加 |
```json
{
"strictKnownMarketplaces": [
- "my-org/*",
- "github.com/trusted-vendor/*"
+ { "source": "github", "repo": "my-org/*" },
+ { "source": "github", "repo": "trusted-vendor/*" }
]
}
```
@@ -700,12 +710,12 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
| 设置 | 说明 |
|------|------|
| `enabledPlugins` | 默认启用的插件白名单 |
-| `deniedPlugins` | 不允许安装的插件黑名单 |
+| `enabledPlugins`(设为 `false`) | 阻止特定插件:在 managed settings 中设置 `"enabledPlugins": { "<plugin>@<marketplace>": false }`,即可在所有作用域阻止安装,并在市场中隐藏该插件 |
| `extraKnownMarketplaces` | 在默认列表之外添加额外市场源 |
| `strictKnownMarketplaces` | 限制用户允许添加的市场 |
-| `allowedChannelPlugins` | 控制每个发布渠道允许使用哪些插件 |
+| `allowedChannelPlugins` | 允许向会话推送消息的 [channel](https://code.claude.com/docs/en/channels) 插件白名单(每个条目包含 `marketplace` 和 `plugin`) |
-> **更友好的别名(v2.1.232)**:`additionalMarketplaces` 被接受为 `extraKnownMarketplaces` 的别名,`allowedMarketplaces` 为 `strictKnownMarketplaces` 的别名。**来源为 changelog** —— v2.1.232 的 changelog 公布了它们,但官方 settings 参考页面尚未列出。继续使用规范键名是安全的。
+> **更友好的别名(v2.1.232)**:`additionalMarketplaces` 被接受为 `extraKnownMarketplaces` 的别名,`allowedMarketplaces` 为 `strictKnownMarketplaces` 的别名。官方 settings 参考页面已在 [Marketplace key aliases](https://code.claude.com/docs/en/settings-reference#marketplace-key-aliases) 中列出这两个别名。旧版本会忽略别名,因此继续使用规范键名是安全的。
> **owner 通配符(v2.1.223+)**:`"owner/*"` 条目可允许或阻止某个 GitHub owner 名下的所有市场仓库。**仅在 `strictKnownMarketplaces` 和 `blockedMarketplaces` 中被接受。** 在其他出现 `github` 源的地方 —— 包括 `extraKnownMarketplaces` 和 `/plugin marketplace add` —— `repo` 的值必须指向单个仓库。
@@ -713,13 +723,14 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
## 插件安全
-插件 subagents 运行在受限沙箱中。以下 frontmatter 键在插件 subagent 定义中**不允许**使用:
+插件 subagents 会**忽略**以下 frontmatter 键(agent 仍会加载,但这些键不起作用):
- `hooks` - subagents 不能注册事件处理器
- `mcpServers` - subagents 不能配置 MCP servers
- `permissionMode` - subagents 不能覆盖权限模型
+- `initialPrompt` - 插件 agents 不能自动提交第一条提示
-这可以确保插件不会越权,也不会修改主机环境的作用范围。
+agent 文件本身无法添加 hooks 或 MCP servers;请改为以插件级 hooks 和 MCP servers 的形式提供。
## 发布插件
@@ -736,7 +747,7 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
**示例提交:**
-```markdown
+````markdown
# PR 审查插件
## 描述
@@ -750,7 +761,7 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
## 安装
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## 功能
@@ -771,7 +782,7 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
- Claude Code 2.1+
- GitHub 访问权限
- CodeQL(可选)
-```
+````
## 插件 vs 手动配置
@@ -785,7 +796,7 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
**使用插件(2 分钟):**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ 一切都已安装并配置
# ✅ 可以立即使用
# ✅ 团队可以复现完全相同的设置
@@ -821,15 +832,12 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
### 从市场安装
-1. **浏览可用插件:**
+1. **浏览可用插件**(**Discover** 标签页列出你的市场中的插件;`/plugin list` 只显示已安装的插件):
```bash
- /plugin list
+ /plugin
```
-2. **查看插件详情:**
- ```bash
- claude plugin details plugin-name
- ```
+2. **查看插件详情:** 在 **Discover** 标签页中选择插件即可打开详情。(`claude plugin details plugin-name` 仅在插件已加载时可用:已安装,或通过 `--plugin-dir` 传入。)
3. **安装插件:**
```bash
@@ -839,7 +847,8 @@ claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin
### 从本地路径安装
```bash
-/plugin install ./path/to/plugin-directory
+# /plugin install 需要 name@marketplace;传入路径会报 "marketplace not found"
+claude --plugin-dir ./path/to/plugin-directory
```
### 从 GitHub 安装
@@ -917,7 +926,7 @@ claude plugin update plugin-name
## 故障排查
### 插件无法安装
-- 检查 Claude Code 版本兼容性:`/version`
+- 检查 Claude Code 版本兼容性:`claude --version`
- 用 JSON 校验器验证 `plugin.json` 语法
- 检查网络连接(远程插件)
- 检查权限:`ls -la plugin/`
@@ -931,7 +940,7 @@ claude plugin update plugin-name
### MCP 连接失败
- 确认环境变量已正确设置
- 检查 MCP server 的安装和健康状态
-- 使用 `/mcp test` 独立测试 MCP 连接
+- 使用 `/mcp` 查看 MCP 服务器状态
- 查看 `mcp/` 目录中的 MCP 配置
### 安装后命令不可用
@@ -958,11 +967,16 @@ claude plugin update plugin-name
---
-**最后更新**: 2026 年 10 月 15 日
-**Claude Code 版本**: 2.1.300
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
**来源**:
- https://code.claude.com/docs/en/discover-plugins
- https://code.claude.com/docs/en/plugins-reference
- https://code.claude.com/docs/en/settings
- https://code.claude.com/docs/en/plugins/install
- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/marketplace-reference
+- https://code.claude.com/docs/en/plugins/components
+- https://code.claude.com/docs/en/plugins/publish
+- https://code.claude.com/docs/en/plugins/overview
diff --git a/zh/07-plugins/devops-automation/README.md b/zh/07-plugins/devops-automation/README.md
index d293d95..fbd0b5c 100644
--- a/zh/07-plugins/devops-automation/README.md
+++ b/zh/07-plugins/devops-automation/README.md
@@ -19,7 +19,7 @@ tags: plugins, devops, automation
## 安装
```bash
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
## 包含内容
@@ -112,3 +112,11 @@ Claude:
🚀 Pods:3/3 已就绪
⏱️ 用时:2m 34s
```
+
+---
+
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
+**来源**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/zh/07-plugins/documentation/README.md b/zh/07-plugins/documentation/README.md
index 79440ca..7047f22 100644
--- a/zh/07-plugins/documentation/README.md
+++ b/zh/07-plugins/documentation/README.md
@@ -40,7 +40,7 @@ tags: plugins, documentation, automation
## 安装
```bash
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
## 使用方式
@@ -125,3 +125,11 @@ export GITHUB_TOKEN="your_github_token"
- 提供可直接执行的示例
- 定期校验文档有效性
- 使用模板保持一致性
+
+---
+
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
+**来源**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/zh/07-plugins/pr-review/README.md b/zh/07-plugins/pr-review/README.md
index a833580..9dcc26e 100644
--- a/zh/07-plugins/pr-review/README.md
+++ b/zh/07-plugins/pr-review/README.md
@@ -19,7 +19,7 @@ tags: plugins, code-review, pull-request
## 安装
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
## 包含内容
@@ -94,3 +94,11 @@ Claude:
✅ 性能:没有明显影响
📝 建议:为边界情况添加测试
```
+
+---
+
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
+**来源**:
+- https://code.claude.com/docs/en/plugins/cli-reference
+- https://code.claude.com/docs/en/plugins/install
diff --git a/zh/08-checkpoints/README.md b/zh/08-checkpoints/README.md
index f32a8ae..f593d98 100644
--- a/zh/08-checkpoints/README.md
+++ b/zh/08-checkpoints/README.md
@@ -215,11 +215,11 @@ Claude Code 会自动管理你的 checkpoints:
```json
{
- "autoCheckpoint": true
+ "fileCheckpointingEnabled": true
}
```
-- `autoCheckpoint`:是否在每次用户提示后自动创建 checkpoint(默认:`true`)
+- `fileCheckpointingEnabled`:是否在每次编辑前为文件创建快照,以便用 `/rewind` 恢复(默认:`true`)
## 局限性
@@ -293,8 +293,9 @@ Checkpoints 的价值在于让你敢于试错。它让“先试再说”和“
---
-**最后更新**: 2026 年 10 月 15 日
-**Claude Code 版本**: 2.1.300
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
**来源**:
- https://code.claude.com/docs/en/checkpointing
- https://code.claude.com/docs/en/commands
+- https://code.claude.com/docs/en/settings-reference
diff --git a/zh/09-advanced-features/README.md b/zh/09-advanced-features/README.md
index 1d89c4c..441b595 100644
--- a/zh/09-advanced-features/README.md
+++ b/zh/09-advanced-features/README.md
@@ -113,7 +113,7 @@ claude --permission-mode plan
**快捷键:**
- `Shift + Tab` - 切换权限模式(包括 plan)
-- `Alt + M` - 切换权限模式(Windows/Linux)
+- `Alt + M` - 切换权限模式(仅限 Windows,且运行时未启用 VT 输入模式时)
### Planning Mode 的好处
@@ -957,7 +957,8 @@ worktree 场景下依然可以配合工具和 hooks 自动化流程。
---
-**最后更新**: 2026 年 9 月 30 日
-**Claude Code 版本**: 2.1.285
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
**来源**:
+- https://code.claude.com/docs/en/interactive-mode
- https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in
diff --git a/zh/10-cli/README.md b/zh/10-cli/README.md
index 81c909e..8bef2e7 100644
--- a/zh/10-cli/README.md
+++ b/zh/10-cli/README.md
@@ -68,8 +68,8 @@ graph TD
| `--channels` | 订阅 MCP channel 插件。每一项必须写成 `plugin:<name>@<marketplace>` 的带标签形式;仅写名称会被拒绝 | `claude --channels plugin:discord@my-marketplace` |
| `--chrome` / `--no-chrome` | 启用 / 禁用 Chrome 浏览器集成 | `claude --chrome` |
| `--effort` | 设置推理强度 | `claude --effort high` |
-| `--init` / `--init-only` | 运行初始化 hooks | `claude --init` |
-| `--maintenance` | 运行维护 hooks 后退出 | `claude --maintenance` |
+| `--init` / `--init-only` | `--init` 在会话开始前运行初始化(Setup)hooks,仅限打印模式;`--init-only` 运行 Setup 和 `SessionStart` hooks 后退出 | `claude -p --init "query"` |
+| `--maintenance` | 在会话开始前运行维护(Setup)hooks(仅限打印模式) | `claude -p --maintenance "query"` |
| `--disable-slash-commands` | 禁用所有 skills 和 slash commands | `claude --disable-slash-commands` |
| `--no-session-persistence` | 禁用会话保存(打印模式) | `claude -p --no-session-persistence "query"` |
@@ -117,14 +117,14 @@ claude -p "列出待办事项" | grep "URGENT"
### 模型选择示例
```bash
-# 复杂任务使用 Opus 4.6
+# 复杂任务使用 Opus 5.5
claude --model opus "设计一个缓存策略"
# 快速任务使用 Haiku(自 v2.1.293 起在 Anthropic API 上为 Haiku 5.5;在 Bedrock、Vertex 和 Foundry 上为 Haiku 4.5)
claude --model haiku -p "格式化这个 JSON"
# 使用完整模型名
-claude --model claude-sonnet-4-6-20250929 "审查这段代码"
+claude --model claude-sonnet-4-6 "审查这段代码"
# 带后备模型以提升稳定性
claude -p --model opus --fallback-model sonnet "分析架构"
@@ -493,8 +493,8 @@ claude --tools "Read,Grep,Glob" -p "inspect the codebase"
# 获取结构化分析结果
claude -p --output-format json "analyze this code and return findings"
-# 配合 jq 处理
-claude -p --output-format json "list functions" | jq '.functions[]'
+# 配合 jq 处理(schema 输出位于 .structured_output)
+claude -p --output-format json --json-schema "$SCHEMA" "list functions" | jq '.structured_output.functions[]'
# 在脚本中使用
result=$(claude -p --output-format json "summarize changes")
@@ -502,30 +502,32 @@ result=$(claude -p --output-format json "summarize changes")
### jq 解析示例
+响应文本位于 `.result`;配合 `--json-schema` 时,校验后的对象位于 `.structured_output`(下文的 `$SCHEMA` 表示定义了各过滤器所读字段的 schema):
+
```bash
-# 提取特定字段
-claude -p --output-format json "analyze repo" | jq '.summary'
+# 提取响应文本
+claude -p --output-format json "analyze repo" | jq -r '.result'
# 过滤数组元素
-claude -p --output-format json "find bugs" | jq '.bugs[] | select(.severity=="high")'
+claude -p --output-format json --json-schema "$SCHEMA" "find bugs" | jq '.structured_output.bugs[] | select(.severity=="high")'
# 提取多个字段
-claude -p --output-format json "analyze" | jq '{summary, risk, recommendations}'
+claude -p --output-format json --json-schema "$SCHEMA" "analyze" | jq '.structured_output | {summary, risk, recommendations}'
# 转成 CSV
-claude -p --output-format json "list files" | jq -r '.files[] | [.name, .size] | @csv'
+claude -p --output-format json --json-schema "$SCHEMA" "list files" | jq -r '.structured_output.files[] | [.name, .size] | @csv'
# 条件处理
-claude -p --output-format json "check status" | jq 'if .ok then "pass" else "fail" end'
+claude -p --output-format json --json-schema "$SCHEMA" "check status" | jq 'if .structured_output.ok then "pass" else "fail" end'
# 提取嵌套值
-claude -p --output-format json "inspect" | jq '.details.metrics.coverage'
+claude -p --output-format json --json-schema "$SCHEMA" "inspect" | jq '.structured_output.details.metrics.coverage'
# 处理整个数组
-claude -p --output-format json "find todos" | jq '.todos | length'
+claude -p --output-format json --json-schema "$SCHEMA" "find todos" | jq '.structured_output.todos | length'
# 转换输出
-claude -p --output-format json "review" | jq '{issues: [.issues[] | {file, line, message}]}'
+claude -p --output-format json --json-schema "$SCHEMA" "review" | jq '.structured_output | {issues: [.issues[] | {file, line, message}]}'
```
## 模型
@@ -643,9 +645,11 @@ claude --working-directory ./backend --mcp-config ./mcp.json
---
-**最后更新**: 2026 年 10 月 15 日
-**Claude Code 版本**: 2.1.300
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
**来源**:
- https://code.claude.com/docs/en/cli-reference
+- https://code.claude.com/docs/en/headless
+- https://platform.claude.com/docs/en/about-claude/models/overview
- 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 9f259ae..05e9725 100644
--- a/zh/CATALOG.md
+++ b/zh/CATALOG.md
@@ -50,7 +50,7 @@
| `/mcp` | 列出 MCP servers | 检查外部集成 |
| `/memory` | 查看已加载的 memory 文件 | 调试上下文加载 |
| `/mobile` | 生成移动端二维码 | 手机访问 |
-| `/passes` | 查看使用通行证 | 订阅信息 |
+| `/passes` | 与朋友分享一周免费的 Claude Code(仅限符合条件的账户) | 推荐好友 |
| `/plugin` | 管理 plugins | 安装/移除扩展 |
| `/plan` | 进入规划模式 | 复杂实现 |
| `/rewind` | 回退到 checkpoint | 撤销变更、探索替代方案 |
@@ -80,10 +80,10 @@
| `/subtask` | 派生一个继承当前对话的 forked subagent,完成后把结果返回给本对话(v2.1.212+) | 委派支线任务而不打断当前思路 |
| `/stats` | 显示会话统计 | 查看会话指标 |
| `/statusline` | 配置状态栏 | 自定义状态显示 |
-| `/stickers` | 查看会话贴纸 | 趣味奖励 |
+| `/stickers` | 订购 Claude Code 贴纸 | 趣味奖励 |
| `/fast` | 切换快速输出模式 | 加快响应 |
| `/terminal-setup` | 配置终端集成 | 设置终端特性 |
-| `/upgrade` | 检查更新 | 版本管理 |
+| `/upgrade` | 打开升级页面以切换到更高套餐 | 套餐升级 |
### 自定义命令(示例)
@@ -115,7 +115,7 @@ Claude Code 提供 6 种权限模式,用来控制工具调用如何被授权
| 模式 | 说明 | 适用场景 |
|------|-------------|-------------|
-| `default` | 每次工具调用都询问 | 标准交互式使用 |
+| `default` | 每次工具调用都询问 | 亲自审查每个操作。自 v2.1.283 起,交互式终端和 VS Code 会话的内置起始模式是 auto |
| `acceptEdits` | 自动接受文件编辑,其他情况仍询问 | 可信编辑工作流 |
| `plan` | 调研并提出计划;在你批准前不修改源代码 | 规划与探索 |
| `auto` | 所有操作,附带后台安全分类器检查 | 长任务、减少权限提示 |
@@ -140,7 +140,7 @@ Claude Code 提供 6 种权限模式,用来控制工具调用如何被授权
| **Plan** | 实现规划 | Read、Glob、Grep、Bash | 继承当前模型 | 架构设计、规划 |
| **Explore** | 代码库探索 | Read、Glob、Grep | 继承(上限为 Opus) | 快速搜索、理解代码 |
| **claude** | 不适合更专门 agent 的任务的通用兜底 agent | 所有工具 | 继承当前模型 | 没有专门 agent 的任务;被调度的后台会话的默认 agent |
-| **statusline-setup** | 状态栏配置 | Bash、Read、Write | Sonnet 4.6 | 配置状态栏显示 |
+| **statusline-setup** | 状态栏配置 | Bash、Read、Write | Sonnet | 配置状态栏显示 |
| **claude-code-guide** | 帮助与文档 | Read、Glob、Grep | Haiku | 获取帮助、学习功能 |
### Subagent 配置字段
@@ -229,8 +229,8 @@ cp -r 03-skills/* ~/.claude/skills/
| Skill | 说明 | 何时自动触发 |
|-------|-------------|-------------------|
| `/simplify` | 审查代码质量 | 写完代码后 |
-| `/batch` | 对多个文件运行提示词 | 批量操作 |
-| `/debug` | 调试失败的测试/错误 | 调试会话 |
+| `/batch` | 将大型变更拆分为 5–30 个独立单元,每个单元由一个后台 subagent 在独立 worktree 中运行 | 大规模并行重构 |
+| `/debug [description]` | 为当前会话开启调试日志,并根据会话调试日志排查问题 | 调试 Claude Code 本身 |
| `/loop` | 按间隔运行提示词 | 周期性任务 |
| `/claude-api` | 使用 Claude API 构建应用 | API 开发 |
| `/code-review` | 按指定强度审查当前 diff 的正确性问题(例如 `/code-review high`);加 `--comment` 可把结论发成 PR 行内评论。自 v2.1.218 起以**后台 subagent** 运行 | 写完代码后、合并 PR 前 |
@@ -257,14 +257,17 @@ cp -r 03-skills/* ~/.claude/skills/
### Plugin 结构
-```
-.claude-plugin/
-├── plugin.json # manifest 文件
+```text
+my-plugin/
+├── .claude-plugin/
+│ └── plugin.json # manifest 文件(.claude-plugin/ 中唯一的文件)
├── commands/ # Slash commands
├── agents/ # Subagents
-├── skills/ # Skills
-├── mcp/ # MCP 配置
-├── hooks/ # Hook 脚本
+├── skills/ # Skills (<name>/SKILL.md)
+├── hooks/
+│ └── hooks.json # Hook 配置
+├── .mcp.json # MCP 配置
+├── bin/ # 可执行文件
└── scripts/ # 工具脚本
```
@@ -274,7 +277,7 @@ cp -r 03-skills/* ~/.claude/skills/
```bash
/plugin list # 列出已安装的 plugins
/plugin install <name> # 安装 plugin
-/plugin remove <name> # 移除 plugin
+/plugin uninstall <name> # 卸载 plugin
claude plugin update <name> # 更新 plugin(CLI;/plugin update 斜杠命令形式仅在正文中被提及,命令参考中并无该条目)
```
@@ -288,9 +291,9 @@ claude plugin update <name> # 更新 plugin(CLI;/plugin update 斜杠命
| Server | 说明 | 适用场景 | 作用域 | 安装 |
|--------|-------------|-------------|-------|--------------|
-| **GitHub** | PR 管理、issues、代码 | GitHub 工作流 | 项目 | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
-| **Database** | SQL 查询、数据访问 | 数据库操作 | 项目 | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
-| **Filesystem** | 高级文件操作 | 复杂文件任务 | 用户 | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
+| **GitHub** | PR 管理、issues、代码 | GitHub 工作流 | 本地 | `claude mcp add github -- npx -y @modelcontextprotocol/server-github` |
+| **Database** | SQL 查询、数据访问 | 数据库操作 | 本地 | `claude mcp add db -- npx -y @modelcontextprotocol/server-postgres` |
+| **Filesystem** | 高级文件操作 | 复杂文件任务 | 本地 | `claude mcp add fs -- npx -y @modelcontextprotocol/server-filesystem` |
| **Slack** | 团队沟通 | 通知、更新 | 项目 | 在设置中配置 |
| **Google Docs** | 文档访问 | 文档编辑、审阅 | 项目 | 在设置中配置 |
| **Asana** | 项目管理 | 任务跟踪 | 项目 | 在设置中配置 |
@@ -298,7 +301,7 @@ claude plugin update <name> # 更新 plugin(CLI;/plugin update 斜杠命
| **Memory** | 持久记忆 | 跨会话回忆 | 用户 | 在设置中配置 |
| **Context7** | 库文档 | 查找最新文档 | 用户 | 在设置中配置(第三方 server) |
-> **作用域**: `Project` = 团队(`.mcp.json`),`User` = 个人(`~/.claude.json`),`Built-in` = 预装
+> **作用域**: `Local`(本地)= 不带 `--scope` 的 `claude mcp add` 的默认作用域(仅你自己、当前项目;`~/.claude.json`),`Project` = 团队(`.mcp.json`,`--scope project`),`User` = 个人(`~/.claude.json`,`--scope user`),`Built-in` = 预装
### MCP 配置示例
@@ -389,13 +392,17 @@ export GITHUB_TOKEN="your_token" && claude mcp add github -- npx -y @modelcontex
"PreToolUse": [
{
"matcher": "Bash",
- "command": "~/.claude/hooks/validate-bash.py"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/validate-bash.py" }
+ ]
}
],
"PostToolUse": [
{
"matcher": "Write",
- "command": "~/.claude/hooks/format-code.sh"
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/format-code.sh" }
+ ]
}
]
}
@@ -460,7 +467,7 @@ cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md
| **通道(Channels)** | 多通道通信(Telegram、Slack 等)(Research Preview) | 配置 channel plugins;2026 年 3 月 |
| **语音输入(Voice Dictation)** | 用语音输入提示词 | 使用麦克风图标或语音快捷键 |
| **Agent Hook Type** | 触发 subagent 而不是执行 shell 命令的 hook | 在 hook 配置中设置 `"type": "agent"` |
-| **Prompt Hook Type** | 将 prompt 文本注入对话的 hook | 在 hook 配置中设置 `"type": "prompt"` |
+| **Prompt Hook Type** | 将 prompt 发送给 Claude 模型做单轮评估、由模型以 JSON 返回决定的 hook | 在 hook 配置中设置 `"type": "prompt"` |
| **MCP Elicitation** | MCP servers 可在工具执行期间请求用户输入 | 通过 `Elicitation` 和 `ElicitationResult` hook 事件处理 |
| **WebSocket MCP Transport** | 用 WebSocket 连接 MCP server | 在 MCP server 配置中使用 `"transport": "websocket"` |
| **Plugin LSP Support** | 通过 plugins 集成 Language Server Protocol | 在 `plugin.json` 中配置 LSP servers,以获得编辑器能力 |
@@ -529,8 +536,8 @@ claude mcp add github -- npx -y @modelcontextprotocol/server-github
---
-**最后更新**: 2026 年 10 月 15 日
-**Claude Code 版本**: 2.1.300
+**最后更新**: 2026 年 10 月 18 日
+**Claude Code 版本**: 2.1.302
**来源**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/commands
@@ -543,3 +550,5 @@ claude mcp add github -- npx -y @modelcontextprotocol/server-github
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/cli-reference
diff --git a/zh/INDEX.md b/zh/INDEX.md
index b72435b..dd848ff 100644
--- a/zh/INDEX.md
+++ b/zh/INDEX.md
@@ -253,7 +253,7 @@ pr-review/
**命令**:`/review-pr`、`/check-security`、`/check-tests`
-**安装**:`/plugin install pr-review`
+**安装**:`claude --plugin-dir ./07-plugins/pr-review` (在仓库根目录运行)
### DevOps Automation 插件(15 个文件)
@@ -286,7 +286,7 @@ devops-automation/
**命令**:`/deploy`、`/rollback`、`/status`、`/incident`
-**安装**:`/plugin install devops-automation`
+**安装**:`claude --plugin-dir ./07-plugins/devops-automation` (在仓库根目录运行)
### Documentation 插件(14 个文件)
@@ -316,7 +316,7 @@ documentation/
**命令**:`/generate-api-docs`、`/generate-readme`、`/sync-docs`、`/validate-docs`
-**安装**:`/plugin install documentation`
+**安装**:`claude --plugin-dir ./07-plugins/documentation` (在仓库根目录运行)
**补充**:`README.md` - 插件总览与使用指南
@@ -343,7 +343,7 @@ documentation/
# 如需回退,按两次 Esc,或使用:
/rewind
# 然后选择:恢复代码和对话、恢复对话、
-# 恢复代码、从这里开始总结,或算了
+# 恢复代码、从这里开始总结、总结到这里,或算了
```
**使用场景**:
@@ -395,7 +395,7 @@ documentation/
- **plan**:只读分析,不做修改
- **auto**:所有操作都执行,附带后台安全检查 — 由分类器审查命令和受保护目录的写入(通过 `autoMode` 设置对象配置)
- **dontAsk**:只允许预先批准的工具 — 任何本来会弹出提示的调用都会被自动拒绝。Claude 只运行 `permissions.allow` 匹配项、只读 Bash 命令,以及被 `PreToolUse` hook 批准的调用
-- **bypassPermissions**:全部接受(需要 `--dangerously-skip-permissions`)
+- **bypassPermissions**:全部接受(使用 `--permission-mode bypassPermissions` 或等效的 `--dangerously-skip-permissions` 启用)
#### Headless Mode(`claude -p`)
- CI/CD 集成
@@ -668,14 +668,14 @@ cp 04-subagents/code-reviewer.md .claude/agents/
cp -r 03-skills/code-review-specialist ~/.claude/skills/
# 或直接安装完整插件
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
```
### DevOps 与部署
```bash
# 安装插件(包含全部功能)
-/plugin install devops-automation
+claude --plugin-dir ./07-plugins/devops-automation
```
### 文档
@@ -691,7 +691,7 @@ cp 04-subagents/documentation-writer.md .claude/agents/
cp -r 03-skills/doc-generator ~/.claude/skills/
# 或直接安装完整插件
-/plugin install documentation
+claude --plugin-dir ./07-plugins/documentation
```
### 团队规范
@@ -707,8 +707,10 @@ cp 02-memory/project-CLAUDE.md ./CLAUDE.md
```bash
# 设置环境变量
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
+export SLACK_BOT_TOKEN="your-slack-bot-token"
+export SLACK_TEAM_ID="T0000000000"
# 安装 MCP 配置(项目级)
cp 05-mcp/multi-mcp.json .mcp.json
@@ -894,8 +896,8 @@ claude -p "Run tests and report results"
---
-**最后更新**:2026 年 10 月 15 日
-**Claude Code 版本**:2.1.300
+**最后更新**:2026 年 10 月 18 日
+**Claude Code 版本**:2.1.302
**总示例数**:100+ 文件
**分类数**:10 个功能
**Hooks**:8 个自动化脚本
@@ -907,3 +909,6 @@ claude -p "Run tests and report results"
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/permission-modes
diff --git a/zh/LEARNING-ROADMAP.md b/zh/LEARNING-ROADMAP.md
index e5dbbb6..cadf263 100644
--- a/zh/LEARNING-ROADMAP.md
+++ b/zh/LEARNING-ROADMAP.md
@@ -98,7 +98,7 @@ graph TD
| 步骤 | 功能 | 复杂度 | 时间 | 水平 | 依赖 | 为什么学它 | 关键收益 |
|------|---------|-----------|------|-------|--------------|----------------|--------------|
-| **1** | [Slash Commands](01-slash-commands/README.md) | ⭐ Beginner | 30 分钟 | Level 1 | 无 | 快速获得生产力提升(55+ 内置命令 + 5 个 bundled skills) | 立即自动化、统一团队规范 |
+| **1** | [Slash Commands](01-slash-commands/README.md) | ⭐ Beginner | 30 分钟 | Level 1 | 无 | 快速获得生产力提升(55+ 内置命令 + 20 个 bundled skills) | 立即自动化、统一团队规范 |
| **2** | [Memory](02-memory/README.md) | ⭐⭐ Beginner+ | 45 分钟 | Level 1 | 无 | 所有功能的基础 | 持久上下文、偏好设置 |
| **3** | [Checkpoints](08-checkpoints/README.md) | ⭐⭐ Intermediate | 45 分钟 | Level 1 | 会话管理 | 安全探索 | 试验、恢复 |
| **4** | [CLI Basics](10-cli/README.md) | ⭐⭐ Beginner+ | 30 分钟 | Level 1 | 无 | 核心 CLI 用法 | 交互式与 print mode |
@@ -305,8 +305,7 @@ chmod +x ~/.claude/hooks/pre-tool-check.sh
```bash
# 练习 1:设置 GitHub MCP
-export GITHUB_TOKEN="your_github_token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# 练习 2:测试 MCP 集成
# 在 Claude Code 中:/mcp__github__list_prs
@@ -374,7 +373,7 @@ cp 04-subagents/*.md .claude/agents/
✅ 管理后台任务
✅ 使用 Auto Memory 记住偏好
✅ 使用自动模式(Auto Mode)和后台安全分类器
-✅ 使用通道(Channels)组织多会话工作流
+✅ 通道(Channels)把事件(CI 结果、聊天消息、webhook)推送到正在运行的会话
✅ 使用语音输入(Voice Dictation)解放双手
✅ 远程控制、桌面应用和 Web 会话
✅ 使用 Agent Teams 协作
@@ -410,10 +409,10 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# 练习 7:定时任务
/loop 5m /check-status
-# 或使用 CronCreate 创建持久化定时任务
+# 任务仅限当前会话;如需持久化调度,请使用 Routines 或 Desktop 定时任务
-# 练习 8:用通道(Channels)管理多会话工作流
-# 用 channels 来组织跨会话工作
+# 练习 8:通道(Channels,研究预览)
+# 通道是一个把事件推送到你正在运行的会话中的 MCP server
# 练习 9:语音输入(Voice Dictation)
# 用语音输入和 Claude Code 进行无手操作
@@ -425,7 +424,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
- [ ] 用 Alt+T / Option+T 切换过 extended thinking
- [ ] 使用过带后台安全分类器的自动模式(Auto mode)
- [ ] 使用过后台任务处理长时间操作
-- [ ] 探索过通道(Channels)做多会话工作流
+- [ ] 探索过把外部事件推送到会话的通道(Channels)
- [ ] 尝试过语音输入(Voice Dictation)做无手输入
- [ ] 理解 Remote Control、Desktop App 和 Web 会话
- [ ] 启用并使用过 Agent Teams 做协作任务
@@ -456,7 +455,7 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
```bash
# 练习 1:安装一个完整 plugin
-# 在 Claude Code 中:/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review # 在仓库根目录运行
# 练习 2:让 print mode 服务于 CI/CD
claude -p "Run all tests and generate report"
@@ -676,13 +675,13 @@ done
1. **写团队文档** - 记录团队的 Claude Code 配置
2. **构建自定义 plugins** - 把团队工作流打包起来
-3. **探索 Remote Control** - 通过外部工具以编程方式控制 Claude Code 会话
+3. **探索 Remote Control** - 从手机、浏览器或 Claude 应用继续本地的 Claude Code 会话
4. **试试 Web Sessions** - 用浏览器界面远程开发
5. **使用 Desktop App** - 通过原生桌面应用访问 Claude Code
6. **使用自动模式(Auto Mode)** - 让 Claude 在后台安全分类器保护下自主工作
7. **启用 Auto Memory** - 让 Claude 随时间自动学习你的偏好
8. **设置 Agent Teams** - 让多个 agent 协同处理复杂、多维任务
-9. **使用通道(Channels)** - 用结构化的多会话工作流组织工作
+9. **使用通道(Channels)** - 连接一个把事件(CI 结果、聊天消息、webhook)推送到正在运行会话的 MCP server
10. **试试语音输入(Voice Dictation)** - 用语音无障碍地与 Claude Code 交互
11. **使用 Scheduled Tasks** - 借助 `/loop` 和 cron 工具自动化周期性检查
12. **贡献示例** - 把经验分享给社区
@@ -716,11 +715,17 @@ done
---
-**最后更新**:2026 年 10 月 15 日
-**Claude Code 版本**:2.1.300
+**最后更新**:2026 年 10 月 18 日
+**Claude Code 版本**:2.1.302
**来源**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/agent-teams
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/channels
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/commands
- 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 790c545..df0a9a2 100644
--- a/zh/QUICK_REFERENCE.md
+++ b/zh/QUICK_REFERENCE.md
@@ -46,7 +46,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
### MCP
```bash
# 设置凭据
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# 安装配置(项目级)
@@ -97,7 +97,7 @@ chmod +x ~/.claude/hooks/*.sh
# plan - 只读分析,不做修改
# dontAsk - 只运行预先批准的工具,其余一律拒绝
# auto - 后台分类器自动决定权限
-# bypassPermissions - 全部接受(需要 --dangerously-skip-permissions)
+# bypassPermissions - 全部接受(--permission-mode bypassPermissions;--dangerously-skip-permissions 与之等效)
# 会话管理
/resume # 恢复之前的对话
@@ -262,8 +262,8 @@ export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# 每 5 分钟运行一次命令
/loop 5m /check-status
-# 一次性提醒
-/loop 30m "提醒我检查部署"
+# 一次性提醒:直接用自然语言提出(/loop 会一直重复直到取消)
+30 分钟后提醒我检查部署
```
---
@@ -290,9 +290,12 @@ User Home/
│ ├── skills/ # 个人 skills
│ ├── hooks/ # hook 脚本
│ ├── settings.json # 用户设置
-│ ├── managed-settings.d/ # 托管设置(企业/组织)
│ └── CLAUDE.md # 个人 memory
└── .claude.json # 个人 MCP 配置(用户级)
+
+系统目录/ # macOS /Library/Application Support/ClaudeCode/,Linux /etc/claude-code/,Windows C:\Program Files\ClaudeCode\
+├── managed-settings.json # 托管设置(企业/组织)
+└── managed-settings.d/ # 托管设置的附加文件(drop-in)
```
---
@@ -353,7 +356,7 @@ cp 04-subagents/code-reviewer.md .claude/agents/
### 第 4-5 天
```bash
# 设置 MCP
-export GITHUB_TOKEN="your_token"
+export GITHUB_PERSONAL_ACCESS_TOKEN="your_token"
cp 05-mcp/github-mcp.json .mcp.json
# 试用 MCP 命令
@@ -399,7 +402,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
| **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` 参数 |
+| **Model Selection** | 在 Fable 5.1、Fable 5、Opus 5、Sonnet 5.5、Sonnet 5、Sonnet 4.6、Opus 4.8 和 Haiku 4.5 之间切换 | `/model` 或 `--model` 参数(在 Anthropic API 上 `sonnet` 指向 Sonnet 5.5,v2.1.284+) |
| **Agent Teams** | 协调多个 agent 执行任务 | 通过环境变量 `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` 启用(实验性) |
| **Scheduled Tasks** | 使用 `/loop` 运行周期任务 | `/loop 5m /command` 或 CronCreate 工具 |
| **Chrome Integration** | 浏览器自动化 | `--chrome` 参数或 `/chrome` 命令 |
@@ -431,7 +434,7 @@ ls -la .claude/agents/
head -20 .claude/agents/code-reviewer.md
# 测试 MCP 连接
-echo $GITHUB_TOKEN
+echo $GITHUB_PERSONAL_ACCESS_TOKEN
```
---
@@ -507,8 +510,8 @@ echo $GITHUB_TOKEN
---
-**最后更新**:2026 年 10 月 15 日
-**Claude Code 版本**:2.1.300
+**最后更新**:2026 年 10 月 18 日
+**Claude Code 版本**:2.1.302
**来源**:
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/commands
@@ -516,3 +519,7 @@ echo $GITHUB_TOKEN
- 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
+- https://code.claude.com/docs/en/managed-settings
+- https://code.claude.com/docs/en/scheduled-tasks
+- https://code.claude.com/docs/en/model-config
diff --git a/zh/README.md b/zh/README.md
index c51365e..59b1a99 100644
--- a/zh/README.md
+++ b/zh/README.md
@@ -206,7 +206,7 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
完整路径大约需要 11 到 13 小时。但你在 15 分钟内就能获得直接收益,只要复制一个 slash command 模板并试用即可。
**我可以搭配 Claude Sonnet / Haiku / Opus 使用吗?**
-可以。所有模板都适用于 Claude Fable 5、Claude Opus 5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5。
+可以。所有模板都适用于 Claude Fable 5、Claude Opus 5、Claude Sonnet 5.5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 4.5。
**我可以参与贡献吗?**
当然可以。请查看 [CONTRIBUTING.md](CONTRIBUTING.md) 了解贡献规范。我们欢迎新的示例、bug 修复、文档改进以及社区模板。
@@ -282,16 +282,15 @@ cp -r 03-skills/code-review-specialist ~/.claude/skills/
cp 04-subagents/*.md .claude/agents/
# MCP
-export GITHUB_TOKEN="token"
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# Hooks
mkdir -p ~/.claude/hooks
cp 06-hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh
-# Plugins
-/plugin install pr-review
+# Plugins(在仓库根目录加载本地插件)
+claude --plugin-dir ./07-plugins/pr-review
# Checkpoints(默认自动开启,可在设置中配置)
# 参见 08-checkpoints/README.md
@@ -425,11 +424,10 @@ cp 04-subagents/*.md /path/to/project/.claude/agents/
**安装**:
```bash
# 设置环境变量
-export GITHUB_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# 通过 CLI 添加 MCP server
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
+claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
# 或手动添加到项目 .mcp.json(参见 [05-mcp/README.md](05-mcp/README.md) 中的示例)
```
@@ -446,7 +444,7 @@ claude mcp add github -- npx -y @modelcontextprotocol/server-github
**是什么**: 基于事件触发的 shell 命令,会在 Claude Code 事件发生时自动执行
**示例**:
-- `format-code.sh` - 写入前自动格式化代码
+- `format-code.sh` - 写入后自动格式化代码
- `pre-commit.sh` - 提交前运行测试
- `security-scan.sh` - 扫描安全问题
- `log-bash.sh` - 记录所有 bash 命令
@@ -464,14 +462,15 @@ chmod +x ~/.claude/hooks/*.sh
```json
{
"hooks": {
- "PreToolUse": [{
- "matcher": "Write",
- "hooks": ["~/.claude/hooks/format-code.sh"]
- }],
- "PostToolUse": [{
- "matcher": "Write",
- "hooks": ["~/.claude/hooks/security-scan.sh"]
- }]
+ "PostToolUse": [
+ {
+ "matcher": "Write",
+ "hooks": [
+ { "type": "command", "command": "~/.claude/hooks/format-code.sh" },
+ { "type": "command", "command": "~/.claude/hooks/security-scan.sh" }
+ ]
+ }
+ ]
}
}
```
@@ -502,9 +501,10 @@ chmod +x ~/.claude/hooks/*.sh
**安装**:
```bash
-/plugin install pr-review
-/plugin install devops-automation
-/plugin install documentation
+# 在仓库根目录运行(本仓库没有 marketplace,因此 /plugin install 不适用)
+claude --plugin-dir ./07-plugins/pr-review
+claude --plugin-dir ./07-plugins/devops-automation
+claude --plugin-dir ./07-plugins/documentation
```
**使用方法**: 使用其中打包好的 slash commands 和功能
@@ -529,12 +529,13 @@ chmod +x ~/.claude/hooks/*.sh
# 如需回退,按两次 Esc,或者使用:
/rewind
-# 然后从以下五个选项中选择:
+# 然后从以下六个选项中选择:
# 1. 恢复代码和对话
# 2. 恢复对话
# 3. 恢复代码
# 4. 从这里开始总结
-# 5. 算了
+# 5. 总结到这里
+# 6. 算了
```
**使用场景**:
@@ -878,10 +879,13 @@ MIT 许可证,详见 [LICENSE](LICENSE)。你可以自由使用、修改和分
---
-**最后更新**:2026 年 9 月 19 日
-**Claude Code 版本**:2.1.278
+**最后更新**:2026 年 10 月 18 日
+**Claude Code 版本**:2.1.302
**来源**:
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/mcp
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/checkpointing
**兼容模型**: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/claude_concepts_guide.md b/zh/claude_concepts_guide.md
index 4117a91..b49cf68 100644
--- a/zh/claude_concepts_guide.md
+++ b/zh/claude_concepts_guide.md
@@ -487,7 +487,7 @@ graph TB
### Claude Code 中的 7 层记忆层级
-Claude Code 会按优先级从高到低加载 7 层记忆:
+Claude Code 会加载 7 层记忆。CLAUDE.md 文件不会互相覆盖,而是拼接进上下文,并按 managed → user → project → local 的顺序加载(越具体的文件越晚读取):
```mermaid
graph TD
@@ -509,7 +509,7 @@ graph TD
| 4. User | `~/.claude/CLAUDE.md` | 个人级 | 中 | 个人 | 个人偏好 |
| 5. User Rules | `~/.claude/rules/*.md` | 个人级 | 中 | 个人 | 个人规则模块 |
| 6. Local | `./CLAUDE.local.md` | 本地 | 低 | 不共享 | 机器相关设置 |
-| 7. Auto Memory | 自动生成 | 会话级 | 最低 | 个人 | 学到的偏好与模式 |
+| 7. Auto Memory | 自动生成 | 仓库级 | 最低 | 个人 | 学到的偏好与模式 |
### Auto Memory
@@ -862,15 +862,15 @@ sequenceDiagram
### 预构建 Skills
-Claude Code 现在内置了 5 个 bundled skills,可直接使用:
+Claude Code 现在内置了 20 个 bundled skills,可直接使用:
| Skill | 命令 | 用途 |
|-------|------|------|
| Simplify | `/simplify` | 简化复杂代码或解释 |
| Batch | `/batch` | 批量对多个文件或对象执行操作 |
-| Debug | `/debug` | 系统化调试并做根因分析 |
+| Debug | `/debug` | 为当前会话开启调试日志,并通过读取该日志排查问题 |
| Loop | `/loop` | 按定时计划重复执行任务 |
-| Claude API | `/claude-api` | 直接与 Anthropic API 交互 |
+| Claude API | `/claude-api` | 按项目语言加载 Claude API 和 Managed Agents 参考资料;代码导入 `anthropic` 或 `@anthropic-ai/sdk` 时自动启用 |
### 实践示例
@@ -1003,7 +1003,7 @@ sequenceDiagram
participant MCPServers as MCP Servers
participant Hooks
- User->>Claude: /plugin install pr-review
+ User->>Claude: claude --plugin-dir ./07-plugins/pr-review
Claude->>Plugin: 下载插件清单
Plugin-->>Claude: 返回插件定义
Claude->>Install: 解包组件
@@ -1024,14 +1024,14 @@ sequenceDiagram
### Plugin 定义结构
-```yaml
----
-name: plugin-name
-version: "1.0.0"
-description: "What this plugin does"
-author: "Your Name"
-license: MIT
----
+清单是位于 `.claude-plugin/plugin.json` 的 JSON 文件。只有 `name` 是必填项,无法识别的顶层键会被移除:
+
+```json
+{
+ "name": "plugin-name",
+ "version": "1.0.0",
+ "description": "What this plugin does"
+}
```
### Plugin 结构
@@ -1045,6 +1045,7 @@ my-plugin/
├── skills/
├── hooks/
├── .mcp.json
+├── bin/
├── templates/
├── scripts/
├── docs/
@@ -1142,7 +1143,7 @@ graph LR
**使用 Plugin:**
```bash
-/plugin install pr-review
+claude --plugin-dir ./07-plugins/pr-review
# ✅ 一次安装完成
# ✅ 即刻可用
# ✅ 团队可复现
@@ -1387,12 +1388,13 @@ Esc + Esc
/rewind
```
-选择 checkpoint 后有五个选项:
+选择 checkpoint 后有六个选项:
1. 恢复代码和对话
2. 恢复对话
3. 恢复代码
4. 从这里开始总结
-5. 取消
+5. 总结到这里为止
+6. 取消
### 常见场景
@@ -1405,9 +1407,11 @@ Esc + Esc
### 配置
+Checkpoint 默认开启,由 `fileCheckpointingEnabled` 控制:
+
```json
{
- "autoCheckpoint": true
+ "fileCheckpointingEnabled": true
}
```
@@ -1435,9 +1439,11 @@ Esc + Esc
适合复杂问题的深度推理。
+Opus 4.7+、Sonnet 5+、Haiku 5.5 和 Fable 始终使用自适应推理,固定的 `MAX_THINKING_TOKENS` 预算对它们不适用;用 `/effort` 控制推理深度。
+
```bash
-export MAX_THINKING_TOKENS=50000
-claude -p "Should we use microservices or monolith?"
+# 用 effort 级别控制推理深度
+/effort high
```
### Background Tasks
@@ -1504,10 +1510,6 @@ claude -r "Feature"
```json
{
- "planning": {
- "autoEnter": true,
- "requireApproval": true
- },
"permissions": {
"defaultMode": "manual"
}
@@ -1532,9 +1534,15 @@ 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 年 10 月 15 日
-**Claude Code 版本**:2.1.300
+**最后更新**:2026 年 10 月 18 日
+**Claude Code 版本**:2.1.302
**来源**:
+- https://code.claude.com/docs/en/plugins/manifest-reference
+- https://code.claude.com/docs/en/plugins/install
+- https://code.claude.com/docs/en/settings-reference
+- https://code.claude.com/docs/en/model-config
+- https://code.claude.com/docs/en/checkpointing
+- https://code.claude.com/docs/en/memory
- 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 7c1ab21..f511207 100644
--- a/zh/resources.md
+++ b/zh/resources.md
@@ -235,10 +235,10 @@ graph TD
| 功能 | 说明 | 了解更多 |
|---------|-------------|------------|
| **Auto Memory** | Claude 会自动学习并记住你跨会话的偏好 | [记忆指南](02-memory/README.md) |
-| **Remote Control** | 通过外部工具和脚本以编程方式控制 Claude Code 会话 | [高级功能](09-advanced-features/README.md) |
+| **Remote Control** | 从手机、浏览器或 Claude 应用继续本地的 Claude Code 会话 | [高级功能](09-advanced-features/README.md) |
| **Web Sessions** | 通过基于浏览器的界面访问 Claude Code,实现远程开发 | [CLI 参考](10-cli/README.md) |
| **Desktop App** | Claude Code 的原生桌面应用,界面更强大 | [Claude Code 文档](https://code.claude.com/docs/en/desktop) |
-| **Extended Thinking** | 通过 `Alt+T` / `Option+T` 或 `MAX_THINKING_TOKENS` 环境变量切换深度推理 | [高级功能](09-advanced-features/README.md) |
+| **Extended Thinking** | 通过 `Alt+T` / `Option+T` 切换深度推理;Opus 4.7+、Sonnet 5+、Haiku 5.5 和 Fable 始终使用自适应推理,因此 `MAX_THINKING_TOKENS` 固定预算不适用(用 `/effort` 控制深度) | [高级功能](09-advanced-features/README.md) |
| **Permission Modes** | 精细权限控制:default、acceptEdits、plan、auto、dontAsk、bypassPermissions | [高级功能](09-advanced-features/README.md) |
| **7-Tier Memory** | Managed Policy、Project、Project Rules、User、User Rules、Local、Auto Memory | [记忆指南](02-memory/README.md) |
| **Hook Events** | 33 个事件:PreToolUse、PostToolUse、PostToolUseFailure、Stop、StopFailure、SubagentStart、SubagentStop、Notification、Elicitation 等 | [Hooks 指南](06-hooks/README.md) |
@@ -249,7 +249,9 @@ graph TD
---
-**最后更新**:2026 年 10 月 15 日
-**Claude Code 版本**:2.1.300
+**最后更新**:2026 年 10 月 18 日
+**Claude Code 版本**:2.1.302
**来源**:
- https://code.claude.com/docs/en/chrome
+- https://code.claude.com/docs/en/remote-control
+- https://code.claude.com/docs/en/model-config