mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-09-26 13:20:42 +02:00
docs: sync to Claude Code v2.1.278 (#183)
* docs: sync to Claude Code v2.1.278 Type: docs Audit of the tutorial against Claude Code 2.1.278 (repo baseline was 2.1.263). Fixes claims the repo asserts that are now false; new-feature coverage is English-only. P0 - the repo stated the opposite of current behavior: - AGENTS.md: the claude-md skill said Claude Code "does not read AGENTS.md directly" in all 5 languages. It has since v2.1.277, when no CLAUDE.md exists at or above the working directory. - /output-style: listed as "Removed in v2.1.91" in 5 languages and in 09-advanced-features. Re-added in v2.1.269; row moved out of the Deprecated Commands table. - Permission rules: setup-auto-mode-permissions.py seeded Write(*), Glob(*) and NotebookEdit(*), which Claude Code accepts but never consults and warns about at startup. Removed; same fix in the config-examples.json profile and the 06/09 category tables. - taskOutputMaxChars: documented as live. The TaskOutput tool was removed in v2.1.278 and the key is inert. P1: - Dynamic workflow "medium" guideline is fewer than 10 agents, not 15; the default is small on Pro plans since v2.1.271. - Todo-tool availability restated as the official allowlist (Claude 3.x, Opus 4-4.7, Sonnet 4-4.6, Haiku 4.5) instead of a denylist; 23 sites across 5 languages. - Memory hierarchy now notes the AGENTS.md fallback. - Auto-mode classifier cost qualified: not charged on Enterprise plans and Claude API accounts since v2.1.278. P3 (English only): full AGENTS.md section in 02-memory; omitClaudeMd subagent field; plugin eval / --json / --accept-command / --marketplace; maxEffortLevel, bashEditDiffEnabled, syncClaudeAi*, 4 env vars, --system-prompt-snapshot, --plugin-dir folders; send-now key and Monitor deadlines; checkpoints subagent-edit limitation. Learning skills audited clean: 100 quiz questions and 100 Review pointers all valid, 20 self-assessment options correctly mapped. Cross-file anchors: 15 broken before, 15 after, 0 introduced. * docs: address review — stale version stamps, /output-style re-add, permission tables
This commit is contained in:
+10
-7
@@ -225,7 +225,7 @@ Claude Code は **33 種類のフックイベント** をサポートする。
|
||||
| **ElicitationResult** | ユーザーが elicitation に応答 | (なし) | 可 | 応答処理 |
|
||||
| **SessionEnd** | セッション終了 | (なし) | 不可 | クリーンアップ、最終ロギング |
|
||||
|
||||
> **`TaskCreated` と `TaskCompleted` は todo ツールが有効なときのみ発火する(v2.1.233)。** これらのイベントは todo/タスク追跡ツール(`TaskCreate`/`Get`/`Update`/`List`、`TodoWrite`)から発火するが、それらは **Opus 4.8、Sonnet 5、Fable 5、Mythos 5 以降のモデルでは利用できない**。これらのモデルではフックの設定自体は有効なまま、単に発火しない — 出力もエラーも出ない。`CLAUDE_CODE_ENABLE_TODO_TOOLS=1` を設定すると復活する。
|
||||
> **`TaskCreated` と `TaskCompleted` は todo ツールが有効なときのみ発火する(v2.1.233)。** これらのイベントは todo/タスク追跡ツール(`TaskCreate`/`Get`/`Update`/`List`、`TodoWrite`)から発火するが、それらは **Claude 3.x モデル、Opus 4〜4.7、Sonnet 4〜4.6、Haiku 4.5 でのみデフォルトで利用できる**。それ以外のモデルではフックの設定自体は有効なまま、単に発火しない — 出力もエラーも出ない。`CLAUDE_CODE_ENABLE_TODO_TOOLS=1` を設定すると復活する。
|
||||
|
||||
> **PostToolUse の duration(v2.1.119):** `PostToolUse` と `PostToolUseFailure` のフック入力に `duration_ms` が含まれるようになった。詳細は [PostToolUse](#posttooluse) セクションを参照。
|
||||
|
||||
@@ -962,7 +962,7 @@ if __name__ == "__main__":
|
||||
|
||||
### 例 7:自動モード権限のシード(一度限りのセットアップスクリプト)
|
||||
|
||||
`~/.claude/settings.json` に Claude Code の自動モードベースラインに相当する約 67 個の安全な権限ルールをシードする一度限りのセットアップスクリプト。フックなし、将来の選択を覚えることもなし。1 回実行すれば良く、再実行しても安全(既存ルールはスキップ)。
|
||||
`~/.claude/settings.json` に Claude Code の自動モードベースラインに相当する安全な権限ルール(デフォルトで 37 個、すべてのカテゴリフラグを有効にすると最大 63 個)をシードする一度限りのセットアップスクリプト。フックなし、将来の選択を覚えることもなし。1 回実行すれば良く、再実行しても安全(既存ルールはスキップ)。
|
||||
|
||||
**ファイル:** `09-advanced-features/setup-auto-mode-permissions.py`
|
||||
|
||||
@@ -978,12 +978,13 @@ python3 09-advanced-features/setup-auto-mode-permissions.py
|
||||
|
||||
| カテゴリ | 例 |
|
||||
|----------|-----|
|
||||
| 組み込みツール | `Read(*)`、`Edit(*)`、`Write(*)`、`Glob(*)`、`Grep(*)`、`Agent(*)`、`WebSearch(*)` |
|
||||
| 組み込みツール | `Read(*)`、`Grep(*)`、`Agent(*)`、`WebSearch(*)` |
|
||||
| オプションの編集(--include-edits) | `Edit(*)` |
|
||||
| Git 読み取り | `Bash(git status:*)`、`Bash(git log:*)`、`Bash(git diff:*)` |
|
||||
| Git 書き込み(ローカル) | `Bash(git add:*)`、`Bash(git commit:*)`、`Bash(git checkout:*)` |
|
||||
| パッケージマネージャ | `Bash(npm install:*)`、`Bash(pip install:*)`、`Bash(cargo build:*)` |
|
||||
| パッケージマネージャ | `Bash(npm ci:*)`、`Bash(npm install:*)`、`Bash(pip install:*)`、`Bash(pip3 install:*)` |
|
||||
| ビルド・テスト | `Bash(make:*)`、`Bash(pytest:*)`、`Bash(go test:*)` |
|
||||
| 一般的なシェル | `Bash(ls:*)`、`Bash(cat:*)`、`Bash(find:*)`、`Bash(cp:*)`、`Bash(mv:*)` |
|
||||
| 一般的なシェル | `Bash(ls:*)`、`Bash(cat:*)`、`Bash(find:*)` |
|
||||
| GitHub CLI | `Bash(gh pr view:*)`、`Bash(gh pr create:*)`、`Bash(gh issue list:*)` |
|
||||
|
||||
**意図的に除外される項目**(このスクリプトでは追加されない):
|
||||
@@ -1381,10 +1382,12 @@ chmod +x ~/.claude/hooks/*.sh
|
||||
|
||||
---
|
||||
|
||||
**最終更新:** 2026 年 9 月 2 日
|
||||
**Claude Code バージョン:** 2.1.257
|
||||
**最終更新:** 2026 年 9 月 19 日
|
||||
**Claude Code バージョン:** 2.1.278
|
||||
**情報源:**
|
||||
- https://code.claude.com/docs/en/hooks
|
||||
- https://code.claude.com/docs/en/permissions
|
||||
- https://code.claude.com/docs/en/tools-reference#task-tool-availability
|
||||
- https://code.claude.com/docs/en/changelog
|
||||
- https://github.com/anthropics/claude-code/releases/tag/v2.1.118
|
||||
- https://github.com/anthropics/claude-code/releases/tag/v2.1.119
|
||||
|
||||
Reference in New Issue
Block a user