7 Commits
Author SHA1 Message Date
Luong NGUYEN 5609e68a6c docs: sync to Claude Code v2.1.325 (#277)
Type: docs

Syncs the tutorial, its translations and the root README from Claude Code v2.1.323 to v2.1.325 (P1 3, P3 10, P4 1; 37 files: 7 English, 30 translations). npm published 2.1.324 and 2.1.325 on 2026-11-13. The upstream CHANGELOG has no 2.1.324 section; everything is listed under 2.1.325.

## Changes by priority

### P1
- **Sandboxed commands no longer skip prompts by default** (09-advanced-features).
  - `sandbox.autoAllowBashIfSandboxed` now defaults to `false`, so sandboxed Bash commands go through your allow rules and permission mode.
  - The new note shows how to get auto-allow back and what still prompts with `true`, including commands such as `FOO=bar npm test`, `make CC=clang` or `eval "ls"`, and that plan mode doesn't widen approvals.
  - The settings table gains the key, and the `/sandbox` line names the Mode tab.
  - Dated "since v2.1.324 per the settings reference; the changelog lists it in v2.1.325".
  - `config-examples.json` is unchanged: its `autonomous` preset relies on auto mode's classifier and promises no prompt-free sandboxing.
  - Sources: https://code.claude.com/docs/en/settings-reference#sandbox-autoallowbashifsandboxed, https://code.claude.com/docs/en/sandboxing#auto-allow-mode
- **`/stickers`** is now "Check Claude Code sticker availability" (01-slash-commands, CATALOG). This was a standing docs-vs-changelog item; the docs now agree with the changelog. https://code.claude.com/docs/en/commands
- **Prompt-suggestion keys** (09): `Tab` or `Right arrow` places the suggestion, then `Enter` submits. The guide used to say `Enter` accepts and submits at once. https://code.claude.com/docs/en/interactive-mode#prompt-suggestions

### P3
All in-range. Each changelog-only item says that the docs don't list it yet.

**09-advanced-features**
- `sandbox.failIfUnavailable` doesn't stop cloud sessions from starting.
- The sandbox refuses `.claude` writes in added directories too.
- VS Code prompt suggestions, and `promptSuggestionEnabled`, which `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` takes precedence over (https://code.claude.com/docs/en/vs-code#use-or-turn-off-suggested-prompts, https://code.claude.com/docs/en/settings-reference#promptsuggestionenabled).
- Scheduled tasks and `/loop` ask before running a skill that declares `allowed-tools` or hooks (`Skill(name)` in `permissions.allow`), plus the "Always allow" change.
- `claude remote-control` exit status 4 and 69.
- `/resume` and `/teleport` disconnect when the session has a share link (https://code.claude.com/docs/en/remote-control#what-connected-devices-see).
- `WorktreeCreate` refuses a path through a symlink, and since v2.1.325 `EnterWorktree` does too (https://code.claude.com/docs/en/hooks).
- Worktree-isolation refusals: `git bisect run`, `git maintenance register|start`, `scalar`.
- The existing v2.1.157 "left unlocked" sentence now adds that non-interactive `-p` runs keep the lock on their worktrees until a later session's stale-lock sweep (https://code.claude.com/docs/en/worktrees#clean-up-worktrees).

**10-cli**
- A "Permission hardening (v2.1.325)" note:
  - read-only git commands ask first outside the project or a trusted repo (use `--add-dir`);
  - relative deny and ask rules keep covering the project after `cd`, and now apply in added directories;
  - the Bash allow-rule and compound-command fixes;
  - the `plansDirectory` fallback.
- A `CLAUDE_CODE_MAX_CONTEXT_TOKENS` row (https://code.claude.com/docs/en/model-config#which-ids-claude_code_max_context_tokens-applies-to).

**07-plugins**
- Marketplace-source `ref` accepts a full commit SHA (https://code.claude.com/docs/en/plugins/marketplace-reference#marketplace-sources).
- Plugin loading skips, and `claude plugin validate` reports, unsafe paths and links.
- `prependPlugins`/`appendPlugins` plugins count as the organization's (v2.1.324 per the mods admin docs), and `pluginDigests` is deprecated (changelog-only).
- Nested `.claude/skills` in `--plugin-dir` plugins no longer load from a session started above them.
- `.mcpb`/`.dxt` bundles unpack into `mcpb/` under the plugins root (https://code.claude.com/docs/en/plugins/loading#find-plugins-on-disk).

**04-subagents**
- tmux and iTerm2 teammates start in the session's folder.
- An unrecognized `teammateMode` value is now listed as skipped.

### P4
- Root README: the badge, line 105 and line 204 now say v2.1.325, and the footer is refreshed.

## Translation coverage

Locales are vi, zh, uk, ja, ko and fa. For each fix I grepped the key token across `*/<file>` in every locale.

| Fix | Done | Not done, and why |
|---|---|---|
| Sandbox default, prompt keys, cloud `failIfUnavailable`, added-dir writes, VS Code suggestions, scheduled-task skills, Remote Control (09) | vi, uk, ja, ko, fa | zh: its 09 sandbox and prompt-suggestion sections are condensed, with no table and no prompt claim |
| Worktree row (09) | vi, uk, ja, ko, fa | zh: condensed |
| Worktree-isolation note (09) | vi, uk, ja, ko, fa | zh: condensed |
| Auto-allow note: other regular-flow commands and the plan-mode limit (09) | vi, uk, ja, ko, fa | zh: no auto-allow note |
| `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` precedence sentence, worded as env-vars gives it (09) | vi, uk, ja, ko, fa | zh: no `promptSuggestionEnabled` paragraph |
| `-p` worktree-lock qualifier on the v2.1.157 sentence (09) | vi, ko, fa | uk, ja, zh: no v2.1.157 "left unlocked" sentence |
| `/stickers` | 01: vi, uk, ja, ko, fa; CATALOG: all six | zh 01 has no row |
| 10-cli hardening note, `CLAUDE_CODE_MAX_CONTEXT_TOKENS` row | vi, ko, fa | zh: no hardening notes and no matching env rows; uk, ja: no `CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT` anchor row; 10 not synced to 2.1.325 in uk/ja |
| 07: marketplace `ref` paragraph, `pluginDigests` note with v2.1.324 dating, mods admin Sources entry | all six | — |
| 07: validate sentence, loading-changes note | vi, ko, fa | zh, uk, ja: no validate paragraph, and no `--plugin-url` local-plugin block |
| 04 teammate note | vi, uk, ja, ko, fa | zh: no split-pane text |

**Footers**
- Bumped to 2.1.325 only where the page was at the previous English level:
  - 09: en, vi, uk, ja, ko, fa
  - 07, 10: en, vi, ko, fa
  - 04: en, vi, uk, ja, ko, fa
  - 01, CATALOG: en, ko, fa
- Pages that lag English stay as they were, even where this PR edits them:
  - 01 vi/uk/ja at 2.1.316
  - CATALOG vi/zh/uk at 2.1.302, ja at 2.1.316
  - 07 zh/uk/ja at 2.1.302
- Locale READMEs are untouched.

## Learner skills

- I audited both skills against 2.1.325: sandbox, permissions, `/loop` and scheduled tasks, plugins, worktrees, Remote Control and prompt suggestions.
- No question, option, `Correct` letter or `- **Review**:` pointer changed.
- No file changed, and no version was bumped: lesson-quiz stays at 1.6.6 and self-assessment at 2.5.8.

## Needs maintainer decision

**New docs-vs-changelog conflicts:** none needing a guide edit.

**Version dating.** The docs date six 2.1.325 changelog items to v2.1.324. The guide names both sources, per the brief:
- the `sandbox.autoAllowBashIfSandboxed` default: https://code.claude.com/docs/en/settings-reference#sandbox-autoallowbashifsandboxed
- `CLAUDE_CODE_MAX_CONTEXT_TOKENS` for `claude-` IDs: https://code.claude.com/docs/en/model-config#which-ids-claude_code_max_context_tokens-applies-to
- the Remote Control share-link check: https://code.claude.com/docs/en/remote-control#what-connected-devices-see
- the marketplace `ref` SHA and the `mcpb/` folder: https://code.claude.com/docs/en/plugins/marketplace-reference#marketplace-sources, https://code.claude.com/docs/en/plugins/loading#find-plugins-on-disk
- plugins of a remote marketplace counting as the organization's: https://code.claude.com/docs/en/plugins/mods/admin#install-your-organizations-mods

**Read-only git commands.** Not a conflict: permissions.md's 'in every mode' is about permission modes and already has location exceptions (`blockReadsOutsideWorkingDirectories`; `cd` + `git` prompts). The changelog adds one more location exception; the guide attributes it to the changelog.

**Ten standing items, rechecked 2026-11-14 against freshly fetched pages.**

The docs now agree with the changelog on four:
- `/stickers`: resolved to the docs in this PR.
- `CLAUDE_CODE_PLUGIN_DIR_WATCH`: env-vars now says skills-directory mods reload in non-interactive sessions and `0` turns reloading off. The guide has no sentence on it, so nothing changed.
- Mods' own tool calls: the mods admin page now says `$.mcp.call` runs "with no permission prompt". The guide has no sentence on it, so nothing changed.
- `CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS`: env-vars now allows 32000 to 300000, with values above 64000 needing v2.1.323. The guide has no row, so nothing changed.

Six still disagree. Repo / docs / changelog for each:
1. **Self-paced `/loop` ending.**
   - Repo: no sentence.
   - Docs: a fallback wakeup after about 20 minutes.
   - Changelog 2.1.319: the loop ends.
   - https://code.claude.com/docs/en/scheduled-tasks#stop-a-loop
2. **Auto mode with telemetry or flags off.**
   - Repo: no sentence.
   - Docs: "falls back to its own classifier requests".
   - Changelog 2.1.319: no fallback.
   - https://code.claude.com/docs/en/permission-modes#server-side-classifier-review
3. **MCP tasks.**
   - Repo, 05-mcp: they need feature-flag fetching.
   - Docs: the same.
   - Changelog 2.1.319: they work without flag fetching.
   - https://code.claude.com/docs/en/mcp#mcp-tasks-that-run-on-the-server
4. **`deniedMcpServers` `serverUrl` vs connectors.**
   - Repo: no sentence.
   - Docs: a connector's own URL doesn't match.
   - Changelog 2.1.318: it blocks those connectors.
   - https://code.claude.com/docs/en/mcp#how-connectors-reach-claude-code
5. **Context window for an unrecognized model ID.**
   - Repo: no sentence. The new `CLAUDE_CODE_MAX_CONTEXT_TOKENS` row states no assumed window.
   - Docs: assumes 200K.
   - Changelog 2.1.323: assumes 1M.
   - https://code.claude.com/docs/en/model-config#correct-the-window-for-a-gateway-or-custom-model-id
6. **`MCP_SDK_GENERATION=v1`.**
   - Repo: no sentence.
   - Docs: picks the v1 runtime.
   - Changelog 2.1.323: the v1 client is removed, and `v1` runs v2 in compatibility mode.
   - https://code.claude.com/docs/en/env-vars

## Follow-ups

- **Changelog items not added**, because the guide doesn't teach the surface:
  - `claude -p` waiting for account data;
  - `/login` privacy permission;
  - `/cost` and `--max-budget-usd` counting mods' model calls;
  - plugin downloads using a CONNECT tunnel with `ALL_PROXY` only;
  - `user_prompt` `delivery.mode: "mid_turn"`;
  - MCP tool descriptions of 16,384 characters in cloud sessions;
  - subagents re-asked at the output limit;
  - Esc on an MCP task question.
- **Locales behind English.** zh, uk and ja 07/09/10 still need a catch-up sync beyond this release.
- uk/ja 10-cli env tables could take the `CLAUDE_CODE_MAX_CONTEXT_TOKENS` row (catch-up sync).
- **Possible merge conflicts with open PRs:**
  - #173 edits the root README near line 105.
  - #189 edits the README footer Sources.
  - #225 edits `CATALOG.md` (different hunks).

## Validation

- `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid pre-commit run --all-files` exited 0, before and after the edits. Link-check reached 247 URLs on a clean tree.
- `python scripts/check_mermaid.py --strict`: Pele 1.6.0 rendered 416 blocks.
- `python scripts/check_cross_references.py`: 674 files valid on a clean tree.
- The EPUB build was not run.

## Sources

- https://code.claude.com/docs/en/changelog#2-1-325
- https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md
- https://code.claude.com/docs/en/settings-reference#sandbox-autoallowbashifsandboxed
- https://code.claude.com/docs/en/sandboxing#auto-allow-mode
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/interactive-mode#prompt-suggestions
- https://code.claude.com/docs/en/vs-code#use-or-turn-off-suggested-prompts
- https://code.claude.com/docs/en/settings-reference#promptsuggestionenabled
- https://code.claude.com/docs/en/remote-control#what-connected-devices-see
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/model-config#which-ids-claude_code_max_context_tokens-applies-to
- https://code.claude.com/docs/en/plugins/marketplace-reference#marketplace-sources
- https://code.claude.com/docs/en/plugins/loading#find-plugins-on-disk
- https://code.claude.com/docs/en/permissions#read-only-commands
- https://code.claude.com/docs/en/plugins/mods/admin#install-your-organizations-mods
- https://code.claude.com/docs/en/worktrees#clean-up-worktrees
2026-11-14 15:16:12 +01:00
Luong NGUYEN 7af3b2f3e2 docs: sync to Claude Code v2.1.323 (#273)
Type: docs

Syncs the tutorial, its translations, the root README and the lesson-quiz skill from Claude Code v2.1.322 to v2.1.323 (P0 1, P1 5, P3 10, P4 3; 27 files).

- P0: `subagentStatusLine` removed (07-plugins, all locales).
- P1: plugin `agent` key deprecated; auto mode unavailable starts the session in Manual whatever selected `auto`; ja/uk 09 auto-mode requirements match English; ja 10-cli no longer teaches the removed `--enable-auto-mode`; lesson-quiz L07 Q7 explanation (Correct stays B, version 1.6.6).
- P3/P4: plugin manifest `engines`, `claude plugin validate` additions, permission-hardening notes, new env rows, hooks heartbeat, v2.1.111 changes no longer labelled v2.1.112 in 09/10, README stamps to v2.1.323.
- P2 docs-vs-changelog conflicts (10) are left following the docs, per maintainer decision.

Follow-ups: #274, #275.

Sources: https://code.claude.com/docs/en/changelog#2-1-323, https://code.claude.com/docs/en/changelog#2-1-111, https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in, https://code.claude.com/docs/en/permissions#wildcard-patterns
2026-11-13 14:56:38 +01:00
Luong NGUYEN 64a30cd671 fix(plugins): make the example plugins load their commands, hooks and MCP servers (#265)
Make the three example plugins in `07-plugins/` load the way their READMEs describe: commands are namespaced, hooks are registered on documented events, and the GitHub MCP server is declared at the documented location with a pinned image tag. The devops plugin no longer ships an MCP server.

Closes #260
2026-11-13 13:23:42 +01:00
Luong NGUYEN ac9ee17169 docs: make version stamps and Compatible Models footers true (#259)
Type: docs

Makes the version stamps, Compatible Models footers and locale README badges say only what has been checked. Every claim below was checked against `https://code.claude.com/docs/en/<page>.md` or the raw changelog (2.1.303–2.1.322), not written from memory.

## Part A: English footers at 2.1.310 / 2.1.302

Each file's behavioural claims were checked against every changelog entry after its stamp, up to 2.1.322, and against the current docs. A stamp moves only when every claim checks out.

| File | Claims checked | Fixes | Sources | New stamp |
|---|---|---|---|---|
| `INDEX.md` | ~75: AGENTS.md rule (v2.1.277); skill/agent/MCP install paths; `/mcp__github__list_prs`; 5 hook types, 33 events, task-tool model note; `--plugin-dir`; checkpoint menu (6 options); `/workflows`, ultracode (v2.1.284), size guideline; 6 permission modes; `/loop` and the cron tools; Chrome; Remote Control; `SendMessage`/`ListAgents`/`notify_when_idle`; CLI flags | 1. Workflow size: medium aims for fewer than 10 agents only since v2.1.271 (15 before), and the default is small on a Pro plan. 2. dontAsk: file reads inside the working directories also run, as do *most* calls a `permissions.allow` rule or a `PreToolUse` hook approves (neither can approve critical-path `rm`/`rmdir` or network-path reads), and an installed mod can approve some calls. No version is given: the changelog doesn't say when a mod's `tool.check` allow arrived (it is already referenced in 2.1.290, 2.1.292 and 2.1.299). 3. `SendMessage` also reaches sessions on other machines and in the cloud, from a session connected to Remote Control with a claude.ai sign-in; a cloud session can't answer with `SendMessage`. The L383 use-case column now says the same. 4. The `--model` list adds the Fable models. 5. Plan mode: "Read-only analysis" → researches and proposes, runs shell commands to explore, edits blocked until the plan is approved. | [workflows#set-a-size-guideline](https://code.claude.com/docs/en/workflows#set-a-size-guideline) ("The default is `medium`, or `small` when you're signed in on a Pro plan with Claude Code v2.1.271 or later"); CL 2.1.219 ("aim for fewer than 15 agents"), CL 2.1.271 ("lowered the medium size guideline from 15 to 10 agents"); [permission-modes](https://code.claude.com/docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode) ("a mod you installed can still approve some of those calls"; "Claude still runs … file reads inside your working directories and read-only Bash commands"; "It also denies the built-in `AskUserQuestion` tool even if your allow rules match it"; "An allow rule or `PreToolUse` hook can't approve these: Recognized `rm` and `rmdir` critical-path removals … Reads from a network path"); CL 2.1.292 ("Fixed a plugin's `tool.check` hook answering allow running a tool…"), CL 2.1.299 ("…that a `PreToolUse` hook or a mod's `tool.check` hook allowed"); [permission-modes#analyze-before-you-edit-with-plan-mode](https://code.claude.com/docs/en/permission-modes#analyze-before-you-edit-with-plan-mode) ("Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source. Except in interactive terminal sessions with bypass permissions available, edits stay blocked until you approve the plan."); [cross-session-messaging](https://code.claude.com/docs/en/cross-session-messaging) ("reach your sessions on other machines or in the cloud"; "from a session that is connected to Remote Control, which needs a claude.ai sign-in"; "A cloud session … can't use `SendMessage` to answer a message from another machine"); model-config. The "device card" line checked out against [whats-new/2026-w34](https://code.claude.com/docs/en/whats-new/2026-w34). | **2.1.322** |
| `LEARNING-ROADMAP.md` | 33 hook events / 5 types; 6 built-in subagents (Explore, Plan, General-purpose, claude, statusline-setup, claude-code-guide); 60+ commands (commands page has 121 rows); `/design` (v2.1.265); `/plan`, `/rewind`, `/loop 5m`, `/schedule`; 6 permission modes (Manual since v2.1.200); Alt+T; skill `effort`/`shell`; plugin `workflows`/`channels`/`dependencies`; agent-teams env var; `claude mcp add --transport http`; `-r`, `--max-turns`, `--output-format json`; all 17 source links resolve | 1. Remote Control: "generally available" → "out of research preview", the docs' own wording. 2. Extended thinking (L368, Exercise 3, checklist): Opus 5.5, Sonnet 5.5, Haiku 5.5 and the Fable models always use extended thinking, so the exercise uses `/effort` and scopes Alt+T / Option+T to models that allow turning thinking off. 3. Exercise 4: checkpoints are automatic and unnamed, so step 1 no longer creates a named "Clean state" checkpoint and step 5 says which one to `/rewind` to. | [whats-new/2026-w34](https://code.claude.com/docs/en/whats-new/2026-w34): "Any machine running `claude remote-control` now shows up as a device card at the top of the Code tab in the Claude app. Remote Control is also out of research preview."; [interactive-mode](https://code.claude.com/docs/en/interactive-mode): Alt+T "Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking."; [model-config](https://code.claude.com/docs/en/model-config): "the effort level is the primary control for how much thinking happens"; [checkpointing](https://code.claude.com/docs/en/checkpointing): "Every prompt you send that starts a turn creates a new checkpoint" | **2.1.322** |
| `resources.md` | Adaptive reasoning on Opus 4.7+, Sonnet 5+, Haiku 5.5 and the Fable models; permission modes; 33 hook events; `/loop` and cron; 7 memory tiers; Chrome; keybinding chords; Code Review; Monitor (2.1.98); `/goal` and `claude agents` (2.1.139); `--json` (2.1.145); all links | none needed | model-config, hooks, memory, agent-view, changelog | **stays 2.1.310**: L253 gives `/run`, `/verify`, `/run-skill-generator` as "(v2.1.145+)". Neither the changelog, the v2.1.145 release notes, the skills/commands docs nor the what's-new pages for weeks 19–22 give a version. |
| `03-skills/claude-md/SKILL.md` | `name`/`description` frontmatter, `$ARGUMENTS`; CLAUDE.md locations and loading; "under 200 lines"; AGENTS.md gates (v2.1.277, v2.1.281), blocking files, `/config` Project instructions values and default; `@AGENTS.md`/symlink fallback; `.claude/agents/` | L196: the list of cases where AGENTS.md isn't read now includes a disabled built-in plugin, and limits the upgrade case to "in some cases" after upgrading from v2.1.276 or earlier | [memory#when-agents-md-support-is-unavailable](https://code.claude.com/docs/en/memory#when-agents-md-support-is-unavailable): "You used `/plugin` to disable the built-in plugin that reads `AGENTS.md`"; "In some cases, it's your first session after you upgrade from v2.1.276 or earlier" | **stays 2.1.302**: no primary source states L24 ("~150-200 instructions", "system prompt already uses ~50") or L214 (the system reminder says CLAUDE.md "may or may not be relevant") |
| `07-plugins/devops-automation/README.md` | `--plugin-dir` install; commands; agents; hooks; MCP; workflow; source URLs (all 200) | none: the stale claims need a design decision (below) | [plugins/components](https://code.claude.com/docs/en/plugins/components): "Save a command at `commands/<file>.md` and it becomes `/<plugin>:<file>`"; [plugins-reference](https://code.claude.com/docs/en/plugins-reference) standard layout: "Hooks \| `hooks/hooks.json`", "MCP servers \| `.mcp.json`" | **stays 2.1.302**: bare `/deploy`, `/rollback`, `/status` (`/status` is also a built-in), `/incident`; `hooks/*.js` are never registered (no `hooks/hooks.json`); `mcp/kubernetes-config.json` never loads (no `.mcp.json` or `mcpServers`) |
| `07-plugins/documentation/README.md` | same | none | same | **stays 2.1.302**: bare command names; `mcp/github-docs-config.json` never loads, so the `GITHUB_TOKEN` setup has no effect |
| `07-plugins/pr-review/README.md` | same | none | same | **stays 2.1.302**: bare command names; `hooks/pre-review.js` is not registered; `mcp/github-config.json` never loads |

No changelog entry from 2.1.303 to 2.1.322 touched the plugin READMEs or SKILL.md. Their problems predate the stamps, and #209 already listed the hook/MCP files that never load.

**Locale copies:** the same factual fixes went into every locale with the same sentence. That's dontAsk and plan mode in all six INDEX files; workflow size in fa and ko; `SendMessage` and the use-case column in fa and ko; the `--model` list in fa and ko; "generally available" in fa and ko LEARNING-ROADMAP; the extended-thinking exercise/checklist and the checkpoint exercise in all six LEARNING-ROADMAP copies; the AGENTS.md cases in all six SKILL.md copies. Locale stamps were not bumped. INDEX and LEARNING-ROADMAP stay at 2.1.310 in every locale, and the SKILL.md copies keep their footers.

## Part B: Compatible Models footers

The new list is **Claude Fable 5.2, 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, Claude Haiku 4.5**. It is used on root docs and module pages alike, and it's the README FAQ's list, so the footers and the FAQ no longer disagree.

Why one list for both file types: STYLE_GUIDE's footer rule ("List all compatible models") applies to both. A shorter "current models only" list on module pages would break that rule. Justification from [model-config](https://code.claude.com/docs/en/model-config):

- **Current models:** "| Anthropic API | Opus 5.5 | Sonnet 5.5 | Haiku 5.5 |"; "the `fable` alias resolves to Fable 5 in Claude apps gateway sessions and to Fable 5.2 everywhere else"; "Fable 5.2 requires Claude Code v2.1.321 or later".
- **Older models still in use:**
  - "**Fable 5.1 or Fable 5**: select it by model ID."
  - "| Claude Platform on AWS | Opus 5.5 | Sonnet 4.6 | Haiku 4.5 |".
  - "biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8".
  - "**Sonnet 5.5**: cybersecurity-flagged requests re-run on Sonnet 5."
- **None are retired.** The [models overview](https://platform.claude.com/docs/en/about-claude/models/overview) that model-config links marks only Opus 4.1, Opus 4 and Sonnet 4 as "retired". All eleven listed models appear there without that mark.

Scope: 336 lines in 331 files. The changed lines are the `**Compatible Models**` lines (92, some of them in locale files) and every localized label (`호환 모델`, `مدل‌های سازگار`, `Các Mô Hình Tương Thích`, `Сумісні моделі`, `対応モデル`, `互換モデル`, `兼容模型`), plus the italic `*対応:…*` / `*Для …*` / `*适用于 …*` lines in the ja/uk/zh concepts guides. Labels, separators (`, ` `、` `، `) and locale stamps are unchanged. The README FAQ lines and the 05-mcp `tool_reference` note are not footers and were left alone. The footer lines of `CHANGELOG.md`, `fa/CHANGELOG.md` and `ko/CHANGELOG.md` also carry the new list; only the footer line changed, not the entries.

## Part C: locale README badges

Real state: the newest version that most (more than half) of the locale's ten module READMEs carry or exceed, backed by the sync commit that brought them there.

A badge is marked **(partial)** when one or more of the locale's module READMEs has no version footer (never synced since its first translation), or when the locale is a condensed translation. A module synced to an older version than the badge doesn't make it partial on its own; the majority rule above already covers that. Only zh meets the rule (02-memory and 05-mcp have no footer, and #247 calls zh condensed).

| Locale | Old badge / "latest" | Evidence | New |
|---|---|---|---|
| ja | 2.1.119 (badge, "latest", FAQ) | module footers: 3×2.1.322, 5×2.1.316, 1×2.1.310, 1×2.1.302; 8/10 ≥ 2.1.316 (#230); #247 carried only the sections ja has | **2.1.316** (Oct 2026) |
| uk | 2.1.112 (FAQ line; no badge) | 3×2.1.322, 4×2.1.316, 1×2.1.310, 2×2.1.302; 7/10 ≥ 2.1.316 (#230) | **2.1.316** (Oct 2026) |
| zh | 2.1.112 (badge, "latest", FAQ) | 2.1.316, 2.1.310 ×2, 2.1.302 ×2, 2.1.300 ×2, 2.1.278; 02 and 05 have no footer (untouched since the first translation); 7/10 ≥ 2.1.300 (#193); #247 was "condensed", model lists only | **2.1.300 (partial)** (Oct 2026): the badge, "latest" and FAQ lines say zh is condensed and that 02-memory and 05-mcp haven't been synced since the April 2026 translation |
| ko | 2.1.310 | 5×2.1.322, 5×2.1.310; #228 synced ko to 2.1.310, and #247 says 2.1.316 "was not backfilled" | **2.1.310** (unchanged) |
| fa | 2.1.310 | 5×2.1.322, 5×2.1.316; #241 "syncs the translation from v2.1.310 to v2.1.316"; #247 carried only the 2.1.322 P1 changes | **2.1.316** (Oct 2026) |
| vi | none (README has no badge or version line) | 4×2.1.322, 6×2.1.316 | no change |

Months come from the docs changelog: 2.1.300 was released October 14, 2026 and 2.1.316 October 31, 2026. The README *footers* in fa/ja/ko/uk/zh stay at 2.1.322: #247 checked those files themselves, while the badge describes the whole locale.

## Deliberately left

- **Stamps not bumped:** `resources.md` (2.1.310), `03-skills/claude-md/SKILL.md` and the three plugin READMEs (2.1.302), for the reasons in the Part A table.
- **Example plugins:** the fix is a design choice between wiring up `hooks/hooks.json` / `.mcp.json` and rewording the READMEs, and renaming commands to `/<plugin>:<name>` touches seven languages plus `07-plugins/README.md` (bare `/review-pr`). It needs a follow-up issue.
- **Same unverifiable version elsewhere:** `03-skills/README.md` also said `/run-skill-generator` is v2.1.145+. Handled by #262, now merged into this branch from `main`.
- **Older `--model` lists:** ja/uk/vi/zh INDEX have pre-5.x lists (e.g. "Sonnet 4.6, Opus 4.7, Haiku 4.5"). That isn't the English sentence, so it belongs to a locale sync.

## Follow-ups
- **LEARNING-ROADMAP `/effort` line (review r3 N13):** line 368 can read as if `/effort` applies only to the models that always use extended thinking; per model-config's effort table it also works on Opus 5, Sonnet 5 and Opus 4.8. Not wrong; clarify in the next pass.

- **Compatible Models scope (review S3):** Opus 4.6 is Microsoft Foundry's current `opus`, and Sonnet 4.5 is the current `sonnet` on Bedrock, Google Cloud's Agent Platform and Foundry (deprecated, retiring Nov 30, 2026), per model-config's alias table. Both are still in use, so either add them to the FAQ and every footer (Sonnet 4.5 marked deprecated), or define the list's scope in STYLE_GUIDE (e.g. the models the aliases resolve to on the Anthropic API plus older models in active use) and cite the deprecations table.
- **Model order (review N8):** the list puts Opus 4.8 after Sonnet 4.6. Grouping by family (Fable, Opus 5.5/5/4.8, Sonnet, Haiku) would read better; the order is shared by STYLE_GUIDE, the FAQ and every footer, so change it everywhere at once.
- **Example plugins:** the follow-up issue proposed above.

## Validation

- `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid pre-commit run --files <338 changed files>`: every hook passes, including link-check (246 URLs per language). The Mermaid hooks can't install here (`language: node must have package.json or additional_dependencies`, the same failure #247 reported). `python scripts/check_mermaid.py --strict` was run directly instead: Pele 1.6.0 rendered all 416 blocks.
- `python scripts/check_cross_references.py`: all valid (674 files).
- Review fix round 1 (18 files): the same `pre-commit run --files` passes every hook (Mermaid hooks skipped as above; no Mermaid block was touched), and the cross-reference check is still valid after merging `main`.
- Review fix round 2 (14 files: the extended-thinking wording in all 7 LEARNING-ROADMAP files, the dontAsk line in all 7 INDEX files): `pre-commit run --files` passes every hook (Mermaid hooks skipped; no Mermaid block touched), and the cross-reference check is valid (674 files) after merging `main` again (#257).
- Pre-push secret scan: it flagged `06-hooks/README.md:1683` (en, fa, vi), a false positive. The `sk-…{20,}` pattern matches the docs anchor `hooks#pretooluse-ask-decisions-in-auto-mode`, which has been on `main` since 11b2ae3 (en), c2f92c8 (fa) and 8de1820 (vi), and is not on a line this PR changes. The PR's added lines have no secret-pattern matches.

Closes #256
2026-11-12 14:29:18 +01:00
Luong NGUYEN b5548c6b9f docs: sync to Claude Code v2.1.322 (#247)
Type: docs

Syncs the tutorial, its translations and root docs to **Claude Code 2.1.322** (previous sync: v2.1.316, #230). The audit covered every changelog entry for 2.1.317, 2.1.318, 2.1.319, 2.1.321 and 2.1.322, plus the official docs pages for each affected feature. npm `latest` is 2.1.322.

49 files changed (46 in the sync commit, plus `fa/` and `ko/03-skills` in review round 1 and `ko/claude_concepts_guide.md` in round 3). P0 0 · P1 15 · P2 6 (deferred) · P3 30 + 1 blocked · P4 3.

## P1: outdated claims (mirrored to translations)

- **Fable 5.2 (v2.1.321).** The `10-cli` model table gains a Fable 5.2 row (1M context, default effort `medium`), and Fable 5.1 becomes the previous model.
  - The Fable alias note now says `fable` resolves to Fable 5.2 (Fable 5 in Claude apps gateway sessions).
  - `best` now resolves to the same model as `opus`.
  - A saved `claude-fable-5-1` pick moves to `fable` on Pro/Max/Ultra, and on Team/Enterprise when the organization's settings allow.
  - Pricing: $8/$40 per Mtok, with $0.20 per Mtok cache reads.
  - The FAQ and QUICK_REFERENCE model lists name Fable 5.2.
- **Fast mode on Fable 5.2 (v2.1.321, $16/$80):** added to `/fast` in `01-slash-commands`, CATALOG, the `10-cli` fast-mode note and the `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE` row.
- **`ultrathink`** now lists Fable 5.2 in `09`, `10-cli` and `claude_concepts_guide`.
- **Scheduled tasks (`09`)**:
  - Recurring tasks expire after 7 days, not 3.
  - Tasks are restored on `--resume`/`--continue`, except expired tasks, past-due one-shots and a self-paced `/loop`.
  - Recurring jitter is "up to half the gap, at most 30 min" (`*/5` isn't delayed).
  - One-shots scheduled for `:00`/`:30` run up to 90 s early.
- **Subagent and teammate effort (v2.1.317):** on a different model they use that model's saved effort or its default, not the session's (`04-subagents`, `10-cli`).
- **`switchModelsOnFlag` (v2.1.318):** subagents never pause. With "Ask each time", a flagged subagent request fails instead of switching models.
- **Background commands:** the default limit is 10 minutes in a `-p` run whose prompt is passed as text (the fix is in v2.1.321).
- **Mods Claude writes (v2.1.321):** in `auto`/`bypassPermissions` they turn on without asking. They don't load in `dontAsk` or in `-p` outside those modes.

## P3: additions (English only)

- **`01-slash-commands`:**
  - `/model` "More models" row (v2.1.319/321).
  - `/context` sends Claude only the table.
  - `/ide` no longer installs the extension from an IDE terminal (v2.1.318).
  - `/tasks` "Earlier in this session".
  - `/claude-api latency-optimize`, also added in `03-skills`, CATALOG and the concepts guide.
- **`03-skills`:** two new limits on nested-skill loading: under the Bash sandbox (v2.1.319), and `.claude/skills` inside `~/.claude/plugins` (v2.1.321). The skills docs page doesn't list these exceptions yet; the source is the changelog.
- **`04-subagents`:** background subagents move a shell command to the background after 3 min, and `SendMessage` reaches a busy background agent sooner.
- **`06-hooks`:**
  - Agent SDK `onFailure: "block"` / `on_failure="block"`.
  - An `mcp_tool` hook refuses the call when it can't read the answer (>16 MiB).
  - `defer` works only with a single tool call; `tool_deferred_unavailable` and `CLAUDE_CODE_DROP_UNAVAILABLE_DEFERRED_TOOL`.
  - PostToolUse runs after a `Ctrl+Enter` interrupt (10 s).
- **`07-plugins`:**
  - `$.model.fork` `effort` and `prompt.submit` in the user turn.
  - `${CLAUDE_PLUGIN_ROOT}` in `subagentStatusLine`.
  - Plugin updates install new dependencies.
  - Managed `extraKnownMarketplaces` take-over rules.
- **`08-checkpoints`:** `/rewind` after `/branch` (fixed in v2.1.319).
- **`09-advanced-features`:**
  - `/tasks` row.
  - Background command notifications show only the start and end of a command over 1,000 characters.
  - `claude remote-control --settings <file>`, and sessions keep their folder.
  - OTel `anthropic.plan`, `anthropic.seat_type`, `anthropic.provider`, `anthropic.custom_base_url`.
  - Three v2.1.319 trust-hardening items.
  - Auto-mode `-p` exits 1 when no safety check was available.
  - Monitor WebSocket watches follow Bash rules.
- **`10-cli`:**
  - Fast mode on Google Cloud's Agent Platform: Fable 5.2 only, regions `global`/`us`/`eu`, v2.1.322.
  - `claude auth status` `loginExpiresAt`.
  - `claude -p` `credential_expires_at` and the 10-day stderr warning.
  - Bash permission hardening: `which` with flags, `timeout` wrappers, exact ask vs. broader deny, `cp`/`mv` by path.
  - Agent view `--agent` dispatch default.
  - `MCP_PROTOCOL_NEGOTIATION` 7-day skip.
  - New rows for `CLAUDE_CODE_DISABLE_FEATURE_FLAGS`, `CLAUDE_CODE_DISABLE_NESTED_SESSION_ID` and `permissions.denyInsteadOfPrompting`.

## P4: cosmetic

- Root `README.md`: the version badge, "latest" line and "Current version" line now say v2.1.322 / November 2026.
- `10-cli`: the resume hint repeats launch flags (v2.1.317).
- `08-checkpoints`: directory symlinks are no longer followed by rewind (v2.1.319).

Every file the sync commit changed has a refreshed footer: November 12, 2026 and 2.1.322, with localized labels and dates in translations. `fa/03-skills` and `ko/03-skills` got only the S1 `effort` row fix in round 1, and their footers were left as they were (2.1.316 and 2.1.310), because the rest of those files was not synced to 2.1.322. For the same reason, `ko/claude_concepts_guide.md` got only the round-3 Fable rows and keeps its 2.1.310 footer.

## Translation coverage

- **vi, ko, fa:** carry every P1 change whose text exists in that locale.
- **ja, uk:** carry the P1 changes to the sections they have: `ultrathink`, scheduled tasks, the `effort` row and QUICK_REFERENCE; the README FAQ in ja and uk.
- **zh:** condensed. Only the stale model lists were fixed (README FAQ, QUICK_REFERENCE). zh has no model table, fast-mode note, scheduled-tasks section or `effort` row.
- **`vi/README.md`:** has no FAQ, so Task 2.9 had nothing to change there.
- **ko is partly stale from before this run.** Its module footers were still at 2.1.310, and some 2.1.316 content is missing, such as the `CLAUDE_CODE_SUBAGENT_EFFORT` sentence and `env` row. This PR adds the 2.1.322 P1 changes but does not backfill 2.1.316.
- **Locale README stamps:** the ko and fa READMEs still show v2.1.310 in their badge and "latest" lines. Each locale tracks its own sync state, so they were left as they are.
- **P3 additions are English only.**

## Review round 1 fixes (`docs: address review of v2.1.322 sync`)

Each change was checked again against model-config, env-vars, skills or the raw changelog before it was written.

- **S1:** the `03-skills` `effort` row and the `01` `/effort` row now list Fable 5.2, and give it a `medium` default. The `/effort` row also gives `high` for Fable 5.1 and Fable 5 (model-config: "Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to `medium`… Other models in the effort levels table default to `high`"). Also changed in fa and ko.
- **S2:** `09` `remote-control --settings`: "If the file changes, no new session starts until you restart `claude remote-control`" (CL 2.1.321). English only.
- **S3:** the `10-cli` `claude agents` note now names the five flags from CL 2.1.321. English only.
- **S4:** the `03-skills` nested-skill exceptions are now attributed to the changelog in the text: "The changelog adds two exceptions that the skills docs don't list yet". English only.
- **S5:** the `CLAUDE_CODE_DISABLE_FEATURE_FLAGS` row now says that with the variable set, Remote Control and the other features that need feature-flag fetching are unavailable (env-vars). English only.
- **S7:** wrong effort claims removed from sentences this PR rewrote:
  - `ja/09` and `uk/09` now translate the English effort-level, `xhigh` and default lists.
  - In `ja/10-cli` and `uk/10-cli`, the false "`max` is exclusive to Opus 4.x" clause is dropped. The English sentence has no such clause.
- **N1:** "from v2.1.257 until v2.1.321" in `10-cli`, fa, ko and vi.
- **N2:** the `/context` row now says the 10-row limit applies to the table Claude reads. No locale has this row text.
- **N4:** the Fable models were added to the `09` effort-level, `xhigh` and default lists in en, fa, ko and vi (ja and uk via S7). In `claude_concepts_guide`, Fable 5.2, 5.1 and 5 rows were added to the model/effort table, and the Fable models to its `xhigh`/`max` note, in en and fa.
- **N5:** the `CLAUDE_CODE_SUBAGENT_EFFORT` row now says only what CL 2.1.317 says: a subagent on a different model from the main conversation uses that model's saved effort level or its default, instead of the session's. The old wording said such a subagent "never inherits". How the variable ranks against that rule isn't stated by any source. Also changed in fa and vi; ko has no row.
- **N8:** "where Fable is available" was restored to the pre-v2.1.321 `best` behaviour, in en, fa, ko and vi.

## Review round 2 fixes (`docs: add Fable models to the effort-level bullet in 09`)

- Added the Fable models to the `09` "Opus 5 / Opus 4.8" effort bullet (en, fa, ko, vi): Fable 5.2 defaults to `medium`, Fable 5.1 and Fable 5 to `high`, and all of them support `xhigh` and `max`.
- Added the Fable models to the en `10-cli` `CLAUDE_CODE_EFFORT_LEVEL` row.

## Review round 3 fixes (`docs: align model and effort lists with model-config (v2.1.322 sync)`)

The model and effort lists changed in this round now match model-config.md (effort table, default-effort rule and 1M list, re-fetched before editing). The lists still behind are under Follow-ups.

- **en (R2-S1):** the Fable models were added to the remaining `09` effort lists (the "Effort level" heading line and three `CLAUDE_CODE_EFFORT_LEVEL` code comments) and to the `10-cli` "Effort Levels" paragraph and its code comment. The paragraph now gives Fable 5.2 a `medium` default, matching the model table above it.
- **fa, ko, vi (R2-S1, R2-S2):** mirrored the same lines, and brought the `10-cli` `CLAUDE_CODE_EFFORT_LEVEL` row in line with en. `ko/claude_concepts_guide.md` gains the Fable 5.2, 5.1 and 5 rows, and its `xhigh`/`max` note names the Fable models, as in en and fa.
- **ja, uk (R2-S2, R2-S3):** removed the false "`xhigh` is Opus 4.7-only" and "`max` is Opus 4.7/4.6-only" claims from `09` and `10-cli`. The support and `xhigh` lists now match model-config, and the model lists in the `CLAUDE_CODE_EFFORT_LEVEL` row are translated from en.
- **ja, uk `04-subagents` (R2-S4):** the `effort` row and the frontmatter comment now list `xhigh`.
- **Haiku 4.5 context (R2-N2, factual part only):** `uk/10-cli` listed Haiku 4.5 at 1M tokens. It's now 200K, matching en `10-cli` and model-config's 1M list, which doesn't include Haiku 4.5. The same cell in `ja/10-cli` was fixed too.
- Merged `main` (#246, scripts only).

## Learner skills

No changes landed. Three edits are pending because writes to `.claude/skills/**` were refused by the permission system in this run:
- `lesson-quiz` `question-bank.md` Lesson 09 Q5 explanation: add Fable 5.2 to the `ultrathink` model list (P1).
- `self-assessment` `topic-recommendations.md` and its `SKILL.md` mirror, Advanced Features focus line: same change (P1).
- Lesson 04 Q10 explanation: optional `/tasks` "Earlier in this session" note (P3).

No correct answer letter changes, and all 100 `Review` pointers still resolve.

Exact text for the follow-up (from the round-1 review, §6):

1. `.claude/skills/lesson-quiz/references/question-bank.md:718` (Lesson 09 Q5, Explanation):
   - old: ``Since v2.1.311, typed in the interactive terminal on Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.1 through Anthropic's API, it also runs that turn at `xhigh` effort,``
   - new: ``Since v2.1.311, typed in the interactive terminal on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2 (v2.1.321+), or Fable 5.1 through Anthropic's API, it also runs that turn at `xhigh` effort,``
2. `.claude/skills/self-assessment/SKILL.md:351` **and** `.claude/skills/self-assessment/references/topic-recommendations.md:73` (identical lines):
   - old: ``and the `ultrathink` keyword, which runs that turn at `xhigh` effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 (v2.1.311+)``
   - new: ``and the `ultrathink` keyword, which runs that turn at `xhigh` effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, and Fable 5.1 (v2.1.311+; Fable 5.2 needs v2.1.321+)``
3. Version bumps: `lesson-quiz/SKILL.md` `version: 1.6.4` → `1.6.5`; `self-assessment/SKILL.md` `version: 2.5.7` → `2.5.8`.
4. Footer stamps: `question-bank.md` and `topic-recommendations.md`, 2.1.316 → 2.1.322. Optionally add `https://code.claude.com/docs/en/model-config#use-ultrathink-for-one-off-deep-reasoning` to Sources; it is already listed in both.
5. Optional (P3): Lesson 04 Q10 explanation, a note on the `/tasks` "Earlier in this session" row. It changes no letter.

## Needs maintainer decision (P2, not applied)

1. **Self-paced `/loop` ending.**
   - Repo: says nothing about how a no-interval `/loop` ends.
   - Docs: "If an iteration ends without either rescheduling or stopping, Claude Code schedules one fallback wakeup about 20 minutes later".
   - Changelog 2.1.319: self-paced `/loop` now ends "instead of scheduling a fallback wakeup; set `CLAUDE_CODE_LOOP_KEEPALIVE=1` to keep the old behavior".
   - https://code.claude.com/docs/en/scheduled-tasks#stop-a-loop
2. **Auto mode with telemetry or feature flags off.**
   - Repo (`10-cli` `CLAUDE_CODE_AUTO_MODE_SERVER` row, `09`): "Set to `0` to use Claude Code's own auto-mode classifier requests instead of server-side review".
   - Docs: when the review is dropped, "Claude Code falls back to its own classifier requests".
   - Changelog 2.1.319: calls the server can't check "are asked about or denied, with no fallback to the built-in classifier".
   - https://code.claude.com/docs/en/permission-modes#server-side-classifier-review
3. **MCP tasks.**
   - Repo (`05-mcp`): public beta since v2.1.304, needs feature-flag fetching (not Bedrock, Vertex, Foundry or telemetry off).
   - Docs: same.
   - Changelog 2.1.319: terminal support moves tasks to the background, works without feature-flag fetching, and adds `CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND` and `CLAUDE_CODE_DISABLE_MCP_TASKS`. The second variable is only in the changelog.
   - https://code.claude.com/docs/en/mcp#mcp-tasks-that-run-on-the-server
4. **`deniedMcpServers` URL entries.**
   - Repo (`05-mcp`): "`serverUrl` | A remote server URL, exact or with `*` wildcards".
   - Changelog 2.1.318: URL entries also block Anthropic-provided servers and cloud-session connectors.
   - Docs: "a `serverUrl` pattern written for the connector's own URL doesn't match it".
   - https://code.claude.com/docs/en/mcp#how-connectors-reach-claude-code
5. **`CLAUDE_CODE_PLUGIN_DIR_WATCH`.**
   - Repo (`07-plugins`): has only a generic hot-reload note.
   - Changelog 2.1.321: headless sessions now reload `.claude/skills` mods, and `=0` turns this off.
   - Docs: reloading covers `--plugin-dir` mods, is on in interactive sessions, and "Set to `1` to turn it on in non-interactive sessions".
   - https://code.claude.com/docs/en/env-vars#variables
6. **Mods' own tool calls.**
   - Repo (`07-plugins`): says nothing about prompting.
   - Changelog 2.1.321: `$.tool.call` and `$.mcp.call` "raise no permission prompt, even under your own ask rules".
   - Docs: "`$.mcp.call` | Calls a tool on a connected MCP server, under the session's permission rules".
   - https://code.claude.com/docs/en/plugins/mods/admin#review-what-a-mod-can-do

## Follow-ups (separate PRs)

- **Stamps only (review N3 + N6):** add Fable 5.2 to the "Compatible Models" footers (88 lines; root files still list Fable 5.1 as newest, and module files lack Opus 5.5, Sonnet 5.5 and Haiku 5.5). Align the locale README badges and "latest" lines: ja 2.1.119, zh and uk 2.1.112, ko and fa 2.1.310.
- **ko catch-up sync (review N7):** backfill 2.1.316 in ko: the Opus 4.8 fast-mode deprecation, the `CLAUDE_CODE_SUBAGENT_EFFORT` sentence and row, and the v2.1.311 `ultrathink` model list.
- **Learner skills (review S6):** apply the exact text under "Learner skills" above once `.claude/skills/**` is writable.
- **"Effort Levels (…)" headings (review R2-N1):** `10-cli` and its locale copies name only some models in the heading. They were left unchanged because renaming them changes the anchors.
- **Opus 4.6 row (R2-N4):** `claude_concepts_guide.md` (and fa, ko) has no Opus 4.6 row, but the note below the table mentions it. The Sonnet 4.6 row's "1M tokens" also needs the `[1m]`-variant qualifier.
- **`high`-default lists (R2-N5):** the `01` `/effort` row and the `10-cli` `CLAUDE_CODE_EFFORT_LEVEL` row (and their locale copies) leave Opus 4.6 and Sonnet 4.6 out of the `high` default.
- **ja/uk/zh/vi effort catch-up (R2-N6):** the `/effort` rows in `ja/01`, `uk/01`, `zh/01` and `vi/01` still say `max` needs Opus 4.7 or Opus 4.6. `ja/claude_concepts_guide.md:3061` has an Opus 4.7-era table.
- **uk/ja `10-cli` model tables (rest of R2-N2):** `uk/10-cli` `--effort` lacks `xhigh`, its model table is Opus 4.6-era (and Opus 4.6 / Sonnet 4.6 reach 1M only through `[1m]`), and it says "Opus 4.6 підтримує…". The `ja/10-cli` model table is Opus 4.7-era.
- **`06-hooks` context-limit comment:** the `CONTEXT_LIMIT` comment's 1M list leaves out the Fable models and Opus 4.7, and lists Sonnet 4.6, which reaches 1M only through `[1m]` (also in fa, ko and vi). This predates the PR.
- **ja/uk stale model lists:** `ja/09:228` and `uk/09:220` ("all models (Opus 4.7/4.6, Sonnet 4.6, Haiku 4.5)"), and `ja/10-cli:717-719` (the "Opus 4.7" heading and paragraph, the counterpart of en `10-cli:853`). In ja and uk, the 2.1.322 stamp covers the sections those files have; these older lists are tracked here.

## Validation

`pre-commit run --all-files` passes: markdown-lint, cross-references, link-check (247 URLs) and markdown-rendering in all five hooked languages, plus the Python checks. The Mermaid hooks were skipped with `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid` because their `language: node` environment fails to install under pre-commit 4.7.0. `python scripts/check_mermaid.py --strict` was run directly instead: Pele rendered all 416 blocks. The pre-edit baseline was also all green. For the round-1 fixes, `pre-commit run --files` on the 20 changed files passes, with the same Mermaid SKIP; the `language: node` install error was reproduced. `check_mermaid.py --strict` (416 blocks) and `check_cross_references.py` (675 files) also pass. For round 3, pre-commit on the 15 changed files passes, with the same Mermaid SKIP. `check_cross_references.py` (676 files after the merge), `check_mermaid.py --strict` (416 blocks) and `pytest scripts/tests/` (234 passed, after merging #246) also pass.

## Sources

- https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md (2.1.317–2.1.322) and https://code.claude.com/docs/en/changelog
- https://www.npmjs.com/package/@anthropic-ai/claude-code
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/fast-mode
- https://code.claude.com/docs/en/scheduled-tasks
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/errors
- https://code.claude.com/docs/en/settings-reference#permissions-denyinsteadofprompting
- https://code.claude.com/docs/en/env-vars
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/agent-sdk/hooks
- https://code.claude.com/docs/en/tools-reference
- https://code.claude.com/docs/en/plugins/mods/create
- https://code.claude.com/docs/en/plugins/org
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/vs-code
- https://code.claude.com/docs/en/agent-view
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/permission-modes
- https://code.claude.com/docs/en/cli-reference
2026-11-12 13:02:46 +01:00
Luong NGUYEN c2f92c8fa7 feat(i18n): wire Persian (fa) into tooling and sync to v2.1.316 (#241)
Type: chore

## Summary

Follow-up to #208 (Persian translation). It wires `fa/` into the repo
tooling the same way #228 did for Korean, and syncs the translation from
v2.1.310 to v2.1.316.

## Changes

**Tooling** (`feat(i18n)`)
- `build_epub.py`: `--lang fa` builds `claude-howto-guide-fa.epub`.
- `build_website.py`: `--lang fa`; `fa` is in `EXCLUDE_DIRS`, so Persian
pages stay out of the English site.
- CI: the EPUB matrix in `test.yml` now includes `fa`. The
markdown-rendering docstring and test now list `fa`.
- Pre-commit: new `persian-markdown-lint`, `persian-cross-references`,
`persian-mermaid` and `persian-link-check` hooks. `persian-mermaid` is
added to the offline `SKIP=` lists in `.pre-commit-config.yaml`,
`CONTRIBUTING.md` and `CLAUDE.md`.
- `scripts/README.md`: usage text updated.
- Language switchers: `فارسی` added to `vi/`, `zh/`, `uk/`, `ja/` and
`ko/` READMEs and to the landing-page footer.

**Translation** (`docs(fa)`)
- Applies the English changes from #230 (v2.1.316) to the 15 affected
`fa/` files: 192 lines added, 104 removed.
- Moves the misplaced `دسترس‌پذیری (v2.1.310)` Monitor callout in
`fa/09-advanced-features/README.md` to the position it has in English.

## Verification

| Check | Result |
|---|---|
| `fa/` line counts, URLs and code-fence positions vs English `main` |
identical in all files |
| `pre-commit run --all-files`, including the new Persian hooks | pass |
| `pytest scripts/tests/` | 198 passed |
| ruff, mypy, bandit | clean |
| `build_epub.py --lang fa` + `check_epub_diagrams.py` | 61 diagrams, 0
placeholders |
| `build_website.py --lang fa` | builds; English site has no `fa/` pages
|

## Known limitations (not in this PR)

- The EPUB and website templates hard-code `lang="en"` and have no
`dir="rtl"`, so Persian pages render left-to-right. Fixing that means
passing the language into the HTML templates for every locale.
- `fa/.github/` has no `TESTING.md`, `SECURITY_REPORTING.md` or
`pull_request_template.md`; the other locales have all three.
2026-11-12 10:54:28 +01:00
Hassan BehtooeiandSolar Mini4 6d547a154e docs(i18n): add Persian (Farsi) translation (#208)
Type: docs

## Summary

This PR adds a complete Persian (فارسی) translation of the documentation
under `fa/`,
mirroring the English source tree one file for one, following the same
layout already
used by `ja/`, `zh/`, `uk/` and `vi/`.

It is documentation only — no code, scripts or build configuration are
changed.

## What's included

- All 95 Markdown documents under `fa/`, matching the English tree
file-for-file
- Translated GitHub templates under `fa/.github/` (issue templates, PR
template,
  security and testing docs)
- `fa/RELEASE_NOTES.md`, consistent with the other locales

## Translation policy

- **Translated:**&#8203; prose, headings, table headers and cells, list
items, blockquotes,
image alt text, Mermaid diagram labels, and `#` / `//` comments inside
code blocks
- **Kept verbatim:**&#8203; code, JSON/YAML keys and identifier values,
file paths, URLs,
shell commands, flags, environment variables, tool and model names,
version
  numbers, permission-rule syntax, and Markdown link targets
- **Anchors:**&#8203; in-page anchors are Persian, because GitHub
derives them from heading
text. They were generated from the translated headings and verified to
resolve.
- **Relative paths:**&#8203; shifted by one level (`../` → `../../`)
where the extra `fa/`
directory depth requires it, e.g. `LICENSE`, the language switcher, and
shared
  screenshots under `resources/`.

## Verification

- 95 files, line-for-line parity with the English source for every file
- 0 unclosed code fences
- 151 / 151 internal anchors resolve
- 284 / 285 relative links point to existing files — the single
exception is an
illustrative path inside prose that is also absent from the English
source
- No CJK, Hangul, Cyrillic, Thai or Devanagari characters outside code
fences,
except the language-switcher line, where each language name is
intentionally
  written in its own script

## Terminology

For consistency, recurring terms are translated as: agent → ایجنت,
subagent → زیرایجنت,
skill → مهارت, hook → هوک, plugin → پلاگین, slash command → دستور اسلش,
checkpoint → چک‌پوینت, session → نشست, prompt → پرامپت, context → زمینه,
sandbox → سندباکس, worktree → درخت کاری. Product and model names stay in
Latin script.

## Known limitation

`fa/03-skills/doc-generator/SKILL.md` is 3 lines shorter than the
English original.
That source file triggers a content-approval prompt in my environment
that I could
not clear, so I left it untouched rather than guessing at the missing
content.
I am happy to send a small follow-up PR for that one file.

## Request

Could you review and merge? I am glad to adjust terminology, revert any
file you would
rather keep in English, or split this into smaller commits if you prefer
a different
granularity.

---------

Co-authored-by: Solar Mini4 <solar@upstage.ai>
2026-11-12 10:24:00 +01:00