Type: docs
Sync the tutorial, its translations and root docs to Claude Code
2.1.322 (range 2.1.317-2.1.322). P1 fixes (Fable 5.2, fast mode on
Fable 5.2, scheduled-task expiry/restore/jitter, subagent effort on
another model, Ask-each-time subagents, -p background time limit,
mods in auto/bypass/dontAsk) are mirrored to vi/ja/uk/ko/fa where the
text exists. P3 additions are English only. Six P2 docs-vs-changelog
conflicts are left for maintainer decision.
Validation: pre-commit run --all-files passes with
SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid
because the `language: node` mermaid hooks fail to install locally
(pre-commit 4.7.0: "must have package.json or additional_dependencies").
scripts/check_mermaid.py --strict was run directly instead: Pele
rendered all 416 Mermaid blocks.
Type: docs
## Summary
Syncs the tutorial, its vi/ja/zh/uk translations, and the two learning
skills to **Claude Code 2.1.316** (previous sync: v2.1.310, #209). The
audit covered the 2.1.311–2.1.316 changelog (Oct 26–31, 2026), the 151
official docs pages that changed since Oct 26, and news since then.
45 files changed. By priority: P0 3 · P1 41 · P2 5 · P3 33 (3 more
deferred) · P4 8.
## Notable fixes
- **Broken example (P0):** the `10-cli` CI review example used
`--max-turns 1`. The final reply now counts as a turn, so the run ends
with `error_max_turns` before writing a review. It now uses `--max-turns
5` (EN + vi/ja/uk).
- **Learning skills (P0):** the lesson-quiz L09 Q5 explanation said
`ultrathink` never changes the effort level, and a self-assessment
checkpoints line said outside edits are never touched by a restore. Both
are corrected. No graded answer changed, and all 100 `Review` pointers
still resolve. Versions bumped: lesson-quiz 1.6.4, self-assessment
2.5.7.
- **Ultra plan:** Max 20x was renamed Ultra on Oct 30, 2026, so Ultra is
added to every Pro/Max plan list.
- **Plugins:** examples move off the deprecated `claude-code-plugins`
demo marketplace to `claude-plugins-official`.
- **Models and effort:**
- Opus 4.8 fast mode is marked deprecated (removal Nov 30, 2026).
- `ultrathink` now raises its turn to `xhigh`.
- Effort precedence, `auto`/`unset`, and skill `effort` scope are
updated.
- **Behavior changes:**
- Idle compaction runs after "about an hour".
- Critical-path `rm` adds
`CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS`, and the
`DISABLE_DANGEROUS_RM_TIMEOUT` description is fixed.
- The `/permissions` tab is now "Recently blocked".
- Up to 24 prompt/agent hooks run at once.
- Blocked agent-team tasks can still be assigned.
- A checkpoint restore can overwrite outside edits to files the session
edited.
- An npm 12 postinstall caveat is added.
- The Desktop worktree claim is fixed.
- **Changelog-vs-docs conflicts (P2):** `safety_event` is no longer
sent, subagent `autoCompactWindow`, subagent token cost, CLAUDE.md
"architecture" advice, and the `bypassPermissions` wording.
Every changed file has a refreshed footer (Nov 1, 2026 / 2.1.316, with
localized labels in translations).
## Not in this PR
- Deferred P3s: mods render-failure note, a duplicate env-var group in
`09`, `permissions.blockWritesOutsideWorkingDirectories` (not in the
official docs yet).
- `**Compatible Models**` footers still list no 5.5 models. That is a
repo-wide convention left for a separate decision.
## Validation
`pre-commit run --all-files` cannot start on the authoring machine
because `python3.11` is not installed. I ran it with a config copy
pinned to `python3.12`, plus `scripts/check_mermaid.py --strict`:
- Every hook passed.
- 254 external URLs are reachable.
- Pele rendered all 286 Mermaid blocks.
The baseline before the edits was also all green.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Type: docs
## Summary
Syncs the tutorials, translations, and learning skills from Claude Code
v2.1.302 to **v2.1.310**: the 2.1.303–2.1.310 changelog plus the
official docs pages reworded since Oct 18. 64 files: English 17, ja 13,
uk 12, vi 10, zh 7, learning skills 5.
**Breaking (P0)**
- `claude ultrareview` CI example: needs workspace trust since v2.1.309,
so the copy-paste step always failed. It now passes `--trust-workspace`,
and the exit-code note is corrected (1 = failed or untrusted, not
"findings reported").
- Quiz Lesson 08 Q4 graded an answer that said all Bash file changes
escape checkpoints. Rewritten per the current rule: files Claude already
edited are restored even after later Bash changes; `sed -i` counts as
Bash since v2.1.309. `Correct` stays B.
**Outdated (P1)**
- Tool search is on behind a custom `ANTHROPIC_BASE_URL` gateway since
v2.1.304 (05-mcp said the reverse; 10-cli said off on Vertex).
- Fork mode is on everywhere since v2.1.302;
`CLAUDE_CODE_FORK_SUBAGENT=0` turns it off. A plan-mode parent keeps
subagents in plan mode; teammate plans are auto-approved.
- `claude -p` / Agent SDK runs with no permission mode start in Manual
mode and deny calls that need approval.
- Routines are now "cloud scheduled tasks (formerly routines)"; `/loop`
tasks are session-scoped.
- Checkpoints: Bash changes to already-edited files are tracked;
subagent edits to those files are restored.
- `axScreenReader` is honored only from user, managed or `--settings`
files since v2.1.305.
- Hooks `"defer"` ends the turn and works only with `-p`.
- Managed CLAUDE.md can't be skipped with `claudeMdExcludes`, but a
session with CLAUDE.md loading off skips it; on-demand CLAUDE.md/rules
files are truncated past a per-file limit since v2.1.309.
- `CLAUDE_CODE_AUTO_MODE_MODEL=claude-sonnet-5-5` was silently ignored;
now `claude-sonnet-4-6`. Desktop PR toggles renamed **Auto-fix** /
**Merge when ready**.
**Conflicts resolved (P2)**
- `claude -p "Run all tests…"` examples append `--permission-mode auto`
(QUICK_REFERENCE gets a comment pointing to `--allowedTools` instead).
- DBHub: README template list and the 09 `mcp-postgres` example point
`DATABASE_URL` at a SELECT-only user; JSON templates unchanged.
- "Always in the background" in desktop/VS Code → "while fork mode is on
(the default)"; critical-path `rm` isn't sent to the classifier since
v2.1.281.
**New (P3)**, each a row or a sentence beside existing siblings, English
only:
- New `###` sections: "Let Claude Wait for a Subagent" (04), "MCP Tasks
(public beta, v2.1.304+)" (05), "Plugin Shows Version `unknown`" (07).
- Commands: `/schedule`, `/auto-mode-setup`, `/artifacts` keys,
`/claude-api api-version` / `managed-agents-secure`, `/design consent` /
`revoke`, `/usage` fix shortcut, `/doctor` Usage check.
- v2.1.304–2.1.310 env vars, settings, limits, OTel events, monitor
availability, mods API notes, MCP timeouts and retry hints.
**Learning skills**
- lesson-quiz 1.6.3: L08 Q4 (above); explanations for L02 Q1/Q9, L04
Q6/Q10, L05 Q3, L09 Q6/Q9; README fences get `text`. No `Correct` letter
or Review pointer changed.
- self-assessment 2.5.6: Checkpoints, CLI, MCP and Memory
recommendations, edited identically in `SKILL.md` Step 4 and
`topic-recommendations.md`. No scoring change.
**Please review**
- New ja, zh and uk wording would benefit from a native-speaker read.
**Not in this PR**
- Example plugins whose hook/MCP files never load; `/advisor` on Claude
Platform on AWS (docs still contradict the changelog); 21 undocumented
commands and the translation backfill.
- Translated QUICK_REFERENCE files still use `claude --enable-auto-mode
-p`.
- The "20 bundled skills" count in CATALOG.md and 01-slash-commands is
now two short of its table.
## Test plan
- [x] `pre-commit run --all-files`: all hooks pass, same as the pre-edit
baseline. Run with a config copy pinned to `python3.12` because
`.pre-commit-config.yaml` pins `python3.11`, which this machine lacks;
Mermaid hooks skipped there.
- [x] `python scripts/check_mermaid.py --strict`: Pele rendered 286
blocks.
- [x] link-check: 247 external URLs reachable.
- [x] Every changed file carries the 2.1.310 footer (localized labels
and dates in translations); both `SKILL.md` versions bumped.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Review follow-ups
Two `issue-pr-review --review-only` rounds found nothing blocking. The
nits they raised were fixed on this branch:
- 8b5a5e3: `--permission-mode auto` on the headless "Run all tests"
examples (en/ja/uk/vi 09); ultrareview exit code 130 (10-cli); fork-mode
wording in 04-subagents; MCP-task requirements for non-interactive runs
(05-mcp).
- d0daa29: split the semicolon chains in 04-subagents and 05-mcp; the
QUICK_REFERENCE CI comment now points to `--permission-mode auto` (all 5
languages); zh 09 headless example.
Local pre-commit tooling gaps found during review: #210 and #211.
* docs: sync to Claude Code v2.1.302
Release changes (v2.1.301-2.1.302): fork subagents on by default in claude -p, the Agent SDK, desktop and VS Code (CLAUDE_CODE_FORK_SUBAGENT=0 turns them off); claude -p / SDK sessions with no permission mode start in default on third-party providers, with telemetry off or on a fresh install; at most 12 prompt/agent hooks of one event run at once; new CLAUDE_CODE_AUTO_MODE_MODEL and CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS; /config Idle compaction row; vim % motion; tool_decision OTel attributes; fable/best fallback; 64-argument limit; hook ask prompts name their plugin or skill; PowerShell finds plugin bin/; mod Input rows. Also: standalone Claude Design closes Dec 14, 2026; Sonnet 4.5 retires Nov 30, 2026; managed Code Review GA; npm install marked deprecated per the official README.
Verified drift fixes (each checked against code.claude.com): hook handler JSON shapes, prompt-hook response schema, exec/HTTP/mcp_tool hook fields; GitHub MCP URL (api.githubcopilot.com) and token; nonexistent @modelcontextprotocol/server-database; plugin layout, marketplace, userConfig, strictKnownMarketplaces, blockedMarketplaces and enabledPlugins shapes; nonexistent deniedPlugins, autoCheckpoint, planning.*/extendedThinking.* keys; invented 09 settings schema; claude -p JSON output jq paths; subagent forks via subagent_type "fork" not context: fork; --agents priority; MCP default scope; command descriptions; rewind menu has six options; broken nested code fence in 07-plugins. Shipped hook scripts: pre-commit.sh reads stdin and only gates git commit; validate-prompt.sh uses hookSpecificOutput; session-end.sh no longer reads /dev/tty. Fixes mirrored into vi/ja/zh/uk where the same claim existed.
Learning skills: quiz Lesson 05 Q2 option B (GitHub MCP URL; Correct letter unchanged), explanations for L02 Q2, L04 Q6/Q9, L09 Q1, L07 Q2 wording; self-assessment wording in paired files; lesson-quiz 1.6.2, self-assessment 2.5.5.
* fix(hooks): parse pre-commit.sh hook input with sed instead of jq
* fix(mcp): restore DATABASE_URL expansion and align MCP env var setup
* fix(mcp): align QUICK_REFERENCE GitHub token and Example 2 DATABASE_URL setup
* docs: sync to Claude Code v2.1.300
Release changes (v2.1.299-2.1.300): remove --sandbox/--no-sandbox (gone from claude remote-control; never main-CLI flags); updatedInput validation; UserPromptSubmit runs before skill/command expansion; MCP permission rules and agent tools: match only the named server; MCP description limits (4,096 / 16,384, first-party exemption); transcripts record system prompts; idle compaction, idleCompaction setting and new env vars; plugin eval --disallow-tools; mods Text props (bold deprecated); agent view /effort and /fast.
Verified drift fixes: nonexistent /task, /session, /todo, /worktree commands and claude web; agent-teams env var; invalid plugin monitors and CLAUDE_PLUGIN_DATA hook examples; hook-events table, skill hook scope and once; skillOverrides; claude agents opens agent view; notify-team.sh git push filter; validate-prompt.sh prompt field; native installer recommended; prompt-cache TTL defaults; fast-mode models; /undo is a /rewind alias; CATALOG field rows and bundled skills; remove ignored name: from plugin command templates. Fixes mirrored into vi/ja/zh/uk where the same claim existed.
Learning skills: rescope quiz Lesson 03 Q8 to the Agent Skills spec, fix self-assessment Round 2 Option 4 and Round 4 Option 2, refresh explanations and a Review pointer; lesson-quiz 1.6.1, self-assessment 2.5.4.
* fix(hooks): match git push anywhere in notify-team.sh command
Haiku 5.5 is now the haiku alias on the Anthropic API (v2.1.293): add it to the closed model lists for thinking, effort, auto-mode eligibility, and the lean system prompt, plus table rows.
Also: claude project purge renamed to claude purge; background-command time limit is unattended-only; rules and nested CLAUDE.md load on Write/Edit and single-file Bash reads; claude plugin install --marketplace on the CLI; WebSearch budget refill; 1,536-character skill-listing cap; MCP description limits; new Mods section, hooks onFailure, subagent autoCompactWindow, new env vars.
Learning skills: fix quiz Lesson 02 Q10 answer options (--add-dir alone does not load CLAUDE.md), reword Lesson 10 Q8 to one correct answer, refresh explanations; lesson-quiz 1.6.0, self-assessment 2.5.3.
* docs: sync to Claude Code v2.1.283
Audit the tutorial against Claude Code 2.1.280-2.1.283 (baseline 2.1.278;
2.1.279 was never published) and fix claims that are now false.
- P0: /agents shown as a working command (5 languages); 10-cli and concepts
guide model tables naming Sonnet 5 / Opus 5 as defaults (Opus 5.5 since
v2.1.280); two quiz answer keys (L10 Q5, L01 Q9)
- P1: Opus 5.5 effort/fast/model defaults; send now backgrounds tools;
cmd is not an alias of meta; AGENTS.md provider caveat lifted in 2.1.281;
Ctrl+X Ctrl+K replaces Ctrl+F; MCP tool search on by default; quoted
${CLAUDE_PLUGIN_ROOT}; --system-prompt-file works interactively;
CLAUDE_CODE_AUTO_MODE_SERVER scope; quiz and self-assessment fixes
- P2/P3 (approved): auto-mode start on third-party/telemetry-off, agent hooks
on PermissionRequest, rm 2-minute auto-deny, Opus 5.5 always thinks,
new settings and plugin validate checks
lesson-quiz 1.3.0 -> 1.4.0, self-assessment 2.5.0 -> 2.5.1.
Footers refreshed to 2.1.283 on every touched file.
* fix(subagents): replace remaining /agents instructions in translated lessons
* docs: sync to Claude Code v2.1.257
Audit against Claude Code v2.1.257 (repo baseline was v2.1.245, 12 releases
behind). Facts verified against the official docs and cross-checked against
the locally installed 2.1.257 binary.
Critical (P0):
- lesson-quiz L06 Q9 asked how many hook events exist, offering 16/25/31/40.
With the real answer now 33, no option was correct. Option C 31 -> 33;
answer letter unchanged.
- 03-skills taught SKILL.md `name`/`description` as required. Official docs
now state all frontmatter fields are optional and `name` defaults to the
directory name. Corrected in all five languages.
Hook events 31 -> 33 (PreModelSwitch/PostModelSwitch, v2.1.251) across 30
occurrences in 22 files, including three that read 25. Delta proved by
set-diff against the official event table: no phantom events. Both events
added to the 06-hooks tables with matcher, blocking behavior and 30s timeout,
plus detailed per-event sections.
CLI corrections verified against the binary:
- `claude plugin tag` takes a path, not a version
- `claude plugin init` / `validate` require their arguments
- `plugin init` scaffolds at ~/.claude/skills/<name>/, not project-local
- `--channels` entries must be tagged plugin:<name>@<marketplace>
- `--remote` is a deprecated alias for `--cloud`
- no `claude remote-control` subcommand exists, only the --remote-control flag
Also: CATALOG summary-table totals recomputed in all five languages (column 4
is a derived total, so the count change invalidated it); stale Opus 4.6/4.7
rosters aligned to canonical; self-assessment Advanced Features rescored 0-3
to stop a real gap being graded as mastery; 9 dangling quiz Review pointers
repaired; new features documented (--restricted, Fable 5.1,
experimental.cacheTtl, CLAUDE_CODE_SUBAGENT_MODEL_FORCE).
Deliberately out of scope: pre-existing translation staleness whose fix is
translation authorship rather than correction (ja/uk April-2026 root-doc
bodies, zh stubs, vi/README stub, translated CATALOG "New Features").
Claude-Session: https://claude.ai/code/session_01128xfEd8W7c2cMRw6N7uiF
* fix(hooks): complete the 31 → 33 hook-event propagation across all languages
The v2.1.257 sync bumped the hook-event count in the lesson and catalog
summaries but left 14 files still asserting 31, four of which the same
commit restamped 2.1.257. It also bumped the prose count in
claude_concepts_guide.md without adding the two rows, making that file
contradict itself where it had been internally consistent before.
Adds PreModelSwitch and PostModelSwitch (v2.1.251) everywhere an
exhaustive enumeration exists, and corrects the count wherever a list is
deliberately partial:
- README.md / INDEX.md in en, ja, zh, uk and vi/INDEX.md — count 31 → 33
and both events added to the lifecycle group
- resources.md in all five languages — count only; these lists end in
"and more" and are partial by design
- claude_concepts_guide.md — the two missing table rows
Also brings every hook-event table up to the 33 its own summary row
claims. The English CATALOG.md listed 29; the translated catalogs listed
25 and the ja/uk concept guides 27 and 28. Completing them required
translating six events that had never reached the mirrors: Setup,
UserPromptExpansion, PermissionDenied, PostToolBatch, MessageDisplay and
DirectoryAdded.
Summary-table arithmetic is untouched — those columns count example
scripts, not events.
Verified: no stale count survives outside CHANGELOG history, every
exhaustive enumeration lists exactly 33, and pre-commit passes 23/23.
Claude-Session: https://claude.ai/code/session_01UXmqJZNk1BR4uerJA85NiW
Bumps tutorial coverage from the v2.1.212 baseline (2026-07-18 sync) to
v2.1.217 (v2.1.213 was skipped upstream), plus a repo-internal accuracy
audit.
Fixed:
- Nested-subagent-spawning claim reversed (v2.1.217): 04-subagents/README.md
and CATALOG.md stated nesting up to 5 levels as current behavior; as of
v2.1.217 it's off by default, opt in via CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH
- Stale --enable-auto-mode flag (removed in v2.1.111) replaced with
--permission-mode auto across 10-cli/README.md and QUICK_REFERENCE.md
- Import-depth contradiction in 02-memory/README.md: two remaining "5 levels"
instances corrected to "4 hops", matching the rest of the file
- Sonnet 5 added to claude_concepts_guide.md's models/reasoning-effort table
- config-examples.json's fabricated settings schema (fake "unrestricted"/
"confirm" modes, undocumented keys) rewritten to real settings.json keys
- brand-voice skill (name/user-invocable) aligned to its README worked example
- CLAUDE.md length guidance unified across 03-skills/claude-md/SKILL.md and
02-memory/README.md
Added:
- New subagent caps (v2.1.217): CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS
- --max-budget-usd now also halts running background subagents (v2.1.217)
- Hook if: glob scope narrowed to <cwd>/dir (v2.1.214), documented in
06-hooks/README.md along with SessionStart's new "fork" source
- sandbox.filesystem.disabled setting (v2.1.216)
- /rewind symlink/hard-link protection (v2.1.216)
- Auto-memory modified timestamp (v2.1.214) and non-blocking /memory editor
(v2.1.216)
- CLI/settings batch (v2.1.214-217): emojiCompletionEnabled,
FORCE_HYPERLINK=0, CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH, --settings 2 MiB
cap, permission hardening notes, /context and /compact notes
- /verify and /code-review explicit-invocation-only note (v2.1.215)
Mirrored applicable P0/P1 fixes into vi/ja/zh/uk translations where the
same claim existed.
Modules 06-hooks, 07-plugins, 09-advanced-features, 10-cli had
truncated translations (18-58% content loss). Retranslated from
scratch using original English sources.
All files now match expected ~40% size increase for Cyrillic.
Ref: luongnv89/claude-howto#63