mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-07-07 11:17:48 +02:00
docs: sync to Claude Code v2.1.195
This commit is contained in:
+7
-2
@@ -181,6 +181,11 @@ If your MCP server returns errors on the standard OAuth metadata endpoint (`/.we
|
||||
|
||||
The URL must use `https://`. This option requires Claude Code v2.1.64 or later.
|
||||
|
||||
#### Authentication Startup Notice and Dynamic-Header Refresh (v2.1.193)
|
||||
|
||||
- **Startup auth notice (v2.1.193+)**: At startup, Claude Code surfaces a notice listing any MCP servers that still need authentication, so a server that needs a login isn't left silently non-working.
|
||||
- **`headersHelper` auto-refresh (v2.1.193+)**: If you supply custom auth via a `headersHelper`, the helper is re-invoked automatically when a server returns HTTP 401 or 403. Credentials refresh on the fly without a manual reconnect. See [Use dynamic headers for custom authentication](https://code.claude.com/docs/en/mcp).
|
||||
|
||||
### Claude.ai MCP Connectors
|
||||
|
||||
MCP servers configured in your Claude.ai account are automatically available in Claude Code. This means any MCP connections you set up through the Claude.ai web interface will be accessible without additional configuration.
|
||||
@@ -1178,8 +1183,8 @@ export GITHUB_TOKEN="your_token"
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: June 24, 2026
|
||||
**Claude Code Version**: 2.1.187
|
||||
**Last Updated**: June 28, 2026
|
||||
**Claude Code Version**: 2.1.195
|
||||
**Sources**:
|
||||
- https://code.claude.com/docs/en/mcp
|
||||
- https://code.claude.com/docs/en/changelog
|
||||
|
||||
+5
-2
@@ -66,9 +66,12 @@ Hooks are configured in settings files with a specific structure:
|
||||
|---------|-------------|---------|
|
||||
| Exact string | Matches specific tool | `"Write"` |
|
||||
| Regex pattern | Matches multiple tools | `"Edit\|Write"` |
|
||||
| Comma-separated | Matches any listed tool (v2.1.191+) | `"Write,Edit"` |
|
||||
| Wildcard | Matches all tools | `"*"` or `""` |
|
||||
| MCP tools | Server and tool pattern | `"mcp__memory__.*"` |
|
||||
|
||||
> **Matchers are matched exactly (v2.1.195+).** A hyphenated identifier (for example an MCP tool name containing a hyphen) no longer accidentally substring-matches a different tool. Comma-separated matchers like `"Write,Edit"` fire on any tool in the list — earlier builds silently never fired them.
|
||||
|
||||
**InstructionsLoaded matcher values:**
|
||||
|
||||
| Matcher Value | Description |
|
||||
@@ -1499,8 +1502,8 @@ Edit `~/.claude/settings.json` or `.claude/settings.json` with the hook configur
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: June 15, 2026
|
||||
**Claude Code Version**: 2.1.176
|
||||
**Last Updated**: June 28, 2026
|
||||
**Claude Code Version**: 2.1.195
|
||||
**Sources**:
|
||||
- https://code.claude.com/docs/en/hooks
|
||||
- https://code.claude.com/docs/en/permissions
|
||||
|
||||
@@ -737,6 +737,8 @@ claude plugin install plugin-name@marketplace-name
|
||||
/plugin disable plugin-name
|
||||
```
|
||||
|
||||
The `/plugin` interface surfaces unused plugins so you can clean them up (v2.1.187+). Enable/disable also works when a plugin's `plugin.json` `name` differs from its marketplace entry name (v2.1.195+).
|
||||
|
||||
### Listing installed plugins (v2.1.163)
|
||||
Confirm which plugins are active in the current session:
|
||||
```bash
|
||||
@@ -1118,8 +1120,8 @@ The following Claude Code features work together with plugins:
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: June 17, 2026
|
||||
**Claude Code Version**: 2.1.179
|
||||
**Last Updated**: June 28, 2026
|
||||
**Claude Code Version**: 2.1.195
|
||||
**Sources**:
|
||||
- https://code.claude.com/docs/en/plugins
|
||||
- https://code.claude.com/docs/en/changelog#2-1-172
|
||||
|
||||
@@ -55,6 +55,8 @@ When you rewind, you are presented with a menu of five options:
|
||||
|
||||
> **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.
|
||||
|
||||
> **`/clear` is no longer a hard boundary (v2.1.191+)**: `/rewind` can resume from a checkpoint taken *before* you ran `/clear`. Clearing the conversation no longer permanently discards the state that preceded it — you can rewind back across the clear if you need that earlier code or context again.
|
||||
|
||||
## Automatic Checkpoints
|
||||
|
||||
Claude Code automatically creates checkpoints for you:
|
||||
@@ -325,8 +327,8 @@ Remember: checkpoints are not a replacement for git. Use checkpoints for rapid e
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: June 2, 2026
|
||||
**Claude Code Version**: 2.1.160
|
||||
**Last Updated**: June 28, 2026
|
||||
**Claude Code Version**: 2.1.195
|
||||
**Sources**:
|
||||
- https://code.claude.com/docs/en/checkpointing
|
||||
- https://code.claude.com/docs/en/settings
|
||||
|
||||
@@ -526,6 +526,20 @@ Since v2.1.118, `autoMode.allow`, `autoMode.soft_deny`, and `autoMode.environmen
|
||||
|
||||
Use `"$defaults"` to keep the shipped baseline rules while layering organization- or project-specific additions on top.
|
||||
|
||||
#### Classifying every shell command with `autoMode.classifyAllShell` (v2.1.193)
|
||||
|
||||
`autoMode.classifyAllShell` (boolean, v2.1.193+) routes **all** Bash/PowerShell commands through the auto-mode classifier. Enable it when you want the classifier to inspect every shell command in the session.
|
||||
|
||||
```json
|
||||
{
|
||||
"autoMode": {
|
||||
"classifyAllShell": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The same release surfaces a **denial reason** when auto mode blocks an action — visible in the transcript, the denial toast, and the recently-denied list under `/permissions` (v2.1.193+).
|
||||
|
||||
#### Built-in intent-based protection (v2.1.183)
|
||||
|
||||
Separate from user-configured `hard_deny`, auto mode blocks the following destructive commands by default unless you explicitly asked for them this session:
|
||||
@@ -1149,6 +1163,8 @@ When you return to a session after being away, Claude can show a brief recap of
|
||||
|
||||
> **OTEL telemetry — re-enable feedback survey (v2.1.136+)**: Organizations capturing OpenTelemetry data can re-enable Anthropic's session-quality survey by setting `CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL=1`. The survey is off by default in OTEL deployments because it was previously redirected away from telemetry pipelines.
|
||||
|
||||
> **OTEL telemetry — `assistant_response` log event (v2.1.193+)**: Claude Code emits a `claude_code.assistant_response` OpenTelemetry log event carrying the model's response text, letting OTEL pipelines capture what Claude said alongside the existing tool/event telemetry.
|
||||
|
||||
**Control recap behavior:**
|
||||
|
||||
```bash
|
||||
@@ -1381,6 +1397,8 @@ Execute shell commands directly with `!` prefix:
|
||||
|
||||
Use this for quick command execution without switching contexts.
|
||||
|
||||
**Since v2.1.193:** bash mode (`!`) has live file-path autocomplete, so paths complete as you type your shell command without leaving the prompt.
|
||||
|
||||
**Since v2.1.186:** the output of a `!` command is now automatically sent to Claude, which responds to it. To keep the previous behavior where the output is only added to context without a response, set `"respondToBashCommands": false` in `settings.json`.
|
||||
|
||||
---
|
||||
@@ -2353,8 +2371,8 @@ For more information about Claude Code and related features:
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: June 24, 2026
|
||||
**Claude Code Version**: 2.1.187
|
||||
**Last Updated**: June 28, 2026
|
||||
**Claude Code Version**: 2.1.195
|
||||
**Sources**:
|
||||
- https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
|
||||
- https://docs.anthropic.com/en/docs/claude-code/settings
|
||||
|
||||
+4
-2
@@ -813,6 +813,7 @@ The "ultrathink" keyword in prompts activates deep reasoning. The `/effort` menu
|
||||
| `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` | Disable git-related instructions |
|
||||
| `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` | Disable terminal title updates |
|
||||
| `CLAUDE_CODE_DISABLE_1M_CONTEXT` | Disable 1M token context window |
|
||||
| `CLAUDE_CODE_DISABLE_MOUSE_CLICKS` | Disable mouse click/drag/hover in fullscreen mode; wheel scroll still works (v2.1.195+) |
|
||||
| `CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK` | Disable non-streaming fallback |
|
||||
| `CLAUDE_CODE_ENABLE_TASKS` | Enable task list feature |
|
||||
| `CLAUDE_CODE_TASK_LIST_ID` | Named task directory shared across sessions |
|
||||
@@ -974,10 +975,11 @@ claude -p --output-format json "query"
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: June 24, 2026
|
||||
**Claude Code Version**: 2.1.187
|
||||
**Last Updated**: June 28, 2026
|
||||
**Claude Code Version**: 2.1.195
|
||||
**Sources**:
|
||||
- https://code.claude.com/docs/en/cli-reference
|
||||
- https://code.claude.com/docs/en/env-vars
|
||||
- https://code.claude.com/docs/en/changelog#2-1-174
|
||||
- https://code.claude.com/docs/en/changelog#2-1-176
|
||||
- https://code.claude.com/docs/en/changelog
|
||||
|
||||
Reference in New Issue
Block a user