Files
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
..

Hướng Dẫn Claude Code

🌐 Language / Ngôn ngữ: English | Tiếng Việt | 日本語 | 한국어 | فارسی

Làm chủ Claude Code trong một cuối tuần

Đây là bản tiếng Việt của tài liệu Claude Code How-To Guide.

📖 Giới Thiệu

Tài liệu này giúp bạn:

  • Hiểu và sử dụng Claude Code hiệu quả
  • Tự động hóa các tác vụ phát triển phần mềm
  • Tích hợp Claude Code vào workflow hàng ngày

🚀 Bắt Đầu Nhanh

Yêu Cầu

  • Claude Code đã được cài đặt
  • Kiến thức cơ bản về dòng lệnh (terminal)
  • Kiến thức cơ bản về lập trình

Cài Đặt

# Clone repository này
git clone https://github.com/luongnv89/claude-howto.git
cd claude-howto

# Copy các lệnh slash vào project của bạn
mkdir -p .claude/commands
cp 01-slash-commands/*.md .claude/commands/

📚 Cấu Trúc Tài Liệu

Tài liệu được chia thành 10 modules theo trình tự học:

  1. 01 - Lệnh Slash - Các lệnh tắt để tăng năng suất
  2. 02 - Bộ Nhớ - Lưu trữ context xuyên suốt các phiên
  3. 03 - Skills - Các khả năng có thể tái sử dụng
  4. 04 - Tác Nhân Con - Các trợ lý AI chuyên biệt
  5. 05 - MCP - Giao thức Model Context
  6. 06 - Hooks - Tự động hóa dựa trên sự kiện
  7. 07 - Plugins - Các tính năng được đóng gói
  8. 08 - Checkpoints - Snapshot phiên làm việc
  9. 09 - Tính Năng Nâng Cao - Planning, thinking, backgrounds
  10. 10 - CLI - Tham chiếu dòng lệnh

🔗 Liên Kết

🤝 Đóng Góp

Xem CONTRIBUTING.md để biết thêm chi tiết.

📝 Ghi Chú Dịch Thuật

Xem TRANSLATION_NOTES.md để hiểu:

  • Glossary thuật ngữ kỹ thuật
  • Hướng dẫn phong cách dịch
  • Quy tắc dịch code và commands

Bản dịch đang được tiến hành. Xem TRANSLATION_QUEUE.md để biết tiến độ chi tiết.

Last Updated: 2026-04-02 Language: Vietnamese (vi-VN)