From 72d3b016e67ba0bfa0a6a1d003b9ba26491f2cad Mon Sep 17 00:00:00 2001 From: Luong NGUYEN Date: Tue, 7 Apr 2026 10:20:53 +0200 Subject: [PATCH] docs: sync all tutorials with latest Claude Code docs (April 2026) (#56) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: sync all tutorials with latest Claude Code official docs (April 2026) Update 44 documentation files to reflect the latest Claude Code features from code.claude.com. Key content changes include new slash commands (/ultraplan, /powerup, /sandbox), deprecated command removals (/pr-comments, /vim), corrected skill description budget (1%/8K), new hook events (PermissionDenied, InstructionsLoaded, ConfigChange), expanded Agent Teams section, new plugin components (LSP, bin/, settings.json), and new CLI flags (--bare, --tmux, --effort, --channels). Added "Last Updated: April 2026" metadata footer to all documentation files. * fix(docs): correct env var values and alphabetical ordering - CLAUDE_CODE_NEW_INIT=true → =1 in 02-memory and 09-advanced-features - CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true → =1 in 09-advanced-features - Fix /powerup vs /plugin alphabetical order in slash commands table * fix(docs): correct env var values in locale files (vi, zh) Propagate CLAUDE_CODE_NEW_INIT=true → =1 and CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true → =1 corrections to Vietnamese and Chinese translations. --- 01-slash-commands/README.md | 23 +++-- 01-slash-commands/commit.md | 3 + 01-slash-commands/doc-refactor.md | 3 + 01-slash-commands/generate-api-docs.md | 3 + 01-slash-commands/optimize.md | 3 + 01-slash-commands/pr.md | 3 + 01-slash-commands/push-all.md | 3 + 01-slash-commands/setup-ci-cd.md | 3 + 01-slash-commands/unit-test-expand.md | 3 + 02-memory/README.md | 21 +++-- 02-memory/directory-api-CLAUDE.md | 3 + 02-memory/personal-CLAUDE.md | 3 + 02-memory/project-CLAUDE.md | 3 + 03-skills/README.md | 11 ++- 04-subagents/README.md | 23 ++--- 04-subagents/clean-code-reviewer.md | 3 + 04-subagents/code-reviewer.md | 3 + 04-subagents/data-scientist.md | 3 + 04-subagents/debugger.md | 3 + 04-subagents/documentation-writer.md | 3 + 04-subagents/implementation-agent.md | 3 + 04-subagents/performance-optimizer.md | 3 + 04-subagents/secure-reviewer.md | 3 + 04-subagents/test-engineer.md | 3 + 05-mcp/README.md | 9 ++ 06-hooks/README.md | 16 +++- 07-plugins/README.md | 12 ++- 08-checkpoints/README.md | 9 +- 08-checkpoints/checkpoint-examples.md | 3 + 09-advanced-features/README.md | 90 +++++++++++++++++-- .../planning-mode-examples.md | 3 + 10-cli/README.md | 6 ++ CATALOG.md | 3 +- CODE_OF_CONDUCT.md | 3 + CONTRIBUTING.md | 3 + INDEX.md | 3 +- LEARNING-ROADMAP.md | 3 +- QUICK_REFERENCE.md | 4 + README.md | 2 +- RELEASE_NOTES.md | 3 + STYLE_GUIDE.md | 3 + claude_concepts_guide.md | 6 +- clean-code-rules.md | 3 + resources.md | 3 + vi/01-slash-commands/README.md | 2 +- vi/02-memory/README.md | 4 +- vi/09-advanced-features/README.md | 4 +- zh/01-slash-commands/README.md | 2 +- 48 files changed, 288 insertions(+), 49 deletions(-) diff --git a/01-slash-commands/README.md b/01-slash-commands/README.md index acadc97..eb7ac84 100644 --- a/01-slash-commands/README.md +++ b/01-slash-commands/README.md @@ -18,7 +18,7 @@ Slash commands are shortcuts that control Claude's behavior during an interactiv ## Built-in Commands Reference -Built-in commands are shortcuts for common actions. There are **55+ built-in commands** and **5 bundled skills** available. Type `/` in Claude Code to see the full list, or type `/` followed by any letters to filter. +Built-in commands are shortcuts for common actions. There are **60+ built-in commands** and **5 bundled skills** available. Type `/` in Claude Code to see the full list, or type `/` followed by any letters to filter. | Command | Purpose | |---------|---------| @@ -46,7 +46,7 @@ Built-in commands are shortcuts for common actions. There are **55+ built-in com | `/help` | Show help | | `/hooks` | View hook configurations | | `/ide` | Manage IDE integrations | -| `/init` | Initialize `CLAUDE.md`. Set `CLAUDE_CODE_NEW_INIT=true` for interactive flow | +| `/init` | Initialize `CLAUDE.md`. Set `CLAUDE_CODE_NEW_INIT=1` for interactive flow | | `/insights` | Generate session analysis report | | `/install-github-app` | Set up GitHub Actions app | | `/install-slack-app` | Install Slack app | @@ -61,7 +61,7 @@ Built-in commands are shortcuts for common actions. There are **55+ built-in com | `/permissions` | View/update permissions (alias: `/allowed-tools`) | | `/plan [description]` | Enter plan mode | | `/plugin` | Manage plugins | -| `/pr-comments [PR]` | Fetch GitHub PR comments | +| `/powerup` | Discover features through interactive lessons with animated demos | | `/privacy-settings` | Privacy settings (Pro/Max only) | | `/release-notes` | View changelog | | `/reload-plugins` | Reload active plugins | @@ -72,16 +72,19 @@ Built-in commands are shortcuts for common actions. There are **55+ built-in com | `/review` | **Deprecated** — install the `code-review` plugin instead | | `/rewind` | Rewind conversation and/or code (alias: `/checkpoint`) | | `/sandbox` | Toggle sandbox mode | -| `/schedule [description]` | Create/manage scheduled tasks | +| `/schedule [description]` | Create/manage Cloud scheduled tasks | | `/security-review` | Analyze branch for security vulnerabilities | | `/skills` | List available skills | | `/stats` | Visualize daily usage, sessions, streaks | +| `/stickers` | Order Claude Code stickers | | `/status` | Show version, model, account | | `/statusline` | Configure status line | | `/tasks` | List/manage background tasks | | `/terminal-setup` | Configure terminal keybindings | | `/theme` | Change color theme | -| `/vim` | Toggle Vim/Normal modes | +| `/ultraplan ` | Draft plan in ultraplan session, review in browser | +| `/upgrade` | Open upgrade page for higher plan tier | +| `/usage` | Show plan usage limits and rate limit status | | `/voice` | Toggle push-to-talk voice dictation | ### Bundled Skills @@ -103,6 +106,8 @@ These skills ship with Claude Code and are invoked like slash commands: | `/review` | Deprecated — replaced by `code-review` plugin | | `/output-style` | Deprecated since v2.1.73 | | `/fork` | Renamed to `/branch` (alias still works, v2.1.77) | +| `/pr-comments` | Removed in v2.1.91 — ask Claude directly to view PR comments | +| `/vim` | Removed in v2.1.92 — use /config → Editor mode | ### Recent Changes @@ -113,6 +118,11 @@ These skills ship with Claude Code and are invoked like slash commands: - `/voice` command added for push-to-talk voice dictation - `/schedule` command added for creating/managing scheduled tasks - `/color` command added for prompt bar customization +- /pr-comments removed in v2.1.91 — ask Claude directly to view PR comments +- /vim removed in v2.1.92 — use /config → Editor mode instead +- /ultraplan added for browser-based plan review and execution +- /powerup added for interactive feature lessons +- /sandbox added for toggling sandbox mode - `/model` picker now shows human-readable labels (e.g., "Sonnet 4.6") instead of raw model IDs - `/resume` supports `/continue` alias - MCP prompts are available as `/mcp____` commands (see [MCP Prompts as Commands](#mcp-prompts-as-commands)) @@ -548,5 +558,8 @@ If both exist with the same name, the **skill takes precedence**. Remove one or - [CLI Reference](https://code.claude.com/docs/en/cli-reference) - Command-line options --- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 *Part of the [Claude How To](../) guide series* diff --git a/01-slash-commands/commit.md b/01-slash-commands/commit.md index eed8ca2..a1b83a8 100644 --- a/01-slash-commands/commit.md +++ b/01-slash-commands/commit.md @@ -24,3 +24,6 @@ Otherwise, analyze the changes and create an appropriate commit message followin - `refactor:` for code refactoring - `test:` for adding tests - `chore:` for maintenance tasks + +--- +**Last Updated**: April 2026 diff --git a/01-slash-commands/doc-refactor.md b/01-slash-commands/doc-refactor.md index 908da97..eb3fc9f 100644 --- a/01-slash-commands/doc-refactor.md +++ b/01-slash-commands/doc-refactor.md @@ -22,3 +22,6 @@ Refactor project documentation structure adapted to project type: 7. **Use Mermaid** for all diagrams (architecture, flows, schemas) Keep docs concise, scannable, and contextual to project type. + +--- +**Last Updated**: April 2026 diff --git a/01-slash-commands/generate-api-docs.md b/01-slash-commands/generate-api-docs.md index 642c3f2..4b48c92 100644 --- a/01-slash-commands/generate-api-docs.md +++ b/01-slash-commands/generate-api-docs.md @@ -17,3 +17,6 @@ Output format: - Markdown file in `/docs/api.md` - Include curl examples for all endpoints - Add TypeScript types + +--- +**Last Updated**: April 2026 diff --git a/01-slash-commands/optimize.md b/01-slash-commands/optimize.md index ac4f24b..7663449 100644 --- a/01-slash-commands/optimize.md +++ b/01-slash-commands/optimize.md @@ -17,3 +17,6 @@ Format your response with: - Location in code - Explanation - Recommended fix with code example + +--- +**Last Updated**: April 2026 diff --git a/01-slash-commands/pr.md b/01-slash-commands/pr.md index ae27970..4750575 100644 --- a/01-slash-commands/pr.md +++ b/01-slash-commands/pr.md @@ -24,3 +24,6 @@ Before creating a PR, execute these steps: - Why it changed - Testing performed - Potential impacts + +--- +**Last Updated**: April 2026 diff --git a/01-slash-commands/push-all.md b/01-slash-commands/push-all.md index cb2646b..113326c 100644 --- a/01-slash-commands/push-all.md +++ b/01-slash-commands/push-all.md @@ -150,3 +150,6 @@ If user wants control, suggest: 3. **PR workflow**: Create branch → push → PR (use `/pr` command) **⚠️ Remember**: Always review changes before pushing. When in doubt, use individual git commands for more control. + +--- +**Last Updated**: April 2026 diff --git a/01-slash-commands/setup-ci-cd.md b/01-slash-commands/setup-ci-cd.md index 831fb25..cd81714 100644 --- a/01-slash-commands/setup-ci-cd.md +++ b/01-slash-commands/setup-ci-cd.md @@ -23,3 +23,6 @@ Implement comprehensive DevOps quality gates adapted to project type: 4. **Verify pipeline**: Test locally, create test PR, confirm all checks pass Use free/open-source tools. Respect existing configs. Keep execution fast. + +--- +**Last Updated**: April 2026 diff --git a/01-slash-commands/unit-test-expand.md b/01-slash-commands/unit-test-expand.md index 79e78da..7a3ed8c 100644 --- a/01-slash-commands/unit-test-expand.md +++ b/01-slash-commands/unit-test-expand.md @@ -23,3 +23,6 @@ Expand existing unit tests adapted to project's testing framework: 5. **Verify improvement**: Run coverage again, confirm measurable increase Present new test code blocks only. Follow existing test patterns and naming conventions. + +--- +**Last Updated**: April 2026 diff --git a/02-memory/README.md b/02-memory/README.md index 67a425e..5371518 100644 --- a/02-memory/README.md +++ b/02-memory/README.md @@ -49,10 +49,10 @@ The `/init` command is the fastest way to set up project memory in Claude Code. - Sets up the foundation for context persistence across sessions - Provides a template structure for documenting your project standards -**Enhanced interactive mode:** Set `CLAUDE_CODE_NEW_INIT=true` to enable a multi-phase interactive flow that walks you through project setup step by step: +**Enhanced interactive mode:** Set `CLAUDE_CODE_NEW_INIT=1` to enable a multi-phase interactive flow that walks you through project setup step by step: ```bash -CLAUDE_CODE_NEW_INIT=true claude +CLAUDE_CODE_NEW_INIT=1 claude /init ``` @@ -248,7 +248,7 @@ Claude Code uses a multi-tier hierarchical memory system. Memory files are autom 7. **Local Project Memory** - Personal project-specific preferences - `./CLAUDE.local.md` -> **Note**: `CLAUDE.local.md` is not mentioned in the [official documentation](https://code.claude.com/docs/en/memory) as of March 2026. It may still work as a legacy feature. For new projects, consider using `~/.claude/CLAUDE.md` (user-level) or `.claude/rules/` (project-level, path-scoped) instead. +> **Note**: `CLAUDE.local.md` is fully supported and documented in the [official documentation](https://code.claude.com/docs/en/memory). It provides personal project-specific preferences that are not committed to version control. Add `CLAUDE.local.md` to your `.gitignore`. 8. **Auto Memory** - Claude's automatic notes and learnings - `~/.claude/projects//memory/` @@ -423,14 +423,14 @@ Auto memory is a persistent directory where Claude automatically records learnin - **Location**: `~/.claude/projects//memory/` - **Entrypoint**: `MEMORY.md` serves as the main file in the auto memory directory - **Topic files**: Optional additional files for specific subjects (e.g., `debugging.md`, `api-conventions.md`) -- **Loading behavior**: The first 200 lines of `MEMORY.md` are loaded into the system prompt at session start. Topic files are loaded on demand, not at startup. +- **Loading behavior**: The first 200 lines of `MEMORY.md` (or first 25KB, whichever comes first) are loaded into context at session start. Topic files are loaded on demand, not at startup. - **Read/write**: Claude reads and writes memory files during sessions as it discovers patterns and project-specific knowledge ### Auto Memory Architecture ```mermaid graph TD - A["Claude Session Starts"] --> B["Load MEMORY.md
(first 200 lines)"] + A["Claude Session Starts"] --> B["Load MEMORY.md
(first 200 lines / 25KB)"] B --> C["Session Active"] C --> D["Claude discovers
patterns & insights"] D --> E{"Write to
auto memory"} @@ -455,7 +455,7 @@ graph TD ``` ~/.claude/projects//memory/ -├── MEMORY.md # Entrypoint (first 200 lines loaded at startup) +├── MEMORY.md # Entrypoint (first 200 lines / 25KB loaded at startup) ├── debugging.md # Topic file (loaded on demand) ├── api-conventions.md # Topic file (loaded on demand) └── testing-patterns.md # Topic file (loaded on demand) @@ -504,6 +504,8 @@ memory: local # Load local memory only This allows subagents to operate with focused context rather than inheriting the full memory hierarchy. +> **Note**: Subagents can also maintain their own auto memory. See the [official subagent memory documentation](https://code.claude.com/docs/en/sub-agents#enable-persistent-memory) for details. + ### Controlling Auto Memory Auto memory can be controlled via the `CLAUDE_CODE_DISABLE_AUTO_MEMORY` environment variable: @@ -844,7 +846,7 @@ Added to ./CLAUDE.md: | Feature | Claude Web/Desktop | Claude Code (CLAUDE.md) | |---------|-------------------|------------------------| -| Auto-synthesis | ✅ Every 24h | ❌ Manual | +| Auto-synthesis | ✅ Every 24h | ✅ Auto memory | | Cross-project | ✅ Shared | ❌ Project-specific | | Team access | ✅ Shared projects | ✅ Git-tracked | | Searchable | ✅ Built-in | ✅ Through `/memory` | @@ -1159,3 +1161,8 @@ For the most up-to-date information, refer to the official Claude Code documenta ### Related Claude Features - [Claude Web Memory](https://claude.ai) - Automatic synthesis - [Official Memory Docs](https://code.claude.com/docs/en/memory) - Anthropic documentation + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/02-memory/directory-api-CLAUDE.md b/02-memory/directory-api-CLAUDE.md index 590636d..07860ef 100644 --- a/02-memory/directory-api-CLAUDE.md +++ b/02-memory/directory-api-CLAUDE.md @@ -59,3 +59,6 @@ Error responses: - Cache duration: 5 minutes default - Invalidate on write operations - Tag cache keys with resource type + +--- +**Last Updated**: April 2026 diff --git a/02-memory/personal-CLAUDE.md b/02-memory/personal-CLAUDE.md index 2f3c736..4f33345 100644 --- a/02-memory/personal-CLAUDE.md +++ b/02-memory/personal-CLAUDE.md @@ -58,3 +58,6 @@ project/ - **Format**: Prettier (100 char line length) - **Linter**: ESLint with airbnb config - **Test Framework**: Jest with React Testing Library + +--- +**Last Updated**: April 2026 diff --git a/02-memory/project-CLAUDE.md b/02-memory/project-CLAUDE.md index 033f518..8ae908f 100644 --- a/02-memory/project-CLAUDE.md +++ b/02-memory/project-CLAUDE.md @@ -86,3 +86,6 @@ - Analytics Dashboard: `/projects/analytics` - Mobile App: `/projects/mobile` - Admin Panel: `/projects/admin` + +--- +**Last Updated**: April 2026 diff --git a/03-skills/README.md b/03-skills/README.md index a81bc86..4bde845 100644 --- a/03-skills/README.md +++ b/03-skills/README.md @@ -100,7 +100,7 @@ When skills share the same name across levels, higher-priority locations win: ** **`--add-dir` directories**: Skills from directories added via `--add-dir` are loaded automatically with live change detection. Any edits to skill files in those directories take effect immediately without restarting Claude Code. -**Description budget**: Skill descriptions (Level 1 metadata) are capped at **2% of the context window** (fallback: **16,000 characters**). If you have many skills installed, some may be excluded. Run `/context` to check for warnings. Override the budget with the `SLASH_COMMAND_TOOL_CHAR_BUDGET` environment variable. +**Description budget**: Skill descriptions (Level 1 metadata) are capped at **1% of the context window** (fallback: **8,000 characters**). If you have many skills installed, descriptions may be shortened. All skill names are always included, but descriptions are trimmed to fit. Front-load the key use case in descriptions. Override the budget with the `SLASH_COMMAND_TOOL_CHAR_BUDGET` environment variable. ## Creating Custom Skills @@ -159,6 +159,7 @@ hooks: # Skill-scoped hooks hooks: - type: command command: "./scripts/validate.sh" +paths: "src/api/**/*.ts" # Glob patterns limiting when skill activates --- ``` @@ -176,6 +177,7 @@ hooks: # Skill-scoped hooks | `agent` | Subagent type when `context: fork` (e.g., `Explore`, `Plan`, `general-purpose`). | | `shell` | Shell used for `!`command`` substitutions and scripts: `bash` (default) or `powershell`. | | `hooks` | Hooks scoped to this skill's lifecycle (same format as global hooks). | +| `paths` | Glob patterns that limit when the skill is auto-activated. Comma-separated string or YAML list. Same format as path-specific rules. | ## Skill Content Types @@ -724,7 +726,7 @@ If Claude uses your skill when you don't want it: ### Claude Doesn't See All Skills -Skill descriptions are loaded at **2% of the context window** (fallback: **16,000 characters**). Run `/context` to check for warnings about excluded skills. Override the budget with the `SLASH_COMMAND_TOOL_CHAR_BUDGET` environment variable. +Skill descriptions are loaded at **1% of the context window** (fallback: **8,000 characters**). Each entry is capped at 250 characters regardless of budget. Run `/context` to check for warnings about excluded skills. Override the budget with the `SLASH_COMMAND_TOOL_CHAR_BUDGET` environment variable. ## Security Considerations @@ -802,3 +804,8 @@ Once you start building skills seriously, two things become essential: a library - [Memory Guide](../02-memory/) - Persistent context - [MCP (Model Context Protocol)](../05-mcp/) - Real-time external data - [Hooks Guide](../06-hooks/) - Event-driven automation + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/04-subagents/README.md b/04-subagents/README.md index 3d5d8b1..cf13d04 100644 --- a/04-subagents/README.md +++ b/04-subagents/README.md @@ -569,20 +569,22 @@ This command: ## Agent Teams (Experimental) -Agent Teams coordinate multiple Claude Code instances working together on complex tasks. Unlike subagents (which are delegated subtasks returning results), teammates work independently with their own context and communicate directly through a shared mailbox system. +Agent Teams coordinate multiple Claude Code instances working together on complex tasks. Unlike subagents (which are delegated subtasks returning results), teammates work independently with their own context windows and can message each other directly through a shared mailbox system. -> **Note**: Agent Teams is experimental and requires Claude Code v2.1.32+. Enable it before use. +> **Official Documentation**: [code.claude.com/docs/en/agent-teams](https://code.claude.com/docs/en/agent-teams) + +> **Note**: Agent Teams is experimental and disabled by default. Requires Claude Code v2.1.32+. Enable it before use. ### Subagents vs Agent Teams | Aspect | Subagents | Agent Teams | |--------|-----------|-------------| -| **Delegation model** | Parent delegates subtask, waits for result | Team lead assigns work, teammates execute independently | -| **Context** | Fresh context per subtask, results distilled back | Each teammate maintains its own persistent context | +| **Delegation model** | Parent delegates subtask, waits for result | Team lead coordinates work, teammates execute independently | +| **Context** | Fresh context per subtask, results distilled back | Each teammate maintains its own persistent context window | | **Coordination** | Sequential or parallel, managed by parent | Shared task list with automatic dependency management | -| **Communication** | Return values only | Inter-agent messaging via mailbox | +| **Communication** | Results returned to parent only (no inter-agent messaging) | Teammates can message each other directly via mailbox | | **Session resumption** | Supported | Not supported with in-process teammates | -| **Best for** | Focused, well-defined subtasks | Large multi-file projects requiring parallel work | +| **Best for** | Focused, well-defined subtasks | Complex work requiring inter-agent communication and parallel execution | ### Enabling Agent Teams @@ -620,7 +622,7 @@ Control how teammate activity is displayed: | Mode | Flag | Description | |------|------|-------------| | **Auto** | `--teammate-mode auto` | Automatically chooses the best display mode for your terminal | -| **In-process** | `--teammate-mode in-process` | Shows teammate output inline in the current terminal (default) | +| **In-process** (default) | `--teammate-mode in-process` | Shows teammate output inline in the current terminal | | **Split-panes** | `--teammate-mode tmux` | Opens each teammate in a separate tmux or iTerm2 pane | ```bash @@ -1135,7 +1137,6 @@ graph TD - [Hooks Guide](../06-hooks/) - For event-driven automation --- - -*Last updated: March 2026* - -*This guide covers complete subagent configuration, delegation patterns, and best practices for Claude Code.* +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/04-subagents/clean-code-reviewer.md b/04-subagents/clean-code-reviewer.md index 2502b00..508474c 100644 --- a/04-subagents/clean-code-reviewer.md +++ b/04-subagents/clean-code-reviewer.md @@ -64,3 +64,6 @@ Fix: [how to fix] - Skip: generated code, configs, test fixtures **Core Philosophy**: Code is read 10x more than written. Optimize for readability, not cleverness. + +--- +**Last Updated**: April 2026 diff --git a/04-subagents/code-reviewer.md b/04-subagents/code-reviewer.md index ea891af..17d41bb 100644 --- a/04-subagents/code-reviewer.md +++ b/04-subagents/code-reviewer.md @@ -59,3 +59,6 @@ Include specific examples of how to fix issues. - **Issue**: Loop executes database query in each iteration - **Fix**: Use JOIN or batch query - **Impact**: Response time increases linearly with data size + +--- +**Last Updated**: April 2026 diff --git a/04-subagents/data-scientist.md b/04-subagents/data-scientist.md index 86525ba..d8ef712 100644 --- a/04-subagents/data-scientist.md +++ b/04-subagents/data-scientist.md @@ -95,3 +95,6 @@ ORDER BY 1 DESC; - [ ] Results validated - [ ] Findings documented - [ ] Recommendations provided + +--- +**Last Updated**: April 2026 diff --git a/04-subagents/debugger.md b/04-subagents/debugger.md index 44e0cd1..8563007 100644 --- a/04-subagents/debugger.md +++ b/04-subagents/debugger.md @@ -78,3 +78,6 @@ npm test -- --grep "test name" - [ ] Fix implemented - [ ] Tests pass - [ ] No regressions introduced + +--- +**Last Updated**: April 2026 diff --git a/04-subagents/documentation-writer.md b/04-subagents/documentation-writer.md index 7c87d59..193dad3 100644 --- a/04-subagents/documentation-writer.md +++ b/04-subagents/documentation-writer.md @@ -96,3 +96,6 @@ curl -X GET https://api.example.com/api/users/abc123 \ -H "Authorization: Bearer " ``` ``` + +--- +**Last Updated**: April 2026 diff --git a/04-subagents/implementation-agent.md b/04-subagents/implementation-agent.md index 1f24cc8..bd6b1d4 100644 --- a/04-subagents/implementation-agent.md +++ b/04-subagents/implementation-agent.md @@ -76,3 +76,6 @@ Before marking complete: - [ ] No linting errors - [ ] Edge cases handled - [ ] Error handling implemented + +--- +**Last Updated**: April 2026 diff --git a/04-subagents/performance-optimizer.md b/04-subagents/performance-optimizer.md index 0033802..277b2d6 100644 --- a/04-subagents/performance-optimizer.md +++ b/04-subagents/performance-optimizer.md @@ -124,3 +124,6 @@ For each optimization delivered: - [ ] Tests still pass - [ ] Improvement measured and documented - [ ] Monitoring / alerting recommended + +--- +**Last Updated**: April 2026 diff --git a/04-subagents/secure-reviewer.md b/04-subagents/secure-reviewer.md index 91da551..195b6ce 100644 --- a/04-subagents/secure-reviewer.md +++ b/04-subagents/secure-reviewer.md @@ -73,3 +73,6 @@ For each vulnerability: - **Description**: What the vulnerability is - **Risk**: Potential impact if exploited - **Remediation**: How to fix it + +--- +**Last Updated**: April 2026 diff --git a/04-subagents/test-engineer.md b/04-subagents/test-engineer.md index 448b398..9f8e071 100644 --- a/04-subagents/test-engineer.md +++ b/04-subagents/test-engineer.md @@ -72,3 +72,6 @@ describe('Feature: User Authentication', () => { }); }); ``` + +--- +**Last Updated**: April 2026 diff --git a/05-mcp/README.md b/05-mcp/README.md index efc0b96..c2dff16 100644 --- a/05-mcp/README.md +++ b/05-mcp/README.md @@ -217,6 +217,10 @@ When MCP tool descriptions exceed 10% of the context window, Claude Code automat Claude Code supports MCP `list_changed` notifications. When an MCP server dynamically adds, removes, or modifies its available tools, Claude Code receives the update and adjusts its tool list automatically -- no reconnection or restart required. +## MCP Apps + +MCP Apps is the first official MCP extension, enabling MCP tool calls to return interactive UI components that render directly in the chat interface. Instead of plain text responses, MCP servers can deliver rich dashboards, forms, data visualizations, and multi-step workflows -- all displayed inline without leaving the conversation. + ## MCP Elicitation MCP servers can request structured input from the user via interactive dialogs (v2.1.49+). This allows an MCP server to ask for additional information mid-workflow -- for example, prompting for a confirmation, selecting from a list of options, or filling in required fields -- adding interactivity to MCP server interactions. @@ -1110,3 +1114,8 @@ export GITHUB_TOKEN="your_token" - [Code Execution with MCP](https://www.anthropic.com/engineering/code-execution-with-mcp) — Anthropic's engineering blog on solving context bloat - [Claude Code CLI Reference](https://code.claude.com/docs/en/cli-reference) - [Claude API Documentation](https://docs.anthropic.com) + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/06-hooks/README.md b/06-hooks/README.md index 81b057a..af42711 100644 --- a/06-hooks/README.md +++ b/06-hooks/README.md @@ -69,6 +69,14 @@ Hooks are configured in settings files with a specific structure: | Wildcard | Matches all tools | `"*"` or `""` | | MCP tools | Server and tool pattern | `"mcp__memory__.*"` | +**InstructionsLoaded matcher values:** + +| Matcher Value | Description | +|---------------|-------------| +| `session_start` | Instructions loaded at session startup | +| `nested_traversal` | Instructions loaded during nested directory traversal | +| `path_glob_match` | Instructions loaded via path glob pattern matching | + ## Hook Types Claude Code supports four hook types: @@ -143,7 +151,7 @@ Subagent-based verification hooks that spawn a dedicated agent to evaluate condi ## Hook Events -Claude Code supports **25 hook events**: +Claude Code supports **26 hook events**: | Event | When Triggered | Matcher Input | Can Block | Common Use | |-------|---------------|---------------|-----------|------------| @@ -152,6 +160,7 @@ Claude Code supports **25 hook events**: | **UserPromptSubmit** | User submits prompt | (none) | Yes | Validate prompts | | **PreToolUse** | Before tool execution | Tool name | Yes (allow/deny/ask) | Validate, modify inputs | | **PermissionRequest** | Permission dialog shown | Tool name | Yes | Auto-approve/deny | +| **PermissionDenied** | User denies a permission prompt | Tool name | No | Logging, analytics, policy enforcement | | **PostToolUse** | After tool succeeds | Tool name | No | Add context, feedback | | **PostToolUseFailure** | Tool execution fails | Tool name | No | Error handling, logging | | **Notification** | Notification sent | Notification type | No | Custom notifications | @@ -1154,3 +1163,8 @@ Edit `~/.claude/settings.json` or `.claude/settings.json` with the hook configur - **[Official Hooks Documentation](https://code.claude.com/docs/en/hooks)** - Complete hooks reference - **[CLI Reference](https://code.claude.com/docs/en/cli-reference)** - Command-line interface documentation - **[Memory Guide](../02-memory/)** - Persistent context configuration + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/07-plugins/README.md b/07-plugins/README.md index 496462d..ea31b0f 100644 --- a/07-plugins/README.md +++ b/07-plugins/README.md @@ -105,8 +105,9 @@ my-plugin/ ├── hooks/ # Event handlers in hooks.json │ └── hooks.json ├── .mcp.json # MCP server configurations -├── .lsp.json # LSP server configurations -├── settings.json # Default settings +├── .lsp.json # LSP server configurations for code intelligence +├── bin/ # Executables added to Bash tool's PATH while plugin is enabled +├── settings.json # Default settings applied when plugin is enabled (currently only `agent` key supported) ├── templates/ │ └── issue-template.md ├── scripts/ @@ -533,7 +534,7 @@ GitHub and git sources support optional `ref` (branch/tag) and `sha` (commit has **Private repositories**: Supported via git credential helpers or environment tokens. Users must have read access to the repository. -**Official marketplace submission**: Submit plugins to the Anthropic-curated marketplace for broader distribution. +**Official marketplace submission**: Submit plugins to the Anthropic-curated marketplace for broader distribution via [claude.ai/settings/plugins/submit](https://claude.ai/settings/plugins/submit) or [platform.claude.com/plugins/submit](https://platform.claude.com/plugins/submit). ### Strict mode @@ -941,3 +942,8 @@ The following Claude Code features work together with plugins: - [MCP Server Reference](https://modelcontextprotocol.io/) - [Subagent Configuration Guide](../04-subagents/README.md) - [Hook System Reference](../06-hooks/README.md) + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/08-checkpoints/README.md b/08-checkpoints/README.md index 24306f8..616bcd8 100644 --- a/08-checkpoints/README.md +++ b/08-checkpoints/README.md @@ -50,9 +50,11 @@ When you rewind, you are presented with a menu of five options: 1. **Restore code and conversation** -- Revert both files and messages to that checkpoint 2. **Restore conversation** -- Rewind messages only, keep your current code as-is 3. **Restore code** -- Revert file changes only, keep the full conversation history -4. **Summarize from here** -- Compress the conversation from this point forward into an AI-generated summary instead of discarding it. The original messages are preserved in the transcript. You can optionally provide instructions to focus the summary on specific topics. +4. **Summarize from here** -- Compress the conversation from this point forward into an AI-generated summary, freeing context window space. Messages before the selected point stay intact. No files on disk are changed. The original messages are preserved in the session transcript. You can optionally provide instructions to focus the summary on specific topics. 5. **Never mind** -- Cancel and return to the current state +> **Note**: After restoring the conversation or summarizing, the original prompt from the selected message is restored into the input field so you can re-send or edit it. + ## Automatic Checkpoints Claude Code automatically creates checkpoints for you: @@ -311,3 +313,8 @@ Key benefits: - Integrate safely with version control systems Remember: checkpoints are not a replacement for git. Use checkpoints for rapid experimentation and git for permanent code changes. + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/08-checkpoints/checkpoint-examples.md b/08-checkpoints/checkpoint-examples.md index 0707952..affb014 100644 --- a/08-checkpoints/checkpoint-examples.md +++ b/08-checkpoints/checkpoint-examples.md @@ -337,3 +337,6 @@ User: Now let's continue with the approach that worked. 4. **Don't fear experimentation**: Checkpoints make it safe to try radical changes 5. **Combine with git**: Use checkpoints for exploration, git for finalized work 6. **Summarize long sessions**: Use "Summarize from here" to keep conversations manageable + +--- +**Last Updated**: April 2026 diff --git a/09-advanced-features/README.md b/09-advanced-features/README.md index 6dcabd3..c2543c2 100644 --- a/09-advanced-features/README.md +++ b/09-advanced-features/README.md @@ -31,8 +31,9 @@ Comprehensive guide to Claude Code's advanced capabilities including planning mo 20. [Sandboxing](#sandboxing) 21. [Managed Settings (Enterprise)](#managed-settings-enterprise) 22. [Configuration and Settings](#configuration-and-settings) -23. [Best Practices](#best-practices) -24. [Additional Resources](#additional-resources) +23. [Agent Teams](#agent-teams) +24. [Best Practices](#best-practices) +25. [Additional Resources](#additional-resources) --- @@ -196,6 +197,10 @@ claude --model opusplan "design and implement the new API" **Edit plan externally**: Press `Ctrl+G` to open the current plan in your external editor for detailed modifications. +### Ultraplan + +Use `/ultraplan ` for an end-to-end planning workflow: Claude drafts a detailed plan, opens it in the browser for review, then executes the plan either remotely or sends it back to your terminal for local execution. + --- ## Extended Thinking @@ -347,8 +352,9 @@ Auto Mode is a Research Preview permission mode (March 2026) that uses a backgro ### Requirements -- **Plan**: Team plan (Enterprise and API rolling out) +- **Plan**: Team, Enterprise, or API (not available on Pro or Max plans) - **Model**: Claude Sonnet 4.6 or Opus 4.6 +- **Provider**: Anthropic API only (not supported on Bedrock, Vertex, or Foundry) - **Classifier**: Runs on Claude Sonnet 4.6 (adds extra token cost) ### Enabling Auto Mode @@ -1170,13 +1176,16 @@ Customize the push-to-talk keybinding in your keybindings file (`/keybindings`). ## Channels -Channels (Research Preview) allow MCP servers to push messages into running Claude Code sessions, enabling real-time integrations with external services. +Channels is a Research Preview feature that pushes events from external services into a running Claude Code session via MCP servers. Sources include Telegram, Discord, iMessage, and arbitrary webhooks, allowing Claude to react to real-time notifications without polling. ### Subscribing to Channels ```bash # Subscribe to channel plugins at startup claude --channels discord,telegram + +# Subscribe to multiple sources +claude --channels discord,telegram,imessage,webhooks ``` ### Supported Integrations @@ -1185,10 +1194,12 @@ claude --channels discord,telegram |-------------|-------------| | **Discord** | Receive and respond to Discord messages in your session | | **Telegram** | Receive and respond to Telegram messages in your session | +| **iMessage** | Receive iMessage notifications in your session | +| **Webhooks** | Receive events from arbitrary webhook sources | ### Configuration -**Managed setting** for enterprise deployments: +Configure channels with the `--channels` flag at startup. For enterprise deployments, use the managed setting to control which channel plugins are permitted: ```json { @@ -1201,9 +1212,10 @@ The `allowedChannelPlugins` managed setting controls which channel plugins are p ### How It Works 1. MCP servers act as channel plugins that connect to external services -2. Incoming messages are pushed into the active Claude Code session +2. Incoming messages and events are pushed into the active Claude Code session 3. Claude can read and respond to messages within the session context 4. Channel plugins must be approved via the `allowedChannelPlugins` managed setting +5. No polling required — events are pushed in real time --- @@ -1759,12 +1771,12 @@ export ENABLE_TOOL_SEARCH=true export CLAUDE_CODE_TASK_LIST_ID=my-project-tasks # Agent teams (experimental) -export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true +export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 # Subagent and plugin configuration export CLAUDE_CODE_SUBAGENT_MODEL=sonnet export CLAUDE_CODE_PLUGIN_SEED_DIR=./my-plugins -export CLAUDE_CODE_NEW_INIT=true +export CLAUDE_CODE_NEW_INIT=1 # Subprocess and streaming export CLAUDE_CODE_SUBPROCESS_ENV_SCRUB="SECRET_KEY,DB_PASSWORD" @@ -1814,6 +1826,62 @@ Create `.claude/config.json` in your project: --- +## Agent Teams + +Agent Teams is an experimental feature that enables multiple Claude Code instances to collaborate on a task. It is disabled by default. + +### Enabling Agent Teams + +Enable via environment variable or settings: + +```bash +# Environment variable +export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 +``` + +Or add to your settings JSON: + +```json +{ + "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" +} +``` + +### How Agent Teams Work + +- A **team lead** coordinates the overall task and delegates subtasks to teammates +- **Teammates** work independently, each with their own context window +- A **shared task list** enables self-coordination between team members +- Use subagent definitions (`.claude/agents/` or `--agents` flag) to define teammate roles and specializations + +### Display Modes + +Agent Teams support two display modes, configured with the `--teammate-mode` flag: + +| Mode | Description | +|------|-------------| +| `in-process` (default) | Teammates run within the same terminal process | +| `tmux` | Each teammate gets a dedicated split pane (requires tmux or iTerm2) | +| `auto` | Automatically selects the best display mode | + +```bash +# Use tmux split panes for teammate display +claude --teammate-mode tmux + +# Explicitly use in-process mode +claude --teammate-mode in-process +``` + +### Use Cases + +- Large refactoring tasks where different teammates handle different modules +- Parallel code review and implementation +- Coordinated multi-file changes across a codebase + +> **Note**: Agent Teams is experimental and may change in future releases. See [code.claude.com/docs/en/agent-teams](https://code.claude.com/docs/en/agent-teams) for the full reference. + +--- + ## Best Practices ### Planning Mode @@ -1869,3 +1937,9 @@ For more information about Claude Code and related features: - [Official Remote Control Documentation](https://code.claude.com/docs/en/remote-control) - [Official Keybindings Documentation](https://code.claude.com/docs/en/keybindings) - [Official Desktop App Documentation](https://code.claude.com/docs/en/desktop) +- [Official Agent Teams Documentation](https://code.claude.com/docs/en/agent-teams) + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/09-advanced-features/planning-mode-examples.md b/09-advanced-features/planning-mode-examples.md index e6afdfb..7523217 100644 --- a/09-advanced-features/planning-mode-examples.md +++ b/09-advanced-features/planning-mode-examples.md @@ -531,3 +531,6 @@ Proceed with this plan? (yes/no/modify) 5. **Include rollback** strategies 6. **Add success** criteria 7. **Plan for testing** at each phase + +--- +**Last Updated**: April 2026 diff --git a/10-cli/README.md b/10-cli/README.md index 1003c2e..c15e84e 100644 --- a/10-cli/README.md +++ b/10-cli/README.md @@ -314,6 +314,7 @@ The original session remains unchanged, and the fork becomes a new independent s | `--effort` | Set thinking effort level | `claude --effort high` | | `--bare` | Minimal mode (skip hooks, skills, plugins, MCP, auto memory, CLAUDE.md) | `claude --bare` | | `--channels` | Subscribe to MCP channel plugins | `claude --channels discord` | +| `--tmux` | Create tmux session for worktree | `claude --tmux` | | `--fork-session` | Create new session ID when resuming | `claude --resume abc --fork-session` | | `--max-budget-usd` | Maximum spend (print mode) | `claude -p --max-budget-usd 5.00 "query"` | | `--json-schema` | Validated JSON output | `claude -p --json-schema '{"type":"object"}' "q"` | @@ -829,3 +830,8 @@ claude -p --output-format json "query" --- *Part of the [Claude How To](../) guide series* + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ +**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/CATALOG.md b/CATALOG.md index 9350b98..92244a7 100644 --- a/CATALOG.md +++ b/CATALOG.md @@ -515,4 +515,5 @@ chmod +x ~/.claude/hooks/*.sh --- -**Last Updated**: March 2026 +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 9ea6d7f..4d7a1fc 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -215,3 +215,6 @@ If you have questions about this Code of Conduct, please reach out to the projec --- **Thank you for helping us create a welcoming, inclusive, and respectful community!** 🌟 + +--- +**Last Updated**: April 2026 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c8a7a1..cec4c59 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -376,3 +376,6 @@ By contributing to this project, you agree that your contributions will be licen - Open an issue for discussion Thank you for contributing! 🙏 + +--- +**Last Updated**: April 2026 diff --git a/INDEX.md b/INDEX.md index 704a75e..471394c 100644 --- a/INDEX.md +++ b/INDEX.md @@ -874,7 +874,8 @@ Want to add more examples? Follow the structure: --- -**Last Updated**: March 2026 +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ **Total Examples**: 100+ files **Categories**: 10 features **Hooks**: 8 automation scripts diff --git a/LEARNING-ROADMAP.md b/LEARNING-ROADMAP.md index dfc27c3..7ededdb 100644 --- a/LEARNING-ROADMAP.md +++ b/LEARNING-ROADMAP.md @@ -738,7 +738,8 @@ Once you've completed all milestones: --- -**Last Updated**: March 2026 +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ **Maintained by**: Claude How-To Contributors **License**: Educational purposes, free to use and adapt diff --git a/QUICK_REFERENCE.md b/QUICK_REFERENCE.md index f81759b..d0a8474 100644 --- a/QUICK_REFERENCE.md +++ b/QUICK_REFERENCE.md @@ -504,3 +504,7 @@ Getting started checklist: **Full Index**: `cat INDEX.md` **This Card**: Keep it handy for quick reference! + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ diff --git a/README.md b/README.md index 86914e1..bac296e 100644 --- a/README.md +++ b/README.md @@ -878,6 +878,6 @@ MIT License - see [LICENSE](LICENSE). Free to use, modify, and distribute. The o --- -**Last Updated**: March 2026 +**Last Updated**: April 2026 **Claude Code Version**: 2.1+ **Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5 diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 8fac2cb..bfd2395 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -6,3 +6,6 @@ - Add `sandboxed` and `pycache` to cSpell dictionary (dc64618) **Full Changelog**: https://github.com/luongnv89/claude-howto/compare/v2.1.0...v2.1.1 + +--- +**Last Updated**: April 2026 diff --git a/STYLE_GUIDE.md b/STYLE_GUIDE.md index 1d30dcc..7c2aca0 100644 --- a/STYLE_GUIDE.md +++ b/STYLE_GUIDE.md @@ -628,3 +628,6 @@ Before submitting content, verify: - [ ] Paragraphs are short and focused - [ ] Related guides section links to relevant lessons - [ ] Commit message follows conventional commits format + +--- +**Last Updated**: April 2026 diff --git a/claude_concepts_guide.md b/claude_concepts_guide.md index a13f2db..8fb8083 100644 --- a/claude_concepts_guide.md +++ b/claude_concepts_guide.md @@ -3126,6 +3126,10 @@ Complete configuration example: --- -*Last updated: March 2026* +*Last updated: April 2026* *For Claude Haiku 4.5, Sonnet 4.6, and Opus 4.6* *Now includes: Hooks, Checkpoints, Planning Mode, Extended Thinking, Background Tasks, Permission Modes (6 modes), Headless Mode, Session Management, Auto Memory, Agent Teams, Scheduled Tasks, Chrome Integration, Channels, Voice Dictation, and Bundled Skills* + +--- +**Last Updated**: April 2026 +**Claude Code Version**: 2.1+ diff --git a/clean-code-rules.md b/clean-code-rules.md index 3524aa0..de1aef6 100644 --- a/clean-code-rules.md +++ b/clean-code-rules.md @@ -106,3 +106,6 @@ These rules guide code generation to produce maintainable, professional-quality --- **Core Philosophy**: Code is read 10x more than written. Optimize for readability and maintainability, not cleverness. + +--- +**Last Updated**: April 2026 diff --git a/resources.md b/resources.md index e9118c7..b8e4660 100644 --- a/resources.md +++ b/resources.md @@ -246,3 +246,6 @@ These steps capture the core recommendations for smooth workflows with Claude Co | **Scheduled Tasks** | Set up recurring tasks with `/loop` and cron tools | [Advanced Features](09-advanced-features/) | | **Chrome Integration** | Browser automation with headless Chromium | [Advanced Features](09-advanced-features/) | | **Keyboard Customization** | Customize keybindings including chord sequences | [Advanced Features](09-advanced-features/) | + +--- +**Last Updated**: April 2026 diff --git a/vi/01-slash-commands/README.md b/vi/01-slash-commands/README.md index a45baea..cc62d3b 100644 --- a/vi/01-slash-commands/README.md +++ b/vi/01-slash-commands/README.md @@ -46,7 +46,7 @@ Lệnh tích hợp sẵn là các lối tắt cho các hành động phổ biế | `/help` | Hiển thị trợ giúp | | `/hooks` | Xem cấu hình hooks | | `/ide` | Quản lý tích hợp IDE | -| `/init` | Khởi tạo `CLAUDE.md`. Đặt `CLAUDE_CODE_NEW_INIT=true` cho quy trình tương tác | +| `/init` | Khởi tạo `CLAUDE.md`. Đặt `CLAUDE_CODE_NEW_INIT=1` cho quy trình tương tác | | `/insights` | Tạo báo cáo phân tích phiên | | `/install-github-app` | Thiết lập ứng dụng GitHub Actions | | `/install-slack-app` | Cài đặt ứng dụng Slack | diff --git a/vi/02-memory/README.md b/vi/02-memory/README.md index 5d07b87..269b1ba 100644 --- a/vi/02-memory/README.md +++ b/vi/02-memory/README.md @@ -49,10 +49,10 @@ Lệnh `/init` là cách nhanh nhất để thiết lập bộ nhớ dự án tr - Thiết lập nền tảng cho tính liên tục của bối cảnh qua các phiên - Cung cấp cấu trúc mẫu để ghiêu chuẩn dự án của bạn -**Chế độ tương tác nâng cao:** Đặt `CLAUDE_CODE_NEW_INIT=true` để bật quy trình tương tác đa giai đoạn hướng dẫn bạn qua việc thiết lập dự án từng bước: +**Chế độ tương tác nâng cao:** Đặt `CLAUDE_CODE_NEW_INIT=1` để bật quy trình tương tác đa giai đoạn hướng dẫn bạn qua việc thiết lập dự án từng bước: ```bash -CLAUDE_CODE_NEW_INIT=true claude +CLAUDE_CODE_NEW_INIT=1 claude /init ``` diff --git a/vi/09-advanced-features/README.md b/vi/09-advanced-features/README.md index 6dcabd3..817d597 100644 --- a/vi/09-advanced-features/README.md +++ b/vi/09-advanced-features/README.md @@ -1759,12 +1759,12 @@ export ENABLE_TOOL_SEARCH=true export CLAUDE_CODE_TASK_LIST_ID=my-project-tasks # Agent teams (experimental) -export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true +export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 # Subagent and plugin configuration export CLAUDE_CODE_SUBAGENT_MODEL=sonnet export CLAUDE_CODE_PLUGIN_SEED_DIR=./my-plugins -export CLAUDE_CODE_NEW_INIT=true +export CLAUDE_CODE_NEW_INIT=1 # Subprocess and streaming export CLAUDE_CODE_SUBPROCESS_ENV_SCRUB="SECRET_KEY,DB_PASSWORD" diff --git a/zh/01-slash-commands/README.md b/zh/01-slash-commands/README.md index 29f4523..910a1ec 100644 --- a/zh/01-slash-commands/README.md +++ b/zh/01-slash-commands/README.md @@ -46,7 +46,7 @@ Claude Code 目前提供 55+ 个内置命令和 5 个内置 Skills。你可以 | `/help` | 显示帮助 | | `/hooks` | 查看 hook 配置 | | `/ide` | 管理 IDE 集成 | -| `/init` | 初始化 `CLAUDE.md`,可设置 `CLAUDE_CODE_NEW_INIT=true` 启用交互式流程 | +| `/init` | 初始化 `CLAUDE.md`,可设置 `CLAUDE_CODE_NEW_INIT=1` 启用交互式流程 | | `/insights` | 生成会话分析报告 | | `/install-github-app` | 配置 GitHub Actions app | | `/install-slack-app` | 安装 Slack app |