跳转至

实例、关系与边界

本体当前规模:26 个类、5384 个实例、11029 条关系、9 条边界规则。

TBox:类层次、对象属性、数据属性与公理;ABox:实例类型、实例间关系与边界条目。关系可沿 source → relation → target 查询,instance_of 边用于从类检索全部实例。社区逆向来源条目以 unverified-community-source 标记,仅记主题与可信度,不收录内部实现细节。

产品/运行形态

ID 名称 许可证状态 摘要
claude_code_cli Claude Code CLI proprietary-all-rights-reserved 官方命令行代理编码工具,读取代码库、编辑文件、执行命令并协作 Git 工作流。
claude_code_ide_extensions Claude Code IDE / Desktop / Web Surfaces proprietary-all-rights-reserved 同一 Claude Code 引擎在 IDE、桌面应用、Web 和移动端呈现的交互界面。
chan_remote_control Remote Control 跨设备会话遥控 proprietary-all-rights-reserved 手机或浏览器连接会话,跟随分支切换;会话不绑定单一运行形态
chan_dispatch Dispatch 任务派发通道 proprietary-all-rights-reserved 从手机派发任务并在桌面应用打开对应会话
chan_channels Channels 事件接入通道 proprietary-all-rights-reserved Telegram/Discord/iMessage/Webhook 等外部事件推入会话
managed_agents Managed Agents 托管代理 proprietary-model-weights-not-published Anthropic 托管的代理 harness,运行代理循环;会话位于 Anthropic 托管云沙箱或自托管沙箱;可经语言 SDK、ant CLI 或 REST API 调用。
community_reimpl 社区第三方重实现项目(非 Anthropic 官方) third-party-open-source 泄露事件后出现的第三方 Python/Rust 复刻与逆向工具;与官方 CLI/SDK 无授权关系;许可证以各项目仓库为准
team_split_pane_mode Agent Teams 分屏面板模式(tmux / iTerm2) official-public-document-entry 队友可在独立分屏面板展示;分屏模式需要 tmux 或 iTerm2 CLI/Python API 环境,默认 in-process 模式不依赖分屏终端。
sdk_comparison_cli_client_managed Agent SDK / CLI / Client SDK / Managed Agents 选型比较 official-document-derived-entry 官方概览按运行者、内置能力与接入方式区分 Agent SDK、CLI、Client SDK 与 Managed Agents;Agent SDK 在自有进程内运行 Claude Code 二进制;其他语言驱动同一 agent loop 可经 CLI 子进程 -p 与 JSON 输出衔接。
doc_team_teammate_early_stop_recovery 队友遇错提前停止的恢复与替换边界 proprietary-all-rights-reserved 队友遇到错误后可能停止而不是自动恢复;可在代理面板查看输出后追加指令,或派生替换队友继续工作;进程内等待重试的队友收到消息会立即重试。
doc_desktop_platform_installers Claude Desktop 平台安装包:macOS / Windows / Linux beta proprietary-all-rights-reserved 官方 Desktop 下载条目覆盖 macOS Universal(Intel 与 Apple Silicon)、Windows x64、Windows ARM64 安装器,以及 Linux beta 的 apt/.deb 包;安装包分发条款不等同于开源许可。
entry_2_1_321_remote_control_settings_file_argument claude remote-control --settings:为启动的每个会话应用设置文件 official-document-derived-entry claude remote-control 支持 --settings ;该设置文件应用到其启动的每个会话。文件变更后,在重启 remote-control 之前不会启动新会话。
doc_managed_agents_runner_ownership_boundary Managed Agents 运行主体与内置能力选型边界 official-public-docs-derived Agent SDK、CLI、Client SDK 与 Managed Agents 的区别在于谁运行代理、内置哪些能力以及接入方式;Managed Agents 表示由托管侧运行代理,与进程内嵌入应用的 SDK 形态区分。
doc_deployment_claude_for_teams Claude for Teams: self-service team deployment with collaboration, SSO, billing and server-managed settings official-public-docs-derived Official deployment option: Claude for Teams is self-service and targets smaller teams that start quickly. Members share one subscription for Claude Code and Claude on the web, centralized billing and no infrastructure setup; the option includes collaboration features, admin tools, SSO, billing management and server-managed settings for organization-wide Claude Code configuration. This records the public product deployment boundary; it does not expose internal account provisioning, billing internals or SSO implementation.
doc_deployment_claude_for_enterprise Claude for Enterprise: domain capture, role-based permissions and compliance API access official-public-docs-derived Official deployment option: Claude for Enterprise targets larger organizations and extends the Teams-style organization offering with domain capture, role-based permissions and compliance API access. The entry records these public administrative and compliance boundaries; permission enforcement, directory sync and API internals are not modeled beyond what the public deployment comparison states.
doc_deployment_anthropic_console Anthropic Console deployment: individual-developer PAYG option with Console sign-in or API key official-public-docs-derived Official deployment comparison row: Anthropic Console is the individual-developer pay-as-you-go option. Authentication can use an API key or a Console sign-in without an API key; cost tracking uses the usage dashboard. This entry separates Console access from Teams/Enterprise organization administration and cloud-provider deployment rows; it does not infer SSO or enterprise policy management for this option.
review_plan_team_enterprise_eligibility Code Review availability requires Team or Enterprise plan official-public-docs-derived Official Code Review availability documentation: plans supported are Team and Enterprise; local /code-review remains available on other plans as a session review rather than the managed service.
doc_ultrareview_pricing_free_run_allocation UltraReview premium usage-credit billing: three one-time free Pro/Max/Ultra runs, then size-dependent credits official-public-document UltraReview bills against usage credits rather than the plan's included usage. Pro, Max and Ultra each receive three free runs once per account; the allotment does not refresh. After free runs, reviews typically cost five to twenty-five usage credits depending on change size, matching the launch-dialog estimate. A cloud-session start counts the run; an early-stopped or failed review still uses a free run, while a paid review bills only for the portion that ran. Usage credits must be enabled before a paid review can launch.
doc_web_cloud_session_parallel_repo_clone_non_steered_tasks Cloud web sessions: independent parallel sessions/branches, fresh clone per session for local-absent repos, suitable for well-defined low-steering tasks official-public-documentation-entry 云端 Web 会话按独立任务运行各自会话与分支;本地不存在的仓库每次会话全新克隆;适合定义清晰、不需频繁干预的任务,结果再由用户审阅迭代。
doc_cli_command_surface_reference Claude Code CLI command surface: interactive prompt, headless query, pipe, continue, resume and update commands official-public-docs-derived Official CLI reference documents the command surface: claude starts an interactive session; claude "query" starts with an initial prompt; claude -p runs a query through the SDK and exits; piped content can feed claude -p; claude -c continues the most recent conversation in the current directory; claude -r resumes by session ID or name; claude update updates the installed CLI. This entry records the documented command surface only, not internal CLI process wiring.
doc_project_when_to_use Projects: when a standing project coordinator fits ongoing multi-thread work official-public-docs-derived Projects documentation defines the use case for a persistent project that coordinates ongoing work across threads; standalone sessions, workflows and other tools remain separate when they fit better.
doc_project_create Project creation: start a new project or continue from an existing session official-public-docs-derived Projects can be created from scratch or started from an existing session; creation follows prerequisites, repository access and the official project setup flow.
doc_claude_ship_agent_trio_overview Claude Ship: Code Review, PR Steward and Claude Approvals agent trio for GitHub pull requests official-public-docs-derived Official Claude Ship page: Ship is a set of agents that help prepare team GitHub pull requests for merge. Code Review flags logic errors, security vulnerabilities and broken edge cases; PR Steward works on review feedback and failing checks and pushes fix commits; Claude Approvals checks the PR against an approval policy the team writes. Together they can take a PR through review, fixes and an approval decision; what merges is determined by settings and GitHub branch rules. Ship is available on Team and Enterprise plans; Code Review is generally available while PR Steward and Claude Approvals are in public beta; the agents are unavailable to organizations with Zero Data Retention enabled, HIPAA configuration applied, or customer-managed encryption keys. PR Steward is designed not to approve or merge pull requests. The local /ship command reviews and fixes one of the user's own PRs. The entry records the documented trio scope, availability and merge-governance boundary.
doc_enterprise_deployment_comparison 企业部署选项比较矩阵:Teams/Enterprise、Console、Bedrock、AWS Platform、Agent Platform、Foundry official-public-documentation-entry 官方第三方集成(企业部署概览)文档:组织可经 Anthropic 直接或云提供商部署 Claude Code;比较表覆盖 Teams/Enterprise、Anthropic Console、Amazon Bedrock、Claude Platform on AWS、Google Cloud Agent Platform(原 Vertex AI)与 Microsoft Foundry,各自标注适用对象与计费方式。该条目记录部署选项比较矩阵的分组边界;各具体部署行与模型服务依赖由既有 Teams/Enterprise/Console/Bedrock/Vertex/Foundry 条目承载,不推断未公开的提供商内部映射。
product_gemini_app Gemini App organization-consumer-product-entry Gemini App 是面向普通用户的 Gemini 消费者产品形态,在网页与移动端提供对话、图像生成(Nano Banana)等能力;与开发者 API、AI Studio 和企业 Agent Platform 通道区分建模。
product_notebooklm NotebookLM organization-consumer-product-entry NotebookLM 是 Google 基于个人导入资料做笔记、问答与来源引用的消费者产品;属于 Gemini 品牌消费者侧产品,不等同于开发者模型 API 或编码代理。
product_antigravity Google Antigravity (App / CLI / IDE / SDK) organization-agent-platform-entry-verify-terms Antigravity 是 Google 的代理开发平台,提供桌面 App、终端 CLI、Agent 原生 IDE 与 Python SDK 四类表面;共享代理底座,支持并行本地子代理、可视化产物、MCP/技能集成与安全默认执行。
product_chatgpt_app ChatGPT 消费级应用(Web / 桌面 / 移动) organization-public-product-entry ChatGPT 面向个人用户的对话产品通道,覆盖 Web、桌面与移动端;面向开发者与企业的 API Platform 组织与 ChatGPT 工作区是两套独立 membership 体系。
product_chatgpt_business ChatGPT Business(原 Team)团队工作区 organization-public-product-entry ChatGPT Business 是面向 2 人以上团队的自助式工作区计划,分 Standard 与 Premium 席位;提供集中计费、成员/角色管理、用量可见性与额度控制,按席位访问 ChatGPT、ChatGPT Work 与 Codex。
product_chatgpt_enterprise ChatGPT Enterprise 企业工作区 proprietary-cloud-product-service ChatGPT Enterprise 是面向组织的托管计划,含企业级隐私与安全控制、集中成员管理、域验证、SSO、SCIM、用量洞察、更长上下文与数据保留/驻留控制;分标准 ChatGPT 席位与 Codex-only 席位。
entry_markdown_artifact_styled_document_page Markdown 发布为 Artifact 时渲染为样式文档页(标题页眉、文档排版、代码高亮) capability-derived Markdown 文件作为 Artifact 发布后渲染为带标题页眉、文档排版和语法高亮代码块的样式文档页面,而非原始纯文本。
comp_gemini_cli_client Gemini CLI client application (packages/cli) open-source-agent-project-apache-2.0-verify-repository Gemini CLI 客户端应用,位于 packages/cli;在终端 REPL 与 ACP 模式下向本地核心服务 packages/core 发起请求。
comp_gemini_cli_core Gemini CLI local core service (packages/core) open-source-agent-project-apache-2.0-verify-repository Gemini CLI 本地核心服务,位于 packages/core;管理对 Gemini API 与模型的请求,并集中管理文件、Shell、Web Fetch、搜索、Memory 等内置工具。
product_openai_sandbox_agents OpenAI Agents SDK · Sandbox Agents apache-2.0-verify-package-metadata Sandbox Agents 在真实隔离工作区中运行专项代理;支持清单定义的文件、沙箱客户端选择与可恢复的沙箱会话,区别于在宿主进程内运行的普通 Agent。
entry_2_1_332_remote_control_session_waits_not_running_dialog_mcp Remote Control no longer shows a desktop app, VS Code or Agent SDK session as running while it waits on a dialog or an MCP server's question official-documentation-entry 2.1.332: Remote Control no longer shows a desktop app, VS Code or Agent SDK session as running while it waits on a dialog or an MCP server's question.
entry_2_1_332_remote_control_quota_reset_no_false_limit_to_clients a usage limit is no longer reported as reached to Remote Control, IDE and SDK clients after it had already reset official-documentation-entry 2.1.332: a usage limit is no longer reported as reached to Remote Control, IDE and SDK clients after it had already reset.
entry_2_1_332_vscode_queued_messages_files_reverse_order_fix VS Code fixed queued messages and attached files showing in reverse order after a conversation was reopened official-documentation-entry 2.1.332: VS Code fixed queued messages and attached files showing in reverse order after a conversation was reopened.
entry_2_1_330_ultrareview_cost_confirmation_monthly_spend_left UltraReview Team/Enterprise cost confirmation shows remaining monthly spend limit (2.1.330) official-documentation-changelog-entry Improved: /ultrareview cost confirmation on Team and Enterprise plans says how much of the monthly spend limit is left when that is less than a review usually costs.
product_openai_codex_cloud OpenAI Codex Cloud(云端隔离沙箱代理任务) proprietary-cloud-agent-surface Codex Cloud 在后台隔离沙箱中运行代理任务,挂载仓库与环境后生成可供审阅、合并或拉回本地的代码;与本地 Codex CLI、IDE 扩展、GitHub 评审和移动端任务通过同一 ChatGPT 账号保持上下文衔接。
entry_2_1_309_self_hosted_runner_interrupted_tool_call_outcome_unknown Self-hosted runner: sessions moved to a new runner expose the interrupted tool call marked outcome unknown official-public-docs-derived Official changelog improvement: when a session moves to a new runner, Claude can see the interrupted tool call marked as outcome unknown. Records runner handoff state visibility; runner lifecycle and checkout hook limits follow official self-hosted runner documentation.
entry_2_1_307_runner_checkout_hook_timeout_30_min_default Self-hosted runner: checkout hooks stop after 30 minutes by default and fail session setup; raise --checkout-hook-timeout-min or set it to 0 for longer official-public-docs-derived Official changelog change: self-hosted runner checkout hooks are stopped after 30 minutes by default, failing the session's setup; a longer limit is set via --checkout-hook-timeout-min, and 0 disables the cutoff. Records runner checkout-hook timeout boundary; runner provisioning follows official runner documentation.
entry_2_1_332_remote_control_idle_while_compact_runs Remote Control session shows idle while /compact runs in Desktop, VS Code or Agent SDK changelog-derived 官方 changelog 2.1.332:Desktop、VS Code 与 Agent SDK 中运行 /compact 期间 Remote Control 会话状态显示为 idle;条目记录跨设备会话状态展示边界,不记录内部会话状态机。
entry_2_1_331_windows_managed_registry_check_before_upgrade Windows checks registry managed settings before upgrade; HKLM policy outranks managed-settings.json changelog-derived 官方 changelog 2.1.331:Windows 启动时先检查注册表托管设置;HKLM 策略优先级高于 managed-settings.json,损坏值会阻止启动。条目记录托管设置读取顺序边界,不记录注册表内部结构。
entry_2_1_331_remote_control_message_above_finishing_reply Remote Control message sometimes shows above the reply that was finishing when it was sent changelog-derived 官方 changelog 2.1.331:Remote Control 消息偶发显示在正在收尾的回复上方;条目记录跨设备消息排序展示边界。
entry_2_1_331_remote_control_subagent_no_steps_windows Windows Remote Control clients show no steps for a new subagent changelog-derived 官方 changelog 2.1.331:Windows 上 Remote Control 客户端对新子代理不显示步骤。条目记录跨设备子代理进度展示边界。
entry_2_1_330_remote_control_stop_note_terminal_as_typed Note about background agents ended by a Stop from phone or web shows in the terminal as if typed by you changelog-derived 官方 changelog 2.1.330:手机或网页 Stop 结束的后台代理提示,在终端中显示得如同用户手动键入。条目记录跨设备停止通知展示边界。
entry_2_1_330_remote_control_mobile_diff_pr_buttons_hidden_stopped_working Mobile apps hide Diff and pull request buttons, or show a stopped session as working, after turning Remote Control on mid-conversation changelog-derived 官方 changelog 2.1.330:移动端应用在会话中途开启 Remote Control 后隐藏 Diff 与 PR 按钮,或把已停止会话显示为工作中。条目记录移动端远程会话状态展示边界。
entry_2_1_331_startup_session_model_list_wait_reduction 紧随上一会话启动的新会话不再等待模型列表;非 Git 仓库不再等待 Git changelog-derived 官方 changelog 2.1.331:会话紧随另一个会话启动时不再等待模型列表;位于不含 .claude/settings.local.json 的 Git 仓库之外时也不再等待 Git。边界:启动等待行为,不收录模型列表加载内部结构。
entry_2_1_330_headless_full_disk_file_output_exit_code claude -p 输出到文件且磁盘满时打印错误并退出 1 changelog-derived 官方 changelog 2.1.330:claude -p 输出到文件且磁盘满时曾无消息退出 0;修复为打印错误并退出 1(完整 NFS 导出可能仍无法察觉)。边界:无头会话退出码与磁盘容量边界。
entry_2_1_332_remote_control_waiting_dialog_mcp_question Remote Control 等待对话框/MCP 提问时误报运行中修复 configuration-documentation 官方 changelog 2.1.332:Remote Control 会话在等待对话框或 MCP 服务器提问时,原先在桌面应用、VS Code 或 Agent SDK 中显示为运行中;该版本修正状态判定。边界:只修正运行/等待状态展示,不改变遥控会话的权限或上下文隔离。
doc_sdk_managed_agents_comparison Agent SDK 选型对照 official-doc-derived Agent SDK 选型对照:Agent SDK 为自运营进程内库;CLI 为终端交互界面;Client SDK 直连 Claude API 并自写工具循环或用 beta tool runner;Managed Agents 为 Anthropic 托管代理框架,在云端沙箱或自托管沙箱运行代理循环。
product_openai_cli OpenAI CLI(官方 REST API 命令行工具,区别于 Codex 编程代理 CLI) mixed-product-verify-official-terms OpenAI 官方命令行工具,面向 OpenAI REST API:支持发送 API 请求、生成图片并保存到本地、上传与取回文件、批量(Batch)运行请求,以及导出供脚本使用的 API 数据与 JSON 输出。该 CLI 是 API 接入终端,不是编程代理;README 明确说明编码代理场景应使用 Codex CLI。CLI 通过 OpenAI API 运行,模型调用与数据边界以 OpenAI 官方平台条款为准。
cli_cmd_remote_control claude remote-control(别名 rc)Remote Control 服务端命令 configuration-documentation 启动 Remote Control 服务端,从 claude.ai 或 Claude 应用遥控本机会话;服务端模式不打开本地交互会话
product_openai_custom_gpts ChatGPT Custom GPTs(自定义 GPT,计划停用并迁移至插件) mixed-product-verify-official-terms 自定义 GPT 是为特定目的配置的 ChatGPT 版本,组合指令、知识文件、可选工具能力与外部应用/动作;GPT 不使用已保存记忆、自定义指令或历史对话,每轮对话从零开始。官方 Help Center 记录其停用计划:受影响 Enterprise 工作区新建 GPT 已于 2026-10-26 停止(FedRAMP 除外),标准退役日 2026-12-11,FedRAMP 及获批延期工作区为 2027-02-28;工作流计划迁移到 Plugins。
doc_rc_start_session Start a Remote Control session:CLI / 应用发起本地会话的遥控连接 official-public-documentation-entry 官方 Remote Control 文档启动小节:在 CLI 或 Claude 应用中发起 Remote Control,把本机运行的本地会话暴露给手机、平板或浏览器连接;会话本体仍运行在本机,连接通道与云会话分开。
product_chatgpt_pro ChatGPT Pro(付费订阅计划,独立于 API 计费) proprietary-subscription-product ChatGPT Pro 是面向个人的高级付费订阅计划,在 Plus 权益之上提供优先响应、高级语音、图像生成、深度研究、ChatGPT 代理与早期功能访问等;订阅额度受滥用护栏约束。API 使用单独计费、与 ChatGPT 订阅成员身份分开管理;Pro 计划权益与平台 API 服务条款分别标注。
doc_enterprise_deployment_option_comparison_overview 企业部署选项概览比较(Teams/Enterprise、Console、Bedrock、AWS Marketplace、Agent Platform、Foundry) official-public-docs-derived 企业部署概览页按模型推理运行位置比较各选项:Claude for Teams/Enterprise 自服务订阅、Anthropic Console PAYG、Amazon Bedrock、Claude Platform on AWS(AWS Marketplace 计费)、Google Cloud Agent Platform、Microsoft Foundry;比较维度含计费方式、可用区域、默认开启的提示缓存、认证方式、成本追踪、是否附带 Web 端以及企业功能。在组织自有机架上运行云会话属于 self-hosted environments,是独立于推理提供方的另一轴线。
product_model_studio Alibaba Cloud Model Studio (Bailian) Managed Platform proprietary-cloud-product-service 阿里云百炼 Model Studio 托管平台:提供模型选型、Prompt 调试、应用构建与部署、托管代理以及模型训练/评估等能力;控制台交互由现有 surface_model_studio_console 建模,原生 HTTP、OpenAI 兼容、Anthropic 兼容与托管代理接入面分别作为独立 APISurface 建模。
product_adk_cli ADK Agents CLI official-documentation-capability ADK Agents CLI 配合 Antigravity、Claude Code、Codex 等编码代理构建、评估和部署 ADK 代理;安装命令同时安装 agents-cli、ADK Python 包与可用编码代理中的 ADK 技能。云端部署还需 Google Cloud CLI 与 Terraform 等官方前置工具。
product_openai_agent_builder OpenAI Agent Builder(可视化代理工作流编排画布) organization-agent-platform-entry-verify-terms Agent Builder 是 OpenAI 平台上的可视化画布,用于组装、调试和导出多步骤代理工作流。用户可从模板起步,拖放代理、工具与控制流节点,配置类型化输入输出,并使用实时数据预览运行;工作流发布后成为带版本的对象,可交由 ChatKit 嵌入站点,或下载 Agents SDK 代码自行部署。
product_openai_codex_security OpenAI Codex Security 漏洞扫描与修复产品(CLI / TypeScript SDK / 自动化工作流) mixed-product-verify-official-terms Codex Security 用于发现、调查并修复代码漏洞:可在 Codex 会话中使用安全工作流,也可通过 @openai/codex-security CLI、TypeScript SDK 和自动化/GitHub Action 扫描仓库、选定路径或 Git 变更,校验候选发现、生成补丁并验证修复。
product_qwenpaw QwenPaw Personal AI Assistant (AgentScope) apache-2.0-open-source-repository-verify-license QwenPaw(Qwen Personal Agent Workstation)是 AgentScope 团队发布的开源个人助理产品,可在本地或云端部署;提供多渠道对话、多智能体协作、按代理隔离的记忆与技能、插件/MCP 扩展、定时任务和本地运行时,官方说明其基于 AgentScope、AgentScope Runtime 与 ReMe 构建。
product_gemini_api_cli Gemini API CLI (gemini-api) official-open-source-repository-verify-apache-2-0 Stateless official CLI binary for shell-access coding agents, assistant tools and scripts. It exposes Gemini text/reasoning models, multimodal file analysis, image/audio/music/video generation and managed-agent runs through standard shell commands, with dry-run request validation, structured JSON/TOON output and background managed-agent interaction IDs. Each invocation runs independently; the calling agent supplies context. This API helper CLI is distinct from the interactive Gemini CLI coding agent.
product_openagentpack OpenAgentPack Managed-Agent IaC Control Plane (agents CLI / SDK) apache-2.0-open-source-repository-verify-license Official Model Studio open-source control plane for managed AI agents: one agents.yaml or directory project declares model, instructions, tools, skills, environment, files and credential references; the CLI runs validate → plan → apply, supports drift recovery and provider portability, and includes a TypeScript SDK. Bailian is one documented provider alongside other supported providers.
product_openagentkit OpenAgentKit Managed-Agent Application Delivery Kit apache-2.0-open-source-repository-verify-license Official Model Studio delivery kit for Managed Agent applications: self-hosted plaza web/H5 experience, admin console, Kit Server, reusable chat UI components, session runtime, React hooks and development skills. It exposes streaming messages, history, attachments, tool approvals, multi-agent cards, files and usage/quota management.
product_openwork OpenWork Local-First ModelStudio Agent Desktop Application apache-2.0-open-source-repository-verify-license Official ModelStudio local-first desktop application for AI agent workflows: multi-session management, local project workspaces, agent conversation and tool-call visibility, code execution and debugging, file/artifact preview, MCP and external tool connections, reusable skills, automated workflows and permission-mode controls for macOS, Windows and Linux.
product_agentteams AgentTeams Collaborative Multi-Agent Runtime Platform apache-2.0-open-source-repository-verify-license AgentTeams is an open-source collaborative multi-agent runtime platform. Its Manager-Workers architecture keeps multiple Agents in a controlled, auditable Matrix room with human visibility and intervention; it orchestrates separate Agent containers rather than implementing the underlying Agent logic itself.

代理 SDK

ID 名称 许可证状态 摘要
agent_sdk_python Claude Agent SDK (Python wrapper) mixed-source-verify-license Python 包装层可按 MIT 评估;仓库捆绑或调用的 Claude Code 二进制仍为专有。
agent_sdk_typescript Claude Agent SDK (TypeScript) proprietary-all-rights-reserved TypeScript Agent SDK 受 Anthropic Commercial Terms 约束,保留权利。
sdk_cap_builtin_tools SDK 内置工具能力 mixed-source-verify-license Agent SDK 向嵌入应用暴露 Read/Write/Edit/Bash/Web 等内置工具;与 CLI 同一套工具集
sdk_cap_hooks SDK Hooks 生命周期钩子 mixed-source-verify-license 应用可在代理生命周期关键节点挂载自定义代码;SDK 内 Hooks 配置与 CLI 同源
sdk_cap_subagents SDK 子代理派生能力 mixed-source-verify-license SDK 内可派生专用子代理处理聚焦子任务;子代理定义与作用域规则同 CLI
sdk_cap_permissions SDK 权限控制能力 mixed-source-verify-license SDK 控制哪些工具自动运行、哪些需审批;权限规则可在嵌入应用中配置
sdk_cap_sessions SDK 会话持久与恢复能力 mixed-source-verify-license SDK 会话可跨多次调用保持上下文,支持后续 resume 或 fork;会话存储可外接
sdk_cap_skills_memory SDK 技能/命令/记忆自动加载 mixed-source-verify-license Skills、commands、memory 从项目 .claude/ 与用户 ~/.claude/ 自动加载,行为与 CLI 一致
sdk_cap_plugins SDK 插件打包加载能力 mixed-source-verify-license 插件打包 skills、agents、hooks、MCP server;可按本地路径在 SDK 中加载
sdk_stream_response SDK 实时流式响应接口 capability-derived 应用可实时接收代理消息流;对应 SDK Input/Output 章节的 stream responses
sdk_structured_output SDK 结构化输出接口 capability-derived 代理结果以结构化形式返回应用;对应 Get structured output from agents 章节
sdk_external_tools_mcp SDK 外接 MCP 工具能力 mixed-source-verify-license 应用经 MCP 连接外部工具与数据源;工具搜索可扩展到大量工具场景
sdk_cost_usage_track SDK 成本与用量追踪 capability-derived SDK 提供 token 用量与成本跟踪接口;对应 Track cost and usage 章节
sdk_todos_track SDK 待办跟踪能力 capability-derived 代理任务待办在 SDK 中可被跟踪;对应 Track todos 章节
fix_desktop_subagent_memory_mcp_tools Desktop Code 子代理缺失 memory MCP Server 工具修复 changelog-derived Claude Desktop Code 标签页子代理不再拿不到用户配置的名为 memory 的 MCP Server 工具。
improve_sdk_priority_now_background_fetch SDK 优先消息不再取消运行中的 WebFetch 或 WebSearch changelog-derived 2.1.289 改进:SDK 会话中以 now 优先级发送的消息不再取消正在运行的网页抓取或搜索;原任务继续在后台加载。边界:调整消息排队与后台任务衔接,不改变 WebFetch/WebSearch 的网络访问审批。
fix_subagent_handback_task_id_name 子代理回交消息优先显示代理名称而非原始 task id changelog-derived changelog 修复:子代理未注册名称时,回交消息不再展示原始任务 ID;结果回交界面按可用代理名称或标识呈现。边界:只影响消息标签可读性,不改变子代理结果结构、委派链或权限。
fix_mcp_serve_agent_registry claude mcp serve Agent 工具子代理注册表修复 official-public-docs-derived 在 claude mcp serve 模式下,Agent 工具原先报告没有可用代理,并拒绝所有 subagent_type;修复后托管服务面可识别已注册的子代理类型。
product_openai_agents_sdk OpenAI Agents SDK organization-public-ecosystem-entry OpenAI Agents SDK 提供代理编排、工具、会话、追踪与 MCP 接入能力。
entry_2_1_289_agent_spawn_teammate_shared_id agent.spawn teammate shared agent id across plugin hook events official-public-document-entry 队友派生使用 agent.spawn;同一 agent id 贯穿插件钩子事件,$.agent.list() 暴露 idle 与 waiting 状态。
doc_sdk_agent_loop_message_types SDK agent loop message types(System/Assistant/User/Stream/Result) official-public-documentation-entry 官方 Agent SDK agent-loop 文档:循环按 SystemMessage、AssistantMessage、UserMessage、StreamEvent 与 ResultMessage 输出;ResultMessage 标记循环结束并携带最终结果、用量、成本与会话标识。
doc_sdk_max_turns_limit SDK max_turns / maxTurns 循环回合上限 official-public-documentation-entry 官方文档:max_turns(Python)或 maxTurns(TypeScript)限制代理循环;带工具调用的每个回合加最终纯文本响应一回合,超限后循环以结果或限制状态结束。
doc_sdk_stream_event_partial_messages StreamEvent 与 include_partial_messages / includePartialMessages official-public-documentation-entry 官方文档:开启部分消息后 SDK 输出 StreamEvent,承载原始 API 流式事件与文本/工具输入片段;未开启时不输出该实时流事件。
doc_sdk_result_message_limit_subtype ResultMessage subtype:成功、限额与任务结束状态 official-public-documentation-entry 官方文档:ResultMessage 的 subtype 区分任务成功、命中回合/预算限制或其他结束状态;调用方应检查 ResultMessage 获取输出、成本与是否触限,而不是只读取最后一条 AssistantMessage。
doc_sdk_cost_subagent_scope_split 成本/用量字段对子代理开销的统计口径 official-public-documentation-entry 官方成本追踪文档:顶层 usage 只统计主代理循环,不含子代理;total_cost_usd 与 modelUsage/model_usage 计入子代理请求并按模型拆分;该口径属于 SDK 客户端估算,不是权威账单。
doc_sdk_cost_budget_call_scope maxBudgetUsd / max_budget_usd 仅统计当前 query 调用 official-public-documentation-entry 官方文档:预算上限只计入当前 query 调用自身花费;恢复会话时带回的历史累计花费不计入该上限,/clear 后预算按重置后的新会话计数。
improve_sdk_priority_now_does_not_cancel_background_fetch SDK 优先级 now 消息不取消后台 WebFetch 或 WebSearch,任务保持后台加载 changelog-derived SDK 会话中以 priority now 发送的消息原先可能取消运行中的网页抓取或搜索;改进后该任务继续在后台加载,不再被取消。
improve_sdk_liveness_ping_every_30_seconds 非流式回退请求期间部分消息开启时,每 30 秒发送 ping 流事件保活 changelog-derived 在 Anthropic API、AWS 上的 Claude Platform 与网关上,非流式回退请求期间若开启部分消息,改进后每 30 秒发送一次 ping 流事件以维持 SDK 活跃状态。
improve_sdk_headless_first_turn_skip_claude_md_lookup SDK 与无头 -p 会话首轮不再等待逐目录 CLAUDE.md 查找 changelog-derived SDK 与无头(-p)使用的会话启动改进:首轮不再等待逐目录 CLAUDE.md 查找,缩短首轮启动路径。
doc_sdk_hosting_deployment Agent SDK Hosting:宿主应用部署位置 official-public-docs-derived 官方 Agent SDK Deployment 分组下的 Hosting 条目:描述把 SDK 代理应用部署到宿主环境的位置与部署主题;SDK 库许可边界不覆盖模型服务与 Claude Code 二进制。
doc_sdk_sessionstore_external_adapter SessionStore external transcript adapter interface official-document-derived-entry Official Agent SDK session-storage reference: SessionStore mirrors JSONL transcripts to an external object store, key-value store, or database so a session from one host can be resumed on another matching the original working directory. This records the adapter interface and durability/multi-host use case, not a hosted database or a persistence guarantee provided by the SDK alone.
doc_sdk_structured_output_schema_runtime Structured output JSON Schema, Zod and Pydantic schema boundary official-document-derived-entry Official structured-outputs reference: define JSON Schema for the required output shape; Zod on the TypeScript side or Pydantic on the Python side provides type-safe schema/object handling. This records schema definition and validation support, distinct from the existing SDK structured-output call interface.
doc_sdk_session_key_identity SessionKey projectKey, sessionId and optional subpath transcript address official-doc-derived Official session-storage reference: a SessionKey identifies one transcript with a filesystem-safe projectKey for the working directory, a session UUID, and an optional subpath. It is an adapter address/key concept, not a hosted session store.
doc_sdk_session_store_entry_transcript_record SessionStoreEntry transcript entry passed to append and load official-doc-derived Official session-storage reference: SessionStoreEntry objects are the transcript records the SDK forwards in append batches and reads back through load. The adapter preserves entry uuid-based dedupe metadata; this records the public record boundary, not an internal transcript format beyond that reference.
doc_sdk_session_summary_entry SessionSummaryEntry session metadata with sessionId, mtime and data official-doc-derived Official session-storage reference: SessionSummaryEntry exposes a session identifier, modification time, and arbitrary summary data for listing session summaries. It supplements the transcript entry rather than storing full history.
doc_sdk_structured_output_schema_retry_error Structured output validation re-prompts and returns error after retry limit official-doc-derived Official structured-outputs reference: the SDK validates agent output against the chosen schema and re-prompts on mismatch; if validation does not succeed within the retry limit, the result is an error rather than structured JSON. Schema complexity or task mismatch are documented failure causes.
doc_otel_per_call_env_options Agent SDK per-call env options: process-environment inheritance versus per-query telemetry configuration official-public-docs-derived Official Agent SDK observability docs: telemetry configuration passes through the CLI child process environment. Process environment applies to every query; ClaudeAgentOptions.env in Python or options.env in TypeScript apply per call. Python env merges over inherited environment; TypeScript env replaces inherited environment, so pass ...process.env first.
sdk_quickstart_runtime_prerequisites Agent SDK quickstart prerequisites: Node.js 18.14+ or Python 3.10+ and language package install official-doc-derived Official quickstart documentation: the Python or TypeScript Agent SDK project requires Node.js 18.14+ or Python 3.10+; TypeScript installs @anthropic-ai/claude-agent-sdk with tsx, Python uses uv or pip with claude-agent-sdk. This entry records public runtime prerequisites, not internal SDK implementation.
doc_workflow_structured_schema_contradiction_and_retries Workflow agent schema: self-contradiction checked before start; validation retries before failure official-public-docs-derived Official workflows documentation: when an agent() call supplies a schema, Claude Code checks the schema before starting the subagent; a provable contradiction, such as a required key ruled out by additionalProperties: false, fails without starting the agent. If returned output still fails validation after five attempts, the call fails with the last validation failure; the retry count can be changed through MAX_STRUCTURED_OUTPUT_RETRIES.
doc_sdk_custom_tool_in_process_server SDK in-process MCP server wraps custom tools inside the host application official-document-derived-entry Agent SDK custom-tools documentation: createSdkMcpServer / create_sdk_mcp_server bundles listed tools into a server that runs in-process with the host application rather than as a separate MCP process; the server is supplied through query options under mcpServers / mcp_servers.
doc_sdk_session_store_conformance_suite SessionStore adapter conformance suite checks append, load and optional method contract official-document-derived-entry Session-storage documentation: both SDKs ship a conformance suite asserting the append, load and optional SessionStore method contract; optional-method tests skip when unimplemented. Python exposes run_session_store_conformance for a zero-argument factory returning a fresh isolated store; TypeScript copies the shared conformance test into the application suite.
doc_sdk_session_store_in_memory_development_adapter InMemorySessionStore development and testing transcript mirror official-document-derived-entry Session-storage documentation: the SDK includes InMemorySessionStore for development and testing. A first query captures the session ID from its result message; a second query passes the same store with resume so the transcript loads from memory instead of the local filesystem.
doc_sdk_structured_output_draft07_typed_parse Structured output draft-07 schema validation and Zod/Pydantic typed parse official-document-derived-entry Structured-outputs documentation: the SDK validates with JSON Schema draft-07; newer schema drafts are rejected. Zod output must target draft-7; Pydantic generates JSON Schema from the model. After structured_output arrives, TypeScript safeParse and Python model_validate produce the typed application object for UI, database or business logic.
doc_sdk_sessionstore_multi_host_durability SessionStore 多主机部署、持久化与合规审计理由 official-public-documentation 外部 SessionStore 适用于 Serverless、自动扩缩 Worker、CI Runner 等不共享文件系统的部署;用于跨副本恢复会话、容器重启后保留转录,以及按自有保留策略、加密和访问控制审计会话记录。
doc_sdk_session_store_list_sessions_method SessionStore.listSessions optional project-session listing method official-doc-derived Optional listSessions(projectKey) returns sessionId and mtime entries; without listSessionSummaries, listing may fall back to loading each session.
doc_sdk_session_store_list_summaries_method SessionStore.listSessionSummaries optional metadata listing method official-doc-derived Optional listSessionSummaries(projectKey) returns SessionSummaryEntry metadata in one call; implementations maintain summaries inside append.
doc_sdk_session_store_list_subkeys_method SessionStore.listSubkeys optional subagent transcript discovery method official-doc-derived Optional listSubkeys(projectKey, sessionId) returns transcript subkeys during resume; if omitted, only the main transcript is restored.
doc_sdk_session_store_append_required_method SessionStore.append required method: ordered transcript-entry batch write official-public-docs-derived Official SessionStore contract: append is a required method that receives SessionKey and an ordered batch of SessionStoreEntry records during a query. Entries are opaque JSON-safe values; the adapter must persist them in order and return them in the same order from load. This records the public adapter method boundary, not backend storage internals.
doc_sdk_session_store_load_required_method SessionStore.load required method: read transcript entries back for resume official-public-docs-derived Official SessionStore contract: load is a required method that reads transcript entries for a stored session and returns them, or null when the store has no transcript for the key. The SDK uses load during resume; entry order must match the order supplied to append.
doc_sdk_session_store_conformance_optional_method_skip SessionStore conformance suite skips optional-method tests when an adapter omits them official-public-docs-derived Official adapter validation: the conformance suite asserts append, load and optional methods satisfy the behavioral contract; tests for optional methods skip automatically when the adapter does not implement them. This records the public test-contract boundary, not the TypeScript or Python test implementation details.
doc_sdk_structured_output_output_format_option Structured output outputFormat / output_format option: json_schema type and schema object official-public-docs-derived Official structured-output configuration: TypeScript passes outputFormat and Python passes output_format to query(); the option object uses type json_schema and a schema field holding the JSON Schema describing the required output structure. This entry records the public option surface; model request internals are not inferred.
doc_sdk_task_notification_message_stream_type Task notification message: SDKTaskNotificationMessage / TaskNotificationMessage task-system stream type official-public-docs-derived Official SDK stream type: task system messages are surfaced as SDKTaskNotificationMessage in TypeScript or TaskNotificationMessage in Python. This entry records the public message-type boundary for task notifications; message routing and internal notification queue implementation are not modeled.
doc_session_store_required_optional_method_contract SessionStore method contract: append and load required; four methods optional official-public-docs-derived Official session-storage documentation: append writes ordered transcript-entry batches during a query and load reads entries back for resume; listSessions, listSessionSummaries, delete and listSubkeys are optional adapter methods. The conformance contract separates required resume methods from optional discovery or lifecycle methods.
doc_headless_subagent_stream_parent_tool_use_id Streamed subagent and forked-skill messages carry parent_tool_use_id for run ownership official-public-docs-derived Official headless/streaming documentation: assistant and user messages emitted for subagents or subagent-running skills appear in the stream; parent_tool_use_id identifies the run that owns the message, while main-conversation messages carry null. The first forked-skill or foreground subagent message is a user message holding the driving prompt or skill content.
doc_headless_api_retry_system_event system/api_retry retry event exposes attempt, max_retries, delay and reason for a retryable API failure official-public-docs-derived Official headless documentation: when an API request fails with a retryable error, Claude Code emits system/api_retry before retrying. The event carries attempt, max_retries, retry_delay_ms and reason; on 401/403 apiKeyHelper credential rejection, the first two retries are quiet on v2.1.246+ and the event starts on the third consecutive retry, while quiet attempts still count toward attempt.
doc_sessionstore_ts_sdk_methods_accept_store_option TypeScript SDK session methods accepting sessionStore route to the external adapter when supplied official-public-docs-derived Official session-storage documentation: query, startup, listSessions, getSessionInfo, getSessionMessages, renameSession, tagSession, deleteSession and forkSession accept the sessionStore option and operate against that store instead of the local filesystem when it is provided. This defines the SDK entry-point surface that an adapter must serve; it does not by itself describe adapter deletion semantics.
doc_sdk_session_store_conformance_factory_empty_storage SessionStore conformance factory must provide fresh empty storage per contract official-public-documentation Conformance tests reuse the same session keys, so each store must start empty; use an in-memory fake, unique key prefix, or fresh test database per factory call.
doc_sdk_structured_output_error_subtype_result_check Structured-output failure subtype and is_error/absent structured_output result checks official-public-documentation error_max_structured_output_retries covers validation retries or a fallback retraction with no successful retry; success subtype alone does not prove an answer exists.
doc_headless_init_plugins_and_plugin_errors_fields system/init plugins array and plugin_errors array record loaded plugins versus load failures official-doc-derived Official headless documentation: system/init exposes a plugins array for successfully loaded plugins with name and path; plugin_errors lists load-time failures with plugin, type and message, including unsatisfied dependency versions and --plugin-dir archive or missing-path failures. A failed plugin is absent from plugins; the errors key is omitted when there are none.
doc_headless_plugin_install_event_statuses system/plugin_install stream event reports started, installed, failed and completed marketplace install states official-doc-derived Official headless documentation: when CLAUDE_CODE_SYNC_PLUGIN_INSTALL is set, Claude Code emits system/plugin_install events before the first turn. started and completed bracket the overall install; installed and failed report individual marketplaces. The event stream supports external UI progress, not internal marketplace resolution.
doc_headless_init_metadata_precedence system/init reports model, tools, MCP servers and loaded plugins; install or hook events may precede it official-doc-derived Official headless documentation: system/init carries session metadata such as model, tools, MCP servers and loaded plugins. It is normally the first stream event, but plugin_install events can appear when synchronization is enabled, and hook_started, hook_progress and hook_response events can stream while SessionStart or Setup hooks run.
doc_sdk_session_store_subagent_list_subkeys_fallback SessionStore subagent transcript discovery falls back to fixed subpath when listSubkeys is absent official-doc-derived Official session-storage documentation: listSubagents requires the adapter to implement listSubkeys. getSubagentMessages uses listSubkeys when available, but falls back to the documented subagents/agent- subpath when it is undefined. Resume likewise calls listSubkeys to restore subagent files; without that method, only the main transcript is materialized.
doc_sdk_summary_entry_data_opaque_mtime_clock_boundary SessionSummaryEntry data is opaque SDK-owned state; mtime must share the listSessions clock source official-doc-derived Official session-storage documentation: in a SessionSummaryEntry, mtime is the sidecar storage write time and must share a clock source with the mtime values listSessions returns. data is opaque SDK-owned state: persist it verbatim without interpreting it. The fold helper never sets mtime; it is stamped at persist time through the TypeScript options.mtime argument or by overwriting the field on the returned Python entry.
doc_sdk_stream_message_start_event StreamEvent message_start: start of a new SDK message official-public-docs-derived The Agent SDK partial-message stream emits message_start when a new message begins. It is a raw API streaming event; the application receives StreamEvent before accumulating deltas itself.
doc_sdk_stream_content_block_start_event StreamEvent content_block_start: start of a text or tool-use content block official-public-docs-derived content_block_start marks the start of one content block, either a text block or a tool-use block, in the partial SDK message stream.
doc_sdk_stream_content_block_delta_event StreamEvent content_block_delta: incremental content-block update official-public-docs-derived content_block_delta carries an incremental update for the open content block; callers inspect the nested delta type to distinguish text chunks from tool-input chunks.
doc_sdk_stream_content_block_stop_event StreamEvent content_block_stop: end of a content block official-public-docs-derived content_block_stop marks the end of the open content block. A completed AssistantMessage arrives before that block's stop event when partial messages are enabled.
doc_sdk_stream_message_delta_event StreamEvent message_delta: message-level stop reason and usage update official-public-docs-derived message_delta carries message-level updates such as stop reason and usage. On a dropped connection or non-streaming fallback it may be absent, so callers must not wait for it on a cut message.
doc_sdk_stream_message_stop_event StreamEvent message_stop: end of the message official-public-docs-derived message_stop marks the end of a message. If a stream is cut off mid-message, the SDK still delivers message_stop before the turn ends, but preceding block or delta events can be missing.
doc_sdk_stream_tool_input_json_delta_event StreamEvent content_block_delta input_json_delta: streaming tool-input JSON chunks official-public-docs-derived Tool calls stream incrementally through content_block_delta with input_json_delta; the application accumulates the JSON input while tracking the tool that started in content_block_start.
doc_sdk_single_shot_query_call_mode Single-shot query(): one prompt, one answer, then the call ends official-public-docs-derived A single-shot call passes one prompt string to query() and ends after Claude answers. It fits one task such as a serverless function; follow-up work after the call ends starts a resumed session rather than reopening the same call.
doc_sdk_streaming_input_session_mode Streaming input keeps an Agent SDK session open for multiple follow-up messages official-public-docs-derived Streaming input holds the SDK session open so an application can send more than one message while it runs. It supports image attachments, interrupting a response, and switching model or permission mode mid-session.
doc_sdk_user_message_object SDKUserMessage: TypeScript async-generator message object passed to query() official-public-docs-derived The TypeScript SDK application yields SDKUserMessage objects from an async generator and passes that generator as query()'s prompt. The message object carries the user role, content, and optional parent_tool_use_id.
doc_sdk_python_claude_sdk_client ClaudeSDKClient: Python Agent SDK client passed to client.query() official-public-docs-derived The Python SDK opens a ClaudeSDKClient and sends each message through client.query(). Text messages use a string; image messages use an async generator yielding user-message dictionaries.
doc_sdk_conversation_reset_message SDKConversationResetMessage / ConversationResetMessage detects SDK conversation resets official-public-docs-derived The TypeScript SDK emits SDKConversationResetMessage and Python emits ConversationResetMessage at each reset. Before Python SDK v0.2.137 the iterator dropped this message, so resets had to be counted from the /clear turns the application sent.
doc_sdk_result_message_cumulative_estimate ResultMessage total_cost_usd and cumulative usage cover the query call and restored session spend official-public-docs-derived The final ResultMessage carries total_cost_usd and cumulative usage. A call that resumes a session also counts the session's earlier spend; the result field is an estimate, not authoritative billing.
doc_sdk_per_step_message_usage_dedup Deduplicate same-ID assistant messages before counting per-step token usage official-public-docs-derived When multiple tools run in one turn, all assistant messages in that turn share the same ID. Per-step token usage must be deduplicated by message ID to avoid double-counting.
doc_sdk_query_step_session_usage_scope Usage scope separates query() call, step request/response cycle and resumed session official-public-docs-derived A query() call is one invocation; a step is one request/response cycle inside it; a session links query() calls through the resume option. Resumed results report the whole session's spend, not only that call's spend.
doc_sdk_streaming_input_result_message_scope Streaming-input result usage covers that turn; cost fields carry the running call and restored session total official-public-docs-derived In streaming input mode, result usage covers only that turn and the main agent loop, excluding subagents. total_cost_usd and modelUsage or Python model_usage carry the running total for the call plus restored session spend; read the latest result unless /clear, /reset, or /new reset totals.
doc_sdk_data_residency_pricing_multiplier Data residency pricing multiplies eligible listed-token price by 1.1; per-request fees are excluded official-public-docs-derived When a response usage reports inference_geo: "us", the SDK multiplies the listed price for that response's tokens by 1.1. Per-request fees such as web search are not multiplied; this requires TypeScript Agent SDK v0.3.239+ or Python Agent SDK v0.2.144+.
doc_sdk_hosting_subprocess_one_session_one_cli_process Agent SDK hosting subprocess: one session maps to one supervised claude CLI process official-doc-derived 官方 Agent SDK hosting 文档:调用 query() 时 SDK 派生独立 claude CLI 进程并经 stdio 通信;该子进程拥有 shell、工作目录与本地 JSONL 会话记录。N 个并发会话对应 N 个子进程、各自进程树与转录文件;默认继承应用工作目录,会话可在 options.cwd 指定独立目录。
doc_sdk_container_runtime_language_binary_pinned_to_sdk_version Container runtime needs Python 3.10+ or Node.js 18.14; bundled native CLI binary is pinned to SDK package version official-doc-derived 官方 hosting 文档:容器需 SDK 语言运行时:Python SDK 需要 Python 3.10+,TypeScript SDK 需要 Node.js 18.14+。多数安装同时捆绑原生 Claude Code 二进制,派生 CLI 无需另装 Node;捆绑二进制钉在 SDK 包版本,更新 SDK 即更新 CLI。SDK 遵循 semver,补丁持续采纳,minor 升级前查看对应 SDK changelog。
doc_sessionstore_python_store_backed_functions_startup_no_equivalent Python SessionStore: store-backed functions expose startup() with no Python equivalent mixed-source-verify-license Python SDK 在 ClaudeAgentOptions 设置 session_store 后运行 query();其余会话操作由 _from_store 函数承接。startup() 无 Python 等价物,独立 Python 会话函数读取本地文件。
doc_sdk_file_checkpoint_rewind_method Agent SDK file-checkpoint restore: capture checkpoint UUID from response stream; TypeScript rewindFiles(), Python rewind_files() official-doc-derived With file checkpointing enabled, the SDK captures the checkpoint UUID and session ID from the response stream. To restore tracked files after the stream completes, resume the session with an empty prompt and call TypeScript rewindFiles() or Python rewind_files() with the checkpoint UUID. RewindFilesResult counts skipped non-regular or unsafe paths in skippedLinks; this restores files on disk and does not rewind conversation history.
doc_sdk_loop_turn_lifecycle_max_turns_budget Agent SDK loop turn: tool-call turns plus one final text-only turn; maxTurns and maxBudgetUsd bound the run official-public-document One agent turn is a pass through the loop: Claude emits output, requested tools run, and their results feed back without returning control to the host code. The loop continues until a response contains no tool calls. The turn count includes every tool-call turn plus the final text-only response; max_turns or maxTurns stops before that final turn and yields an error_max_turns result, while max_budget_usd or maxBudgetUsd caps spend. Without a limit, an open-ended prompt can run long.
doc_sdk_loop_message_handler_selection Agent SDK handler selection: ResultMessage for final result, AssistantMessage for progress, StreamEvent for live partial messages official-public-document Final success, cost and limit state are read from ResultMessage. AssistantMessage reports each response content block and the tool calls already requested, while partial API deltas and tool-input chunks arrive only when StreamEvent output is enabled through include_partial_messages or includePartialMessages. Host code should iterate the stream to completion because a small number of system events such as prompt_suggestion can arrive after ResultMessage.
doc_sdk_stream_tool_input_json_delta_block_lifecycle StreamEvent tool-use input lifecycle: content_block_start begins the tool, input_json_delta chunks accumulate partial JSON, content_block_stop marks completion official-public-documentation-entry Official streaming-output documentation tracks streamed tool calls with three events: content_block_start identifies that a tool-use block begins; content_block_delta with input_json_delta carries arriving input chunks, which the application accumulates into JSON; content_block_stop marks that the tool call has completed. This entry complements the already-recorded generic tool-input JSON delta event with the start/stop block lifecycle around it.
doc_sdk_programmatic_agent_definition_agents_param Agent SDK agents 参数与 AgentDefinition 程序化子代理定义 proprietary-all-rights-reserved 官方 Subagents/SDK 文档:程序化路径在 query() 选项的 agents 参数中用 AgentDefinition 声明子代理描述、行为提示、可用工具与模型;文件系统定义为另一路径,同名程序化定义优先。
doc_sdk_subagent_context_isolation 子代理上下文隔离:独立对话且仅最终消息返回父代理 proprietary-all-rights-reserved 官方文档:每个子代理运行在自己的对话中;中间工具调用与结果留在子代理内,只有最终消息返回父代理,避免探索文件等中间内容累积到主对话。
doc_sdk_subagent_parallel_execution 子代理并行执行:独立子任务并发运行 proprietary-all-rights-reserved 官方文档:多个子代理可并发运行,独立子任务的完成时间取决于最慢子代理,而不是顺序执行耗时之和;评审场景可同时运行风格检查、安全扫描与测试覆盖子代理。
doc_sdk_subagent_tool_restrictions 子代理工具限制:只读评审子代理限定可用工具 proprietary-all-rights-reserved 官方文档:子代理可被限制为特定工具集合,降低非预期动作风险;文档评审类子代理可仅访问 Read、Grep 等工具,只分析而不修改文档文件。
doc_sdk_compact_boundary_message_type SDK compact-boundary message: SDKCompactBoundaryMessage in TypeScript; Python SystemMessage subtype compact_boundary official-public-documentation-entry Official streaming-output documentation lists the compact boundary message as a normal non-StreamEvent loop message: TypeScript exposes SDKCompactBoundaryMessage, while Python uses a SystemMessage whose subtype is compact_boundary. It marks where conversation history was compacted, complementing the already-recorded System, Assistant, User, Stream and Result message types.
doc_sdk_typescript_stream_input_queue_callbacks TypeScript streaming input queue: pushMessage() adds messages, closeInput() closes the chat, userMessages() reads the queue as an SDKUserMessage generator official-public-documentation-entry Official streaming-input documentation describes the TypeScript host-side queue: the input handler calls pushMessage(text) for each user message, closeInput() when the chat closes, and userMessages() is the async generator passed as query()'s prompt. The generator reads from the queue and waits when it is empty until a message arrives or the chat closes.
doc_sdk_user_message_priority_same_response SDK follow-up message priority field controls when a message pushed during a response shares that response official-public-documentation-entry Official streaming-input documentation states messages pushed while a response is running can share one response. The SDKUserMessage priority field chooses when Claude reads the queued message; otherwise queued messages follow the documented message versus command/shell-command dispatch order.
doc_sdk_interrupt_error_during_execution_pending_messages interrupt() ends the active response with error_during_execution; unread messages still reach Claude after that result official-public-documentation-entry Official streaming-input documentation: calling interrupt() stops a response partway through and keeps the session open. That response finishes with an error_during_execution result; messages already sent but not yet read still reach Claude after the interrupted response ends. In Python, a receive_response loop ends at the interrupted ResultMessage, and the next message is sent after it arrives.
doc_sdk_config_options_object_session Agent SDK options 对象:会话启动参数组合入口 proprietary-all-rights-reserved 官方配置文档:query() 调用接受 Options(TypeScript)或 ClaudeAgentOptions(Python)对象;每个字段可选,未传 options 时使用 SDK 默认配置。配置同时来自设置文件、环境变量与传入的 options 对象。
doc_sdk_config_mid_session_setters_runtime_settings 流式会话中途配置:setModel、setPermissionMode 与运行期设置更新方法 proprietary-all-rights-reserved 官方配置文档:流式输入会话运行中可切换模型与权限模式。TypeScript 在 query() 返回对象上调用方法,Python 在 ClaudeSDKClient 上调用;两侧均有 setModel()/set_model() 与 setPermissionMode()/set_permission_mode()。TypeScript 另有 applyFlagSettings() 应用运行期标志设置,以及 updateSettings() 写入允许清单中的设置键。
doc_sdk_migration_python_options_type_rename Python 迁移:ClaudeCodeOptions 改名为 ClaudeAgentOptions proprietary-all-rights-reserved 官方迁移指南:Python SDK 类型 ClaudeCodeOptions 已改名为 ClaudeAgentOptions;迁移时同步替换导入与实例化代码。该 breaking change 出现在迁移自 Claude Code SDK 的 v0.1.0 隔离与显式配置调整中。
doc_sdk_system_message_subtypes_init_compact_worker_info SDK SystemMessage subtypes:init、compact_boundary、informational 与 worker_shutting_down official-public-documentation 官方 agent-loop 文档:SystemMessage 生命周期细分中,init 携带会话元数据;compact_boundary 在压缩后出现;informational 是普通文本状态横幅;worker_shutting_down 表示宿主正在退出或 Remote Control 已断开。本条只记录公开消息阶段边界,不收录内部队列、进程调度或未发布事件。
doc_env_claude_agent_sdk_disable_builtin_agents CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS:非交互模式下关闭内置子代理类型 configuration-documentation 官方 SDK 环境变量:设为 1 可禁用 Explore、Plan 等内置子代理类型;仅作用于非交互 -p 模式,供 SDK 用户获得空白代理起点。该变量同时移除 general-purpose,此时 Agent 工具调用若省略 subagent_type 会以 subagent_type is required 失败。
doc_env_claude_agent_sdk_mcp_no_prefix CLAUDE_AGENT_SDK_MCP_NO_PREFIX:SDK 创建 MCP 服务器工具名去掉 mcp__<server>__ 前缀 configuration-documentation 官方 SDK 环境变量:设为 1 时,SDK 创建的 MCP 服务器工具名跳过 mcp__<server>__ 前缀,工具保留原始名称;该变量为 SDK 使用场景,不改变普通用户配置 MCP 服务器的工具命名规则。
entry_2_1_332_headless_cloud_foreground_fork_agent_status Headless and cloud sessions no longer report a foreground fork Agent call as finished when the fork starts configuration-documentation 无头会话与云会话曾在前台 fork 的 Agent 调用刚启动时即报告完成;修复后状态延迟到调用真正结束。边界只记录 SDK/会话可见状态时序,不收录进程调度内部结构。
entry_2_1_332_code_mode_resume_last_reply_script_stopped Code Mode Agent SDK and claude -p sessions keep Claude's last reply on resume after stopping while a script ran configuration-documentation 脚本运行期间停止后恢复时,Code Mode 的 Agent SDK 与 claude -p 会话曾丢失 Claude 最后回复;修复后保留该回复。条目只记录会话恢复结果边界。
doc_sdk_python_sdk_mcp_tool_return_type SdkMcpTool[Any]: Python @tool decorator return type for typed custom MCP tools official-public-docs-derived Python Agent SDK 的 @tool 装饰器返回 SdkMcpTool[Any],用于把带类型输入 schema 的自定义工具包装为 SDK/MCP 工具;该类型依附于公开工具定义入口,不代表工具本身已注册。
doc_sdk_python_system_prompt_preset SystemPromptPreset: ClaudeAgentOptions system_prompt preset selection type official-public-docs-derived SystemPromptPreset 是 ClaudeAgentOptions.system_prompt 的预设系统提示选择类型,用于在 SDK 配置中选择官方预设;本条只记录公开配置类型,不推断预设文本或内部渲染逻辑。
doc_sdk_python_system_prompt_custom SystemPromptCustom: explicit custom system prompt option type official-public-docs-derived SystemPromptCustom 表示 ClaudeAgentOptions.system_prompt 的显式自定义系统提示类型,与预设类型并列;本条只记录选项类型,不记录提示词合并顺序或模板内部实现。
doc_sdk_python_system_prompt_file SystemPromptFile: file-backed system prompt option type official-public-docs-derived SystemPromptFile 是 ClaudeAgentOptions.system_prompt 的文件承载系统提示类型,用于从文件提供系统提示;本条只记录公开选项类型,不推断文件加载、缓存或覆盖规则。
doc_sdk_python_tools_preset ToolsPreset: preset built-in tool configuration TypedDict for ClaudeAgentOptions.tools official-public-docs-derived ToolsPreset 是 ClaudeAgentOptions.tools 使用的预设内置工具配置 TypedDict,用于选择 SDK 默认工具集合;本条只记录公开配置类型,不推断工具启用策略或权限审批内部实现。
doc_sdk_ts_v2_create_session unstable_v2_createSession(): TypeScript V2 session API creates a multi-turn SDKSession official-public-docs-derived unstable_v2_createSession() 创建用于多轮对话的 TypeScript V2 SDKSession;该 V2 会话 API 不支持全部 V1 功能,本条只记录公开方法用途与边界,不记录内部会话进程实现。
doc_sdk_ts_v2_resume_session unstable_v2_resumeSession(): TypeScript V2 resumes an existing session by ID official-public-docs-derived unstable_v2_resumeSession() 按会话 ID 恢复既有 TypeScript V2 会话;该方法属于已移除预览 API,本条只记录公开恢复入口,不记录 transcript 存储、状态还原或缓存内部实现。
doc_sdk_ts_v2_prompt unstable_v2_prompt(): TypeScript V2 one-shot convenience query function official-public-docs-derived unstable_v2_prompt() 是 TypeScript V2 单轮查询便捷函数,用于不需要保持会话的一次性提示;本条只记录公开方法用途,不记录流式响应、消息类型或后台任务内部实现。
doc_sdk_ts_v2_sdk_session SDKSession V2 interface: sessionId, send(), stream() and close() lifecycle methods official-public-docs-derived SDKSession 是 TypeScript V2 会话接口,暴露只读 sessionId、send()、stream() 与 close() 生命周期方法;本条只记录公开接口边界,不记录会话生命周期进程、消息队列或清理内部实现。
doc_sdk_python_content_block_union ContentBlock: union type of all SDK response content blocks official-public-docs-derived ContentBlock 是 Python Agent SDK 响应内容块的联合类型;本条只记录公开联合类型边界,不记录模型生成内容或内部序列化算法。
doc_sdk_python_text_block TextBlock: plain-text response content block official-public-docs-derived TextBlock 承载响应中的纯文本内容块;属于公开消息内容结构,不记录文本生成、截断或缓存内部实现。
doc_sdk_python_thinking_block ThinkingBlock: reasoning/thinking response content block official-public-docs-derived ThinkingBlock 承载响应中的思考内容块;本条只记录公开块类型,不推断推理预算、模型策略或未公开提示词。
doc_sdk_python_tool_use_block ToolUseBlock: tool-call request content block official-public-docs-derived ToolUseBlock 表示响应中的工具调用请求块;本条只记录公开工具调用块结构,不记录工具执行结果之外的内部调度细节。
doc_sdk_python_tool_result_block ToolResultBlock: tool execution result content block official-public-docs-derived ToolResultBlock 表示工具执行结果内容块;本条只记录公开结果块结构,不记录权限判定、沙箱隔离或错误恢复内部流程。
doc_sdk_python_mcp_server_config_union McpServerConfig: union of stdio, SSE, HTTP and in-process SDK MCP server configurations official-public-docs-derived McpServerConfig 聚合 stdio、SSE、HTTP 与进程内 SDK MCP 服务器配置;本条只记录公开配置联合类型,不记录服务器鉴权、进程生命周期或协议内部实现。
doc_sdk_python_mcp_stdio_server_config McpStdioServerConfig: stdio MCP server command, args and environment configuration official-public-docs-derived McpStdioServerConfig 描述标准输入输出 MCP 服务器的命令、参数与环境变量配置;本条只记录公开配置字段边界。
doc_sdk_python_mcp_sse_server_config McpSSEServerConfig: SSE MCP server URL and headers configuration official-public-docs-derived McpSSEServerConfig 描述 SSE MCP 服务器的 URL 与请求头配置;本条只记录公开配置字段,不记录连接重连或传输内部机制。
doc_sdk_python_mcp_http_server_config McpHttpServerConfig: HTTP MCP server URL and headers configuration official-public-docs-derived McpHttpServerConfig 描述 HTTP MCP 服务器的 URL 与请求头配置;本条只记录公开配置字段,不记录认证头注入或网络隔离内部实现。
doc_sdk_python_mcp_sdk_server_config McpSdkServerConfig: in-process SDK MCP server name and hosted instance configuration official-public-docs-derived McpSdkServerConfig 描述宿主应用内进程 MCP 服务器的名称与实例;本条只记录公开配置类型,不记录进程内工具注册或消息转发内部实现。
doc_sdk_python_sandbox_settings SandboxSettings: programmatic command sandbox behavior configuration official-public-docs-derived SandboxSettings 是 Python Agent SDK 可编程命令沙箱行为配置;本条只记录公开配置边界,不记录沙箱系统调用拦截、隔离内核或权限校验内部实现。
doc_sdk_python_sandbox_network_config SandboxNetworkConfig: network-specific sandbox configuration official-public-docs-derived SandboxNetworkConfig 描述沙箱网络专项配置;本条只记录公开配置结构,不记录网络命名空间、代理或策略合并内部实现。
doc_sdk_python_task_budget TaskBudget: API-side token budget used with the SDK task_budget option official-public-docs-derived TaskBudget 是与 ClaudeAgentOptions.task_budget 配合使用的 API 侧令牌预算类型;本条只记录公开预算配置边界,不记录预算分配或模型调度内部算法。
doc_sdk_python_task_usage TaskUsage: token, tool-call and timing data for a background task official-public-docs-derived TaskUsage 记录后台任务的令牌、工具调用次数与耗时数据;本条只记录公开用量结构,不记录任务排队、调度或资源回收内部流程。
doc_sdk_python_rate_limit_event RateLimitEvent: emitted when rate-limit status changes in the SDK message stream official-public-docs-derived RateLimitEvent 在 SDK 消息流中报告限流状态变化;本条只记录公开事件类型与状态边界,不记录限流策略、配额计算或服务端判定内部实现。
doc_sdk_python_rate_limit_info RateLimitInfo: current rate-limit state carried by RateLimitEvent official-public-docs-derived RateLimitInfo 承载 RateLimitEvent 的当前限流状态;本条只记录公开状态结构,不推断配额窗口、刷新规则或服务端账户策略。
doc_sdk_python_process_error ProcessError: raised when the Claude Code process fails official-public-docs-derived ProcessError 在 Claude Code 进程失败时抛出;本条只记录公开异常类型及其退出码、标准错误边界,不记录进程崩溃诊断内部流程。
doc_sdk_python_claude_sdk_error ClaudeSDKError: base exception class for all Python Agent SDK errors official-public-docs-derived ClaudeSDKError 是 Python Agent SDK 所有错误的基类;本条只记录公开异常基类边界,不记录错误分类、重试策略或内部栈处理。
doc_sdk_python_result_error ResultError: raised when a query ends with an error result message official-public-docs-derived ResultError 在单次 query() 以错误结果消息结束时抛出;本条只记录公开异常类型边界,不记录结果消息解析或错误恢复内部实现。
doc_sdk_python_assistant_message_error AssistantMessageError: optional error carried by an AssistantMessage response official-public-docs-derived AssistantMessageError 是 AssistantMessage 响应携带的可选错误类型;本条只记录公开消息错误字段边界,不记录错误原因归因或模型输出修复内部流程。
doc_sdk_python_thinking_config_adaptive ThinkingConfigAdaptive: Python SDK adaptive-thinking configuration TypedDict official-public-docs-derived Official Python Agent SDK reference: ThinkingConfigAdaptive is the adaptive variant of the ThinkingConfig union. Its public fields are type="adaptive" and an optional display value; Claude adaptively decides when to think. This entry records the public type boundary only, not internal reasoning budget behavior.
doc_sdk_python_thinking_config_enabled ThinkingConfigEnabled: Python SDK enabled-thinking token-budget configuration TypedDict official-public-docs-derived Official Python Agent SDK reference: ThinkingConfigEnabled enables thinking with a specific token budget. Public fields are type="enabled", budget_tokens, and an optional display value. The entry records the documented configuration shape; it does not expose the internal thinking algorithm.
doc_sdk_python_thinking_config_disabled ThinkingConfigDisabled: Python SDK disabled-thinking configuration TypedDict official-public-docs-derived Official Python Agent SDK reference: ThinkingConfigDisabled turns thinking off where allowed. Its public field is type="disabled". This entry preserves the provider/model boundary noted in the documentation and does not claim every backend supports disabled thinking.
doc_sdk_python_conversation_session ConversationSession: Python SDK single-conversation session wrapper over ClaudeSDKClient official-public-docs-derived Official Python Agent SDK reference: ConversationSession maintains one conversation session with Claude. It owns a ClaudeSDKClient and tracks turn_count; start connects the client and preserves conversation context across the wrapper's conversational commands. The entry records the public session-wrapper role, not internal transcript storage.
doc_sdk_python_context_usage_response ContextUsageResponse: Python SDK response carrying session context-window usage official-public-docs-derived Official Python Agent SDK reference: get_context_usage returns a ContextUsageResponse describing the session's context-window usage. This entry records the public response boundary for context-usage reads; internal compaction bookkeeping and cache implementation are not modeled.
doc_sdk_python_mcp_status_response McpStatusResponse: Python SDK response returned by get_mcp_status official-public-docs-derived Official Python Agent SDK reference: McpStatusResponse is the response type returned by get_mcp_status for connected MCP servers. The entry records this public status-response boundary; it does not model server process internals or tool discovery beyond the documented configuration.
doc_sdk_python_mcp_server_status_config McpServerStatusConfig: reported MCP server configuration union across transports and proxy variant official-public-docs-derived Official Python Agent SDK reference: McpServerStatusConfig reports an MCP server's configuration. It unions stdio, SSE, HTTP and in-process SDK transport variants plus an output-only claude.ai proxy variant. The entry records the public configuration union; secret values are not described or stored.
doc_sdk_python_task_started_message TaskStartedMessage: Python SDK background-task start stream message official-public-docs-derived Official Python Agent SDK reference: TaskStartedMessage is emitted when a background task starts. A background task covers anything tracked outside the main turn, such as a backgrounded Bash command, a Monitor watch, a subagent spawned by the Agent tool, or a remote agent. Public fields include task_id, description, uuid, session_id and optional tool_use_id; the entry does not model the task scheduler internals.
doc_sdk_python_task_progress_message TaskProgressMessage: Python SDK periodic background-task progress stream message official-public-docs-derived Official Python Agent SDK reference: TaskProgressMessage is emitted periodically with progress updates for a running background task. Public fields include task_id, description, TaskUsage, uuid and session_id. The entry records the documented progress message boundary, not internal progress polling or task lifecycle queues.
doc_sdk_ts_task_updated_message SDKTaskUpdatedMessage: TypeScript SDK background-task update stream message official-public-docs-derived Official TypeScript Agent SDK streaming reference: SDKTaskUpdatedMessage is part of the task-message stream for an updated background task. It complements SDKTaskStartedMessage and SDKTaskProgressMessage. This entry records the public message-type boundary only.
doc_sdk_ts_background_tasks_changed_message SDKBackgroundTasksChangedMessage: TypeScript SDK background-task collection change message official-public-docs-derived Official TypeScript Agent SDK streaming reference: SDKBackgroundTasksChangedMessage reports when the background-task collection changes alongside the individual task messages. The entry records the public change-notification boundary, not internal task registry storage.
doc_sdk_ts_plugin_install_message SDKPluginInstallMessage: TypeScript SDK plugin-install lifecycle stream message official-public-docs-derived Official TypeScript Agent SDK reference: SDKPluginInstallMessage appears in the SDK message stream for the plugin-install lifecycle. The entry records this public message boundary; plugin package contents, marketplace provenance and installation internals are not modeled beyond the documentation.
doc_sdk_ts_commands_changed_message SDKCommandsChangedMessage: TypeScript SDK mid-session command-list change message official-public-docs-derived Official TypeScript Agent SDK reference: supportedCommands returns available commands; from Agent SDK v0.3.216 the list reflects mid-session command changes and SDKCommandsChangedMessage carries that stream notification. The entry records the public command-change boundary, not internal command registration.
doc_sdk_ts_session_state_changed_message SDKSessionStateChangedMessage: TypeScript SDK session-state transition message official-public-docs-derived Official TypeScript Agent SDK reference: SDKSessionStateChangedMessage lists the states carried when session state changes. Python arrives at equivalent session_state_changed information through a SystemMessage subtype; enabling session state events uses the documented environment switch. The entry records the public state-transition boundary.
doc_sdk_ts_rate_limit_event SDKRateLimitEvent: TypeScript SDK rate-limit status change stream event official-public-docs-derived Official TypeScript Agent SDK streaming reference: SDKRateLimitEvent appears in the message stream when rate-limit status changes, matching the public Python RateLimitEvent concept for the corresponding language. The entry records the event boundary; internal backoff and quota storage are not modeled.
doc_sdk_ts_usage_report SDKUsageReport: TypeScript SDK usage report attached to an assistant message official-public-docs-derived Official TypeScript Agent SDK reference: an SDKAssistantMessage can carry usage_report as an SDKUsageReport, alongside context_usage and message-level usage. The entry records this public usage-report attachment boundary; billing authority remains outside the SDK result type.
doc_sdk_ts_mcp_set_servers_result McpSetServersResult: TypeScript SDK result returned by setMcpServers official-public-docs-derived Official TypeScript Agent SDK reference: setMcpServers replaces the configured MCP servers and returns McpSetServersResult. The entry records this public result-type boundary; configuration replacement, server startup and tool connection internals are not described here.
doc_sdk_overview_page Agent SDK overview: product comparison surface and SDK capability inventory official-public-docs-derived Official Agent SDK overview: an SDK-embedded agent plans its own steps and calls tools to read files, run commands or edit code. The page compares the Agent SDK with the CLI, Client SDK and Managed Agents on who runs the agent, built-in features and access path. This entry records the documentation surface and comparison boundary only; it does not infer source availability beyond the public SDK packaging.
doc_sdk_quickstart_page Agent SDK quickstart: prerequisites, setup and first bug-fixing agent workflow official-public-docs-derived Official Agent SDK quickstart: Node.js 18.14+ or Python 3.10+ are prerequisites; the setup builds a first agent that reads code, finds bugs and fixes them. The entry records the documented quickstart path and its tools/key-concept boundary, not internal agent scheduling or SDK package internals.
doc_sdk_troubleshooting_page Agent SDK troubleshooting: CLI startup, process exit, stream and structured-output failure reference official-public-docs-derived Official Agent SDK troubleshooting page groups reported failures into CLI startup, CLI process exit, large tool calls or results, streaming input and structured-output problems. The entry preserves these public failure categories and their recovery boundary; internal process wiring, error-code storage and unsupported provider internals are not modeled.
doc_sdk_examples_page Agent SDK examples: minimal demos, complete applications, cookbook recipes and reference implementations official-public-docs-derived Official SDK examples page routes developers to runnable demo projects, local-development applications, complete reference implementations and Python cookbook recipes progressing from a simple research agent to multi-agent systems. This entry records the public discovery surface; it does not claim bundled demos are open-source or free to redistribute.
doc_sdk_agent_loop_page Agent SDK agent loop: autonomous cycle, turns, messages, tool execution and session continuity official-public-docs-derived Official agent-loop documentation: the SDK embeds Claude Code's autonomous loop in a host application; each turn produces output, executes tool calls when present, and feeds tool results back to Claude without yielding control to host code. The entry records message lifecycle, tool execution, context-window continuity and ResultMessage termination boundary; internal loop scheduling and cache implementation are not modeled.
doc_sdk_claude_features_page Claude Code features in SDK: setting sources, project instructions, on-demand skills and filesystem/programmatic hooks official-public-docs-derived Official SDK features page: SDK agents share the Claude Code foundation and receive filesystem-based project instructions, rules, skills and hooks. settingSources/setting_sources controls which filesystem settings load; filesystem hooks and programmatic hooks run side by side. The entry records these public feature-loading boundaries, not hidden configuration storage or hook runtime internals.
doc_sdk_sessions_page Agent SDK sessions: continue, resume, fork, session ID capture and cross-host continuity official-public-docs-derived Official SDK sessions documentation covers choosing between continue, resume and fork, automatic session management for Python ClaudeSDKClient and TypeScript continue mode, session options with query(), captured session ID, resume by ID, fork to explore alternatives and resume across hosts. The entry records these public continuity paths; transcript storage details and external adapter internals are handled by separate session-storage entries.
doc_sdk_user_input_page Agent SDK user input: approval-request handling, clarifying questions, option previews and free-text response flow official-public-docs-derived Official SDK user-input documentation detects when Claude needs input, handles tool approval requests through the callback flow, and responds to clarifying questions with the documented question format, TypeScript option previews and optional free-text input. The entry records this public approval-and-question boundary; the dummy-stream workaround, internal prompt rendering and host authentication internals are not expanded here.
doc_sdk_subagents_page Agent SDK subagents: AgentDefinition, filesystem definitions, invocation, inheritance, restrictions and resume official-public-docs-derived Official SDK subagents documentation covers benefits, programmatic AgentDefinition configuration and filesystem-based definitions, whether Claude waits for subagents, what subagents inherit, automatic and explicit invocation, forked subagents, dynamic configuration, invocation detection, resuming subagents, tool restrictions and depth/concurrency/spend caps. The entry records the public subagent boundary; isolated transcript internals are not modeled here.
doc_sdk_system_prompt_page Agent SDK system prompts: preset, CLAUDE.md, output style, append, custom prompt and mid-session update official-public-docs-derived Official modifying-system-prompts documentation compares starting from the claude_code preset, project-level CLAUDE.md instructions, persistent output styles, appending to the preset, and fully custom system prompts. It also covers caching a custom prompt's static part, updating an existing session's prompt, turning recording off during wording iteration and context Claude Code adds outside the system prompt. The entry records public approaches only, not prompt composition internals or model reasoning.
doc_sdk_quickstart_prerequisites_runtime_account Agent SDK quickstart prerequisites: Node.js 18.14+ or Python 3.10+ and Anthropic account official-public-docs-derived Official SDK quickstart documentation lists prerequisites as Node.js 18.14+ or Python 3.10+ and an Anthropic account. The setup creates a project folder, installs the Agent SDK package for the chosen language, creates a buggy sample file, and runs an agent that finds and fixes bugs. This entry records the public language runtime and account prerequisite boundary; model availability, hosted authentication and network policy remain governed by the selected deployment path.
doc_sdk_loop_orchestration_stream_retries_context Agent SDK loop stream: reasoning, tool call, result and final outcome messages; SDK orchestration, tool execution, context management and retries official-public-docs-derived Official SDK quickstart documentation describes each async stream iteration as Claude reasoning, calling a tool, observing a result and deciding the next action; each iteration yields a message for reasoning, a tool call, a tool result or the final outcome. The SDK handles orchestration, tool execution, context management and retries, so the application consumes the stream; the loop ends when the task finishes or hits an error. The entry records this public loop, stream and retry boundary, not internal model reasoning, context storage or retry policy internals.
doc_sdk_python_get_session_messages Python Agent SDK get_session_messages(): read messages for a stored session official-public-docs-derived Python SDK reference function retrieves the message list associated with an existing stored session; callers use it to inspect or replay session history after resume/fork.
doc_sdk_python_get_session_info Python Agent SDK get_session_info(): read metadata for a stored session official-public-docs-derived Python SDK reference function returns stored session metadata rather than conversation messages; it anchors session identity, status and continuation bookkeeping.
doc_sdk_python_rename_session Python Agent SDK rename_session(): change a stored session's display name official-public-docs-derived Python SDK reference function updates the human-readable label of a stored session; session identity remains separate from its display name.
doc_sdk_python_tag_session Python Agent SDK tag_session(): attach tags to a stored session official-public-docs-derived Python SDK reference function records organizer-defined tags on a session; tags are metadata for grouping and retrieval, not permission grants.
doc_sdk_python_fork_session Python Agent SDK fork_session(): create an independent copy from a stored session official-public-docs-derived Python SDK reference function forks a stored session so the copy continues independently; original and fork remain separate after branching.
doc_sdk_ts_list_sessions TypeScript Agent SDK listSessions(): enumerate stored SDK sessions official-public-docs-derived TypeScript SDK reference function lists stored sessions available to the SDK host; it supports session selection before message, metadata or fork operations.
doc_sdk_ts_get_session_messages TypeScript Agent SDK getSessionMessages(): read messages for a stored session official-public-docs-derived TypeScript SDK reference function retrieves conversation messages for an existing stored session; message history belongs to the selected session ID.
doc_sdk_ts_get_session_info TypeScript Agent SDK getSessionInfo(): read metadata for a stored session official-public-docs-derived TypeScript SDK reference function returns session metadata separate from message content; callers use it to identify and describe a stored session.
doc_sdk_ts_rename_session TypeScript Agent SDK renameSession(): change a stored session's display name official-public-docs-derived TypeScript SDK reference function updates the display label of a stored session; renaming does not change the underlying session identifier.
doc_sdk_ts_tag_session TypeScript Agent SDK tagSession(): attach tags to a stored session official-public-docs-derived TypeScript SDK reference function stores organizer tags on a session; tags support retrieval and grouping but are not authorization rules.
doc_sdk_ts_fork_session TypeScript Agent SDK forkSession(): create an independent copy from a stored session official-public-docs-derived TypeScript SDK reference function branches a stored session into an independent copy; subsequent work in the fork does not alter the original session.
doc_sdk_ts_resolve_settings TypeScript Agent SDK resolveSettings(): resolve SDK settings from configured sources official-public-docs-derived TypeScript SDK reference helper resolves applicable settings through the SDK configuration source chain; it is a settings-resolution surface, not a permission mode itself.
doc_sdk_ts_match_denied_models TypeScript Agent SDK matchDeniedModels(): match requested models against denied-model configuration official-public-docs-derived TypeScript SDK reference helper checks a requested model against configured denied models; model denial remains a configuration/policy boundary enforced by the SDK host.
doc_sdk_ts_control_initialize_response TypeScript SDK SDKControlInitializeResponse: control-channel initialization result official-public-docs-derived TypeScript SDK reference response type reports the result of a control-channel initialization request; it pairs an SDK control request with its host-readable outcome.
doc_sdk_ts_control_interrupt_response TypeScript SDK SDKControlInterruptResponse: control-channel interrupt result official-public-docs-derived TypeScript SDK reference response type reports the outcome of interrupting an active SDK response; pending and queued message handling remains governed by session/SDK message rules.
doc_sdk_ts_control_context_usage_response TypeScript SDK SDKControlGetContextUsageResponse: context-usage control response official-public-docs-derived TypeScript SDK reference response type returns current context usage requested over the control channel; it exposes usage state for UI or monitoring, not a model or permission grant.
doc_sdk_ts_control_read_file_response TypeScript SDK SDKControlReadFileResponse: control-channel file read result official-public-docs-derived TypeScript SDK reference response type carries a file-read result for a control-channel request; file access remains subject to host permissions and sandbox boundaries.
doc_sdk_ts_control_reload_plugins_response TypeScript SDK SDKControlReloadPluginsResponse: plugin reload control result official-public-docs-derived TypeScript SDK reference response type reports the outcome of reloading plugins through the control channel; reload applies to the running SDK session and follows plugin loading rules.
doc_sdk_ts_control_reload_skills_response TypeScript SDK SDKControlReloadSkillsResponse: skill reload control result official-public-docs-derived TypeScript SDK reference response type reports the outcome of reloading skills through the control channel; skill discovery and allowlist rules still apply to reloaded entries.
doc_sdk_ts_control_reload_output_styles_response TypeScript SDK SDKControlReloadOutputStylesResponse: output-style reload control result official-public-docs-derived TypeScript SDK reference response type reports the outcome of reloading output styles through the control channel; output styles affect presentation rather than agent permissions.
doc_sdk_ts_control_mcp_read_resource_response TypeScript SDK SDKControlMcpReadResourceResponse: MCP resource read control result official-public-docs-derived TypeScript SDK reference response type returns an MCP resource read result for a control-channel request; resource access follows the connected MCP server and its permission policy.
doc_sdk_cost_accumulate_calls_session_totals SDK cost accumulation: independent calls add totals; resumed session restores transcript spend official-public-docs-derived Official Agent SDK cost-tracking: how totals combine depends on whether calls share a session. Independent calls with no resume or continue option each cover only their own call, so the caller adds the totals. Calls that resume the same session have the session's totals saved to the transcript on normal process exit and restored when a later call resumes or forks; each result already includes earlier session spend, so read the latest result for the session total and summing results double-counts restored spend. The entry records the documented accumulation rule and scope boundary.
doc_sdk_cost_output_tokens_result_placeholder SDK output tokens: assistant-message placeholder count; real output count read from result message official-public-docs-derived Official Agent SDK cost-tracking: Claude Code builds each assistant message from the usage the API reported when the response began, so the message's output_tokens is only the count reported at message_start, before the response was generated; one API response can produce several assistant messages, each carrying that same placeholder. The API reports the real output count at the end of the response, and Claude Code adds it to the result message; read output tokens from the result's usage, or from modelUsage for a per-model breakdown. The entry records the documented placeholder and result-message boundary.
doc_sdk_cost_failed_conversation_usage SDK failed-conversation usage: success and error results both carry usage and cost; optional None check official-public-docs-derived Official Agent SDK cost-tracking: both success and error result messages include usage and total_cost_usd; in Python both fields are typed as optional, so check that they are not None before reading. If a conversation fails midway, tokens were still consumed up to the point of failure; read cost data from every result message whether its subtype is success or one of the error subtypes. On some error results usage reports less than the call spent, for example error_during_execution after a session crash may zero every cost field, and error_max_budget_usd leaves out the response that crossed the budget. The entry records the documented failure-mode usage boundary.
doc_sdk_typescript_continue_true_session_option TypeScript SDK continue: true resumes the most recent session in the directory on each query() official-public-docs-derived Official Agent SDK sessions documentation: the TypeScript SDK has no session-holding client object like Python's ClaudeSDKClient. Instead, pass continue: true on each subsequent query() call and the SDK picks up the most recent session in the current directory; no ID tracking is required. The entry records this documented TypeScript continue option; Python ClaudeSDKClient session holding and resume by captured session ID are separate existing SDK session entries.
doc_structured_output_output_format_option outputFormat(TS)/ output_format(Python)选项:type 取 json_schema,schema 传入目标结构定义 official-public-document outputFormat(TS)/ output_format(Python)选项:type 取 json_schema,schema 传入目标结构定义
doc_structured_output_structuredoutput_tool_call 设置输出格式后,消息流携带未自定义的 StructuredOutput 工具调用,承载待校验结构化结果 official-public-document 设置输出格式后,消息流携带未自定义的 StructuredOutput 工具调用,承载待校验结构化结果
doc_structured_output_invalid_json_retry_error Agent 无法产出符合 schema 的有效 JSON 时进入重试;超过重试上限后返回结构化输出错误 official-public-document Agent 无法产出符合 schema 的有效 JSON 时进入重试;超过重试上限后返回结构化输出错误
doc_stream_partial_messages_option_enable include_partial_messages(Python)/ includePartialMessages(TypeScript)置 true 后 SDK 逐块产出部分消息 official-public-document include_partial_messages(Python)/ includePartialMessages(TypeScript)置 true 后 SDK 逐块产出部分消息
doc_stream_message_flow_assistantmessage_per_block 每个非空内容块完成时发出 AssistantMessage;文本块与工具调用可分别产生独立消息 official-public-document 每个非空内容块完成时发出 AssistantMessage;文本块与工具调用可分别产生独立消息
doc_stream_cutoff_message_stop_before_turn_end 流在消息中途被截断时,回合结束前仍收到 message_stop;中断回合、取消或网络断开均可导致截断 official-public-document 流在消息中途被截断时,回合结束前仍收到 message_stop;中断回合、取消或网络断开均可导致截断
doc_stream_tool_call_incremental_start_input_complete 工具调用增量流式呈现:可跟踪工具启动、输入生成过程与完成时刻 official-public-document 工具调用增量流式呈现:可跟踪工具启动、输入生成过程与完成时刻
doc_stream_partial_structured_output_unvalidated_chunks 开启部分消息时,结构化输出 JSON 以未校验的 input_json_delta 块流式到达,校验结果仅在最终消息返回 official-public-document 开启部分消息时,结构化输出 JSON 以未校验的 input_json_delta 块流式到达,校验结果仅在最终消息返回
doc_todo_tracker_class TaskTracker 类:按任务 ID 维护待办映射并重渲染进度摘要 official-doc-derived 官方 todo-tracking 参考:应用监视流出的 TaskCreate 与 TaskUpdate tool_use 块,在示例 TaskTracker 类中按任务 ID 维护任务映射与待处理创建映射,每次变更重渲染进度摘要;摘要统计已完成与进行中任务,活动项显示 activeForm 而非 subject。该形状用于应用维护进度展示而非逐条记录事件;本条记录公开示例类结构边界,不收录内部实现算法细节。
doc_todo_create_output TaskCreateOutput:TaskCreate 结构化输出类型(TypeScript;Python 为同形 dict) official-doc-derived 官方 todo-tracking 参考:分配的任务 ID 不在 TaskCreate 输入中;Claude Code 把每个工具的结构化输出放在携带 tool_result 块的用户消息 tool_use_result 字段。TaskCreate 的该对象在 TypeScript 工具输出类型下记为 TaskCreateOutput,Python 侧为同形状的普通 dict;跟踪器按 tool_use_id 配对 tool_result 块与 tool_use 调用,再从配对消息的 tool_use_result 读取 task.id。
agent_google_adk Google Agent Development Kit (ADK) open-source-agent-framework-verify-repository-license Google ADK 是模块化 AI 代理开发与部署框架,提供 LlmAgent、工作流编排、工具生态、多代理组合、内置评估与会话管理;虽为 Gemini 与 Google 生态优化,但模型无关、部署无关,并兼容其他框架。
agent_sdk_qwen_agent Qwen-Agent Framework open-source-agent-framework-verify-repository Qwen-Agent 封装工具调用模板与解析器,提供 Assistant 代理、内置工具、代码解释器、RAG 与 MCP 服务器配置;可对接 DashScope 端点或 OpenAI 兼容本地/自托管端点。
agent_sdk_agentscope AgentScope Multi-Agent Framework & Runtime (Alibaba) open-source-agent-framework-verify-repository 阿里巴巴 AgentScope 多代理开发框架与配套 Runtime:ReAct 代理、工具调用、对话状态与记忆、多代理管道编排、RAG、评估与 Studio;Runtime 提供沙箱化工具执行与生产部署,可部署到 Model Studio 应用平台或 ACS 容器集群。
agent_adk_runner ADK Runner (agent run orchestration) open-source-agent-framework-apache-2.0-verify-repository ADK Runner binds an agent, app name and session service, then emits agent events for a run; the runner drives the agent interaction loop.
agent_adk_session_service ADK Session Service (session state) open-source-agent-framework-apache-2.0-verify-repository ADK Session Service (e.g. InMemorySessionService) creates and persists per-app, per-user, per-session state for agent runs.
entry_2_1_332_code_mode_subagent_stalled_script_over_10min Code Mode subagent stalled after script over 10 minutes (2.1.332) proprietary-all-rights-reserved Code Mode 子代理脚本运行超过 10 分钟时不再报 Agent stalled 并丢失命令。
entry_2_1_331_workflow_background_shell_mcp_cleanup 工作流代理回交报告后清理后台 Shell 与 MCP 服务器 changelog-derived 官方 changelog 2.1.331:Workflow 代理回交报告后,其后台 Shell 与 MCP 服务器有时仍继续运行;修复为报告回交后清理。边界:后台资源回收行为,不收录代理调度内部实现。
entry_2_1_330_subagent_declared_mcp_server_not_shutdown_early 子代理声明的 MCP 服务器在其他子代理或会话仍使用时不提前关闭 changelog-derived 官方 changelog 2.1.330:子代理声明的 MCP 服务器曾在其中一个子代理结束时被关闭,而其他子代理或会话仍在使用;修复服务器生命周期保护。边界:MCP 服务器共享生命周期,不收录进程管理内部。
entry_2_1_330_background_agent_stopped_just_finished_not_waiting 被停止时刚结束的后台代理不再被等待 changelog-derived 官方 changelog 2.1.330:在应用或 SDK 运行的会话中,Claude 曾等待一个在即将结束时被停止的后台代理;修复提前停止判定。边界:后台代理停止与等待行为,不收录代理调度内部结构。
doc_sdk_subagent_inherit_context SDK 子代理继承上下文 official-doc-derived SDK 子代理继承上下文:非 fork 子代理开启独立空白上下文窗口;父到子只传 Agent 工具 prompt 字符串,所需文件路径、错误信息与决策须直接写进 prompt;继承主会话扩展权限等设置。
doc_sdk_subagent_sendmessage_named_list SDK 子代理 SendMessage 初始化命名代理清单 official-doc-derived SDK 子代理 SendMessage 初始化命名代理清单:带 SendMessage 工具的子代理首轮自动收到会话内其他命名代理列表,供确定可发消息的名称;fork 子代理继承父对话而不获此清单。
doc_sdk_subagent_auto_invocation SDK 子代理自动调用 official-doc-derived SDK 子代理自动调用:Claude 依据任务与各子代理 description 自主匹配并派生;描述需清晰具体,使任务能匹配到正确子代理。
doc_sdk_subagent_explicit_invocation SDK 子代理显式调用 official-doc-derived SDK 子代理显式调用:在 prompt 中点名指定子代理(如 “Use the code-reviewer agent to check the authentication module”),要求使用该代理完成子任务。
doc_sdk_subagent_forked_sdk SDK fork 子代理 official-doc-derived SDK fork 子代理:复制当前对话而非全新起步;v2.1.302 起可在应用内调用 Agent 工具并传 subagent_type: "fork" 启动;可用 Agent(fork) deny 规则禁止派生 fork。
doc_sdk_subagent_resume_from_code SDK 子代理代码侧恢复 official-doc-derived SDK 子代理代码侧恢复:子代理完成后 Agent 结果文本含 agentId: ;先在首轮消息捕获 session_id,再在第二次 query 选项传 resume: sessionId 并在 prompt 带代理 ID;内置 Explore/Plan 代理可能省略 ID,需用自定义或 general-purpose 代理以便恢复。
doc_sdk_subagent_depth_concurrency_spend SDK 子代理深度/并发/花费上限 official-doc-derived SDK 子代理深度/并发/花费上限:每个子代理独立发 API 请求并计入 query total_cost_usd,且可再派生下级子代理形成代理树;可用深度、并发与花费三类边界约束增长(对应 SDK v0.3.219 / Python v0.2.127 起、捆绑 Claude Code v2.1.219+)。
doc_sdk_subagent_detect_invoke SDK 子代理调用检测 official-doc-derived SDK 子代理调用检测:子代理经 Agent 工具调用;检测 tool_use 块 name 为 "Agent";子代理上下文消息带 parent_tool_use_id;TypeScript 消息携带 agent_id(子代理 task_id,恢复后保持不变,需 TS SDK v0.3.292+);工具在 system:init 列表显示为 Task。
agent_adk_workflow_agents ADK Workflow Agents(Sequential / Parallel / Loop 流水线编排) open-source-agent-framework-apache-2.0-verify-repository ADK 工作流代理以 Sequential、Parallel、Loop 组合可预测的流水线;与 LLM 驱动的动态路由 transfer 相区别,属于固定编排模式。
agent_adk_llm_agent ADK LlmAgent(LLM 动态路由代理) open-source-agent-framework-apache-2.0-verify-repository ADK LlmAgent(常简称 Agent)是框架中的推理执行组件:由 LLM 解释指令与上下文,动态决定下一步、使用哪些工具以及是否把控制权转交给其他代理;与按 Sequential/Parallel/Loop 固定路径运行的 Workflow Agents 相对。
doc_sdk_checkpoint_multiple_restore_points Agent SDK 多检查点恢复点:保存各 checkpoint UUID 与元数据,会话结束后回退到任一历史文件状态 official-public-docs-derived 官方 file-checkpointing 文档的多恢复点模式:把每个开启回合的用户消息 UUID 存入数组并附带元数据;会话结束后恢复会话,再按任一 checkpoint UUID 调用 TypeScript rewindFiles() 或 Python rewind_files() 回到历史文件状态。边界:该机制回溯文件变更,不撤销对话历史。
doc_sdk_checkpoint_replay_user_messages_option Agent SDK 检查点 UUID 获取选项:Python extra_args replay-user-messages;TypeScript extraArgs replay-user-messages official-public-docs-derived 要在响应流中收到作为检查点标识的用户消息 UUID,SDK 选项必须传入 Python extra_args={"replay-user-messages": None} 或 TypeScript extraArgs={ "replay-user-messages": null };缺少该选项时 message.uuid 可能不存在。本条只记录公开 SDK 选项映射,不推断内部消息封装或未公开字段。
doc_sdk_system_prompt_minimal_default System prompt minimal default: unset systemPrompt/system_prompt, tool-calling prompt without preset safety instructions official-public-docs-derived Official Agent SDK modifying-system-prompts page: when TypeScript systemPrompt or Python system_prompt is unset, the SDK uses a minimal prompt covering tool calling and omits the claude_code preset’s security and safety instructions; this differs from claude -p, which defaults to the Claude Code system prompt. Entry records only this starting-point boundary, not internal prompt text.
doc_sdk_ts_add_plugins_option TypeScript Agent SDK reloadPlugins addPlugins option: mid-session local plugin folders official-doc-derived The TypeScript Agent SDK reloadPlugins({ addPlugins }) option loads plugin folders absent from the startup plugins option. Each entry is { type: "local", path } with an absolute path; loaded folders and their plugin MCP servers connect in one pass. After a successful load the folder remains part of the session and need not be passed again. If reloadPlugins rejects, none of the folders are added; documented refusals include a malformed or relative path, managed disableSideloadFlags, and sandbox rebuild failure. The Python SDK has no equivalent reloadPlugins method; use the /reload-plugins prompt instead.
doc_sdk_python_cli_not_found_error CLINotFoundError:Python Agent SDK 未找到 Claude Code CLI 异常 official-doc-derived 官方 Python Agent SDK 参考:CLINotFoundError 在 Claude Code CLI 未安装或无法找到时抛出;只记录公开异常类型、触发条件与继承关系,不推断内部进程实现。
doc_sdk_python_cli_connection_error CLIConnectionError:Python Agent SDK 连接 Claude Code 失败异常 official-doc-derived 官方 Python Agent SDK 参考:CLIConnectionError 在 SDK 与 Claude Code 的连接失败时抛出;记录公共异常入口与 ClaudeSDKError 继承关系,边界仅限公开 API 类型说明。
doc_sdk_python_cli_json_decode_error CLIJSONDecodeError:Python Agent SDK JSON 解析或超缓冲消息异常 official-doc-derived 官方 Python Agent SDK 参考:CLIJSONDecodeError 在 CLI 输出 JSON 解析失败,或单条 CLI 消息长度超过 max_buffer_size 时抛出;两类触发条件均来自公开参考文档。
doc_sdk_python_sdk_plugin_config SdkPluginConfig:Python Agent SDK 插件加载配置 official-doc-derived 官方 Python Agent SDK 参考:SdkPluginConfig 是用于 SDK 内加载插件的 TypedDict;公开字段为本地类型标记与路径,记录配置契约,不收录插件内部目录结构。
doc_sdk_python_hook_context HookContext:Python Agent SDK 钩子回调上下文 official-doc-derived 官方 Python Agent SDK 参考:HookContext 是传给钩子回调的上下文信息;公开参考列出可选 signal 字段,作为未来中止信号支持,当前不把未公开能力写成已实现事实。
doc_sdk_subagent_dynamic_factory_definition Agent SDK 动态代理工厂:按运行时条件返回 AgentDefinition official-public-docs-derived Official Agent SDK subagents documentation: a factory function returns an AgentDefinition based on runtime conditions; the agent definition is created at query time, so each request can use a different strictness prompt, tool list and model. Boundary: this records the public SDK composition pattern only, not internal runtime scheduling or unpublished model internals.
doc_sdk_agent_definition_skills_preload_limit AgentDefinition.skills 预载上限:仅前 32 个不同技能;未列出技能仍可经 Skill 工具调用 official-public-docs-derived Official Agent SDK subagents documentation: the skills field lists skill names preloaded into the agent's context at startup; at most the first 32 distinct names are preloaded. Skills absent from the list remain invocable through the Skill tool. Boundary: this describes context preloading, not permission approval; tool and skill access still follow the official permission and MCP/tool rules.
doc_sdk_agent_definition_background_invocation_status AgentDefinition.background 与子代理等待状态:默认 async_launched,需要结果时阻塞为 completed official-public-docs-derived Official Agent SDK subagents documentation: a spawned subagent runs in the background by default; the Agent tool result has status async_launched and the report arrives in a later turn. Claude waits when its next action needs the report: the call blocks and returns status completed. Prompt wording or the definition's background: true flag controls this choice. Boundary: the status describes SDK invocation result flow; approval, sandbox limits and resource quotas remain separate official boundaries.
doc_sdk_python_list_sessions Python Agent SDK list_sessions(): enumerate stored sessions with directory, pagination and worktree filters official-public-docs-derived Official Python Agent SDK reference: list_sessions() returns past sessions with metadata. The optional directory limits results to one project; limit and offset provide pagination; include_worktrees controls whether sessions from other worktree paths in a git repository are included. The call is synchronous and returns immediately; results are ordered by last_modified descending. Boundary: this read-only metadata method does not grant transcript access beyond the caller's SDK permissions.
doc_sdk_ts_warmquery_handle WarmQuery: prewarmed TypeScript SDK CLI-subprocess handle that accepts a later prompt official-public-docs-derived Official TypeScript Agent SDK reference: startup() spawns the CLI subprocess and completes the initialize handshake before a prompt is available. It returns a WarmQuery handle; the handle accepts a prompt later and writes it to the already-ready process, so the first query() avoids paying subprocess spawn and initialization cost inline. Boundary: prewarm only changes startup timing; it does not bypass permission approval, sandbox limits, MCP server setup, SessionStart hooks or session context loading. Messages held before the handshake complete are delivered when query() results are iterated.
doc_sdk_ts_spare_process SpareProcess: prewarm spare TypeScript SDK CLI process claimed after its initialize handshake official-public-docs-derived Official TypeScript Agent SDK reference: prewarm() returns a SpareProcess ready to claim after initialization. A spare waits in a private temporary directory under the Claude Code config directory, or in options.cwd when supplied. Before claim(), it does not move to the future working directory, run SessionStart hooks, start stdio MCP servers, or load CLAUDE.md and git context. Claim cannot change prewarm values such as mcpServers, hooks, canUseTool, settingSources or plugins; a separate spare is kept for each differing option set. resume, continue and forkSession are rejected because a spare has no session yet. Boundary: this records the public spare-process lifecycle and pre-claim boundaries, not internal process scheduling.
doc_sdk_ts_mcp_toggle_server toggleMcpServer(): TypeScript SDK enables or disables an MCP server by name official-public-docs-derived Official TypeScript Agent SDK reference: toggleMcpServer(serverName, enabled) enables or disables an MCP server by name, using the same name resolution as reconnectMcpServer(). Disabling a server disconnects it and removes its tools. Boundary: the method changes connected MCP server availability; tool approval, sandbox isolation, resource access and server-side data permissions remain separate official boundaries.
doc_sdk_ts_mcp_permission_mode_override setMcpPermissionModeOverride(): stricter per-MCP-server tool permission mode, or null to clear the override official-public-docs-derived Official TypeScript Agent SDK reference: setMcpPermissionModeOverride(serverName, mode) overrides the permission mode for one MCP server's tools with a stricter mode than the session, or clears the override with null. It is available only in streaming input mode. The documented use case is a session that skips per-action prompts while one server's tools should still be reviewed; the method requires TypeScript Agent SDK v0.3.187 or later. Boundary: this per-server stricter review layer does not replace session permissions, sandbox rules or MCP server-side authorization.
doc_sdk_assistant_message_user_message_uuid_reason Assistant-message user_message_uuid, user_message_uuids and resume_reason restart-continuation correlation fields official-public-docs-derived Official TypeScript Agent SDK reference: Claude Code sets user_message_uuid and user_message_uuids on the turn's first assistant message under the documented conditions. When a turn continues one interrupted by a restart, the assistant messages carrying those fields also carry resume_reason. Boundary: these are SDK message-contract correlation fields for message matching and resume continuity; they do not establish approval, model identity, transcript authenticity or content integrity beyond the documented message schema.
doc_sdk_ts_session_writes_lost_message SDKSessionWritesLostMessage: system message reporting transcript or global-config writes lost on ENOSPC/EDQUOT official-public-docs-derived Official TypeScript Agent SDK reference: SDKSessionWritesLostMessage is a system message with subtype session_writes_lost when Claude Code could not save changes to ~/.claude.json or part of a session transcript because the disk or disk quota was full. The documented fields are error_code (ENOSPC or EDQUOT), lost (transcript and/or global_config), optional transcript_session_ids, uuid and session_id; global_config identifies ~/.claude.json. Boundary: this is a diagnostic reporting channel; it does not reconstruct missing transcript lines, restore configuration, or grant filesystem write access. Recovery requires freeing space before the next run.
doc_sdk_ts_context_usage_category SDKContextUsageCategory: one /context usage-by-category row classified by kind rather than display name official-public-docs-derived Official TypeScript Agent SDK reference: SDKContextUsageCategory carries one row of the /context usage-by-category breakdown. Fields are name (display row name such as Messages), tokens (row token count; zero-token rows are allowed) and kind (used, free, buffer or deferred). Rows must be classified by kind, not by the localized display name: used occupies the context window, free is the remaining window, buffer is the compaction reserve, and deferred lists tool schemas held outside the window and excluded from the usage calculation. Boundary: this records public context-usage attribution diagnostics; it does not expose an internal model algorithm or weight.
doc_sdk_ts_message_origin SDKMessageOrigin: provenance kind assigned to a user-role message and copied onto its result message official-public-docs-derived Official TypeScript Agent SDK reference: SDKMessageOrigin appears as origin on SDKUserMessage; the SDKResultMessage for a turn carries the origin Claude Code assigned to the triggering user message. Documented kinds are human, channel, peer, task-notification, coordinator, auto-continuation and unclassified. A host application may set human and the scheduled-trigger task-notification form; other reserved kinds are left to Claude Code and Anthropic servers. Peer fields identify another in-process teammate or cross-session session; channel identifies an incoming MCP server message. Boundary: origin metadata records provenance for routing and debugging; it does not establish sender approval, identity verification, transcript integrity, or content trust, and session permissions and team/peer message boundaries still apply.
doc_sdk_ts_user_message_replay SDKUserMessageReplay: replayed injected user turn with required UUID and isReplay flag official-public-docs-derived Official TypeScript Agent SDK reference: SDKUserMessageReplay represents a replayed user message with a required UUID. Its documented fields are session_id, message, parent_tool_use_id, optional isSynthetic, client_composed, tool_use_result and origin, plus the constant isReplay: true. A user turn injected from outside the session whose origin kind is peer or channel reaches the stream as a replay, whether it was delivered during an active turn or started a new turn while the session was idle. Boundary: replay preserves transcript and provenance presentation; it does not imply a fresh direct user approval or override the originating peer/channel permission review.
doc_sdk_ts_mcp_claude_ai_proxy_config McpClaudeAIProxyServerConfig: Claude.ai-proxied MCP server record with proxy type, URL and id official-public-docs-derived Official TypeScript Agent SDK reference: McpClaudeAIProxyServerConfig is the MCP server record for a server proxied through Claude.ai. The documented shape has type claudeai-proxy, url and id. Boundary: this is a proxied server reporting/configuration record; it does not authorize local tool calls, bypass the MCP client-to-server trust model, or remove server-side data permissions.
doc_sdk_ts_agent_mcp_server_spec AgentMcpServerSpec: subagent-available MCP server reference name or inline process-transport server configuration official-public-docs-derived Official TypeScript Agent SDK reference: AgentMcpServerSpec specifies MCP servers available to a subagent. It may be a string naming a server from the parent mcpServers configuration, or an inline record mapping server names to process-transport configurations: stdio, SSE, HTTP or SDK in-process server config. Boundary: the spec delegates which servers appear to the subagent; tool approval, sandbox isolation, workspace trust and server-side authorization remain separate official boundaries.
doc_sdk_ts_permission_behavior PermissionBehavior:TypeScript SDK 权限更新行为类型 official-doc-derived 官方 TypeScript SDK 参考:PermissionBehavior 是权限更新记录携带的行为分类,与 PermissionUpdate、PermissionUpdateDestination 同属 SDK 权限更新类型族。条目只记录公开类型契约与所属更新通道,不收录内部规则求值算法或未公开实现。
doc_sdk_ts_api_key_source ApiKeySource:会话请求 API 密钥来源枚举(SDKSystemMessage init 的 apiKeySource) official-doc-derived 官方 TypeScript SDK 参考:ApiKeySource 记录当前会话请求所用 API 密钥的来源,作为 init 阶段 SDKSystemMessage 的 apiKeySource 字段上报;公开枚举覆盖环境变量、apiKeyHelper、/login 托管密钥、none 与 user 等来源。条目只标注认证来源类别与边界,不收录密钥值、令牌或轮换实现。
doc_sdk_ts_agent_info AgentInfo:supportedAgents() 返回的子代理描述记录 official-doc-derived 官方 TypeScript SDK 参考:AgentInfo 是 supportedAgents() 返回的可用子代理描述记录,出现在初始化响应的 agents 数组中,用于向宿主暴露代理标识与可用代理信息。条目只记录公开返回记录的用途与挂载位置,不收录子代理内部调度或模型权重。
doc_sdk_ts_model_info ModelInfo:supportedModels() 返回的模型展示描述记录 official-doc-derived 官方 TypeScript SDK 参考:ModelInfo 是 supportedModels() 返回的模型展示描述记录,出现在初始化响应的 models 数组中,用于宿主展示可用模型及其公开标识信息。条目只记录公开描述记录的用途与位置,不收录模型内部算法、训练数据或未发布代号。
doc_sdk_ts_account_info AccountInfo:accountInfo() 返回的账号描述记录 official-doc-derived 官方 TypeScript SDK 参考:AccountInfo 由 accountInfo() 查询返回,并出现在初始化响应的 account 字段中,承载宿主会话可见的公开账号描述信息。条目只记录公开类型记录与挂载位置,不收录订阅权益内部结构、凭证值或会话私有令牌。
doc_sdk_ts_slash_command SlashCommand:supportedCommands() 返回的斜杠命令描述记录 official-doc-derived 官方 TypeScript SDK 参考:SlashCommand 是 supportedCommands() 返回的斜杠命令描述记录,出现在初始化响应的 commands 数组中,用于宿主展示会话可用命令。条目只记录公开命令描述记录的用途与位置,不收录命令脚本内部实现。
doc_headless_structured_output_field_presence_boundary Structured output response field: structured_output absent when no valid result (e.g. request declined); script must check field presence official-public-docs-derived --output-format json 配合 --json-schema 返回结构化结果;若运行结束未产生有效结构化输出(例如请求被拒绝),响应不包含 structured_output 字段,脚本使用前必须先检查字段是否存在。边界:JSON Schema format 关键字仅作为标注接受,不做客户端强制校验;该规则描述响应载荷形态,不等同于服务端模型保证。
doc_sdk_prompt_exclude_dynamic_sections_cache_option excludeDynamicSections / exclude_dynamic_sections:将动态记忆位置移出预设系统提示以复用提示缓存 official-doc-derived 官方系统提示文档:在 claude_code 预设系统提示对象上,TypeScript 的 excludeDynamicSections 与 Python 的 exclude_dynamic_sections 会把按用户变化的动态上下文移入首条用户消息;系统提示只保留静态预设与 append 文本,使相同配置在不同用户、机器和检出目录之间复用提示缓存条目。该选项仅用于预设对象形式;传入自定义提示时 SDK 忽略它。版本下限:TypeScript @anthropic-ai/claude-agent-sdk v0.2.98,Python claude-agent-sdk v0.1.58。条目只记录公开选项与缓存边界,不收录预设文本、记忆路径内部结构或缓存算法。
doc_sdk_prompt_snapshot_recorded_prompt_option systemPrompt snapshot=false:SDK 会话系统提示词每请求重建的调试选项 official-doc-derived 官方系统提示文档:preset 或 custom systemPrompt 对象上的 snapshot 字段控制 Claude Code 是否记录会话首请求提示词并在压缩前复用。snapshot=false 会在每次请求重建提示词,用于迭代提示词措辞;生产环境应保持记录开启,关闭记录会使会话提示缓存无法复用,在 API 强制保留 thinking 的场景下也会丢失早期 thinking。bare mode 默认关闭记录,除非显式设置 snapshot=true。版本下限:TypeScript v0.3.257,Python v0.2.153;记录 append/custom 提示词的默认行为要求 Claude Code v2.1.265,v2.1.268 之前未拉取功能标志的平台每次请求都会重建提示词且 snapshot 不生效。
doc_sdk_hook_matcher HookMatcher: Agent SDK hook matcher binding a matching rule to registered hook callbacks official-doc-derived 官方 Agent SDK user-input 与 skills 文档:HookMatcher 把 matcher 匹配规则与一组已注册 hook 回调绑定,供 Python 与 TypeScript SDK 的公开钩子类型契约使用。条目只记录公开类型结构与用途边界,不收录内部 hook 调度实现、匹配算法或未公开事件载荷。
doc_sdk_compact_boundary_metadata compact_metadata: compaction metadata attached to a compact_boundary system message (pre_tokens, trigger) official-doc-derived 官方 Agent SDK streaming-output / skills 文档:compact_boundary 系统消息携带 compact_metadata 记录历史压缩元数据,公开字段为压缩前 token 数 pre_tokens 与压缩触发来源 trigger。条目记录消息附属元数据字段,不建模内部压缩算法、上下文裁剪策略或持久化存储实现。
doc_sdk_ts_tool_config ToolConfig: TypeScript built-in tool behavior configuration official-public-docs-derived Official TypeScript Agent SDK reference: ToolConfig configures built-in tool behavior. Its askUserQuestion.previewFormat field opts the AskUserQuestion preview into markdown or html; when unset, Claude does not emit previews. This entry records the public configuration type boundary, not internal tool scheduling.
doc_sdk_ts_partial_assistant_message SDKPartialAssistantMessage: TypeScript streaming partial assistant message official-public-docs-derived Official TypeScript Agent SDK reference: SDKPartialAssistantMessage is emitted only when includePartialMessages is true. It carries the upstream stream event; parent_tool_use_id is always null because stream events target the main session. For subagent attribution use complete messages with agent_id and parent_tool_use_id, or enable forwardSubagentText.
doc_sdk_ts_informational_message SDKInformationalMessage: generic loop text status banner official-public-docs-derived Official TypeScript Agent SDK reference: SDKInformationalMessage has type system and subtype informational. It carries warnings, notices and other non-error status lines, plus hook feedback such as a UserPromptSubmit hook block reason. Content renders as plaintext at the reported level; the settings_not_in_effect tag marks skipped or unloaded app/user/project/local settings.
doc_sdk_hook_callback HookCallback:Agent SDK 钩子回调函数类型 official-doc-derived Agent SDK 公开 HookCallback 契约:Python 签名接收 HookInput、可选 tool_use_id 与 HookContext;TypeScript 接收 HookInput、toolUseID 与 AbortSignal 选项,返回 HookJSONOutput。条目只记录公开回调签名与输入输出边界,不收录内部调度、匹配算法或未公开事件载荷。
doc_sdk_hook_input HookInput:Agent SDK 钩子输入联合类型 official-doc-derived Agent SDK 公开 HookInput 联合类型:实际输入类型由 hook_event_name 区分,各事件输入继承基础字段并携带事件专属参数。条目记录公开联合契约与共享输入边界,不收录会话内部存储、隐藏状态或内部调度实现。
agent_sdk_dashscope_agenticx DashScope AgenticX Python Agent Runtime (dashscope-agenticx) mit-verify-repository-license AgenticX 1.0 是 DashScope 官方 Python 代理运行时,用于构建和运行领域专家代理;统一连接模型、工具、Skill、权限与持久会话,提供 CLI、TUI、Python SDK、嵌入式入口和本地令牌认证服务。运行时是本地/嵌入组件,不是托管工作流平台,也不是经过加固的操作系统沙箱。

模型 Client SDK

ID 名称 许可证状态 摘要
client_sdk_python_typescript Anthropic Client SDK (Python / TypeScript) open-source-verify-license-file 直接访问 Claude API 的客户端库;工具循环通常由调用方自行实现。
sdk_genai_python Google GenAI SDK · Python (google-genai) official-package-verify-repository-license Python 官方生产库 google-genai,仓库 googleapis/python-genai,pip install google-genai;自 2025 年 5 月 GA,是访问 Gemini API 的推荐 Python SDK。
sdk_genai_typescript Google GenAI SDK · TypeScript (@google/genai) official-package-verify-repository-license JavaScript/TypeScript 官方生产库 @google/genai,仓库 googleapis/js-genai,npm install @google/genai;GA 阶段,访问 Gemini API 的推荐 TS/JS SDK。
sdk_genai_go Google GenAI SDK · Go (google.golang.org/genai) official-package-verify-repository-license Go 官方生产库 google.golang.org/genai,仓库 googleapis/go-genai,go get google.golang.org/genai;GA 阶段,推荐 Go 语言 Gemini API 接入库。
sdk_genai_java Google GenAI SDK · Java (com.google.genai:google-genai) official-package-verify-repository-license Java 官方生产库 com.google.genai:google-genai,仓库 googleapis/java-genai;Google 此前未提供旧版 Java 库,直接使用该新库。
sdk_genai_csharp Google GenAI SDK · C# (Google.GenAI) official-package-verify-repository-license .NET/C# 官方生产库 Google.GenAI,仓库 googleapis/dotnet-genai,dotnet add package Google.GenAI;GA 阶段推荐 .NET 接入库。
sdk_openai_python OpenAI Python API library (openai) apache-2.0-verify-package-metadata 官方 Python 库 pip install openai,提供同步与异步客户端、类型化请求/响应定义,访问 OpenAI REST API;由 OpenAPI 规范生成,仓库 openai/openai-python。
sdk_openai_typescript OpenAI TypeScript / JavaScript API library (openai) apache-2.0-verify-package-metadata 官方 Node/TypeScript 与 JavaScript 库 npm install openai,从 OpenAPI 规范生成;支持 Node LTS、Deno、Bun、Cloudflare Workers 与 Edge Runtime;浏览器默认禁用以避免暴露 API 凭证。
client_sdk_dashscope_python DashScope Python SDK (dashscope) official-client-sdk-verify-package 官方 Python 客户端库,配置 API Key、workspace 与 region 后调用文本生成与多模态对话接口;支持 DashScope 专有端点与 OpenAI 兼容接入方式。
client_sdk_dashscope_java DashScope Java SDK (com.alibaba.dashscope) official-client-sdk-verify-package 官方 Java 客户端库,提供 Generation 与 MultiModalConversation 等类调用文本与多模态模型;可通过 Protocol.HTTP 或 Constants.baseHttpApiUrl 配置地域端点。
client_sdk_dashscope_nodejs DashScope Node.js SDK (dashscope-sdk-nodejs, Realtime / TTS) official-client-sdk-verify-package 百炼官方 Node.js SDK 包 dashscope-sdk-nodejs:RealtimeClient 配置实时语音会话、收发 PCM 音频、处理转写与工具调用;SpeechSynthesizer 调用 TTS,处理音频、词时间戳与用量事件。
client_sdk_dashscope_csharp DashScope C# SDK (Bailian.DashScope, .NET 8 / .NET 10) official-client-sdk-verify-package 官方 .NET 客户端库(Bailian.DashScope),面向 net8.0 与 net10.0;提供 QwenRealtimeConversation(实时语音对话与 Omni Realtime)、FunAsrSpeechTranscriber(ASR)、CosyVoiceSpeechSynthesizer / SambertSpeechSynthesizer(TTS)与 QwenLiveTranslator(实时音视频翻译)等客户端。
client_sdk_dashscope_go_realtime DashScope Model Studio Server-side Go SDK(实时多模态 MultiModalDialog) official-client-sdk-verify-source-integration 服务端 Go SDK 封装实时多模态对话:dashscope.MultiModalDialog 管理交互会话与回调,提供 Start、StartSpeech、SendAudioData 等方法,经 WebSocket 与 Model Studio 实时推理端点通信;面向语音对话与多模态实时交互场景。
sdk_openai_go OpenAI Go API library (openai-go) apache-2.0-verify-repository-license OpenAI 官方 Go API 库(模块 github.com/openai/openai-go),提供类型化客户端访问 OpenAI REST API(Responses、Chat Completions、Embeddings、Realtime 等接入面)。
sdk_openai_java OpenAI Java API library (openai-java) apache-2.0-verify-repository-license OpenAI 官方 Java SDK(Maven 构件 com.openai:openai-java),提供类型化请求/响应对象访问 OpenAI REST API,适用于 JVM 后端应用。
sdk_openai_dotnet OpenAI .NET API library (openai-dotnet) mit-verify-repository-license OpenAI 官方 .NET(C#)API 库,提供客户端访问 OpenAI REST API(含流式响应),面向 .NET 应用开发。
sdk_openai_ruby OpenAI Ruby API library (openai-ruby) apache-2.0-verify-repository-license OpenAI 官方 Ruby 库(gem openai,Ruby 3.3.0+),使用标准库 net/http 传输并附带连接池,提供类型化文档串、RBS 与 RBI 类型声明,访问 OpenAI REST API。
client_sdk_qwen_multimodal_mobile Model Studio Qwen Real-Time Multimodal Mobile and Embedded SDK Suite official-client-sdk-verify-package 阿里云 Model Studio 通义 Qwen 实时多模态交互官方客户端 SDK 套件,覆盖 Android、iOS、HarmonyOS、Android Lite、iOS Lite 以及嵌入式 C/C++ 方向;入口为 MultiModalDialog,支持 WebSocket 与 RTC 链路、语音对话、文本/图像/视频交互、VQA 与 LiveAI 视频通话场景。
sdk_openai_codex_security_typescript Codex Security TypeScript SDK(@openai/codex-security) apache-2.0-verify-repository-license Codex Security 的官方 TypeScript 自动化 SDK,导出 CodexSecurity 客户端,用于在自动化流程中发起扫描、读取云端发现并接入安全修复工作流;SDK 源码许可证与托管云服务条款分开。
sdk_openai_guardrails_python OpenAI Guardrails Python 客户端库(openai-guardrails) mit-verify-repository-license OpenAI Guardrails Python 预览版客户端库封装 OpenAI Python 客户端,对应用输入与输出执行可配置的安全与合规检查;仓库同时提供与 OpenAI Agents SDK 的集成。该独立护栏客户端库与 Agents SDK 内建 Guardrails 能力分开建模,不合并为同一节点。
sdk_openai_guardrails_typescript OpenAI Guardrails TypeScript 客户端库(@openai/guardrails) mit-verify-repository-license OpenAI Guardrails TypeScript 预览版客户端库封装 OpenAI JavaScript/TypeScript 客户端,提供输入与输出检查;README 说明其支持 Responses 与 Chat Completions 调用路径,并提供 Agents SDK 集成。该独立护栏客户端库与 Agents SDK 内建 Guardrails 能力分开建模。
sdk_openai_chatkit_python OpenAI ChatKit Python 后端 SDK(openai-chatkit) official-open-source-sdk-apache-2-0-verify-repository OpenAI ChatKit Python 后端 SDK 用于高级自托管 ChatKit 集成,在服务端承载会话存储、访问控制、工具接入与后端功能;官方 pyproject 包名为 openai-chatkit,并依赖 OpenAI Python 客户端与 OpenAI Agents SDK。
sdk_openai_chatkit_typescript OpenAI ChatKit TypeScript/JavaScript 前端 SDK(@openai/chatkit 与 @openai/chatkit-react) official-open-source-sdk-apache-2-0-verify-repository OpenAI ChatKit JS/TS 前端 SDK 提供可嵌入聊天组件、React 绑定与前端会话接入能力;官方 monorepo 同时发布 @openai/chatkit 与 @openai/chatkit-react 包,并在平台文档中与 ChatKit 嵌入脚本和会话密钥流程配套说明。
sdk_openai_auth_javascript OpenAI Sign in with ChatGPT Auth SDK · JavaScript/TypeScript/React(@openai/auth 与 @openai/auth-react) official-open-source-sdk-apache-2-0-verify-repository 官方 Sign in with ChatGPT 前端认证 SDK:@openai/auth 提供 DOM 按钮、共享交互状态与 TypeScript 契约,@openai/auth-react 提供 React 组件、hooks 与头像。SDK 只衔接宿主应用既有认证流程;回调凭证核验、令牌校验和应用会话创建由宿主后端完成。

协议/标准

ID 名称 许可证状态 摘要
mcp_protocol Model Context Protocol (MCP) open-standard-license-transition 标准化 AI 客户端与外部资源、工具、提示模板之间连接的开放协议。
mcp_transport_stdio MCP stdio 本地进程传输 open-standard-license-transition 本地进程 Server,经 stdin/stdout 通信;适合需要直接系统访问或自定义脚本的工具;进程环境注入 CLAUDE_PROJECT_DIR 稳定项目根
mcp_transport_http_sse_ws MCP HTTP / SSE / WebSocket 远程传输 open-standard-license-transition 远程端点传输:http 端点、SSE、ws(wss);http/sse/ws 条目共享 url/headers/headersHelper/timeout/alwaysLoad 字段;ws 仅 header 认证
mcp_roots_list MCP roots/list 工作目录边界请求 open-standard-license-transition Server 经 roots/list 查询允许文件目录;Claude Code 回启动目录与 --add-dir/additionalDirectories 授予的附加目录;集合变化时发 notifications/roots/list_changed
mcp_type_sdk_host type: sdk 进程内 Server(仅 SDK 宿主应用可注册) configuration-documentation .mcp.json / ~/.claude.json / 设置中的 sdk 类型条目仅 Agent SDK 或桌面等宿主应用可注册;CLI 读取时跳过并报告跳过原因
mcp_connection_status MCP Server 连接状态分类(Connected/Needs auth/Failed/Pending/Disabled/Blocked) configuration-documentation mcp list 状态覆盖:已连接、工具拉取失败、需认证、连接失败/错误、待项目审批、项目内禁用、组织托管策略阻止;每种状态对应不同排查入口
mcp_server_scope MCP Server 注册作用域(local/project/user)与配置文件 configuration-documentation mcp add 默认 local 配置(当前项目当前用户);user 作用域一次注册供全部项目;项目级 .mcp.json 随仓库提交,首次见到需用户审批;审批选择可经 mcp reset-project-choices 重置
mcp_oauth_signin MCP OAuth 浏览器登录流程与静态 Token Header 备选 configuration-documentation 托管服务经 /mcp 面板 Authenticate 触发浏览器 OAuth 授权;静态 Token 认证在 add 时以 --header Authorization Bearer 传入;登录失败或浏览器未打开走排查流程
mcp_discovery_cache MCP 服务器发现缓存(cached 状态) configuration-documentation 工具列表来自前序会话发现缓存而非启动连接;cached 状态标注缓存时长与工具数;MCP_DISCOVERY_CACHE=1/0 开关;禁用或清除认证、重连会丢弃缓存条目;需 v2.1.221+
mcp_list_changed MCP list_changed 动态工具更新通知 capability-derived 服务器连接中变更工具/提示/资源并发送 list_changed;交互终端拉取更新列表;-p 非交互与 Agent SDK 仅刷新工具列表;刷新失败保留先前发现的条目直至下次成功
mcp_app_ui_resource MCP Apps UI 资源(ui:// URI / HTML profile) capability-derived 供宿主应用渲染的页面资源,非供 Claude 阅读的内容;不出现在 @ 建议与资源列表工具结果;仅提供 UI 资源的服务器资源列表为空;按 URI 读取仍可用
mcp_protocol_generation MCP SDK 代际与协议协商变量 MCP_SDK_GENERATION / MCP_PROTOCOL_NEGOTIATION configuration-documentation MCP_SDK_GENERATION 选 v1/v2 运行时代际;MCP_PROTOCOL_NEGOTIATION 控制是否向服务器询问新协议修订(auto/legacy);未设置时 stdio 可跳过询问
feat_mcp_protocol_elicit_20260728 MCP 2026-07-28 协议 URL-mode 引导 capability-derived 2.1.287 新增该协议连接上的服务器浏览器流程引导;服务器无法确认完成时不残留等待对话框;与 2025-11-25 协议 URL 提示并列
fix_mcp_list_escape MCP 列表输出转义字符与换行清理修复 capability-derived mcp list/get 与 remove/login/logout 未命中报错不再打印服务器名称与值中的换行和终端转义序列
fix_mcp_auth_reminder_discovery_cache 发现缓存开启时重新授权后不再重复提示 MCP 需要认证 changelog-derived changelog 修复:无头会话在 MCP 发现缓存开启且成功重新授权后,不再重复显示服务器需要认证的提醒。边界:记录连接状态与缓存衔接行为,不收录 OAuth 令牌存储或会话内部状态字段。
fix_mcp_dropped_handshake_tools_gap MCP 旧握手断连后工具列表延迟恢复修复 changelog-derived changelog 修复:MCP 连接器在服务器丢弃旧协议握手后,工具列表可能长达一天不出现;修复后连接状态与工具枚举随握手恢复同步更新。边界:描述公开 MCP 连接状态行为,不推断协议协商内部消息顺序。
fix_mcp_sdk_entry_skipped_warning type: sdk MCP 条目跳过并告警规则 open-standard-reference .mcp.json、设置、插件和代理文件中的 "type": "sdk" MCP 条目会被跳过并告警;只有 SDK 宿主应用能注册进程内服务器。
bedrock_gateway_assume_role Claude 应用网关 Bedrock 上游 assume_role:经 STS 假设 IAM 角色;可跨 AWS 账号,可选每开发者一个会话 changelog-derived 官方 changelog:Claude 应用网关在 Bedrock 上游支持 assume_role;网关通过 STS 假设 IAM 角色调用 Bedrock,可位于另一 AWS 账号,并可选为每个开发者使用独立会话。
gateway_hint_headers LLM 网关提示头:x-claude-code-request-class、agent-type、prev-tool-durations、compaction、context-compacted;CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 开启 changelog-derived 官方 changelog:LLM 网关可接收 x-claude-code-request-class、x-claude-code-agent-type、x-claude-code-prev-tool-durations、x-claude-code-compaction 与 x-claude-code-context-compacted 请求头;通过 CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 开启。
proto_a2a Agent2Agent (A2A) Protocol public-protocol-reference-entry Agent2Agent 代理间通信协议参考条目;用于区分代理间任务通道与 MCP 工具上下文通道。
feat_gateway_oidc_groups_jsonpath Claude 网关 OIDC groups JSONPath 配置 official-public-documentation Claude apps 网关支持 oidc.groups_jsonpath,从对象列表匹配条目读取组;使用小范围 RFC 9535 JSONPath 子集。
feat_gateway_idp_connect_by_hostname 网关 OIDC 代理按 IdP 主机名连接开关 official-public-documentation CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1 配合 oidc.use_proxy: true 时,即使设置 NO_PROXY,登录请求也把代理交给 https IdP 主机名。
doc_mcp_remote_http_server MCP remote HTTP server installation option official-public-documentation-entry MCP 安装流程提供远程 HTTP 服务器选项;公开文档记录服务器 URL 与认证配置入口,不暴露或推断服务端内部实现。
doc_mcp_remote_sse_server MCP remote SSE server installation option official-public-documentation-entry 远程 SSE 是 MCP 服务器的另一种长事件流接入选项;配置记录 URL 与认证头规则,不收录内部服务器算法、密钥或未公开实现。
doc_mcp_list_changed_notification_reconnect MCP v2 list_changed 通知流与重连限制 configuration-documentation v2 MCP 运行时通过保持打开的通知流接收服务器 list_changed;流关闭后重连:10 秒内反复关闭最多重连三次;超过 10 秒后关闭的连接按各自重连规则处理。
doc_mcp_channel_push_message_capability MCP claude/channel 推送消息能力 configuration-documentation MCP Server 声明 claude/channel 能力并由启动 --channels 选项启用后,可直接向会话推送 CI 结果、监控告警或聊天消息等外部事件,供 Claude 响应。
doc_mcp_cached_tool_list_status MCP 服务器缓存工具列表状态(cached) configuration-documentation /mcp 与插件管理器中,历史使用过的远程 HTTP/SSE 服务器可显示 cached 状态;工具列表来自上次会话发现缓存而非启动时连接,首次使用时再连接。
doc_monitor_websocket_message_rules Monitor WebSocket 事件消息规则 official-public-documentation WebSocket 监听把文本消息转为事件;二进制消息仅返回占位帧;超过 1 MiB 或 socket 关闭则结束监听;ws 输入使用 URL 与可选子协议字段。
cli_flag_channels --channels proprietary-cli-flag-documented-publicly 会话订阅 MCP 服务器的频道通知;值为空格分隔的 plugin:@ 条目。
cli_flag_no_browser --no-browser proprietary-cli-flag-documented-publicly MCP 授权流程不打开交互 /mcp 面板;SSH 场景下输出授权 URL,由用户粘贴回提示。
cli_flag_strict_mcp_config --strict-mcp-config proprietary-cli-flag-documented-publicly 跳过 .mcp.json、~/.claude.json 或插件中的 MCP 服务器,只加载 --mcp-config 传入的配置。
doc_subagent_mcpserver_lifecycle_reference mcpServers inline lifecycle and string reference sharing proprietary-all-rights-reserved 子代理 mcpServers 内联服务器启动时连接、最后使用者结束后断开;字符串引用共享父会话连接;主会话 --agent 场景同样适用。
change_mcp_alwaysload_false_meta_deferred_independently 工具自身 _meta anthropic/alwaysLoad=false 时,即使服务器 alwaysLoad 开启也保持延迟加载 changelog-derived MCP 工具若在自身 _meta['anthropic/alwaysLoad'] 中设置 false,当 --mcp-config、Agent SDK 或插件服务器配置为 alwaysLoad 时,改进后仍保持延迟加载。
fix_mcp_add_config_write_failure_not_reported_success claude mcp add/add-json/remove 在本地配置文件无法写入时不再报成功 changelog-derived 在沙箱等环境中无法写入用户或本地配置文件时,claude mcp add、add-json 与 remove 原先报告成功;修复后如实反映写入失败。
fix_mid_session_plugin_tools_deferred_definitions_no_toolsearch 无 ToolSearch 会话中新增的中途 MCP/插件工具以延迟定义交付,保护提示缓存 changelog-derived 在没有 ToolSearch 的会话中,会话中途加入的 MCP 与插件工具原先会进入工具列表并破坏提示缓存;修复后受支持模型接收这些工具的延迟定义。
doc_routine_connected_connectors 定时任务使用的已连接 claude.ai 连接器 official-public-docs-derived 任务运行时可调用纳入配置的已连接 MCP/连接器,从外部服务读取或写入数据;本地 CLI 添加的 MCP 服务器与账号连接器需区分。
entry_2_1_329_mcp_remote_server_message_error_row /mcp 服务器页:远程 HTTP MCP 拒绝连接时的 Server message JSON-RPC 错误行 official-document-derived-entry 远程 HTTP MCP Server 拒绝连接时,/mcp 服务器页面显示 Server message 行,展示 JSON-RPC 错误消息;用于区分连接失败与服务器未提供工具。
doc_mcp_client_runtime_v1_v2_selection MCP client runtime v1 and v2 selection by SDK generation and protocol revision official-public-documentation-entry Claude Code connects through one of two client runtimes: v1 on MCP TypeScript SDK 1.x, v2 on SDK 2.0 with protocol revision 2026-07-28. Runtime is selected at startup and retained until exit; flag-fetching and platform rules determine v2 availability.
doc_mcp_task_author_capability_negotiation MCP server author task capability negotiation in _meta clientCapabilities official-public-documentation-entry On a 2026-07-28 connection, each tools/call request carries Claude Code client capabilities at params._meta io.modelcontextprotocol/clientCapabilities, with io.modelcontextprotocol/tasks under extensions. A call that cannot become a task omits that extension.
glossary_account_connector Connector: claude.ai-account MCP server shown beside locally configured servers official-doc-derived Official glossary: a connector is an MCP server added to the claude.ai account rather than configured in Claude Code; after account sign-in it appears in /mcp alongside local servers. Organizations can provision connectors and apply per-tool controls.
cli_flag_mcp_config --mcp-config MCP 配置输入标志 official-public-documentation 从 JSON 文件或字符串加载 MCP 服务器;首轮前等待待连接服务器,最长为 MCP_TIMEOUT,缓存工具列表的服务器可跳过等待。
ch_mcp_protocol_version_change_reconnect_duplicate_call_fix Changelog fix: MCP connector server protocol-version change reconnects without duplicate or failed calls capability-derived 官方 changelog 修复:MCP 连接器工具调用偶发重复执行,或服务器改变所支持的 MCP 协议版本后调用直到重启才失败;修复按协议版本切换后的重连与调用衔接处理。
doc_channel_mcp_sdk_runtime_requirement Channel server requires MCP SDK and a Node.js-compatible runtime over stdio official-public-docs-derived Official Channels reference: the hard requirement is the @modelcontextprotocol/sdk package and a Node.js-compatible runtime; Bun, Node and Deno work. A channel server must declare the claude/channel capability, emit notifications/claude/channel events, and connect over stdio transport.
doc_mcp_project_dir_server_environment CLAUDE_PROJECT_DIR: stable project root passed in the spawned MCP server environment official-doc-derived Official MCP documentation: Claude Code sets CLAUDE_PROJECT_DIR in the spawned server's environment to the project root. The directory stays stable when working directories are added or removed mid-session; the variable belongs to the server process environment, not to Claude Code's own environment.
doc_mcp_roots_list_changed_notification notifications/roots/list_changed: MCP roots working-directory change notification official-doc-derived Official MCP documentation: Claude Code serves roots/list with the launch directory and every additional granted working directory, then sends notifications/roots/list_changed when that set changes. This root list is served outside the cloud; cloud sessions and supported claude.ai chats must not depend on it.
doc_llm_gateway_connection_method_request_defaults_and_pass_through_boundary LLM gateway compatibility: connection method shapes defaults, headers, feature pass-through and model discovery official-doc-derived Official LLM gateway guide: supported API formats and connection method determine request defaults, request/response header handling, optional beta feature pass-through, rejected-beta suppression and model discovery/caching. Upstream format mismatch and streaming behavior are compatibility boundaries; the entry records public protocol surface, not gateway internals or undisclosed routing logic.
doc_llm_gateway_connect_credential_base_url_header_mapping Gateway connection sets credential variable and base URL; credential maps to a request header with existing-login conflict handling official-doc-derived Official gateway connection documentation: Claude Code is configured with a credential variable and gateway base URL, then verified; the credential variable maps to the corresponding request header. Existing login conflicts, per-surface configuration, GitHub Actions use, extra headers, apiKeyHelper rotation and provider-route confirmation are documented connection boundaries. Credential values themselves are not stored in the ontology.
change_gateway_prompt_id_header x-claude-code-prompt-id gateway hint header groups requests serving one user prompt official-doc-derived 官方 changelog 2.1.283:x-claude-code-prompt-id 是供 LLM 网关把同一用户提示服务的请求分组的提示标识头;需经 CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 启用。条目只记录公开提示头名称、用途与启用开关,不记录内部请求签名或密钥。
doc_llm_gateway_protocol_api_formats_headers_passthrough_features LLM gateway compatibility: API formats, connection-method client defaults, request/response headers, attribution block and feature pass-through official-public-documentation-entry 网关兼容指南记录 API 格式、连接方式如何影响模型 ID/beta/请求字段与默认值、请求与响应头、系统提示归属块和特性透传;兼容不等于官方认证或相同服务条款。
doc_terminal_os7501_session_status_protocol OSC 7501 Program Status Protocol reports an interactive session as working, waiting or done official-public-document A terminal implementing OSC 7501 can display whether each interactive Claude Code session is working, waiting for the user, or finished. No Claude Code setting enables the protocol. Status reporting requires v2.1.295 or later; inside tmux Claude Code checks tmux support rather than the outer terminal, background sessions do not report terminal status, and CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 disables support detection and status reporting.
doc_gateway_hint_request_class_and_agent_type_headers Gateway hint headers carry request class, subagent type, compaction and cache-drop facts official-public-docs-derived Claude Code 可向网关/路由器发送每请求路由提示:请求类别、子代理类型、压缩触发原因、压缩后首个主会话请求的上下文已弃用事实;提示头从指定版本起发送,便于调度、缓存与归因。
doc_error_mcp_tool_invalid_input_schema_exclusion MCP 工具无效 input_schema:JSON Schema draft 2020-12 与属性名模式校验,加载时排除 proprietary-all-rights-reserved 官方错误参考:请求中工具声明的 input_schema 未通过 API JSON Schema 校验时会拒绝整个请求;有效模式为 JSON Schema draft 2020-12,顶层属性名须匹配 ^[a-zA-Z0-9_.-]{1,64}$。Claude Code 加载服务器工具时会排除这类无效 schema 工具;仍触发时可检查功能标志到达状态、$schema 方言,或禁用对应 MCP 服务器并修复工具 schema。
doc_error_mcp_tool_name_128_char_exclusion_debug_log MCP 全限定工具名 128 字符上限:超长工具不发送给 Claude,其余工具继续可用 proprietary-all-rights-reserved 官方错误参考:mcp____ 全限定名超过 API 接受的 128 字符时,Claude Code 将该工具排除在发送给 Claude 的工具清单之外,同一服务器的其他工具继续工作。claude --debug 启动的会话会在 ~/.claude/debug/.txt 写入被排除工具的名称与字符数;问题处理应缩短服务器名或工具名。
doc_gateway_provider_base_url_env_mapping LLM 网关按提供商配置 base URL:AWS、Bedrock、Vertex、Foundry 端点环境变量 proprietary-all-rights-reserved 官方企业部署文档:组织代理或 LLM 网关可通过 ANTHROPIC_BASE_URL、ANTHROPIC_AWS_BASE_URL、ANTHROPIC_BEDROCK_BASE_URL、ANTHROPIC_VERTEX_BASE_URL、ANTHROPIC_FOUNDRY_BASE_URL 路由对应提供商;本条只记录公开变量与路由边界,不记录密钥或请求内部结构。
doc_env_mcp_remote_connection_batch_size MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE:启动时并行连接的远程 MCP 服务器数量上限 configuration-documentation 官方环境变量:MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE 限制启动期间并行连接的远程 MCP 服务器(HTTP/SSE)数量;默认上限为 20。该批量尺寸只控制远程连接并发,不决定服务器认证、工具授权或 MCP 消息协议内容。
doc_env_mcp_local_connection_batch_size MCP_SERVER_CONNECTION_BATCH_SIZE:启动时并行连接的本地 stdio MCP 服务器数量上限 configuration-documentation 官方环境变量:MCP_SERVER_CONNECTION_BATCH_SIZE 限制启动期间并行连接的本地 stdio MCP 服务器数量;默认上限为 3。该变量与远程 MCP 批量尺寸分开配置,只控制本地进程启动并发,不改变 stdio 传输格式、工具权限或服务器环境清理规则。
entry_2_1_332_mcp_reconnect_disable_all_builtin_count /mcp reconnect all and /mcp disable all do not count an account-disabled built-in server configuration-documentation 账号未启用的内置 MCP 服务器不计入 /mcp reconnect all 与 /mcp disable all 的批量操作。记录公开 MCP 命令计数边界,不收录服务器内部认证状态或私有配置。
doc_sdk_ts_mcp_server_provenance McpServerProvenance: MCP serving server name and configuration-source provenance for an mcp__ tool official-public-docs-derived Official TypeScript Agent SDK reference: for an mcp__* tool, the permission request's mcpServer field names the serving MCP server and its definition source using McpServerProvenance; the field is absent for non-MCP tools. Requires Agent SDK v0.3.274 or later. This entry records provenance only, not a compatibility or endorsement claim.
doc_sdk_ts_mcp_server_tool_policy McpServerToolPolicy: approval-or-deny policy entry for one in-process SDK MCP server tool official-public-docs-derived Official TypeScript Agent SDK reference: McpSdkServerConfigWithInstance accepts an optional tools list of McpServerToolPolicy entries. A policy entry names a server tool so its calls can require approval or be denied. The entry records the public policy shape; internal MCP tool execution is not modeled.
doc_sdk_external_mcp_page Agent SDK MCP connection: server configuration, transport, permission, tool search, authentication and error boundary official-public-docs-derived Official SDK MCP page connects agents to external tools and data sources through the Model Context Protocol. MCP servers can be configured in query() code or a .mcp.json file loaded through settingSources; the page covers session-start connection timing, explicit MCP tool permission, transport types, tool search for large tool sets, authentication and connection failure handling. This entry records the SDK-facing protocol boundary, not MCP server internals or stored secrets.
doc_sdk_mcp_tool_matcher_naming MCP tool matcher naming pattern mcp____ for hook and tool filtering official-public-docs-derived Official SDK hooks documentation records that MCP tools use the pattern mcp____, where is the key used in mcpServers configuration, following the documented tool naming convention. Tool hooks match this tool-name field, while Notification hooks match notification type. The entry records the public matcher naming boundary; server authentication, tool schema and MCP server internals remain separate evidence-backed records.
doc_mcp_server_scope_all_projects MCP server configured for all projects: cross-project reusable server scope official-public-docs-derived MCP quickstart documents the all-projects server scope where a configured server remains available across the user's projects; scope precedence follows the official settings/MCP hierarchy.
doc_mcp_local_server_entry MCP local stdio server entry: local command-spawned tool server configuration official-public-docs-derived MCP quickstart covers adding a local server launched as a stdio command process; local process lifecycle, command path and arguments belong to the server configuration.
protocol_acp Agent Client Protocol (ACP, JSON-RPC over stdio) open-protocol-specification-verify-reference ACP 是开放协议,标准化 AI 编码代理与代码编辑器/IDE 的通信;Gemini CLI 的 ACP 模式以 JSON-RPC 2.0 over stdio 在代理与客户端间传递 initialize、authenticate、newSession、loadSession、prompt、cancel 等方法。
entry_2_1_330_mcp_plugin_server_listing_grouped_in_mcp_panel Plugin MCP servers listed separately from built-in in /mcp (2.1.330) proprietary-all-rights-reserved /mcp 不再把插件服务器列为内置:插件服务器归入 Plugin MCPs,--mcp-config 与内置服务器归入 Other MCPs。
entry_2_1_331_mcp_connector_tool_call_double_protocol_version MCP connector tool call no longer runs twice or fails until restart when server changes MCP protocol version (2.1.331) official-public-changelog-entry MCP 服务器变更所支持的 MCP 协议版本时,连接器工具调用不再重复执行,也不再需重启才恢复。
entry_2_1_331_headless_mcp_server_auth_after_refused_call_later_succeeds Headless session MCP server not marked needing auth after one refused call when later calls succeed (2.1.331) official-public-changelog-entry 无头会话中 MCP 服务器在一次被拒绝调用后不再被标记需要认证;后续调用成功即可使用。
entry_2_1_330_mcp_permission_prompt_tool_call_dashed_lines_like_edit MCP and other tool permission prompts show tool call between dashed lines matching file edit prompts (2.1.330) official-public-changelog-entry MCP 及其他工具权限提示在虚线之间展示工具调用,与文件编辑提示一致。
entry_2_1_330_headless_mcp_remote_first_connect_transient_retry_no_slowest_wait Headless MCP startup retries a remote server whose first connect fails transiently without waiting for slowest server (2.1.330) official-public-changelog-entry 无头模式 MCP 启动时,首次连接瞬时失败的远端服务器被重试,不必等待最慢服务器完成连接。
entry_2_1_332_sse_mcp_event_stream_reconnect_hang SSE MCP servers recover after event stream cut; no manual reconnect hang (2.1.332) official-documentation-changelog-entry Fix: SSE MCP servers hung or refused every tool call after the event stream was cut and returned on a new endpoint (or not at all); they no longer require a manual reconnect to recover.
entry_2_1_331_mcp_malformed_reply_tool_call_30min_hang MCP tool calls no longer hang up to 30 minutes on malformed local/WebSocket replies (2.1.331) official-documentation-changelog-entry Fix: MCP tool calls hung for up to 30 minutes on some malformed replies from a local or WebSocket server; malformed-response handling now fails promptly.
entry_2_1_331_custom_endpoint_tool_call_missing_name_crash Custom API endpoint tool call without name fails cleanly; session continues (2.1.331) official-documentation-changelog-entry Fix: a crash occurred when a custom API endpoint returned a tool call with no tool name; the call now fails with an error and the session continues.
fix_mcp_server_connected_twice_url_spelling_case_port_slash The same MCP server is not connected twice when a plugin/connector and a configured server spell the URL differently in host case, default port or trailing slash open-standard-reference URL spelling differences in host letter case, default port or trailing slash no longer cause the same MCP server to be connected twice.
fix_mcp_server_readded_same_name_auth_reconnect An MCP server re-added under the same name after claude mcp remove reconnects instead of still showing as needing authentication open-standard-reference After removal and re-add under the same name, an MCP server reconnects rather than remaining marked as needing authentication.
fix_mcp_tool_search_bare_name_no_match Tool search returns a match when Claude selects an MCP tool by its bare name instead of the full mcp__server__tool name open-standard-reference Bare-name selection of an MCP tool resolves to the full mcp__server__tool name during tool search.
fix_mcp_list_changed_tight_loop_high_cpu_repeated_list A tight loop of list_changed notifications no longer causes sustained high CPU and repeated tool-list requests open-standard-reference A server sending list_changed notifications in a tight loop no longer drives repeated tool-list requests or sustained high CPU.
entry_2_1_310_mcp_elicititation_timeout_noninteractive_no_repeat MCP tool call timing out in a non-interactive session with unanswered elicitation now tells Claude no answer came and not to repeat the call official-public-docs-derived Official changelog change: when an MCP tool call times out in a non-interactive session while the server's elicitation request is unanswered, the error message now states that no answer arrived and instructs Claude not to repeat the call. Records the MCP elicitation timeout behavior; MCP protocol negotiation follows the official MCP specification.
entry_2_1_309_mcp_config_file_editable_by_sandbox_command_fix Fixed sandboxed commands and auto-accepted edits modifying the MCP config file passed with --mcp-config official-public-docs-derived Official changelog fix: previously sandboxed commands and auto-accepted edits could alter the MCP configuration file supplied via --mcp-config; the write path is now protected. Records the MCP config filesystem boundary; MCP server configuration remains official documentation scope.
entry_2_1_305_mcp_consent_dialog_enter_not_taken_as_accept MCP consent dialogs improved so an Enter meant for the prompt is less likely to be taken as Accept official-public-docs-derived Official changelog improvement: MCP consent dialogs reduce the chance that an Enter directed at the prompt field is interpreted as the Accept choice. Records the MCP permission consent UX boundary; MCP server approval rules follow official permissions and MCP documentation.
env_mcp_server_name CLAUDE_CODE_MCP_SERVER_NAME 注入 MCP 服务器进程的服务器名环境变量 official-doc-derived 官方 MCP 文档:服务器进程环境中收到的当前 MCP 服务器名称;与 CLAUDE_CODE_MCP_SERVER_URL 配对,区别于插件根目录 CLAUDE_PLUGIN_ROOT。
env_mcp_server_url CLAUDE_CODE_MCP_SERVER_URL 注入 MCP 服务器进程的服务器 URL 环境变量 official-doc-derived 官方 MCP 文档:服务器进程环境中收到的当前 MCP 服务器端点 URL;与 CLAUDE_CODE_MCP_SERVER_NAME 配对,仅作用于被启动的服务器进程环境。
entry_2_1_332_mcp_stdout_flood_terminal_freeze 本地 MCP 服务器刷屏标准输出导致终端冻结与忽略 Ctrl+C 修复 official-document-derived-entry 本地 MCP 服务器大量输出到 stdout 时终端冻结且 Ctrl+C 失效的问题已修复。
entry_2_1_332_mcp_task_handle_id_1024 MCP 任务句柄 ID 最长支持 1024 字符 official-document-derived-entry 服务器任务 ID 超过 128 字符导致 malformed task handle 的问题修复;ID 最长 1024 字符可用。
entry_2_1_332_remote_control_session_id_restart Remote Control 进程重启后本地 MCP 服务器不再看到新会话 ID official-document-derived-entry Remote Control 会话进程重启后,本地 MCP 服务器不再被分配新的会话 ID。
entry_2_1_332_mcp_reconnect_disable_all_builtin_off /mcp reconnect all 与 disable all 不再计入账号未启用的内置服务器 official-document-derived-entry 两条命令统计服务器时不再包含账号未开启的内置服务器。
proto_openai_realtime_transport Realtime Agent 传输通道(服务端 WebSocket / SIP attach,WebRTC 边界) proprietary-cloud-api-surface Python Agents SDK 的默认实时路径由 RealtimeRunner 管理服务端 WebSocket 会话;电话语音接入经 SIP attach,由 call_id 绑定既有实时呼叫,并由 incoming-call webhook 触发接入;浏览器 WebRTC 属于 Realtime API 独立客户端主题,Python SDK 不提供 RTCPeerConnection 抽象或现成浏览器示例。
doc_mcp_root_schema_combinator_flatten MCP 工具 input schema 根级 anyOf/oneOf/allOf 组合子:根级组合子不被 API 接受,嵌套 properties 组合子原样保留;加载后压平为单一对象并在工具描述补充参数组绑定说明 official-public-docs-derived 官方 MCP 文档:部分服务器在工具 input_schema 顶层使用 anyOf、oneOf 或 allOf JSON Schema 组合子;Claude API 不接受根级这些关键字,但接受嵌套在 properties 内的组合子并原样发送。根级组合子工具仍保留可用;Claude Code 在发往 API 前把 schema 压平为单一对象,并在工具描述前补一句说明参数分组关系:allOf 合并各分支属性且各分支 required 继续生效;anyOf/oneOf 合并属性,并在描述中说明各分支 required。服务端收到所选参数后仍须自行校验组合合法性;无法生成合法 schema 时工具按错误参考处理。
doc_mcp_websocket_install_option MCP remote WebSocket server installation option (Option 4) official-public-documentation-entry Official MCP documentation: WebSocket servers hold a persistent bidirectional connection suited to remote MCP servers that push events unprompted; HTTP is preferred for request-only servers because HTTP supports OAuth and the claude mcp add --transport flag, while WebSocket supports neither. Entry records the transport-selection boundary and excludes server credentials.
doc_mcp_connector_session_reach How claude.ai connectors reach Claude Code by session type official-public-documentation-entry Official MCP documentation: which settings govern a claude.ai connector depends on where the session runs; only some session kinds fetch connectors from claude.ai themselves. The entry records session-type reach and control boundary alongside the existing connector glossary and organization ask-rule boundary; it does not infer per-user provisioning or internal account sync.
entry_2_1_332_mcp_protocol_response_metadata_cache_fields MCP 2026-07-28 response metadata resultType, ttlMs, cacheScope omission fix official-documentation-changelog-entry Official changelog fix: an MCP server negotiating protocol revision 2026-07-28 that omits resultType, ttlMs or cacheScope no longer shows no tools or fails every tool call. The entry records client-side compatibility metadata; these fields alone do not establish server implementation or internal cache policy.

协议 SDK 实现

ID 名称 许可证状态 摘要
mcp_typescript_sdk MCP TypeScript SDK mixed-mit-apache-transition 构建 MCP Server / Client 的 TS 实现,支持 stdio 与 Streamable HTTP。
mcp_python_sdk MCP Python SDK mit Python MCP Server / Client 实现,要求 Python ≥ 3.10。
sdk_impl_adk_python ADK Python SDK (google-adk) official-open-source-agent-framework-verify-repository ADK Python 实现通过 pip install google-adk 安装,提供 LlmAgent、工具、Runner、会话服务与评估等代理开发抽象;ADK 虽针对 Gemini 与 Google 生态优化,但设计为模型与部署无关。
sdk_impl_adk_typescript ADK TypeScript SDK (@google/adk) official-open-source-agent-framework-verify-repository ADK TypeScript 实现通过 npm install @google/adk 安装,提供 LlmAgent 与工具、会话编排等代理开发能力,与 Python/Go/Java 实现共享同一套 ADK 抽象。
sdk_impl_adk_go ADK Go SDK (google.golang.org/adk) official-open-source-agent-framework-verify-repository ADK Go 实现通过 go get google.golang.org/adk 引入,提供 llmagent、模型与工具绑定等代理开发抽象;官方文档列出 Go 为受支持语言之一。
sdk_impl_adk_java ADK Java SDK (com.google.adk:google-adk) official-open-source-agent-framework-verify-repository ADK Java 实现以 Maven/Gradle 构件 com.google.adk:google-adk 引入,提供 LlmAgent Builder、工具与会话编排等代理开发抽象;官方文档列出 Java 为受支持语言之一。
sdk_impl_adk_kotlin ADK Kotlin SDK (com.google.adk:google-adk-kotlin-core) official-open-source-agent-framework-verify-repository ADK Kotlin 实现面向 JVM(Android 另用 google-adk-kotlin-core-android 构件),通过 KSP 注解处理器生成代码,提供 LlmAgent、工具与会话编排等代理开发抽象;官方文档将 Kotlin 列为受支持语言之一。
sdk_impl_antigravity Antigravity Python SDK (google-antigravity) official-package-preview-verify-repository-license Antigravity SDK 是程序化 Python 框架(pip install google-antigravity),在 Antigravity 运行时之上构建自定义代理:提供工具执行、上下文管理、声明式安全策略、生命周期钩子与程序化子代理派生;Agent 以异步上下文管理器管理完整生命周期,可切换 Vertex AI / Gemini Enterprise 连接。
sdk_impl_genai_python Google GenAI Python SDK (google-genai) official-open-source-sdk-apache-2-0-verify-repository 官方 Python Google GenAI SDK,pip install google-genai,from google import genai;Client 同时支持 Gemini Developer API 与 Gemini Enterprise Agent Platform(原 Vertex AI),提供 generateContent、chat、files、caches、Live、Interactions 与函数调用等模块;2025 年 5 月起 GA,为访问 Gemini API 的推荐库。
sdk_impl_genai_typescript Google GenAI TypeScript / JavaScript SDK (@google/genai) official-open-source-sdk-apache-2-0-verify-repository 官方 TS/JS Google GenAI SDK,npm install @google/genai,通过 GoogleGenAI 类访问 models、caches、chats、files、live 与 interactions 子模块;支持 Gemini Developer API 与 Gemini Enterprise Agent Platform,含函数调用、状态化聊天与 MCP 实验性支持。
sdk_impl_genai_go Google GenAI Go SDK (google.golang.org/genai) official-open-source-sdk-apache-2-0-verify-repository 官方 Go Google GenAI SDK,go get google.golang.org/genai;提供 Client 与 interactions、models 等调用抽象,同时对接 Gemini Developer API 与 Gemini Enterprise Agent Platform,支持流式生成、函数调用与结构化输出。
sdk_impl_genai_java Google GenAI Java SDK (com.google.genai:google-genai) official-open-source-sdk-apache-2-0-verify-repository 官方 Java Google GenAI SDK,Maven 构件 com.google.genai:google-genai;com.google.genai.Client 支持 Gemini Developer API 与 Vertex / Enterprise Agent Platform,提供 interactions、models 与结构化请求构建器;Google 此前未提供旧版 Java 库,无需迁移。
sdk_impl_genai_csharp Google GenAI .NET / C# SDK (Google.GenAI) official-open-source-sdk-apache-2-0-verify-repository 官方 .NET C# Google GenAI SDK,dotnet add package Google.GenAI;面向 net8.0 与 netstandard2.0,提供生成内容、图像、视频、嵌入、缓存与批处理,并实现 Microsoft.Extensions.AI 的 IChatClient 抽象;对接 Gemini Developer API 与 Enterprise Agent Platform。
sdk_impl_agentscope_go AgentScope Go SDK (agentscope-go/v2) open-source-agent-framework-apache-2.0-verify-repository AgentScope Go 是官方 Go 语言实现,通过 github.com/agentscope-ai/agentscope-go/v2 模块引入;以 Go 接口、上下文与通道承载代理、工具、权限和多代理工作流抽象,可嵌入服务或命令行程序。
sdk_impl_agentscope_java AgentScope Java SDK (io.agentscope:agentscope-harness) open-source-agent-framework-apache-2.0-verify-repository AgentScope Java 2.0 是官方 Java 语言实现,要求 JDK 17+;Maven 构件 io.agentscope:agentscope-harness 提供分布式代理、事件流、权限门禁、中间件以及隔离沙箱执行等框架抽象。
sdk_impl_agentscope_typescript AgentScope TypeScript / JavaScript SDK (@agentscope-ai/agentscope) open-source-agent-framework-apache-2.0-verify-repository AgentScope TypeScript/JavaScript 是官方 Node 与浏览器语言实现,包名 @agentscope-ai/agentscope;提供 ReAct 代理、工具、技能、人机协同、记忆、规划、实时语音与 MCP 接入等框架抽象。

CI/自动化集成

ID 名称 许可证状态 摘要
claude_code_action anthropics/claude-code-action mit-verify-repo-license GitHub Actions 集成:响应 @claude、Issue/PR 自动化、定时维护与代码审查辅助。
ci_gitlab_pipeline GitLab CI/CD 流水线集成 proprietary-all-rights-reserved GitLab Pipeline 中委派 CLI 代理完成审查、Issue 分流与定时维护;与 GitHub Action 为并列 CI 通道
ci_mode_interactive Action 交互模式(@claude 触发短语) proprietary-all-rights-reserved 工作流未提供 prompt 输入时,Claude 等待 issue/PR 评论、PR review 或 issue 标题正文中的触发短语(默认 @claude)后响应;结果以评论发布
ci_mode_automation Action 自动化模式(prompt 输入直跑) proprietary-all-rights-reserved 工作流提供 prompt 输入时不等提及直接运行;结果默认进 workflow run 日志,提示要求且具备发布工具时可评论到 issue/PR
ci_trigger_write_access 触发者写权限检查 configuration-documentation issue/PR 事件中触发用户须有仓库写权限;无写权限者可列入 allowed_non_write_users 并自带 github_token;无作者事件(如 schedule)跳过该检查
ci_trigger_human_actor 触发者人类身份检查(防机器人循环) configuration-documentation 除列入 allowed_bots 的机器人外拒绝 bot actor 触发;计划任务归属的仓库用户若为 bot 也需列入白名单,防止机器人循环触发 Claude
ci_action_params Action 常用输入参数集 configuration-documentation prompt、claude_args、anthropic_api_key、claude_code_oauth_token、github_token、plugin_marketplaces、plugins、settings、trigger_phrase、use_bedrock/use_vertex/use_foundry
ci_schedule_run 定时计划工作流运行(cron schedule) configuration-documentation 自动化模式可由 GitHub cron schedule 触发;计划工作流只在默认分支运行,公开仓库 60 天无活动后 schedule 被禁用
feat_cloud_runner_stop_queued_cancel 自托管 Runner 启动期间停止取消排队消息 changelog-derived 2.1.288 云会话修复:Runner 仍在启动时按 Stop,排队消息应被取消;修复前 Runner 启动后仍可能执行该消息。边界:只修正停止信号与队列生命周期,不改变 Runner 权限。
ci_code_review_service Code Review 托管自动 PR 评审服务(无需维护工作流文件) configuration-documentation 在 Anthropic 基础设施上运行的自动代码评审;多代理并行查找候选问题,验证步骤过滤误报,按严重度排序后在 PR 行内评论并给出 check run。评审只读仓库、不推送提交;面向 Team/Enterprise 的 GitHub 仓库,与 GitHub Action 工作流、会话内 /code-review 和 Ultrareview 相互区分。
fix_self_hosted_runner_git_hooks_policy 自托管 Runner Git LFS pre-push、hooksPath 与提交签名策略 proprietary-all-rights-reserved 自托管 Runner 生命周期 Hook 的 Git 跳过仓库 LFS pre-push Hook、忽略可写系统 core.hooksPath,且不签署提交。
entry_2_1_289_code_review_pr_fetch_retry Code Review PR fetch failure single retry and explanatory comment official-public-document-entry GitHub 获取 PR 失败导致 @claude review 静默时,请求重试一次;仍失败则在评论中说明原因。
fix_self_hosted_runner_git_includeif_clone 自托管 runner 规避 git includeIf 配置导致首次克隆失败 proprietary-all-rights-reserved Anthropic 托管 Git 下机器 git 配置含 includeIf gitdir 或 2.44–2.46 onbranch 条件时,自托管 runner 首次克隆失败;该配置边界已修复。
doc_claude_approvals_check Claude Approvals PR 检查与审批策略评估 official-public-documentation-entry Claude Approvals 在 GitHub PR 上增加检查,读取默认分支策略、匹配适用路径规则并统计审批;观察模式只展示策略判断,要阻塞合并还须在 GitHub 将该检查设为必需检查。
doc_github_app_shared_permissions GitHub App 共享权限集(Action / Code Review / 云端自动修复共用) proprietary-all-rights-reserved Claude GitHub App 为 Action、Code Review 与云端 PR 自动修复共用;权限集统一覆盖这些特性,不能把 Action 所需权限推断为每个特性单独申请。
fix_runner_resume_preserves_task_list 自托管 Runner 恢复会话保留任务清单 official-public-docs-derived 自托管 Runner 在新的 Claude 配置目录恢复会话时,不再丢失任务清单;任务清单属于会话恢复状态的一部分。
entry_runner_registration_lifecycle_metrics Runner 工单到注册与首会话生命周期指标 official-public-docs-derived 自托管 Runner /metrics 记录工单发出到注册接受的时长,以及工单发出到首个会话交付的时长;指标仅描述运行阶段,不代表模型能力排名。
doc_action_mode_detection_boundary GitHub Action 自动识别交互模式与自动化模式 official-public-docs-derived Action 根据 workflow 配置判断模式:无 prompt 输入时等待 @claude 触发短语;提供 prompt 输入时直接运行,不等待提及,并受触发者检查约束。
doc_action_beta_to_v1_upgrade GitHub Action beta 到 v1 升级:移除 mode 输入 official-public-docs-derived 旧 workflow 引用 anthropics/claude-code-action@beta 时应更新到 v1;uses 行将 @beta 改为 @v1,并移除由 Action 自动检测的 mode 输入。
doc_routine_api_trigger 定时任务 API trigger:外部程序调用触发运行 official-public-docs-derived 官方 scheduled tasks 文档的 API trigger 配置:外部程序可通过 API 触发定时任务运行;触发方式与 schedule、GitHub trigger 分开建模。
doc_routine_github_trigger 定时任务 GitHub trigger:仓库事件触发运行 official-public-docs-derived 官方 scheduled tasks 文档的 GitHub trigger:按支持的仓库事件与 PR 过滤条件触发任务;区别于 API 调用和定时 schedule。
doc_gitlab_agent_platform_workload_identity GitLab CI/CD Google Cloud Agent Platform 使用 Workload Identity Federation official-doc-derived GitLab CI/CD 作业可对接 Google Cloud Agent Platform;该配置示例采用 Workload Identity Federation 身份联邦方式认证。条目只记录公开部署身份边界,不推断内部令牌流程。
doc_gitlab_mr_issue_project_aware_behavior GitLab MR 创建、Issue 转代码与项目感知行为 official-doc-derived GitLab 集成可在描述需求后生成完整 MR 及变更说明;通过命令或提及把 Issue 转为工作代码;项目感知使 Claude 遵循 CLAUDE.md 规范和既有代码模式。
approvals_custom_classifier Approvals classifier: named question, defined outputs, rule condition and per-run usage billing official-doc-derived Official Approvals classifiers documentation: claude/code_review and claude/diff are built in; a custom classifier lives at .claude/classifiers//def.yml with prompt, model and outputs. Its answer feeds a rule condition; each model-calling run bills to the organization usage credits.
cmd_install_github_app /install-github-app: install Claude GitHub App and optional Actions workflow setup official-public-docs-derived Official commands documentation: /install-github-app installs the Claude GitHub App for a repository, with an optional step to set up GitHub Actions workflows and secrets. It walks through selecting a repository and configuring integration; it works only with github.com repositories. GitLab or Bitbucket remotes print a notice and exit instead of starting setup.
doc_worktree_pr_mr_head_branch_input Worktree from PR/MR: issue number, GitHub PR URL or GitLab MR URL selects fetched head commit official-public-docs-derived Official worktree input boundary: a worktree can start from a pull/merge request using #, a GitHub PR URL, or a GitLab MR URL. Claude Code fetches that change head from origin and places the worktree under .claude/worktrees/pr-; URL host/repository selection follows origin and the documented GitHub/GitLab fetch paths. This records the supported input contract, not Git ref implementation.
doc_action_organization_rollout_secret_scope Claude Action organization rollout: organization-level GitHub App, shared Actions secret and reusable or per-repo workflow official-public-docs-derived Official organization setup: install the Claude GitHub App once at organization level for all or selected repositories; store the authentication secret as an organization-level Actions secret so each repository does not need its own copy; add the workflow file to each eligible repository or define one reusable workflow that repositories call. A shared repository secret uses a Console API key rather than an OAuth token.
cli_flag_ultrareview_no_post --no-post UltraReview 不回写 PR 标志 official-public-documentation UltraReview 默认 --no-post,不把评审结果发到拉取请求;--post 才以 GitHub 账号发布一条普通评论。
entry_2_1_332_runner_configure_git_hung_git_version_path 2.1.332 runner --configure-git no longer reports a hung git --version as missing from PATH official-doc-derived Official changelog 2.1.332: the self-hosted runner's --configure-git option no longer sometimes reports a hung git --version as a git executable that is not on PATH. This records the runner Git startup check boundary; it does not reproduce runner internal implementation details.
approvals_policy_consumes_review_result Claude Approvals policy can consume Code Review result official-public-docs-derived Official Code Review and Approvals documentation: by itself a review neither approves nor blocks the PR; where a repository has a Claude Approvals policy file, the policy can use the review result to decide who must approve and which pull requests receive an automatic review.
github_action_trigger_phrase_separation Action trigger_phrase separates @claude review from interactive Action trigger official-public-docs-derived Official pull-request review documentation: when a repository also runs the Claude Code GitHub Action interactively with its default @claude trigger phrase, an @claude review comment starts the Action as well; set the Action trigger_phrase input to a different phrase to keep the two apart.
review_setup_owner_role_requirement Code Review admin setup requires Claude organization Owner role official-public-docs-derived Official setup documentation: an Owner role in the Claude organization is needed for every admin-page step to turn on Code Review.
review_setup_github_org_owner_app_install GitHub organization Owner installs and links the Claude GitHub App official-public-docs-derived Official setup documentation: installing the Claude GitHub App and linking it to the Claude organization requires an Owner of the GitHub organization; a non-owner must have that owner install and link the app first.
review_setup_repository_write_access Adding a repository requires write access from connected GitHub account official-public-docs-derived Official setup documentation: the GitHub account connected to Claude must have write access to each repository added to Code Review.
review_runs_once_after_pr_creation Review runs once after PR creation on open, reopen, or ready-for-review official-public-docs-derived Official setup documentation: Once after PR creation runs a review when the pull request is opened, reopened, or marked ready for review.
review_runs_after_every_push Review runs after every push to the pull request branch official-public-docs-derived Official setup and costs documentation: After every push runs on pushes to the pull-request branch, catches new issues as the PR evolves, auto-resolves threads on fixes, and multiplies review cost by push count.
review_runs_manual_comment_command Manual review-run mode starts only from @claude review command official-public-docs-derived Official setup and costs documentation: Manual (@claude review) performs no review on open or push; the review starts only when the comment command requests it.
review_org_wide_coverage_eligibility Whole GitHub organization coverage requires owner, github.com, and spend limit official-public-docs-derived Official setup documentation: covering every repository in a GitHub organization requires the connected GitHub account to own that GitHub organization; the organization must be on github.com because GitHub Enterprise Server instances and personal GitHub accounts are ineligible; and a monthly spend limit for the Claude organization or Code Review must be set. Coverage applies from each repository's next pull request.
local_review_comment_pr_mr_posting Local --comment posts findings to GitHub PR inline comments or GitLab MR note official-public-docs-derived Official local review documentation: --comment posts findings on a GitHub pull request as inline comments, or on a GitLab merge request as a single note.
entry_2_1_323_review_cost_csv_download 2.1.323 Code Review admin settings Download CSV exports review costs by repository and period official-public-changelog-entry Changelog 2.1.323: a Download CSV button was added to Code Review admin settings to export review costs per repository by month, week, or day, for one repository, one GitHub organization, or all.
entry_2_1_312_review_late_push_current_commit 2.1.312 Late GitHub push event reviews the pull request current commit instead of stale commit official-public-changelog-entry Changelog 2.1.312: Code Review previously reviewed an outdated commit, or none at all, when GitHub delivered a push event late; it now reviews the pull request's current commit.
entry_2_1_311_review_retry_exhausted_no_automatic_review 2.1.311 Check run states no further automatic review after automatic retry still cannot analyze change official-public-changelog-entry Changelog 2.1.311: Code Review's check run says no further automatic review will start when the model still cannot analyze a change on the automatic retry.
entry_2_1_311_review_session_start_transient_fault_retry 2.1.311 Review session start transient server fault retried once automatically and check run notes it official-public-changelog-entry Changelog 2.1.311: a review whose session fails to start because of a transient server fault is retried once automatically, and its check run says so.
entry_2_1_319_review_unlink_org_all_repositories_off 2.1.319 Unlinking GitHub organization turns off its All repositories Code Review setting official-public-changelog-entry Changelog 2.1.319: unlinking a GitHub organization also turns off its All repositories setting in Code Review; it stays off after relinking until turned back on.
doc_approvals_strictest_verdict_selection Approvals strictest-verdict combination: blocks > comments > approves; every applicable seat must be filled official-public-document For one changed file, applicable rules produce verdicts; Approvals selects the strictest applicable verdict across all changed files. blocks outranks comments, comments outrank approves, and each applicable rule's seats must be filled. A rule matches paths, applies when enforce and if is true or absent, and covers a file when enforce with a verdict regardless of if.
doc_approvals_earlier_approval_reuse_after_push Approvals earlier approvals after a new push: unchanged text can count; changed text normally stops unless reuse keeps seats/classifiers official-public-document After a push, an earlier approval that GitHub has not dismissed can continue to count only when the diff text stays identical. When the diff text changes, earlier approvals normally stop counting; policy reuse can preserve people's approvals and classifier answers under its declared conditions. Approvals normally asks GitHub to dismiss Claude's own approval on a push and reapprove only when the check passes again.
doc_approvals_policy_size_count_and_pr_limits Approvals policy size/count limits and large-PR limits: 448 KiB file, 512 rules, 2,000 changed files and 250 commits thresholds official-public-document Approvals refuses policy files past configured size/count thresholds, including 448 KiB per file, 1,024 files or 8 MiB repository total, 512 rules, 512 locals, 256 patterns per rule, 16 overrides per rule and 128 per file, 1,024 list entries, and listed verdict/condition/seat bounds. A pull request with 2,000 or more changed files, or more than 250 commits when excluding authors, reaches GitHub Action-required sizing limits.
doc_self_hosted_alert_rules_missing_runner_and_queue Self-hosted runner lost-runner and waiting-session Prometheus alert rules official-public-document Sample alert rules watch runner presence and queued/waiting sessions; thresholds are tuned to fleet size and SLO. The source distinguishes runner inventory, capacity, active sessions, poll age, poll errors and session lifecycle counters; only documented metric-series responsibilities are recorded here.
doc_ship_enterprise_fork_pr_opening_boundary /ship does not open GitHub Enterprise or fork pull requests; fork checkout needs the target-repository remote for a watch official-public-document /ship leaves GitHub Enterprise and fork pull-request opening to the user: push the branch, open the PR manually, then run /ship. From a fork, the checkout must also carry a remote for the repository that the pull request targets; without it, no watch starts.
doc_llm_gateway_rollout_prerequisite_https_address_provider_credential LLM gateway rollout: deployed HTTPS distribution address, provider forwarding credential, maintenance and organization rollout steps official-public-documentation-entry 组织网关推广文档要求网关以确切 HTTPS 地址分发而非重定向地址,并具备转发用提供方凭证;后续维护与推广步骤按官方页执行。
doc_ultrareview_github_pr_mode UltraReview GitHub PR mode: PR number, #number, PR label or URL official-public-docs-derived PR 模式接受 PR 编号、#编号、PR 编号字样或粘贴的 PR URL;云端沙箱从 github.com 克隆 PR,连接的 GitHub 账号需仓库读权限。
doc_ultrareview_noninteractive_cli_subcommand claude ultrareview non-interactive subcommand for scripts and CI official-public-docs-derived claude ultrareview 子命令供脚本或 CI 启动同一审查,阻塞到远端审查完成并输出结果;脚本运行本身构成全仓回退、计费与条款同意;claude -p '/code-review ultra' 不等审查结果。
doc_approvals_public_beta_subscription_and_exclusion_boundaries Approvals public beta: Team/Enterprise availability and ZDR/HIPAA/CMEK/FERPA exclusions official-public-docs-derived Approvals 作为 Claude Ship 的一部分,面向 Team 与 Enterprise 组织公开测试;启用 Zero Data Retention、HIPAA 配置、CMEK 时不可用,FERPA 或 Access Transparency 设置下不能启动。
doc_approvals_observe_mode_policy_preview_and_billing Approvals observe mode previews policy decisions; reviews and classifier runs are billed official-public-docs-derived 策略先以 observe 模式启动,Claude Approvals 检查展示策略将会如何决定;观察模式下的审查与分类器运行同样计入计费。
doc_self_hosted_e2e_capture_hook_test_runner Self-hosted E2E capture hook on test runner writes final assistant reply for driver official-public-docs-derived 测试 Runner 安装停止钩子,把每回合最终助手回复写入 E2E_REPLY_DIR 下按 session_id 命名的文本文件,供同机测试驱动读取;仅在驱动监听时生效,失败不阻断回合,且只应安装在测试 Runner。
doc_routine_schedule_trigger 定时任务 Schedule trigger:周期、单次未来时间或自定义 cron proprietary-all-rights-reserved 官方 scheduled tasks 文档:Schedule 触发器按每小时、夜间、每周等周期运行,也可在指定未来时间单次运行;与按需 API 触发和仓库事件 GitHub 触发分开建模。
feat_runner_order_to_registered_metric claude_code_self_hosted_runner_order_to_registered_seconds: runner order to registration accepted official-public-changelog-entry Official changelog runner /metrics metric: seconds from work order issued to registration accepted on orchestrator-spawned runners. This is a lifecycle stage duration only and does not rank runner quality or model capability.
feat_runner_order_to_first_session_metric claude_code_self_hosted_runner_order_to_first_session_seconds: runner order to first session handed over official-public-changelog-entry Official changelog runner /metrics metric: seconds from work order to first session handed over on runners started for a session. This metric describes a runner lifecycle stage only.
doc_approvals_finding_severity_classifier_input Approvals finding/severity classifier input: review finding severity read by an approval rule if official-public-document Official Approvals policy documentation: a rule condition's if clause can read finding/severity, as in finding/severity >= high; where it reads this alone, the first matching if decides. This entry records the public classifier input boundary and does not infer internal severity scoring.
doc_approvals_change_risk_custom_classifier Approvals repo/change_risk: custom change-risk classifier name used in a rule condition official-public-document Official Approvals classifiers documentation: for a custom classifier in the change_risk folder, the rule condition name is repo/change_risk, as in repo/change_risk = low. The classifier runs on the pull request and its answer feeds the approval rule condition. The entry records this public classifier naming boundary only.
doc_approvals_diff_same_intent_answer claude/diff same_intent answer: unchanged-intent change category for approval reuse official-public-document Official Approvals classifiers documentation: claude/diff tells a rule how much a pull request changed since an approval or earlier answer, answering trivial, same_intent, or different. same_intent marks an unchanged-intent change and can be read under reuse in an approvals rule. The entry records the public answer category, not internal diff matching.
doc_project_thread_pr_review Project thread pull-request review: review a thread's proposed change official-public-docs-derived Each project thread can produce a pull request that the user reviews in its own review flow; thread context, changes and PR feedback remain associated with that thread.
doc_approvals_check_title_status_classes Claude Approvals check title statuses: waiting on human, waiting on Code Review or classifier, rule or policy held, passed or nothing ran official-public-documentation-entry Official Approvals PR reference: the check title groups into four documented classes: Approvals waits for a person (human review or dismissing Claude's review); waits for Code Review, a repo/change-risk rule or a classifier result; a rule or policy file keeps the PR from passing (held by findings, held rule, uncovered file, broken policy file); or Approvals passed and nothing blocked (passed with no Claude approval, uncovered file not blocking, observe mode not evaluated yet). The entry records these title classes and their next-action semantics against the existing Approvals check anchor.
doc_ghes_feature_support_matrix GitHub Enterprise Server support: cloud sessions, Code Review, Claude Security, Teleport, marketplaces and Actions supported; contribution metrics and GitHub MCP server not supported official-public-documentation-entry Official GHES reference: supported on GitHub Enterprise Server are cloud sessions, automated Code Review, Claude Security (Enterprise public beta), Teleport sessions between cloud and terminal, plugin marketplaces hosted on the instance, and GitHub Actions (manual workflow setup; /install-github-app is github.com only). Contribution metrics require repositories hosted on github.com and are not supported; the GitHub MCP server does not work with GHES instances, where the gh CLI configured for the GHES host is the documented local alternative. The entry records the documented matrix rows and the MCP substitute boundary.
doc_ghes_github_app_permissions_events GHES GitHub App permissions and webhook events cover cloud sessions, Code Review, Claude Security and marketplaces; manifest fixed at app creation official-public-documentation-entry Official GHES reference: the guided setup generates a GitHub App manifest; its configured permissions and subscribed webhook events together cover cloud sessions, Code Review, Claude Security and plugin marketplaces, including repository hooks read/write for marketplace webhooks when Sync automatically is on. GitHub applies a manifest only when the app is created: an app created from an earlier manifest keeps its permissions and events until a GitHub owner approves the new permissions on each installation. Missing permissions must be added in the app's settings on the GHES instance. The entry records this documented manifest lifetime and approval boundary.
doc_action_cloud_provider_oidc_inputs GitHub Action provider inputs use_bedrock / use_vertex / use_foundry; OIDC short-lived credentials, no long-lived cloud secret in the repository official-public-documentation-entry Official GitHub Actions cloud-provider reference: to route inference through the caller's cloud account, the Action provider input selects use_bedrock: true, use_vertex: true, or use_foundry: true. The workflow authenticates with the GitHub-issued OIDC token, so no long-lived cloud credential is stored in the repository. AWS trusts a GitHub OIDC provider at https://token.actions.githubusercontent.com with audience sts.amazonaws.com; GCP uses a Workload Identity Pool with a GitHub OIDC provider and a repository attribute condition; Azure uses an Entra application with a federated credential for the repository. The workflow needs the id-token: write permission to issue the OIDC token. The entry records the documented input and trust-federation boundary only.
doc_approvals_classifier_outputs_and_definition_dir Custom classifier def.yml outputs answer list under .claude/classifiers/<name>/ official-public-docs-derived 自定义分类器定义文件 def.yml 位于仓库 .claude/classifiers/<name>/;prompt 给出模型问题,outputs 列出模型可选答案(如 risk 的 [low, medium, high]),另可设 inputs、tools、budget;规则条件以 repo/<name> 引用分类器答案。
doc_approvals_builtin_code_review_classifier Built-in claude/code_review classifier answers pass/fail with .severity level official-public-docs-derived Approvals 内置分类器 claude/code_review 告知规则 Code Review 是否通过:无未解决 Important finding 为 pass,否则 fail;claude/code_review.severity 给出 none、minimal 或 high。规则条件如 claude/code_review = pass;与内置 claude/diff 分类器并列。
doc_ship_prereq_gh_cli_git_versions /ship and /steward prerequisites: GitHub CLI 2.63+ signed in and git 2.38+ for watch start and branch merges official-public-docs-derived Official /ship documentation: on a GitHub repository the GitHub CLI 2.63 or later must be signed in with gh auth login; an older version starts no watch. git 2.38 or later is required to merge new commits into the branch; with an older git those merges are left to the user and no watch starts on another host. The entry records the documented prerequisite version gates alongside the existing GitHub Enterprise/fork opening boundary.
doc_ship_default_branch_public_repo_commit_cases /ship commit and push branch cases: default branch commits move to a new branch; public repositories do not commit uncommitted changes; open own PR may receive unpushed commits official-public-docs-derived Official /ship documentation: on a github.com non-fork repository /ship can commit uncommitted changes, push the branch, and open the pull request; on the default branch it commits on a new branch and switches the checkout. In a public repository it does not commit uncommitted changes; on a non-public repository whose commits sit on the default branch with nothing uncommitted, it creates a new branch, pushes and opens the pull request. On the user's already-open PR, it may commit uncommitted changes then push them and unpushed commits onto it, except public repositories or enabled auto-merge. The entry records these documented branch and commit-scope cases.
doc_routine_api_trigger_http_endpoint_bearer_token API trigger 为定时任务提供专用 HTTP 端点;携带 bearer token POST 启动新会话并返回会话标识 official-public-document API trigger 为定时任务提供专用 HTTP 端点;携带 bearer token POST 启动新会话并返回会话标识
doc_routine_github_trigger_event_per_new_session GitHub trigger 在连接仓库的匹配事件发生时启动新会话;事件之间不复用既有会话 official-public-document GitHub trigger 在连接仓库的匹配事件发生时启动新会话;事件之间不复用既有会话
doc_routine_oneoff_schedule_single_future_timestamp 一次性 schedule 在指定未来时间戳运行单次;区别于周期重复的定时触发 official-public-document 一次性 schedule 在指定未来时间戳运行单次;区别于周期重复的定时触发
doc_routine_cli_schedule_command_creation 会话内运行 /schedule 对话式创建定时任务,也可直接传入描述创建周期任务;CLI 与 Web、Desktop 写入同一配置 official-public-document 会话内运行 /schedule 对话式创建定时任务,也可直接传入描述创建周期任务;CLI 与 Web、Desktop 写入同一配置
doc_routine_run_now_manage_list_update_cli /schedule list、update、run 查看、修改并立即启动定时任务;详情页支持 Run now 与启停开关 official-public-document /schedule list、update、run 查看、修改并立即启动定时任务;详情页支持 Run now 与启停开关
doc_routine_github_pull_request_events 定时任务 GitHub 触发器:Pull request 事件类别与 PR 过滤字段 official-doc-derived 官方 routines 文档:GitHub 触发器可在 Pull request、Release、Issue 事件类别内选择具体动作(如 pull_request.opened)或响应类别全部动作;PR 过滤字段包括作者、标题、正文、基础分支、头部分支、标签与是否草稿,所有过滤条件须同时匹配任务才触发。事件选择与过滤条件区别于 schedule 周期触发与 API 调用触发。
entry_2_1_332_ultrareview_post_direct_comment /ultrareview --post posts the PR comment directly when findings arrive and prints the comment link, instead of starting a second cloud session to post it official-public-docs-derived Official changelog: /ultrareview --post now posts the PR comment directly when findings arrive and prints the comment link, instead of starting a second cloud session to post it. The entry hangs off the existing UltraReview command anchor and records this delivery-flow change.
entry_2_1_330_runner_permission_prompt_transfer_vanishing_tool_call 2.1.330 Self-hosted runner: tool calls behind a permission prompt no longer vanish with no result when a new runner takes over, telemetry off official-changelog-derived-entry Official changelog 2.1.330: in self-hosted runner sessions with telemetry off, a tool call behind a permission prompt could vanish with no result when a new runner took over the prompt; the fix preserves the prompt handoff result. Records runner handoff boundary; no queue internals.
entry_2_1_330_runner_403_logged_bad_secret_reason_prefix 2.1.330 Self-hosted runner: a 403 such as an IP allowlist is logged with the server reason first, not as a bad secret or token official-changelog-derived-entry Official changelog 2.1.330: a 403, such as from an IP allowlist, was previously logged as a bad secret or token; most such lines now lead with the server reason so existing alert wording matches. Records log classification boundary; credentials are never recorded here.
entry_2_1_332_ultrareview_no_merge_base_review_all_tracked 无合并基准的仓库 UltraReview 改为评审全部已跟踪文件 official-documentation-entry 修复 /ultrareview 在仓库无 merge base 时拒绝运行;现在提供评审全部已跟踪文件的选项。
doc_approvals_troubleshooting_flow Claude Approvals 排障流程:检查未出现、线程解决后仍不通过、策略文件被拒与分类器无答案 official-documentation-entry Approvals 排障按顺序核对:PR 与策略文件是否生效、检查是否因 GitHub IP 允许列表缺失而未出现;评审线程解决后检查仍不通过;Approvals 通过但 GitHub 仍阻断合并;策略文件被拒的拒绝消息;分类器未给出答案或其定义被拒绝。
doc_code_review_troubleshooting_flow Code Review 排障:check-run 标题进度、跳过/超时/预算拒绝、缺失内联 findings 与 REVIEW.md/仓库设置问题 official-documentation-entry 排障从 PR 上的 Claude Code Review check run 标题入手:queued/in progress 等待完成;found no issues 表示未发表 findings;skipped — no new changes 与 not repeated — earlier findings still open 表示自动评审未随最新 push 运行,可评论 @claude review 再次触发;failed 或 timed-out 可重新触发;declined 的检查摘要若命名预算或花费限额,按 Review 限额与组织额度路径排查。其余分支:未显示为内联评论的缺失 findings、REVIEW.md 相关问题、仓库未加入 Add a repository 或测试 PR 上无 check run 的设置问题。
entry_2_1_330_runner_spawn_hook_concurrency_orchestrator Self-hosted runner spawn-runner hook concurrency per orchestrator (2.1.330) proprietary-all-rights-reserved spawn-runner hooks 在前一个仍运行时即可启动,每个编排器上限由 --hook-concurrency 控制(默认 4);设为 1 恢复串行。
entry_2_1_330_runner_bash_edit_diff_skip_transcript_setting Self-hosted runner Bash skips unneeded file diff in transcript (2.1.330) proprietary-all-rights-reserved 自托管 runner 的 Bash 命令在无需文件 diff 时跳过该 diff,transcript 可省略;托管设置 bashEditDiffEnabled 可置 true 恢复。
entry_2_1_330_checkout_hook_exit_108_runner_stop_session_start Checkout hook exit 108 stops session start without other runners (2.1.330) proprietary-all-rights-reserved checkout hook 以状态 108 退出时,自托管 runner 立即停止该会话启动,不再尝试其他 runner。
entry_2_1_331_builtin_gh_api_rest_selfhosted_runner_macos_linux Built-in gh api (REST only) for Anthropic-managed git sessions on macOS/Linux without GitHub CLI (2.1.331) official-public-changelog-entry macOS 与 Linux 上使用 Anthropic 托管 git 的会话在未安装 GitHub CLI 时,内置仅支持 REST 的 gh api。
entry_2_1_314_ultrareview_workspace_trust_before_git /ultrareview checks workspace trust before running git, matching the claude ultrareview CLI behavior official-public-docs-derived Official changelog change: the /ultrareview command verifies workspace trust before invoking git, as the standalone ultrareview CLI already does. Records the trust-gated command boundary; CI unattended behavior and trust flags follow official permissions and Code Review documentation.
entry_2_1_309_ultrareview_trust_flag_claude_code_disable_env ultrareview requires workspace trust: terminal prompts or refuses; scripts pass --trust-workspace; CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1 opts out official-public-docs-derived Official changelog change: claude ultrareview requires workspace trust; on a terminal it asks, otherwise refuses. Scripts pass the value-less --trust-workspace flag, or set CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1 to disable the check. Records the trust-gated review boundary; the env flag and flag semantics follow official CLI documentation.
entry_2_1_307_code_review_review_stop_off_pause_subscription Code Review @claude review stop (also off and pause) ends an always-on review subscription on a pull request without starting a new review official-public-docs-derived Official changelog addition: @claude review stop, along with off and pause, ends an @claude review always-on subscription on a pull request without starting a new review run. Records the review subscription command boundary; review levels and triggers follow official Code Review documentation.
entry_2_1_305_code_review_re_review_no_lgtm_open_blocking Code Review re-reviews no longer open with LGTM while earlier blocking findings are still open official-public-docs-derived Official changelog change: Code Review re-reviews do not show LGTM while earlier blocking findings remain open. Records the review-status consistency boundary; review severity and gating follow official Code Review documentation.
entry_2_1_304_code_review_review_levels_quick_standard_deep Code Review review levels: Owners choose Quick, Standard (default) or Deep for the organization, and can set a level per repository official-public-docs-derived Official changelog addition: Code Review offers review levels; Owners pick Quick, Standard (the default) or Deep for the organization and can assign an individual level to each repository. Records the review-tier configuration boundary; review depth and findings remain official Code Review documentation.
entry_2_1_331_install_github_app_repo_step_warning_esc_back install-github-app skips the repository step after setup warnings; Esc does not go back from workflow list and sign-in changelog-derived 官方 changelog 2.1.331:/install-github-app 在未找到仓库时跳过仓库步骤;Esc 不能从工作流列表与登录步骤返回。条目记录 GitHub App 安装向导流程边界。
entry_2_1_328_runner_repository_folder_option self-hosted runner --repository-folder names session repository folder at capacity 1 changelog-derived 官方 changelog 2.1.328:自托管 runner 在 --capacity 1 下用 --repository-folder 指定会话使用的仓库文件夹,替代基础目录下不可为符号链接的路径。
entry_2_1_328_runner_hook_label_orchestrator_option self-hosted runner orchestrator --hook-label passes session labels to spawn-runner hook changelog-derived 官方 changelog 2.1.328:claude self-hosted-runner orchestrator 的 --hook-label 选项把选定的会话标签交给 spawn-runner hook。
entry_2_1_328_runner_session_metadata_option claude --environment --metadata key=value labels a session for spawn-runner hook changelog-derived 官方 changelog 2.1.328:claude --environment 的 --metadata key=value 为会话打标签,供 spawn-runner hook 使用。
entry_2_1_328_runner_orchestrator_sessions_given_up_total_metric self-hosted runner orchestrator metric claude_code_self_hosted_orchestrator_sessions_given_up_total changelog-derived 官方 changelog 2.1.328:自托管 runner orchestrator 指标 claude_code_self_hosted_orchestrator_sessions_given_up_total,按原因统计 Anthropic 托管代理放弃/交出会话的次数;仅指标计数,不含会话内部状态。
entry_2_1_328_runner_startup_default_permission_mode_warning self-hosted runner startup warning: host settings.json default permission mode ignored by sessions changelog-derived 官方 changelog 2.1.328:自托管 runner 启动时警告宿主 settings.json 设置的默认权限模式会被会话忽略;runner 会话权限以会话自身规则为准,宿主默认模式不自动继承。
entry_2_1_327_runner_clone_objects_refs_disk_error_protection self-hosted runner: kept clone objects/refs and commits protected after a temporary disk error changelog-derived 官方 changelog 2.1.327:修复临时磁盘错误后,保留克隆的对象、引用以及仅存在于该克隆中的提交被删除的问题;runner 在磁盘故障恢复后不清理受保护的仓库克隆数据。
entry_2_1_327_runner_setup_wizard_key_rotation_revoke_warning self-hosted runner setup wizard warns that revoking a key stops sessions running under it changelog-derived 官方 changelog 2.1.327:runner 安装向导的密钥轮换建议补充警告——撤销某密钥会停止仍在该密钥下运行的会话;密钥轮换前须先处理受影响会话。
entry_2_1_330_ultrareview_shell_other_repository_folder UltraReview 在 Shell 进入另一仓库后停止并标明两个文件夹 changelog-derived 官方 changelog 2.1.330:Shell 进入另一个仓库后,/ultrareview 曾失败或评审错误代码;修复为停止并同时命名两个文件夹。边界:评审工具目录边界行为,不收录评审代理内部实现。
entry_2_1_332_runner_configure_git_hung_version 自托管 Runner --configure-git 不再把挂起的 git --version 误判为 PATH 缺失 official-document-derived-entry Runner 初始化 git 配置时,git --version 命令挂起不再被报告为 git 不在 PATH。
entry_2_1_332_install_github_app_workflow_esc /install-github-app 返回 Esc 后不再重复勾选工作流 official-document-derived-entry Esc 返回后安装 GitHub App 流程不再重复勾选同一工作流。
entry_2_1_332_runner_git_config_includeif_clone Runner 首次克隆不再受 git includeIf gitdir/onbranch 配置影响 official-document-derived-entry 机器 git 配置含 includeIf gitdir: 或 git 2.44–2.46 onbranch: 段时,自托管 Runner 在 Anthropic 托管 git 下首次克隆不再失败。
doc_action_trigger_runner_permission Action 可触发运行的主体与仓库写权限边界 unlicensed-documentation GitHub Action 由交互模式触发短语或自动化 prompt 驱动;评论/Issue 触发者须对仓库具备写权限;仅仓库已安装 GitHub App、workflow 已启用且密钥已配置时才会响应。对应文档“Who can trigger runs”小节。
doc_action_troubleshooting_not_responding Action 不响应 @claude 命令排查清单 unlicensed-documentation 官方排障项:确认 GitHub App 已安装到仓库、workflow 已启用、API key 或 OAuth token 已写入仓库 secrets、评论中 @claude 为完整单词(非 /claude 或 @claude-bot)、评论用户具备写权限。属排障知识条目,不收录内部错误码。
doc_action_troubleshooting_ci_not_running Claude 提交未触发 CI 排查边界 unlicensed-documentation 官方排障方向:Claude 自身产生的提交未触发 workflow 时,检查触发事件对机器人/应用提交的过滤规则与 workflow 配置;仅记录文档公开的排查主题,不推断未公开的内部调度机制。
doc_action_beta_migration_direct_prompt_field beta 升级:direct_prompt 迁移至 prompt 字段 unlicensed-documentation beta 到 v1 迁移中:移除 mode 输入;direct_prompt 字段改名为 prompt;max_turns、model 等 CLI 选项移入 claude_args;custom_instructions 无直接等价字段。补充 doc_action_beta_to_v1_upgrade 未覆盖的字段映射细节。
doc_ghes_admin_owner_app_manifest_guided_or_manual_setup GHES 管理员接入:Owner 角色、引导式 GitHub App manifest 与被阻断跳转后的手动安装流程 official-public-docs-derived 官方 GHES 接入流程:连接实例须为 Claude 组织 Owner 或 Primary Owner,并具备在 GHES 上创建 GitHub App 的权限。引导式安装从 Organization settings > Git providers 发起,填写至多 20 字符显示名与 GHES 主机名(可选私钥 CA 证书),浏览器跳转 GHES 按预填 manifest 一键创建 GitHub App,凭据自动保存;随后在 GHES App 页面把 App 安装到所需仓库或组织。网络阻断跳转流时改用手动安装:在 GHES 自建 GitHub App(沿用同一套权限与订阅事件),表单录入显示名、主机名与端口、App ID、client ID、client secret、webhook secret、私钥及可选 CA 证书与只读副本主机名;保存后 Claude 生成 webhook URL,复制回填到 GHES App 的 webhook 设置并使用同一 webhook secret。
doc_approvals_github_status_check_source_boundary Approvals GitHub required status-check source: select the Claude app that reported the approval check official-public-docs-derived Official Approvals setup documentation: for the default branch and each configured branch, branch protection requires status checks to pass and adds Claude Approvals. The approval check's source is the Claude app that reported it. This entry records the documented status-check source configuration boundary; it does not infer repository review permissions, merge rules, or internal check implementation.
doc_gitlab_ci_mention_trigger_context_collection GitLab CI/CD @claude 提及触发与上下文收集 official-doc-derived GitLab 流水线采用事件驱动编排:监听 Issue、MR 或评审线程中 @claude 提及等所选触发条件;作业随后收集仓库与讨论上下文供代理处理。条目记录公开触发与上下文收集边界,不推断内部消息投递或令牌流程。
doc_gitlab_ci_provider_deployment_options GitLab CI/CD 提供商部署选项:Claude API、Bedrock 与 Google Agent Platform official-doc-derived GitLab CI/CD 作业提供提供商抽象:可选 Claude API SaaS、Amazon Bedrock IAM 访问(含跨区域选项)或 Google Cloud Agent Platform(Workload Identity Federation);按数据驻留与采购要求选择。条目只记录公开部署选项,不收录内部凭证交换流程。
doc_action_claude_args_cli_option_passthrough Action claude_args forwards CLI options: --max-turns, --model, --mcp-config, --allowedTools official-public-docs-derived The Action forwards the claude_args line to the Claude Code CLI. Common forwarded arguments limit conversation turns (--max-turns), select the model (--model), point to an MCP configuration file (--mcp-config), and list allowed tools (--allowedTools or --allowed-tools). Boundary: argument passthrough does not change repository write permissions or approval policy.
ci_qwen_code_action QwenLM/qwen-code-action GitHub Action apache-2.0-verify-repository-license 官方 GitHub Action 把 Qwen Code 接入仓库开发工作流,支持 Issue 分诊、Pull Request 评审、代码分析与按 @qwencoder 指令委派编码任务;仓库源码许可证与运行时 API 凭证、商业服务条款分开。
entry_2_1_332_ultrareview_post_direct_pr_comment /ultrareview --post 评审结果到达后直接发布 PR 评论并打印评论链接,不再另起云会话 official-document-derived-entry UltraReview --post 在发现结果到达时直接发布拉取请求评论并输出评论链接,不再启动第二个云会话执行发帖;记录命令行为边界,不推断云端任务内部实现。
doc_gitlab_job_timeout_vs_agent_turn_budget GitLab 作业超时关键字与代理回合预算边界(job timeout vs --max-turns) official-doc-derived GitLab CI/CD 作业中,GitLab 作业级 timeout 关键字限制整个作业的执行时间;CLI --max-turns 限制代理前后往返迭代次数,二者是相互独立的限额。具体命令行参数可能随已安装的 @anthropic-ai/claude-code 版本变化,应在作业内用 claude --help 查看受支持选项。条目只记录公开配置边界,不收录 Runner 调度、内部排队或凭证流程。
doc_approvals_policy_rule_key_semantics Approvals policy rule keys: paths, if, verdict, override, advisory, reuse, findings, locals and use semantics official-public-documentation-entry Official .claude/approvals.yml reference: each rule matches changed files through paths and an optional if condition; verdict states Claude's action (approves, comments, blocks) and the required seats; override lists condition-scoped replacement verdicts read top-down, first true applied; advisory lists classifiers that run and decide nothing and are still billed; reuse keeps earlier approvals or classifier answers after a push that changes the diff; findings names who may close a classifier finding thread; locals names reusable values and use copies maps into a rule. Keys and fixed values are lower case; an unknown key refuses the file. This entry records public YAML reference semantics, not internal policy evaluation implementation.
ci_gemini_cli_action google-github-actions/run-gemini-cli GitHub Action apache-2.0-verify-repository-license 官方 GitHub Action 在仓库工作流中调用 Gemini CLI,支持 Issue 分诊、Pull Request 评审、代码分析与按 @gemini-cli 指令委派编码任务;Gemini API Key 以 GitHub Secret 配置,Action 源码许可证与 Gemini API 商业服务条款分开标注。
ci_openai_codex_action openai/codex-action GitHub Actions 流水线集成 apache-2.0-verify-repository-license OpenAI 官方 Codex GitHub Action:在 GitHub Actions 工作流中安装 Codex CLI,并配置通往 Responses API 的安全代理;提供权限配置、模型、推理强度与 runner 安全策略输入。OpenAI API 密钥必须由工作流通过 Actions secret 提供,节点不记录密钥值。

核心能力

ID 名称 许可证状态 摘要
cap_codebase_understanding 代码库理解与搜索 capability-derived 通过代理式搜索理解项目结构、依赖和跨文件关系。
cap_multi_file_editing 跨文件修改 capability-derived 按任务在多个文件中协调编辑,并结合测试/构建命令验证。
cap_git_workflow Git 分支、提交与 PR 协作 capability-derived 支持分支、提交信息、Issue/PR 协作和流水线集成。
cap_subagents 子代理编排 capability-derived 主代理拆分专项子任务,生成子代理并汇总结果。
cap_mcp_tools MCP 外部工具与上下文接入 capability-derived 通过 MCP 连接数据源、工单、聊天工具和自定义内部工具。
cap_skills_hooks_memory Skills、Hooks、Memory 与插件 capability-derived 项目指令、自动记忆、可复用命令、生命周期钩子和插件打包。
mem_claude_md CLAUDE.md / AGENTS.md 项目指令记忆 configuration-documentation 用户写入的持久化指令;会话启动时按目录层级加载到上下文;可用 AGENTS.md 替代。
mem_auto_memory Auto Memory 自动记忆 local-markdown-files Claude 按 user/feedback/project/reference 四类自动记录偏好、反馈、项目决策和外部参考位置;存储在项目 memory 目录。
ctx_session_transcript 会话记录与上下文衔接 local-transcript-files 会话消息、工具调用和结果持续写入本地 transcript;resume/continue 可恢复历史、权限模式、模型和中断状态;fork/branch 复制对话。
ctx_compact_clear 压缩、清理与上下文窗口管理 session-context-management /compact 将历史替换为摘要;/clear 清空上下文;/context 查看占用;根目录 CLAUDE.md 在压缩后会重新读入。
tool_file_read 文件读取工具 Read built-in-tool 读取文件内容;工作目录外路径会触发读取权限检查。
tool_file_edit 文件编辑工具 Edit / Write / NotebookEdit built-in-tool 定向修改文件、写入文件、编辑 Jupyter Notebook 单元格;写操作通常需要权限审批。
tool_shell Shell 执行 Bash / PowerShell / Monitor built-in-tool 执行命令;Monitor 后台跟踪命令输出、日志或 WebSocket 事件;PowerShell 按平台可用。
tool_search_files 文件搜索 Glob / Grep built-in-tool-optional-default Glob 按模式找文件;Grep 按内容搜索;macOS/Linux/WSL 默认可能由 Bash 内 find/grep 替代。
tool_web WebFetch / WebSearch built-in-tool 抓取指定 URL 内容;执行网页搜索。
tool_agent_message Agent / SendMessage / ListAgents built-in-agent-tool 生成子代理或队友;跨代理/跨会话发消息;列出可通信代理。
tool_mcp_resources MCP 资源与工具调用 mcp-integration-tool ListMcpResourcesTool / ReadMcpResourceTool / WaitForMcpServers 管理已连接 MCP Server 的资源和连接状态。
tool_plan_worktree 计划模式与 Worktree 工具 built-in-tool EnterPlanMode/ExitPlanMode 先设计后编码;EnterWorktree/ExitWorktree 创建隔离 git worktree。
tool_plugin_skill Skill / Plugin 检索与执行 extension-tool Skill 执行可复用工作流;ListSkills/SearchSkills/ListPlugins/SearchPlugins 检索技能和插件。
tool_schedule_notify 定时、通知与反馈工具 session-cloud-tool CronCreate/CronDelete/CronList 管理会话定时任务;PushNotification、SendUserFile、SendFeedback 处理通知、文件交付和反馈草稿。
hook_lifecycle Hooks 生命周期钩子 configuration-hooks PreToolUse 在工具参数生成后、执行前拦截;PostToolUse 在成功后运行;PermissionRequest/PermissionDenied/FileChanged 等覆盖权限拒绝和文件变更事件。
sched_cloud 云端定时任务 Cloud Scheduled Tasks proprietary-all-rights-reserved 云端运行,本机关机仍持续;可由 API 调用或 GitHub 事件触发;Web/桌面应用或 CLI /schedule 创建
sched_desktop 桌面本地定时任务 Desktop Scheduled Tasks proprietary-all-rights-reserved 本机运行,直接访问本地文件与工具;与云端定时任务并列
sched_loop CLI 会话内 /loop 轮询 capability-derived 在单个 CLI 会话内重复提示词做快速轮询;区别于云端与桌面定时任务
action_interactive GitHub Action 交互模式 capability-derived 无 prompt 输入时等待触发短语(默认 @claude),在 Issue/PR 评论、评审或新建 Issue 中响应
action_automation GitHub Action 自动化模式 capability-derived 提供 prompt 输入后不等提及直接运行;结果默认进 workflow 日志,可按提示发布到 Issue/PR
settings_user 用户级用户设置文件 ~/.claude/settings.json configuration-documentation 个人偏好、主题、编辑器模式、默认模型与个人权限规则;在本机所有项目生效
settings_project_shared 共享项目设置 .claude/settings.json configuration-documentation 团队权限、hooks、插件与项目所需环境变量;仓库中提交供队友使用
settings_project_local 项目本地设置 .claude/settings.local.json configuration-documentation 单项目个人覆盖;Claude Code 写入时不纳入 git;allow 规则免工作区信任步骤生效
settings_managed 托管设置 managed-settings.json / MDM / 控制台 configuration-documentation 组织下发的安全策略与合规要求;自有设置与 --settings 不能覆盖托管键
settings_precedence 设置优先级栈(托管 > 命令行 > 项目本地 > 共享项目 > 用户) configuration-documentation 同名键取最高层级设置;列表类规则跨层级合并而非整体覆盖;环境变量与设置键按成对规则判定
mem_retention_sweep 记忆保留与 transcript 清理扫描 session-context-management cleanupPeriodDays 到期删除旧 transcript;记忆目录中的 MEMORY.md 与主题文件排除在保留扫描之外,留存到人工或 Claude 编辑删除
mem_compaction_reinject 压缩后指令重读重注入机制 session-context-management /compact 后根目录 CLAUDE.md 从磁盘重读并重注入会话;子目录嵌套指令与路径规则按需再次加载
mem_on_demand_recall 按需记忆回读(文件工具触发) session-context-management 主题记忆文件启动不加载;会话中需要相关信息时由标准文件工具按需读取,对应界面 Saved/Recalled memories 提示
mem_scope_user_project 记忆作用域:用户级 / 项目级 / 仓库 worktree 共享 configuration-documentation CLAUDE.md 分用户/项目/组织作用域;同一 git 仓库所有 worktree 与子目录共享一个 auto memory 目录;机器本地不跨机器云同步
sa_explore Explore 只读探索子代理 capability-derived 快速只读代理,代码库搜索与分析;Write/Edit 被拒;彻底度 quick/medium/very thorough
sa_plan Plan 计划研究子代理 capability-derived 计划模式下收集上下文的只读研究代理;探索输出留在独立上下文,主会话保持只读
sa_general General-purpose 通用子代理 capability-derived 复杂多步任务,兼具探索与修改;可用全部子代理工具;模型继承主会话或按 CLAUDE_CODE_SUBAGENT_MODEL 指定
sa_agent_definition 子代理定义(prompt/frontmatter 字段集) configuration-documentation 文件或 --agents JSON 定义子代理;字段 prompt/description/tools/disallowedTools/model/permissionMode/mcpServers/hooks/maxTurns/memory/isolation 等
sa_scope 子代理作用域:用户/项目/托管/插件/CLI 临时 configuration-documentation 用户级跨项目复用;项目级 .claude/agents;托管同名优先;插件自动加载;--agents 仅当次会话不落盘
sa_delegation 委派模式:自然语言 / @-mention / 会话级 --agent configuration-documentation 自然语言由 Claude 决定;@-mention 保证单次运行;--agent 让整会话以该子代理运行
sa_context 子代理上下文:指令层级/Git 快照/预载技能/兄弟名册 configuration-documentation 启动注入各级 CLAUDE.md、Git 状态快照、skills 预载;名册列 main 与命名代理作为 SendMessage 目标
sa_fork_mode Fork 模式与子代理等待开关 configuration-documentation fork 模式允许 Claude 自行启动 fork;可经 permissions.deny Agent(fork) 或 CLAUDE_CODE_FORK_SUBAGENT=0 关闭
feat_mods Claude Mods 插件深度行为修改机制 capability-derived 2.1.287 起插件可修改更深层行为;Mod 为插件组件,含界面区域与故障隔离
feat_you_should_know You should know 内置监督侧代理 capability-derived 内置 Mod:侧代理后台观察,标记用户或主代理可能遗漏事项;首方会话开启遥测时经 /plugin enable 启用
feat_agent_spawn agent.spawn 队友派生与代理状态查询 capability-derived 2.1.289 新增 agent.spawn;钩子事件携带统一 agent id;$.agent.list() 含 idle/waiting 状态
feat_gateway_headers LLM 网关提示头(类/类型/时长/压缩标记) capability-derived 2.1.273 新增 request-class/agent-type/prev-tool-durations/compaction/context-compacted 请求头;CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 opt-in
feat_otel_prompt_text OpenTelemetry user_prompt prompt_text 字段 capability-derived 2.1.287 新增 prompt_text,供嵌套点键后端;与 prompt 同级丢弃或脱敏
feat_mcp_disconnect MCP 断线通知与自动重连放弃提示 capability-derived 会话中 MCP 断开且重连放弃时通知,指向 /mcp
feat_autocompact_model 按模型保存自动压缩窗口 capability-derived /autocompact 压缩窗口按模型分别保存;切模型时各自保留设置
feat_perm_stack_count 堆叠权限请求计数提示(如 2 of 5) capability-derived 多权限请求堆叠时提示显示序号计数
internal_undocumented 未公开内部特性(社区传闻,官方文档未列) unverified-community-source 社区讨论的内部代号/后台守护/隐藏功能;官方未记载,状态不可核实;仅作闭源边界观察对象,不作可用能力引用
internal_prompt_builder 系统提示词分段构建与缓存分界(社区逆向观察) unverified-community-source 社区观察:提示词由分段 builder 运行时组装,静态/动态段间存在缓存分界;内部函数名与 token 数值不入库
internal_classifier 两段式自动审批分类器(社区逆向观察) unverified-community-source 社区观察:自动权限模式存在快慢两段分类;官方文档仅描述权限模式与审批规则,内部实现细节不收录
perm_rule_eval_order 权限规则求值顺序:deny → ask → allow configuration-documentation 规则按固定顺序求值,首个匹配决定结果;规则特异性不改变顺序;宽 deny 可拦截同时匹配窄 allow 的调用
perm_param_match 工具输入参数匹配规则 Tool(param:value) configuration-documentation deny/ask 规则可按工具顶层标量参数匹配(如 Agent(model:opus)、Bash(run_in_background:true));嵌套对象/数组字段不可匹配;值支持 * 通配;主内容字段(command/file_path/path/url)不按此方式匹配
perm_wildcard_pattern 权限规则通配符模式(* 与 :* 后缀) configuration-documentation * 匹配任意字符序列;尾随带空格的 * 也匹配裸命令;:* 后缀等价尾随通配;空格位置影响匹配;规则由 Claude Code 强制执行,模型提示或 CLAUDE.md 不改变授权
perm_additional_dirs 附加工作目录权限范围 configuration-documentation 只读工具在工作目录与附加目录范围内免提示;additionalDirectories 规则需在文件夹受信任后生效
settings_cli_override 命令行 --settings 会话级覆盖 configuration-documentation 启动时以 JSON 内联或文件路径传入 --settings;层级位于用户/项目/本地文件之上、托管设置之下;不能设置 Managed 或 Global config 键;仅当次会话生效
settings_env_var_pair 环境变量与设置键配对覆盖 configuration-documentation 环境变量不属于设置层级栈;某行为同时有 shell 变量与设置键时按配对关系决定先后(如 ANTHROPIC_MODEL 覆盖文件 model 键,ANTHROPIC_DEFAULT_MODEL 仅在文件未设置时生效)
settings_list_merge 列表型设置键合并而非覆盖 configuration-documentation 列表类权限/插件键在多来源间合并;共享仓库文件中部分敏感键按 Scope 不生效;allow 规则、附加目录、市场与多数 env 值需文件夹受信任后才应用,deny/ask 立即生效
settings_cloud_session_scope 云会话设置可达范围 configuration-documentation 云会话运行于仓库新克隆;用户与项目本地设置不读取;托管 managed-settings.json/MDM 不到达云会话,仅服务器托管设置可达;项目线程内共享项目文件的权限规则、hooks、env 不应用
team_lead Team lead 团队主会话(协调者) capability-derived Agent team 中负责派生 teammates、分配任务、综合结果的主 Claude Code 会话;成员记录在团队 config 的 members 数组,agent type 为 team-lead
team_teammate Teammate 独立队友会话 capability-derived 独立 Claude Code 实例,各自拥有独立上下文窗口与分配任务;可被直接消息沟通;模型与 fast mode 在派生时固定
team_task_list 共享任务列表(pending/in-progress/completed/依赖阻塞) configuration-documentation 团队协作的共享工作项清单;任务有 pending、in progress、completed 三态,依赖未完成时显示 blocked;无 Task 工具的代理改走消息协调
team_mailbox Agent mailbox 消息邮箱(JSON 收件箱文件) configuration-documentation 代理间消息系统;每个代理邮箱为 ~/.claude/teams/{team}/inboxes/{agent}.json;写入收件箱文件成功才标记已发送;格式不符条目读取时报错并剔除
team_file_lock 任务认领文件锁(防并发竞态) configuration-documentation 多队友同时认领同一任务时用文件锁防止竞态;lead 可显式分配,队友完成任务后可自认领下一个未分配且未阻塞任务
team_context_scope 队友上下文加载:项目上下文与派生提示,不带主会话历史 configuration-documentation 派生时队友加载同常规会话的 CLAUDE.md、MCP、skills 与 lead 的派生提示;lead 对话历史不继承;--setting-sources 受限列表同样作用于队友
team_roles_reuse 队友角色复用子代理定义 configuration-documentation 可复用队友角色通过子代理定义声明;团队 config 含 members 名称与 agent id;项目目录下 .claude/teams/teams.json 不被识别为配置文件
settings_managed_model_lock 托管模型约束:availableModels / deniedModels 锁定(model 默认值非锁) configuration-documentation 托管 model 仅为起始默认值;可用模型与拒绝模型分别由 availableModels、deniedModels 锁定;--model 只能在组织允许的模型范围内选择
settings_cloud_repo_keys 多云仓库云会话仅读取 enabledPlugins 与 extraKnownMarketplaces configuration-documentation Anthropic 托管环境多仓库会话启动于克隆目录之上,仅读取各仓库 settings.json 的 enabledPlugins 与 extraKnownMarketplaces;权限规则、hooks、env 及其他键不生效;声明的市场与插件在云会话仍不加载
cfg_user_settings 用户级设置 ~/.claude/settings.json configuration-documentation 个人偏好:主题、编辑器模式、默认模型、个人权限规则;作用于本机所有项目,优先级最低
cfg_project_shared 共享项目设置 .claude/settings.json configuration-documentation 团队提交到仓库的权限规则、Hooks、插件与项目所需环境变量;对克隆仓库的全体成员生效;部分作用域键被忽略且需工作区信任
cfg_project_local 项目本地设置 .claude/settings.local.json configuration-documentation 本人在单一项目的个人覆盖与测试;不进 git;未跟踪时其 allow 规则跳过信任步骤;常驻审批保存到此处
cfg_precedence_stack 设置优先级栈:托管 > 命令行 > 项目本地 > 共享项目 > 用户 configuration-documentation 同名键取最高层级值;托管设置不可被本地文件或 --settings 覆盖;环境变量不在栈内,按变量-键配对规则单独判定
cfg_list_merge 列表型设置键合并而非整体覆盖 configuration-documentation 数组/列表类配置在层级间合并保留;env 块内遥测导出变量等少数键不适用共享文件
set_config_menu /config 配置菜单(主题/编辑器模式/verbose 等个人选项) configuration-documentation 终端内 /config 打开 Config 标签;多数选项写入 ~/.claude/settings.json,输出样式写 settings.local.json,全局配置写 ~/.claude.json;VS Code 面板与桌面应用不打开该菜单
set_fallback_model fallbackModel 有序回退模型链 configuration-documentation 有序模型回退链,位置即优先级;不跨文件合并,整体取最高优先级文件定义的值
set_model_picker modelPicker 模型选择器列表与替换标志 configuration-documentation 选择器行列表加 replace 标志;不合并两行来源,整体取托管/--settings/用户设置中最高定义者,项目与本地设置忽略
set_model_settings modelSettings 分模型设置(与 effortLevel 联合解析) configuration-documentation 按单个模型解析的设置条目;与 effortLevel 一起确定某模型适用的文件值
set_managed_restrictive 托管设置优先级例外:限制性键可覆盖托管默认 configuration-documentation 少量限制类键(禁连接器、禁制品、隔离机器、读写目录限制、denyInsteadOfPrompting、远程控制开关、跨会话入站、effort 上限等)从非托管范围取更严值,覆盖托管的宽松默认
set_env_pairing 环境变量与设置键配对覆盖规则(非层级栈) configuration-documentation 环境变量不占设置层级;行为同时有 shell 变量与设置键时按配对规则决定:如 ANTHROPIC_MODEL 覆盖任意文件 model,ANTHROPIC_DEFAULT_MODEL 仅在文件未设 model 时生效
mcp_cli_add claude mcp add / add-json 配置命令 configuration-documentation CLI 注册 MCP Server:--transport、--env、--scope、--header;add-json 接收 mcpServers 内部对象;-- 分隔 Claude 自身选项与 Server 命令参数
mcp_server_shutdown stdio Server 断开时的进程信号收尾顺序 configuration-documentation 断连时先发终止信号等待退出再强制停止:macOS/Linux 依次 SIGINT→SIGTERM(100ms)→SIGKILL(再 400ms);Windows 先关 stdin,300ms 后结束进程树
mcp_plugin_naming 插件捆绑 MCP 的工具名与作用域命名规则 configuration-documentation 插件 Server 工具全名 mcp__plugin____;Server 作用域名 plugin::;权限规则/技能 allowed-tools/子代理 tools/钩子匹配须用全名
mcp_code_as_server claude mcp serve 将 Claude Code 自身作为 MCP Server configuration-documentation claude mcp serve 以 stdio MCP 服务对外暴露,供其他应用(如 Claude Desktop)连接;启动后静默等待客户端连接
cli_add_dir --add-dir 附加工作目录授权 configuration-documentation 为会话添加可读可编辑的附加目录;校验路径为存在目录;不继承这些目录下多数 .claude/ 配置;持久化用 permissions.additionalDirectories 设置
cli_advisor --advisor 服务端 advisor 工具模型指定 configuration-documentation 会话启用服务端 advisor 工具并指定模型别名 fable/opus/sonnet 或完整 ID;优先级高于 advisorModel 设置;fable 需 Fable 访问权限
cli_safe_mode --safe-mode 全自定义禁用排障模式 configuration-documentation 禁用 CLAUDE.md、技能、插件、钩子、MCP、自定义命令/代理、输出样式、工作流、主题、键位、状态栏、LSP、auto memory;认证、模型选择、内置工具与权限正常;与 --bare 区别:托管策略钩子/状态栏等仍按策略生效
cli_teammate_mode --teammate-mode 队友显示模式(in-process/auto/tmux/iterm2) configuration-documentation 指定 agent team 队友展示方式:in-process 默认、auto、tmux、iterm2;覆盖 teammateMode 设置
cli_system_prompt_flags --system-prompt / --system-prompt-file / --system-prompt-snapshot configuration-documentation 自定义系统提示词:整体替换文本、从文件加载、或 snapshot off 让每次请求重建提示词而非复用首条请求记录;跨 --continue 迭代追加提示词时使用
cli_tools_allowlist --tools 内置工具允许清单限制 configuration-documentation 限制会话可用内置工具:"" 全禁、default 默认集、具名工具列表;不影响 MCP 工具,拒绝 MCP 用 --disallowedTools;命名任务跟踪工具即开启对应会话能力
cli_session_persistence --no-session-persistence 关闭会话落盘 configuration-documentation 打印模式下禁用会话持久化,会话不存盘不可恢复;等价环境变量 CLAUDE_CODE_SKIP_PROMPT_HISTORY 在任意模式生效
hook_matcher_group Hook matcher 匹配组过滤层 configuration-documentation Hook 配置三层嵌套:事件 → matcher 匹配组(按工具名等过滤)→ handler 处理器;匹配组决定事件何时下发到处理器
hook_handler_types Hook 处理器类型:命令 / HTTP 端点 / MCP 工具 / 提示 / 代理 configuration-documentation 命中匹配组后运行的处理器形态;命令经 stdin 收 JSON 输入,HTTP 经 POST 请求体;处理器可检查输入、采取动作并返回决策
hook_decision_precedence Hook 决策优先级 deny > defer > ask > allow configuration-documentation 多个 PreToolUse Hook 返回不同决策时按 deny 优先;退出码 2 等同 deny,stderr 作为拒绝原因;ask 提示标注来源 [settings]/[plugin:name]/[skill]
skill_frontmatter_fields Skill YAML frontmatter 字段集(name/description/shell/allowed-tools/disallowed-tools/agent 等) configuration-documentation SKILL.md 顶部 --- 分隔的 YAML 配置;shell 选 bash/powershell;allowed-tools 当轮预授权;disallowed-tools 当轮移除;agent 指定运行子代理;disable-model-invocation 禁止模型自行调用
skill_compaction_budget 压缩后技能保留预算(每技能前 5000 tokens / 合计 25000) capability-derived Auto-compaction 后重新挂载最近调用技能;每技能保留前 5000 tokens,合计共享 25000 tokens 预算,按最近调用优先填充,旧技能可能被整体丢弃
skill_arg_placeholder 技能参数占位符 $ARGUMENTS configuration-documentation 调用技能时技能名之后的实参经 $ARGUMENTS 占位符替换进技能指令;人与模型均可传参
skill_disable_setting disableBundledSkills 内置技能关闭设置 configuration-documentation 设置项用于关闭随附的 bundled skills;个别技能依赖动态工作流等特定功能才可用
mcp_scope_project_file 项目级 MCP 配置 .mcp.json(团队共享与审批) configuration-documentation 项目根目录 .mcp.json 提交版本控制共享 MCP 配置;交互会话使用前需审批;-p、SDK、云会话与 bypassPermissions 场景跳过提示;claude mcp reset-project-choices 重置审批选择
mcp_provenance_source MCP Server 来源 provenance(plugin/sdk/user/project 等) capability-derived PreToolUse 输入 mcp_server.source 标注服务器定义来源;信任决策基于 source 而非名称或 mcp__server__ 前缀;未识别来源按 McpServerProvenance 保守处理
mcp_managed_config 托管 MCP 配置 managed-mcp.json / allowed / denied 服务器清单 configuration-documentation 组织集中下发固定服务器集:managedMcpServers 提供服务器,allowedMcpServers 与 deniedMcpServers 限制可连范围;被阻断服务器有对应可见提示
cli_cmd_update claude update 版本更新命令 configuration-documentation 把 CLI 更新到最新版本;独立于会话内运行,属于 CLI 自维护命令族
cli_cmd_install claude install [version] 原生二进制安装/重装 configuration-documentation 安装或重装原生二进制;可指定版本号、stable 或 latest
cli_cmd_auth_login claude auth login 登录命令(--email/--sso/--console) configuration-documentation 登录 Anthropic 账户;--email 预填邮箱,--sso 强制 SSO,--console 以 Console API 用量计费而非订阅
cli_cmd_auth_logout claude auth logout 登出命令 configuration-documentation 从当前 Anthropic 账户登出;与 auth status 同属认证命令族
cli_cmd_auth_status claude auth status 认证状态 JSON 查询 configuration-documentation 输出认证状态 JSON;--text 人类可读;已登录退出码 0,否则 1;authMethod 取值 none/claude.ai/oauth_token/api_key/api_key_helper/third_party
cli_cmd_agents_view claude agents 代理视图(后台会话监控与派发) configuration-documentation 打开 agent view 监控并派发并行后台会话;--cwd 过滤目录,--json 输出脚本可读数组,--all 含已完成会话;可传权限模式/模型/effort/agent 默认值
cli_cmd_attach claude attach 附加到后台会话 configuration-documentation 在当前终端接入指定后台会话;可按会话 ID 或部分名称匹配
cli_cmd_auto_mode_defaults claude auto-mode defaults 内置分类规则导出 configuration-documentation 打印 auto mode 内置分类器规则 JSON;--label 按前缀过滤;auto-mode config 查看叠加设置后的有效配置
cli_cmd_auto_mode_reset claude auto-mode reset 分类配置重置 configuration-documentation 从用户设置文件移除 autoMode 段恢复默认;需确认,-y 跳过;托管设置与 --settings 规则仍生效
cli_cmd_daemon_logs claude daemon logs 后台监督进程日志跟随 configuration-documentation 跟踪 ~/.claude/daemon.log 后台会话监督进程日志,新行实时输出,Ctrl+C 停止
cli_cmd_daemon_run claude daemon run 前台运行监督进程 configuration-documentation 在当前终端前台运行后台会话监督进程并打印日志
cli_cmd_daemon_status claude daemon status 监督进程状态诊断 configuration-documentation 输出监督进程状态、版本、socket 目录与 worker 数量;未运行退出码 1
cli_cmd_daemon_stop claude daemon stop 停止监督进程 configuration-documentation 停止监督进程及其托管会话;--keep-workers 保留后台会话供下一监督进程重连;--any 确认停止按需监督进程
cli_cmd_doctor claude doctor 安装与设置只读诊断 configuration-documentation 不启动会话即打印安装健康、设置文件校验错误、Remote Control 资格;会话内可修复的检查对应 /doctor
cli_cmd_import claude import 跨代理配置导入 configuration-documentation 启动交互会话运行 /import,把其他编码代理的配置迁入;支持 --dry-run 与 --yes;部分云平台与关闭特性拉取时不可用
cli_cmd_logs claude logs 后台会话近期输出查询 configuration-documentation 打印指定后台会话的近期输出;可按 ID 或部分名称定位
cli_cmd_mcp_login claude mcp login MCP Server OAuth 登录 configuration-documentation 不打开交互 /mcp 面板运行指定 Server 的 OAuth 流程;覆盖 HTTP/SSE/claude.ai 连接器;--no-browser 在 SSH 下输出授权 URL
cli_cmd_mcp_logout claude mcp logout 清除 MCP Server OAuth 凭证 configuration-documentation 清除指定 MCP Server 已存储的 OAuth 凭证
cli_cmd_respawn claude respawn 重启后台会话 configuration-documentation 重启运行中或已停止的后台会话并保留对话;--all 重启全部运行中会话,用于加载更新后的二进制
cli_cmd_stop claude stop / kill 停止后台会话 configuration-documentation 停止指定后台会话;kill 为别名
cli_cmd_self_hosted_runner claude self-hosted-runner 自托管环境注册进程 configuration-documentation 注册本机或容器到自托管环境并托管云会话;setup 引导操作、doctor 诊断部署、orchestrator 派生下按需 runner
cli_cmd_setup_token claude setup-token CI/脚本长生命周期令牌生成 configuration-documentation 生成供 CI 与脚本使用的长生命周期 OAuth 令牌;令牌打印到终端不落盘;需 Claude 订阅
cli_cmd_ultrareview claude ultrareview 非交互代码审查 configuration-documentation 非交互运行 ultrareview;发现打印到 stdout,成功退出 0 失败 1;--json 原始载荷,--timeout 覆盖默认 45 分钟,--post 把结论发到 PR
cli_cmd_gateway claude gateway 自托管 Claude apps 网关服务 configuration-documentation 启动自托管网关服务器,供管理员在 Bedrock/Vertex/Foundry 前部署 SSO 与策略;需 --config 指定 gateway.yaml
wf_find_relevant_code 定位相关代码(探索式窄化提问流程) configuration-documentation 先宽后窄的探索流程:概览问题切入,再针对架构模式、数据模型、认证等具体区域深挖;请求项目术语表
wf_notes_noncode_folder 笔记与非代码目录工作流 configuration-documentation Claude Code 可在笔记库、文档目录或 Markdown 集合中搜索、编辑、重组;.claude/ 目录与其他工具配置目录并存无冲突;文件每次工具调用时新鲜读取
wf_schedule_options 定时任务四类落点选择(云端/桌面/CI/会话内 loop) configuration-documentation 按运行位置选择:Cloud scheduled tasks 设备关机仍运行;Desktop scheduled tasks 访问本地文件;GitHub Actions 绑定仓库事件;/loop 在当前 CLI 会话内轮询,--resume/--continue 恢复未过期固定间隔循环
cfg_managed_restrictive_exceptions 托管优先级例外:限制性值覆盖托管设置 configuration-documentation 少数限制类键允许更低作用域的限制性值覆盖托管设置,如禁用连接器、关闭 Artifact、隔离对等机器、阻断工作目录外读写、denyInsteadOfPrompting;版本要求按各键记录
team_experimental_flag Agent Teams 实验开关 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS configuration-documentation 团队协作默认关闭;settings.json env 或环境变量置 1 启用;启用后 Claude 自行命名的子代理可能以 teammate 形式启动;teammate 派生须交互会话,-p 非交互与 Agent SDK 不派生队友
team_panel_ui 代理面板:队友选择/消息/空闲折叠显示 configuration-documentation 主会话终端代理面板列出队友;上下箭头选择、Enter 打开 transcript 并直接发消息、Esc 清除选择或中断当前回合;空闲队友超过三个折叠为计数行;全部空闲 30 秒后隐藏
team_task_claim_mode 任务分派模式:Lead 指派与队友自认领 configuration-documentation Lead 显式指派任务;队友完成后可自行认领下一个未分配、未阻塞任务;无 Task 工具的代理改用消息协调;依赖任务在前置完成后自动解除阻塞
team_mailbox_validation Mailbox 条目格式校验与写失败语义 configuration-documentation 邮箱为 JSON 文件;读取时校验条目格式,不符条目报错并剔除、有效消息照常投递;收件邮箱文件写成功才记为已发送,写失败(磁盘满/目录不可写)发件代理收到错误且消息未送达
team_storage_layout 团队本地存储布局:config.json 与 tasks 目录 configuration-documentation 团队配置 ~/.claude/teams/{team-name}/config.json(会话结束移除,含成员名称与 agent id,Lead 类型为 team-lead);任务列表 ~/.claude/tasks/{team-name}/ 会话结束后留盘,保留期受 cleanupPeriodDays 控制;无项目级团队配置文件
wf_pr_session_link 会话与 PR 关联及 --from-pr 恢复 configuration-documentation gh pr create / glab mr create 或处理已有 PR 时会话链接到 PR;claude --from-pr 打开筛选到该 PR 关联会话的选择器,也可在 /resume 选择器粘贴 PR URL
wf_file_mention @ 文件/目录/MCP 资源引用语法与限制 configuration-documentation @ 前缀把文件内容纳入对话(Read 默认 25000 token,大于 256KB 文本不纳入);目录引用仅列文件清单;同时带上文件目录及父目录 CLAUDE.md;CLAUDE_CODE_DISABLE_FILE_MENTIONS=1 可关闭内容注入;@ 引用不触发 PreToolUse Hook
wf_spawn_model_choice 队友模型选择优先级(派生提示指定优先) configuration-documentation 队友模型按派生提示中为该队友指定的模型最先适用;其余按子代理模型解析顺序;可在派生指令中直接指定每个队友使用的模型
feat_commit_attribution_off settings attribution:false 隐藏提交与 PR 署名 configuration-documentation settings.json 中 attribution 置 false 隐藏所有提交和 PR 署名;旧版 CLI 会跳过含该对象的设置文件,跨版本共享文件时保留对象形式
feat_fast_mode_remote Remote 会话 Fast mode(host 设置或 /fast) capability-derived 云端与自托管 runner 的远程会话支持快速模式;主机 fast-mode 设置或会话内 /fast 在组织允许时生效;关闭与组织禁用状态有独立反馈路径
feat_plugin_eval claude plugin eval 插件评测套件运行 configuration-documentation 运行插件 eval 测试套件并得到可复现的评分结果,输出 JSON 与 HTML 报告
feat_output_style /output-style 输出风格列表与切换 configuration-documentation 列出并切换输出风格;支持 Remote Control 以及云端和其他无头会话
feat_bash_edit_diff Bash 工具结果附带文件改动 diff(bashEditDiffEnabled) configuration-documentation Bash 命令处理文件编辑时,工具结果附带该命令改动文件的 diff;受 bashEditDiffEnabled 设置控制
feat_otel_repo_attributes OTel 指标事件仓库属性标记 OTEL_METRICS_INCLUDE_REPOSITORY configuration-documentation 环境变量为 OpenTelemetry 指标与事件打上 vcs.* 仓库属性;提交事件在 OTEL_LOG_TOOL_DETAILS 下带 vcs.ref.head.* 属性
feat_max_effort_level maxEffortLevel 设置限制努力级别上限 configuration-documentation 顶层或 modelSettings 内分模型设置;对所有提供商(含 Bedrock/Vertex/Foundry)限制 effort level 上限;用户仍可选更低级别
feat_system_prompt_snapshot --system-prompt-snapshot off 每请求新鲜渲染提示词 configuration-documentation 关闭后每个请求重新渲染系统提示词,不复用会话记录的提示词;用于提示词文本迭代调试
feat_subagent_omit_claude_md 子代理 omitClaudeMd 跳过用户/项目/本地 CLAUDE.md configuration-documentation agent frontmatter 与 --agents JSON 支持 omitClaudeMd;自定义与插件子代理运行时不加载用户、项目、本地 CLAUDE.md;托管策略文件仍加载
feat_third_party_provider 第三方模型提供商接入(Bedrock / Vertex / Foundry) configuration-documentation Terminal CLI、VS Code、JetBrains 支持第三方提供商;模型通道经 ANTHROPIC_BASE_URL 或云厂商网关配置
chan_allowlist 频道插件白名单与托管开关(channelsEnabled / allowedChannelPlugins) configuration-documentation channelsEnabled 为总开关;allowedChannelPlugins 可替换官方白名单,限定插件与 marketplace;Team/Enterprise 需 Owner 启用
chan_permission_relay 频道权限提示远程转发(permission relay) configuration-documentation 声明该能力的频道可把离线期间的权限审批提示转发给远端,由白名单发送者批准或拒绝;未声明则会话暂停等待本地响应
wf_cli_pipe CLI 管道非交互批处理(-p 输入流串联) configuration-documentation 日志/git diff 经管道喂给 claude -p 做摘要、翻译、安全审查;用于 CI、pre-commit 与批量处理;支持输出格式与 fan-out 模式
wf_disable_file_mentions @ 文件引用关闭开关(CLAUDE_CODE_DISABLE_FILE_MENTIONS) configuration-documentation 置 1 后 @ 文件/目录引用不再带入内容与目录清单,仅传路径由文件工具读取;v2.1.299+;配合 Read deny 规则控制读取范围
wf_self_capability_qa 基于文档的自身能力问答(/powerup 交互课程) capability-derived Claude 可依据当前官方文档回答自身功能与限制;/powerup 提供带动画演示的交互式课程
mcp_status_tools_fetch MCP 状态:已连接但工具列表获取失败 capability-derived 服务器连通但无法列出工具;经 claude mcp get 查看错误详情
mcp_status_disabled MCP 状态:项目内禁用(disabledMcpServers) capability-derived 服务器被项目 disabledMcpServers 列表关闭;可经 /mcp 重新启用,无需移除配置
mcp_status_blocked_policy MCP 状态:被企业托管策略阻止 capability-derived 组织策略封禁该服务器时不发起连接;需管理员确认策略来源
mcp_config_fields MCP 配置条目字段:HTTP url / stdio command+args configuration-documentation .mcp.json 与 CLI 配置按类型区分字段:HTTP 服务器用 url 端点;stdio 服务器用 command 与 args 启动程序
bp_claude_md_scope CLAUDE.md 写入范围原则:只记录代码读不到的信息 configuration-documentation 可从仓库代码找到且模型会主动查找的内容不写入;只保留会议决策、部署流程、测试环境变量、反复纠正过的规则等仓库外或难挖掘信息
bp_prompt_specificity 具体提示词写法:文件、症状、验收标准前置 configuration-documentation 提示词命名文件、描述症状、写明修复验收标准;偏好的方案选择也需前置说明;已有素材用 @ 文件、截图或管道输入直接交给模型
bp_effort_control 推理强度由 effort level 控制,普通措辞不提升档位 configuration-documentation think step by step / be thorough 属普通提示文本,只在当前 effort 设定内微调;推理深度由 effort level 控制;ultrathink 可单轮请求更深推理而不改 effort 设定
bp_worktree_include .worktreeinclude 工作tree复制文件清单 configuration-documentation 仓库根目录 .worktreeinclude(语法同 .gitignore)列出需复制到每个新建 worktree 的 gitignore 文件,如 .env;仅适合小文件,目录复制改用 worktree.symlinkDirectories 设置
bp_batch_migrate /batch 大规模机械改动拆分工作流 capability-derived 跨多文件的大型机械改动由 /batch 拆为 5–30 个单元并先展示计划;批准后每个单元独立 worktree,分别开 PR 或汇报结果
plugin_load_layers 插件加载三层:设置清单 / 磁盘缓存 / 会话加载 configuration-documentation 设置记录已添加市场与启用插件;~/.claude/plugins/ 存放拉取安装内容;会话启动时加载或经重载生效;各层有优先级规则
plugin_install_scope 插件安装作用域:用户 / 项目 / 本地 configuration-documentation 用户级本机全部项目启用;项目级经提交的 .claude/settings.json 对仓库协作者启用,各自本机安装;本地级仅当前仓库对当前用户启用;云会话不加载本地设置中的插件
plugin_footprint_context 插件上下文占用与用量计费 capability-derived 启用插件的每个可自主调用 skill/agent/command,其名称与描述每轮进入上下文;对应 token 计入用量并压缩上下文空间;可在市场页或安装后查看占用,闲置插件可禁用
bp_determinism_split 指令确定性分层:模型决策 vs harness 强制 configuration-documentation 非确定性指令(prompt/CLAUDE.md/skill)由模型理解并遵循,无强制保证;确定性配置(Hook、deny 规则、托管设置)由 harness 每次强制执行
bp_goal_condition /goal 目标条件检查(独立模型逐轮校验完成条件) configuration-documentation /goal 设定完成条件,独立模型在每轮后对照会话校验;未满足则继续运行,主要用于后台长任务防止带进度摘要提前结束
bp_stop_hook_enforce Stop Hook 强制收尾检查(退出码 2 送回继续) configuration-documentation Claude 试图结束回合时运行 Stop Hook 脚本;脚本退出码 2 把 Claude 送回继续工作;由 harness 强制执行,直到检查通过或达到阻塞上限
bp_code_review_subagent /code-review 独立子代理评审(未见对话历史) configuration-documentation 在全新子代理中评审 diff,未见过产生代码的推理过程,不受既有思路影响;属于独立审查而非任务委派
bp_unattended_precheck 无人值守运行五项前置检查 configuration-documentation 放开任务前确认:完成标准明确、可自检、可触范围受限、有停止上限(max-turns/max-budget)、结果去向与人工审批人;对应后台长任务风险控制
bp_turn_budget 回合数与花费上限(--max-turns / --max-budget-usd / spend limit) configuration-documentation 非交互运行可设置回合上限与美元预算上限,配合托管花费限额;作为无人值守任务的停止边界
bp_ultrathink_turn ultrathink 单回合深度推理提示词 configuration-documentation 仅作用于当前单回合的深度推理,不改变全局 effort 设置;与 /effort 级别控制区分
bp_self_check_passfail 可运行的 pass/fail 自检闭环(测试/构建退出码/lint/截图比对) configuration-documentation 给 Claude 可读取结果的可执行检查(测试、构建退出码、linter、fixture diff、截图比对);Claude 自行修复后复跑,无需人工盯守
chan_webhook_receiver 频道 Webhook 接收:CI/错误追踪/部署流水线事件推入会话 capability-derived 外部服务 webhook 到达已打开本地文件与调试记忆的运行中会话;区别于普通 MCP Server 的按需查询,频道主动推送事件
wf_powerup_lesson /powerup 交互式功能演示课程 configuration-documentation 运行 /powerup 打开带动画演示的交互教学,展示 Claude Code 功能用法;区别于基于文档的自身能力问答
wf_monorepo_overview Monorepo / 大型仓库概览流程 configuration-documentation 大型代码库先取高层概览,再按子目录窄化提问;项目词汇表与编码约定单独询问;大型仓库配置见官方 monorepos 子页(本轮不可达未入库细节)
wf_bug_repro_trace 错误复现与堆栈追踪工作流 configuration-documentation 修复 Bug 时先提供复现命令与堆栈、复现步骤、间歇性或稳定特征;再由 Claude 给修复建议并落盘验证
wf_refactor_incremental 小步可测重构工作流 configuration-documentation 识别旧 API → 给现代模式建议 → 保持行为兼容地改动 → 跑测试验证;重构以小而可测的增量推进
wf_test_edge_cases 边界条件测试补全工作流 configuration-documentation 定位未覆盖函数 → 生成测试脚手架 → 补错误条件、边界值、异常输入等边界用例;测试风格沿用项目既有框架与断言模式
wf_pr_glab_mr GitLab MR 创建(glab mr create) configuration-documentation 除 gh pr create 外,Claude 也可经 glab mr create 创建 GitLab MR;会话与 PR/MR 关联后可凭编号或 URL 在选择器中恢复
wf_attach_image_modes 图片上下文三种附加方式 configuration-documentation 拖拽到窗口、CLI 粘贴(Ctrl+V;Windows/WSL 为 Alt+V)、直接给图片路径;会话内可附多张图片作为视觉上下文
wf_docs_style 文档补全风格指定工作流 configuration-documentation 补文档时指定风格(JSDoc/docstrings 等)、要求示例、优先覆盖公开 API、接口与复杂逻辑;先识别未文档化代码再生成并核对
set_env_block 设置文件 env 块(普通键,走优先级栈) configuration-documentation settings 文件内 env 块是普通设置键,按托管 > 命令行 > 项目本地 > 共享项目 > 用户的优先级栈处理;与独立环境变量配对规则不同
set_env_var_pair 环境变量与设置键配对覆盖规则 configuration-documentation 环境变量不在优先级栈层级内;成对存在时按配对规则判定:如 ANTHROPIC_MODEL 覆盖任何文件的 model 键,ANTHROPIC_DEFAULT_MODEL 仅在文件未设置 model 时生效
set_except_disable_connectors 托管优先级例外:disableClaudeAiConnectors configuration-documentation 安全敏感例外键:任意作用域 true 可覆盖托管 false;同类例外含 isolatePeerMachines、读写目录阻断、denyInsteadOfPrompting、autoMode.classifyAllShell、maxEffortLevel 最低上限等
set_managed_model_lock 托管模型锁定 availableModels / deniedModels configuration-documentation 托管 model 只是起始默认值,锁定由 availableModels 与 deniedModels 承担;托管清单生效时用户/项目/本地追加条目被忽略,非托管作用域数组照常合并
set_provider_host_override 宿主嵌入应用模型配置覆盖(PROVIDER_MANAGED_BY_HOST) configuration-documentation 嵌入 Claude Code 的应用设置 CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST 后,其模型配置覆盖各托管来源的 model/fallbackModel/modelPicker/modelOverrides 及托管 env 块内模型选择变量
set_config_global_file ~/.claude.json 全局自持状态文件 configuration-documentation Claude Code 自行写入的第五个文件,不需用户编辑;存放账户信息、MCP 配置、项目级信任决策等状态与 /config 写入的全局配置键
set_key_isolate_peer_machines isolatePeerMachines 跨机器会话隔离提示 configuration-documentation 另一台机器上的会话向本机发消息前先询问;作用域 Any file;属代理/会话/worktree 分组
set_key_language language 响应语言设置键 configuration-documentation 让 Claude 以非英语语言回复;作用域 Any file;模型与响应分组
set_key_theme theme 界面颜色主题键 configuration-documentation auto/dark/light/色盲友好/ANSI/自定义主题;自定义主题来自 ~/.claude/themes 或插件;作用域 Any file
set_key_time_format timeFormat 界面时间格式键 configuration-documentation 12/24 小时制、UTC 或 strftime 模式;作用域 Any file;界面与终端分组
set_key_verbose verbose 完整工具输出键 configuration-documentation true 时内联显示每次工具调用完整输入输出;默认折叠为摘要;viewMode 优先;可由 --verbose 单会话覆盖
set_key_view_mode viewMode 会话视图模式键 configuration-documentation default/verbose/focus 三种启动视图;粘性 /focus 选择与该键优先于 verbose
set_key_editor_mode editorMode 输入键绑定模式 configuration-documentation normal 标准绑定或 vim 模式(NORMAL/INSERT/VISUAL);/config 中 Editor mode 写入用户设置
set_key_skill_overrides skillOverrides 技能可见性覆盖键 configuration-documentation 按技能名映射 on/name-only/user-invocable-only/off;不编辑 SKILL.md 即可隐藏或折叠技能;/skills 菜单写入项目本地设置
set_key_sync_skills syncClaudeAiSkills 账号技能同步开关 configuration-documentation false 停止下载 claude.ai 账号启用的同步技能并停止加载已同步副本;仅 honor false;作用域 User/local/managed
set_key_allowed_channel_plugins allowedChannelPlugins 频道插件白名单键 configuration-documentation 托管作用域;按 marketplace+plugin 限定可向会话推消息的频道插件;空数组阻断全部频道插件,开发频道除外
set_key_blocked_marketplaces blockedMarketplaces 插件市场屏蔽名单 configuration-documentation 组织层面屏蔽插件市场来源;Claude Code 加载时检查该屏蔽列表
set_key_model_settings_entry modelSettings 分模型条目字段(effortLevel/maxEffortLevel/autoCompactWindow) configuration-documentation 按模型规范名映射 effortLevel、maxEffortLevel、autoCompactWindow;模型级条目优先于同文件顶层同名键;别名/日期后缀/[1m] 匹配同一条目
wf_pr_review_refine PR 描述完善与风险提示流程 configuration-documentation 生成 PR 后可要求补充上下文与安全改进说明;提交前应人工评审并请 Claude 标出潜在风险与注意事项
wf_image_drag_paste 图片拖放/粘贴/路径三种附加方式细节 configuration-documentation 拖放入窗口、Ctrl+V(Windows/WSL Alt+V)粘贴、或提供图片路径;支持多图;引用链接 Cmd/Ctrl+Click 在查看器打开
wf_mention_context_budget @ 引用 token 预算与大小上限 configuration-documentation 单文件在 Read 工具默认 25000 token 限额内纳入;大于 256KB 文本文件不纳入;目录引用只列文件清单不含内容;@ 引用附带目录及父目录 CLAUDE.md
wf_mention_hook_gap @ 引用不触发 PreToolUse Hook 的边界 configuration-documentation @ 直接纳入文件时不产生工具调用,PreToolUse Hook 不运行;需管控读取路径时用 Read deny 规则或关闭文件引用
wf_plan_mode_toggle 计划模式会话内切换(Shift+Tab) configuration-documentation 除 --permission-mode plan 外,会话内按 Shift+Tab 循环到状态栏显示 plan mode on;批准前不写盘
setting_cross_session_inbound crossSessionInbound 跨会话入站接收档位 configuration-documentation accept < hold < refuse 从严档位;项目/本地文件中更严的值覆盖托管、--settings 与用户值;非更严值被忽略
setting_sync_ai_plugins syncClaudeAiPlugins 与 claude.ai 插件同步开关 configuration-documentation false 可来自托管/--settings/用户/项目本地任一来源,覆盖托管 true;项目文件中的 false 被忽略
setting_artifact_tool enableArtifact / disableArtifact Artifact 工具开关 configuration-documentation false 或 disableArtifact:true 来自任一来源即关闭,且托管 true 无法重新打开;v2.1.242 起
setting_auto_classify_all_shell autoMode.classifyAllShell 全部 shell 命令分类开关 configuration-documentation true 来自用户设置或 --settings 覆盖托管 false
setting_remote_control_startup remoteControlAtStartup 启动时遥控连接开关 configuration-documentation false 来自项目/本地设置覆盖托管 true;项目或本地的 true 被忽略
setting_use_auto_mode_plan useAutoModeDuringPlan 计划模式内自动模式开关 configuration-documentation false 来自托管/--settings/用户/项目本地覆盖托管 true;项目文件中的 false 被忽略
setting_advisor_model advisorModel 服务端顾问模型配置 configuration-documentation --advisor 标志按会话覆盖该设置;取值可为别名 fable/opus/sonnet 或完整模型 ID;fable 需对应访问权限
cloud_settings_scope 云会话设置可达范围规则 configuration-documentation 项目内云线程不读取仓库 settings.json 的权限规则/hooks/env;多仓库托管环境只读 enabledPlugins 与 extraKnownMarketplaces;用户与项目本地设置不读;设备托管文件不达云会话,服务端托管设置可达
cap_code_mode Code Mode 代码模式(实验特性,JS 批量工具调用) capability-derived 实验特性:Claude 编写一段 JavaScript 在会话内一次发起多个工具调用;默认关闭;REPL 工具仅在 Code Mode 开启时可用;会话只能在 Code Mode 开启状态下恢复
code_mode_limits Code Mode 限制:恢复条件、长代码十分钟上限、Hooks 默认拒绝 capability-derived Code Mode 会话仅可在开启状态恢复;非后台代码最长运行十分钟;PreToolUse hook 不匹配时默认拒绝工具调用;仅终端交互会话可用,VS Code 面板/桌面应用/云会话不支持
env_code_mode CLAUDE_CODE_EXPERIMENTAL_CODE_MODE 环境变量开关 configuration-documentation Code Mode 开启开关:shell 导出或用户设置置 1;任一位置置 0 即关闭;恢复旧 Code Mode 会话时须保持变量为 1
setting_disable_connectors disableClaudeAiConnectors 托管例外键 configuration-documentation 任意作用域 true 即生效,即使托管源设为 false;限制 claude.ai 连接器接入
setting_artifact_toggle enableArtifact / disableArtifact Artifact 工具开关例外键 configuration-documentation 任意作用域 false 或 disableArtifact:true 生效,即使托管源设 true;一旦关闭无法再由其他设置重新打开;需 v2.1.242+
setting_isolate_peer isolatePeerMachines 对等机器隔离例外键 configuration-documentation 任意作用域 true 生效,覆盖托管 false;隔离本机其他对等 Claude Code 机器
setting_block_reads blockReadsOutsideWorkingDirectories 工作区外读阻断例外键 configuration-documentation 任意作用域 true 生效,覆盖托管 false;需 v2.1.257+
setting_deny_instead_prompt denyInsteadOfPrompting 例外键(用户/命令行作用域) configuration-documentation ~/.claude/settings.json 或 --settings 中 true 生效,覆盖托管 false;需 v2.1.319+
setting_classify_all_shell autoMode.classifyAllShell 全 Shell 分类例外键 configuration-documentation 用户设置或 --settings 中 true 生效,覆盖托管 false;auto 模式对全部 Shell 命令走分类器
setting_remote_startup remoteControlAtStartup 启动遥控例外键(项目/本地作用域) configuration-documentation .claude/settings.json 或本地文件 false 生效,覆盖托管 true;项目/本地 true 被忽略
setting_cross_inbound crossSessionInbound 跨会话入站严格值例外键 configuration-documentation accept < hold < refuse 严格度阶梯;项目/本地更严格值覆盖托管、--settings 与用户值;非更严格值被忽略
setting_autocompact_plan useAutoModeDuringPlan 计划模式 auto 例外键 configuration-documentation 托管/--settings/用户/本地任一 false 生效,覆盖获胜托管源 true;项目 settings.json 的 false 被忽略
setting_sync_skills syncClaudeAiSkills 技能同步例外键 configuration-documentation 任一来源 false 生效,覆盖获胜托管源 true;项目 settings.json 的 false 被忽略
setting_sync_plugins syncClaudeAiPlugins 插件同步例外键 configuration-documentation 任一来源 false 生效,覆盖获胜托管源 true;项目 settings.json 的 false 被忽略
setting_max_effort maxEffortLevel 推理强度上限最低值例外键 configuration-documentation 任意作用域(含 --settings)更低上限生效,覆盖托管更高上限;取最低上限;需 v2.1.267+
setting_host_provider_managed 宿主嵌入应用模型配置覆盖(CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST) configuration-documentation 嵌入 Claude Code 的宿主应用置该标志后,其模型配置覆盖各托管源的 model/fallbackModel/modelPicker/modelOverrides 及托管 env 中的模型选择变量
mcp_tool_search_threshold MCP 工具搜索阈值模式 ENABLE_TOOL_SEARCH=auto / auto:N configuration-documentation auto 阈值模式:工具定义合计低于上下文窗口 10% 时前置加载,达到 10% 以上启用工具搜索;auto:N 自定义百分比 0-100;false 全部前置加载;旧模型与部分云部署不支持工具搜索
wf_overview_broad_to_narrow 代码库概览:宽泛提问到窄化组件的探索顺序 configuration-documentation 先求高层概览,再逐层下钻架构模式、数据模型、认证流程;先宽后窄,可索取项目术语表
wf_pr_summary_review PR 创建:变更摘要 → 生成 PR → 评审完善描述与风险提示 configuration-documentation 先汇总模块变更,再生成 PR;提交前评审生成内容并要求高亮潜在风险;会话经 gh pr create / glab mr create 或既有 PR 工作关联
wf_delegate_research 委派研究给子代理:只回传结论以保持主上下文清洁 configuration-documentation 大型代码库探索在子代理独立上下文读文件,仅汇报摘要;衔接子代理委派模式
cfg_config_menu_save_targets /config 选项落盘位置分流(用户设置 / 项目本地 / 全局状态文件) configuration-documentation /config 多数选项写入 ~/.claude/settings.json;输出风格写入 .claude/settings.local.json;全局配置选项写入 ~/.claude.json;菜单仅列个人常用项,不覆盖全部设置键
cfg_model_picker_unsaved /model 选择器 s 键切换不保存为用户默认 configuration-documentation /model 选择器中按 s 仅切换当前会话模型,不写入用户默认;/model 正常保存的值作为新会话默认;effort 同理区分会话级与默认保存
env_nonstreaming_timeout_retries CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES 超时重发上限 configuration-documentation 环境变量:限制非流式兜底请求超时后的重复重发次数,防止超时请求无限重试。
feat_set_model_mid_session 会话中途切模型 set_model / Agent SDK setModel 窗口沿用修复 changelog-derived SDK setModel 等 set_model 请求切换模型后,新模型应正确应用输出 token 上限与自动压缩窗口,而非沿用内置默认值。
feat_otel_resource_attributes telemetry.resource_attributes 固定标签(网关/Desktop/登录会话) changelog-derived Claude apps gateway 配置项,为 Claude Desktop 与 /login 会话的遥测打上固定标签。
feat_insights_auto_mode /insights 自动模式权限提示估算建议 changelog-derived 分析近期会话,估算自动模式可代为处理多少权限提示,给出 auto mode 建议。
feat_artifact_watch_limit Artifact 同时可监听发布数量上限(5 → 10) changelog-derived 一个会话可同时监听最多 10 个已发布 Artifact 的外部重发布,此前上限为 5。
settings_strict_json 设置文件严格 JSON 语法与 Settings Error 报告 configuration-documentation 设置文件不允许 // 注释或尾逗号;语法错误在下次启动报告为 Settings Error
settings_managed_sources_combine 托管来源合并规则(availableModels 等列表不跨托管源合并) configuration-documentation 托管设置间列表不合并,按来源优先级取其一;非托管作用域数组照常合并;嵌入宿主提供模型列表时另有例外
settings_repo_file_scope 仓库共享设置文件的作用域键限制 configuration-documentation 标记 User/local/managed 等作用域的键不从 .claude/settings.json 生效;Global config 键仅来自 ~/.claude.json;env 块内遥测导出变量同样受限
settings_cowork_policy Cowork 桌面会话策略读取规则 configuration-documentation 桌面应用内 Cowork 会话不从 claude.ai 控制台拉取服务器托管设置;读取部署到设备的策略,除非组织配置 requireCoworkFullVmSandbox
settings_cloud_thread_scope 云会话线程设置可达范围 configuration-documentation 项目云线程中仓库 .claude/settings.json 的权限规则、hooks、env 均不生效;云会话配置改环境变量;CLAUDE.md、skills、MCP、插件、凭证随设置携带
settings_config_dir CLAUDE_CONFIG_DIR 自定义配置目录 configuration-documentation 设置、会话历史、插件存储到指定目录;Windows 下 ~/.claude 对应 %USERPROFILE%.claude
wf_bug_repro_stacktrace 错误修复流程:复现命令与堆栈追踪输入 configuration-documentation 向代理提供复现命令、堆栈、复现步骤与是否间歇性;先给修复建议再应用改动
wf_refactor_small_steps 小步可测重构流程与向后兼容要求 configuration-documentation 识别遗留 API → 建议重构方案 → 保持行为不变应用改动 → 跑测试验证;按小步可测增量推进,必要时保持向后兼容
wf_test_style_match 测试生成匹配项目既有模式与边界用例 configuration-documentation 代理参照现有测试文件的框架、断言风格生成用例;可要求补充错误条件、边界值、异常输入等易遗漏场景
wf_notes_vault 笔记与非代码目录工作流 configuration-documentation 可在笔记库、文档目录或 Markdown 集合中运行,搜索编辑重组内容;.claude/ 与 CLAUDE.md 与其他工具配置目录共存;文件每次工具调用时新鲜读取
env_web_fetch_disable CLAUDE_CODE_DISABLE_WEB_FETCH 关闭 WebFetch 工具开关 configuration-documentation 环境变量置位后禁用 WebFetch 工具;2.1.287 changelog 新增
flag_desktop_open claude --desktop 在当前目录或指定会话打开桌面应用 configuration-documentation --desktop 启动桌面应用;可配合 --continue / --resume 打开既有会话;2.1.287 新增
setting_max_prose_width maxProseWidth 宽终端正文宽度上限 configuration-documentation 限制 Claude 散文在宽终端中的排版宽度;表格与代码块保持全宽;2.1.282 新增
setting_max_mcp_desc_len CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH MCP 描述长度上限 configuration-documentation 调整会话内所有 MCP 服务器工具描述与服务器指令的 2048 字符上限;2.1.282 新增
setting_load_test_mode load_test_mode 网关配置块(请求构造签名但不发上游) configuration-documentation Claude apps 网关 opt-in 配置:请求被构造与签名但不发送上游,客户端收到 canned 回复,用于部署压测;2.1.283 新增
gateway_readiness_grace store.readiness_grace_seconds 网关就绪宽限时长 configuration-documentation Claude apps 网关配置:/readyz 在 Postgres 短故障(如故障切换)期间保持就绪的宽限秒数;2.1.282 新增
gateway_prompt_id_header x-claude-code-prompt-id 网关提示头(按用户提示分组请求) capability-derived 2.1.283 新增网关提示头,供 LLM 网关将服务同一用户提示的请求分组;随 CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 opt-in
otel_tool_output_span tool.output OTel span 事件纳入 MCP/WebFetch/WebSearch 输出 capability-derived OTEL_LOG_TOOL_CONTENT=1 时,MCP 工具、WebFetch、WebSearch 输出进入 tool.output span 事件;2.1.283 新增
otel_hook_exec_size hook_execution_complete 事件记录 Hook 输出体积与超限落盘数 capability-derived Hook 执行完成 OTel 事件新增输出大小与超大输出保存到文件的数量;2.1.282 新增
cmd_doctor_prompt_audit /doctor prompt-audit(别名 /checkup prompt-audit)提示词审计 configuration-documentation 审计 CLAUDE.md 文件、技能、代理与命令中为旧模型编写的提示模式;2.1.283 新增
cmd_status_telemetry_notice 启动通知与 /status、doctor 中被忽略的遥测变量清单 capability-derived 启动通知及 /status、claude doctor 条目列出项目设置文件中被忽略或关闭遥测的变量;2.1.282 新增
guide_troubleshooting Troubleshooting 常见问题排障指南 documentation-public 官方文档排障章节,汇集安装、登录、会话、工具等常见问题的解决方案;文档导航条目
setting_host_managed_settings 宿主嵌入 managedSettings 策略选项(SDK 传入) configuration-documentation 嵌入宿主应用经 SDK managedSettings 选项下发策略;与 claude.ai 控制台、MDM/managed-settings.json 同属托管设置来源层
setting_cowork_sandbox_policy Cowork 桌面会话策略读取与 requireCoworkFullVmSandbox configuration-documentation 桌面 Cowork 会话默认读取部署到本机的策略;若组织桌面配置设置 requireCoworkFullVmSandbox,则改取服务器托管设置
setting_repo_key_trust_gate 仓库共享设置键的信任门禁(allow/additionalDirectories/marketplace/env) configuration-documentation permissions.allow、additionalDirectories、extraKnownMarketplaces 及多数 env 值在队友信任目录前不生效;deny 与 ask 规则即时生效
mcp_bare_elicitation_capability MCP bareElicitationCapability 配置项(URL 提示兼容) configuration-documentation 2025-11-25 协议 MCP 服务器 URL 提示(如登录);升级后服务器无法连接时,在其 MCP 配置条目加 bareElicitationCapability: true
feat_plugin_live_reload 插件安装/启停菜单关闭即生效,无需 /reload-plugins capability-derived 2.1.269 改进:/plugin 内安装、启用或禁用在关闭菜单时生效;/reload-plugins 命令此后不再需要
setting_gateway_discovery_timeout CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS 网关模型发现超时 configuration-documentation 扩展 LLM 网关 /v1/models 发现超时(默认 3 秒);网关模型列表拉取慢时调大该毫秒值
feat_agents_view_n_filter 代理视图 n: 名称与任务过滤(Enter 最佳匹配) capability-derived 2.1.287 新增 agents 视图 n: 过滤器,匹配会话名与任务;折叠分组内显示匹配项,Enter 打开最佳匹配会话;Ctrl+F 搜索同规则
feat_bg_limit_unattended_only 后台命令时限仅无人值守会话(-p/SDK/CI/云)适用 capability-derived 2.1.289 变更:后台命令时间限制只施加于无人值守会话;终端、桌面应用与 VS Code 会话无该时限
feat_interrupted_hint_queue 中断行提示:ctrl+enter 排队消息后的替代操作提示 capability-derived 2.1.289 修复:ctrl+enter 发送排队消息后,Interrupted 行不再显示错误的 “What should Claude do instead?” 提示
mcp_always_load_false MCP alwaysLoad:false 服务器首回合不阻塞等待 configuration-documentation 云会话改进:新会话首回合不再等待配置 alwaysLoad: false 的 stdio MCP 服务器;按需连接的服务器不阻塞首轮
settings_disable_doctor_env DISABLE_DOCTOR_COMMAND 关闭 /doctor 命令 configuration-documentation disableBundledSkills 开启后 /doctor 仍可键入;用该环境变量或 skillOverrides 中 "doctor":"off" 隐藏
settings_managed_model_default 托管 model 为起始默认而非锁定;锁定键 availableModels/deniedModels configuration-documentation 组织下发的 managed model 只是起始默认;模型锁定由 availableModels 与 deniedModels 两个键承担,--model 只能选组织允许的模型
settings_env_block_ordinary 设置文件 env 块为普通键、走优先级栈 configuration-documentation settings 文件内 env 块是普通设置键,遵循托管>命令行>项目本地>共享项目>用户的层级;环境变量本身不属于该层级,变量与设置键配对时按逐键规则决定先后
feat_memory_cgroup 进程内存上限分类排除(CLAUDE_CODE_TOOL_MEMORY_CGROUP_EXCLUDE) configuration-documentation 按进程种类(mcp/lsp/hooks/plugin/helper/agent)纳入或排除内存上限;未识别名称忽略;未设置时分类集由服务端配置下发;可阻断动作的权限门禁 Hook 及其调用的 MCP Server 始终排除在杀进程范围外
feat_glob_gitignore Glob 对 .gitignore 的忽略开关(CLAUDE_CODE_GLOB_NO_IGNORE) configuration-documentation Glob 默认不遵循 .gitignore,会列出被忽略文件;Grep 默认跳过 gitignored 文件;设置 CLAUDE_CODE_GLOB_NO_IGNORE=false 可让 Glob 遵循忽略规则;结果按修改时间排序并上限 100 个文件
feat_task_tool_availability Task 跟踪工具模型可用性与 TodoWrite 回退开关 configuration-documentation TaskCreate/Get/List/Update 默认仅在指定模型上提供,其他模型需 opt-in;TodoWrite 默认禁用以让位 Task 系列工具;CLAUDE_CODE_ENABLE_TASKS=0 可在具备任务跟踪工具的会话中重新启用 TodoWrite
feat_mcp_apps_ui_resource MCP Apps UI 资源(宿主应用渲染页面,不列入资源枚举) capability-derived MCP Apps UI 资源是供宿主应用渲染的页面;ListMcpResourcesTool 枚举连接 Server 的普通资源时排除该类资源
setting_managed_source 托管设置来源:managed-settings.json / MDM / 服务端控制台 / 宿主 SDK configuration-documentation 托管策略四类来源:设备 managed-settings.json、MDM 或系统级策略、claude.ai 管理控制台或自托管网关下发、嵌入宿主经 SDK managedSettings 选项;托管键不被本地文件或 --settings 覆盖
setting_env_pair_rule 环境变量与设置键配对覆盖规则(非优先级层级) configuration-documentation 环境变量不属于设置优先级栈;成对存在时按配对规则决定先后:如 ANTHROPIC_MODEL 覆盖任意文件中的 model 键,ANTHROPIC_DEFAULT_MODEL 仅在文件未设置 model 时生效;env 块作为普通键走优先级栈
setting_cloud_thread_settings 云会话设置可达范围(项目线程 / 多仓库 / 用户本地排除) configuration-documentation 项目内云线程不读取仓库 .claude/settings.json 的权限规则、hooks、env;多仓库托管环境仅读各仓库 enabledPlugins 与 extraKnownMarketplaces;用户设置与项目本地设置不上云;设备托管文件不可达,服务端托管设置可达;自托管环境另读 runner 镜像内托管文件
setting_list_merge 列表型设置键跨作用域合并规则 configuration-documentation 列表型设置键在不同作用域之间合并而非整体覆盖;与标量键“高优先级覆盖低优先级”的取值方式不同;合并结果受托管例外规则约束
tool_task_availability 任务跟踪工具模型可用性与 opt-in 开关 configuration-documentation TaskCreate/Get/List/Update 与 TodoWrite 默认仅在指定模型族提供;其他模型可经 CLAUDE_CODE_ENABLE_TODO_TOOLS=1、--allowedTools 或 --tools 开启;后台/云会话对所有模型提供;CLAUDE_CODE_ENABLE_TASKS=0 回退 TodoWrite
cfg_enforce_avail enforceAvailableModels 默认选择受允许列表约束 configuration-documentation 使 /model 的 Default 选项也落在 availableModels 允许名单内;默认前缀匹配不约束 Default,需配合此键
cfg_fast_mode fastMode 快速模式开关设置键 configuration-documentation true 在可用会话开启 fast mode;Fable 5.2 还需会话内 /fast;false 保持关闭;CLAUDE_CODE_DISABLE_FAST_MODE 可单会话关闭且此键无法重新打开
cfg_model_overrides modelOverrides 模型 ID 到提供商 ID 映射 configuration-documentation 把模型 ID 映射到第三方提供商 ID(如 Bedrock inference profile ARN);按版本号路由调用
env_powershell_tool CLAUDE_CODE_USE_POWERSHELL_TOOL PowerShell 工具开关 configuration-documentation 有 Git Bash 的 Windows 会话中控制 PowerShell 工具启用(1)或关闭(0);也可在 env 块设置;供 Bash deny 规则与 PowerShell 并列保留时使用
env_enable_todo_tools CLAUDE_CODE_ENABLE_TODO_TOOLS 任务工具跨模型开启变量 configuration-documentation 启动前导出可在所有模型与提供商上提供任务跟踪工具;后台/云会话不受此 opt-in 限制;与 CLAUDE_CODE_ENABLE_TASKS(回退 TodoWrite)分工不同
tool_bash_output_limits Bash/PowerShell 输出流式落盘与读回限额 capability-derived 命令输出流式写入工作文件,超 5 GB 被杀;成功结果内联约 30000 字符、失败约 10000 字符,超出后读回会话目录文件并截断;exit 1 仅特定 grep/find/diff/test/git 命令视为良性结果
feat_mod_ui_selection Mods $.ui.selection() 全屏选中文本读取 capability-derived 2.1.288:Mod 调用 $.ui.selection() 返回全屏模式下最近选中的文本;若选区位于单个 transcript 行内,同时返回该行
feat_gh_api_builtin 云会话内置 gh api(无 GitHub CLI 镜像) capability-derived 2.1.288:镜像内无 GitHub CLI 的云会话提供内置 gh api;修复文件名、jq 过滤或 GitHub 错误中的控制字符发到终端的问题
feat_mcp_oauth_reauth 工具调用中 MCP 追加 OAuth 作用域的重新授权提示 capability-derived 2.1.288:MCP Server 在工具调用期间要求更多 OAuth scope 时,弹出重新认证提示
feat_code_review_max_findings /code-review --max-findings 发现条数上限参数 capability-derived 2.1.288:--max-findings |all 调整评审发现条数;选择被复用,传 --max-findings default 恢复默认
feat_agents_view_keybind 代理视图会话查找与分组跳转快捷键(可重绑定) capability-derived 2.1.288:Ctrl+F 按名查找会话,Alt+↑/↓ 在分组间跳转;查找、跳转与重命名可在 keybindings.json 重绑定
feat_runner_drain_marker self-hosted-runner --drain-marker-file 排空标记文件 capability-derived 2.1.271:SIGTERM 排空时若标记文件存在,runner 向服务器上报退出为宿主排空(仅遥测)
feat_model_pricing_multiplier modelPricing / 网关 pricing 倍率(multiplier ≤10) capability-derived 2.1.271:托管 modelPricing 与 Claude apps 网关 pricing 块支持大于 1、最高 10 的倍率,用于内部加价计费
feat_report_findings_category ReportFindings 发现条目分类 slug(correctness / test-coverage) capability-derived 评审发现可携带可选 category slug(如 correctness、test-coverage),在渲染列表中显示于文件位置旁
feat_send_message_summary SendMessage 可选 summary 一行预览(≤200 字符截断) capability-derived 跨代理消息可带 5–10 词 summary 作为一行预览;纯文本省略时取首行;超过 200 字符以省略号截断
feat_send_user_file_display SendUserFile display 呈现模式(render / attach / 默认按类型) capability-derived display=render 在客户端内联打开文件;attach 仅显示下载卡片;未设置时客户端按文件类型决定;远程控制客户端连接或云会话可用
feat_webfetch_deadline WebFetch 超时截止与 CLAUDE_CODE_WEBFETCH_DEADLINE_MS capability-derived 2.1.268:服务器保持响应不结束时 WebFetch 300 秒后失败;变量可覆盖截止毫秒数,0 关闭超时
feat_runner_remove_session_state self-hosted-runner --remove-session-state 会话目录清理 configuration-documentation 2.1.268:会话结束时删除 /_sessions/ 下各会话目录;默认关闭
feat_auth_config_directory auth status --json 输出 configDirectory 字段 configuration-documentation 2.1.268:claude auth status --json 返回配置目录路径字段
feat_plugin_json_flags 插件命令 --json 输出与 errorDetails/noteDetails 行字段 configuration-documentation 2.1.268:plugin install/uninstall/update/enable/disable 支持 --json;plugin list --json 每行带 errorDetails 与 noteDetails
feat_artifact_tab_icons 已发布 Artifact 浏览器标签页图标由 Claude 按页面选择 capability-derived 2.1.268:发布到浏览器的 Artifact 页面按内容匹配标签页图标
feat_mcp_validate_checks plugin validate 的 MCP 服务器检查(静默丢弃/未声明引用/不安全 URL) configuration-documentation 2.1.281:claude plugin validate 报告 .mcp.json 中会被静默丢弃的条目、未声明的 ${user_config.*} 引用与不安全 URL
feat_list_scrollbar /skills /mcp /plugin 已安装列表全屏滚动条 capability-derived 2.1.281:全屏模式下鼠标悬停列表时出现可点击拖拽的滚动条,与 /workflows 一致
feat_oauth_callback_port MCP OAuth 本地回调端口绑定失败处理 capability-derived 2.1.268:本地回调端口范围无法绑定时 MCP OAuth 登录不再报 No available ports for OAuth redirect
feat_compact_dollar_text /compact 与自动压缩对 $ 序列文本的摘要修复 capability-derived 2.1.268:压缩摘要不再破坏含 $ 序列的文本;恢复已压缩会话时文件备注按固定顺序加载
feat_server_classifier_default 服务端分类器默认自动模式(auto mode server-side classifier) configuration-documentation Claude API/Enterprise 及 Bedrock/Vertex/Foundry/网关默认走服务端分类器,不计分类器开销;CLAUDE_CODE_AUTO_MODE_SERVER=0 在这些通道退出;计费回退时告警
feat_vscode_plan_command VS Code /plan 计划模式命令 configuration-documentation /plan 切换计划模式、发送首条规划提示,或展示当前会话计划
feat_slack_thread_status Slack 线程原生状态指示与停止按钮 configuration-documentation Claude Tag 在 Slack 线程展示 Working 指示、停止按钮与线程标题;指示持续到 Claude 完成,停止按钮中断任务
plugin_reserved_marketplace_guard 保留名称插件市场注册守卫 configuration-documentation 名称模仿保留市场名的插件市场在添加时被拒绝;已添加的同类市场停止加载
feat_redacted_thinking_retry redacted_thinking 块无效时丢弃并重试一次 configuration-documentation 会话历史含无法解密的 Web 搜索结果或无效 thinking 块导致 400 时,丢弃 thinking 块并重试一次
feat_compaction_fallback_model 压缩摘要被拒时回退模型重试 configuration-documentation 压缩请求被模型拒绝时,改用回退模型重试压缩,避免压缩失败中断会话
feat_bare_session_login_guard --bare 会话登录凭据保护 configuration-documentation --bare 会话中 /login 不再执行会话未读取的登录覆盖已保存凭据;改为提示哪些凭据可用
feat_mcp_url_done_prompt MCP URL 提示等待“完成后继续”确认 configuration-documentation 无法上报完成状态的 MCP 服务器 URL 提示,等待用户确认“我完成了,继续”后工具调用才继续,便于先在浏览器完成操作
runner_git_protocol_allowlist 自托管 runner 生命周期钩子 Git 协议白名单 configuration-documentation runner 共享 Git 文件中忽略指定钩子目录与程序;local-path 与 git:// 远程需 GIT_ALLOW_PROTOCOL 放行
feat_remote_credential_recovery Remote Control 过期服务端凭据自动恢复 configuration-documentation 服务端凭据过期续期期间会话保持连接;服务器中断后恢复失败时会话保留而非断开
feat_bash_permission_short_reason Bash 权限提示简短原因 configuration-documentation 命令部分无法在运行前检查时,Bash 权限提示给出更短的原因说明
feat_otel_managed_settings_resolved managed_settings_resolved OTel 事件(托管设置来源与策略状态) capability-derived 2.1.274 新增遥测事件:记录托管设置来源与策略 helper 状态;脱敏摘要与 digest 经 OTEL_LOG_MANAGED_SETTINGS=1 输出
feat_gateway_store_timeout 网关 Postgres 连接超时 store.connect_timeout_seconds configuration-documentation Claude apps 网关配置项:延长 Postgres 连接超时,默认 5 秒;数据库不可达时启动错误指向 store.postgres_url 与已配置超时
feat_otel_enduser_sub 遥测 enduser.sub IdP 主体标识 capability-derived 2.1.274 新增:Claude Desktop 与 Cowork 经网关发送的遥测携带 IdP subject(enduser.sub)
feat_mcp_startup_wait_ms CLAUDE_CODE_MCP_STARTUP_WAIT_MS 首轮 MCP 等待上限 configuration-documentation 2.1.274 环境变量:限制首个非交互回合等待 MCP 服务器连接的时长;0 表示不等待
feat_mcp_403_scope MCP 403 insufficient_scope 错误命名缺失权限 capability-derived 2.1.274 修复:工具调用因 403 权限不足被拒时,错误指明缺失权限并指向 /mcp 重新授权,不再误报为登录过期
feat_teammate_expand 全屏队友/代理消息点击展开(click-to-expand) capability-derived 2.1.274 新增:全屏模式下折叠的 teammate 与 agent 消息可点击展开
feat_vscode_lock_editor_groups claudeCode.lockEditorGroups 编辑器组锁定开关 capability-derived VS Code 设置:阻止 Claude 锁定其打开的编辑器组;关闭后新标签页可与其他文件共享组
feat_cloud_routine_retry 云端 Routine 连接缺失时跳过并 72 小时重试 capability-derived Web 云端会话定时任务:GitHub 连接缺失时跳过本次运行并在 72 小时内重试,不在首次检查失败时直接停用;订阅暂停时提示用户手动重启
feat_cloud_compare_branch 云会话 diff 视图“Compare against”分支选择器 capability-derived Web 云端会话变更对比可选择任意分支作为对照基线,而非仅基础分支
feat_slack_guest_scope Claude Tag Guests 访客作用域设置(Inherit/Allow/Channel only/Restrict) configuration-documentation 管理员在添加频道/工作区表单中预先选择访客作用域;控制其他工作区成员以访客身份接入频道的权限
feat_slack_progress_cap Slack 实时进度清单字符上限与重发节流 capability-derived 进度清单上限 2000 字符;繁忙线程最多每 15 分钟重发一次,旧“Latest task list”链接随之更新
feat_review_finding_wording 代码审查发现条目措辞规范(受影响方/问题位置/修复前置) capability-derived Code Review 发布的 finding 用简短平实句子,先说明受影响对象、出错位置与修复方案
feat_review_limit_card 组织限额跳过审查的检查运行卡片与 PR 评论说明 capability-derived 审查因组织限额被跳过时,check-run 卡片与 PR 评论标注原因并链接到对应管理员配置页
feat_review_transient_retry 代码审查启动期瞬时失败等待重试 capability-derived GitHub 或内部服务启动期瞬时故障不再直接报“Code review encountered an error”,改为等待并重试
feat_sdk_deferred_tool_recovery SDK 会话早退时延迟工具调用与已完成结果保留修复 capability-derived Agent SDK 会话在回合提前结束时不再丢失延迟工具调用或已完成工具结果;worker 重启后挂起的审批提示保留;非流式回退保留 result.usage
feat_mcp_progress_background 长时工具调用转后台后保留最新 MCP 进度通知 capability-derived MCP 进度通知在工具调用转入后台后不再被丢弃;后台任务显示最新进度
feat_mcp_404_recover 无状态远程 MCP Server 瞬时 404 后的可用性恢复 capability-derived 代理重新部署等场景下的单次 HTTP 404 不再让该 Server 会话内持续不可用;修复后可继续连接,界面不再误显示已连接
feat_model_picker_haiku_pin 模型选择器跟随 ANTHROPIC_DEFAULT_HAIKU_MODEL 固定版本 capability-derived /model 选择器在 Haiku 默认模型被环境变量固定时,不再显示硬编码 Haiku 版本与价格
feat_workflow_fallback_model 模型回退期间动态工作流各代理模型一致性修复 capability-derived 模型回退触发期间启动的动态工作流不再把每个代理强制跑到默认模型;保持回退链路下的模型指派
feat_plugin_dir_error_path --plugin-dir 加载失败条目携带目录路径 capability-derived stream-json system/init 的 plugin_errors 条目新增 path 字段,标注未能加载的插件目录
feat_mcp_serve_agent_list claude mcp serve 下 Agent 工具可用子代理类型修复 capability-derived 修复:MCP Server 模式(claude mcp serve)中 Agent 工具不再始终报告无可用代理、拒绝所有 subagent_type
feat_cloud_session_first_turn_mcp 云会话首轮不等待 alwaysLoad:false 的 stdio MCP Server capability-derived 新会话首轮不再阻塞等待配置 alwaysLoad:false 的 stdio Server;该 Server 工具延迟到工具搜索阶段加载
feat_should_know_note_attribution You should know 备注按决策归属切换人称 capability-derived 备注根据决策由谁负责,分别使用 we / the main agent / you 表述,不再统一口吻
feat_artifact_db_limit_error Artifact 数据库写入超限错误提示容量与释放方式 capability-derived 数据库写入被大小上限拒绝时,错误信息说明当前上限以及哪些内容可释放空间
feat_runner_gh_api_fallback 自托管 runner 内置 gh api 拒绝命令的等价命令打印与分页跟随 capability-derived 被拒绝的 gh 命令打印等价 gh api 调用;--paginate 跟随仓库列表全部页面;嵌套 claude 不再移除该内置能力
feat_remote_control_credential_renewal Remote Control 服务端凭据过期期间会话保持连接 capability-derived 凭据续期过程中会话不断开;服务端故障导致续期放弃后会话仍被保留
feat_bg_command_limit_unattended 后台命令时限仅适用于无人值守会话 capability-derived 后台命令时间限制只作用于 -p、Agent SDK、CI、云端会话;终端、桌面应用与 VS Code 会话不设该时限
feat_usage_credits_org_off 组织关闭用量额度请求时 /usage-credits 提示适配 capability-derived Team/Enterprise 成员所在组织关闭用量额度请求后,/usage-credits 消息不再引导申请额度
feat_keybindings_effort effortSlider 快捷键动作(decrease/increase/toggleUltracode) capability-derived keybindings.json 可绑定 effortSlider:decreaseEffort、increaseEffort、toggleUltracode 动作,对应 /effort 滑杆箭头与 Tab 键
feat_rate_limit_options /rate-limit-options 用量限制命令入口 capability-derived claude.ai 订阅者可在 /help 与命令菜单找到;用量限制提示据此指向可访问命令
feat_mcp_reconnect_all /mcp reconnect all 交互式终端批量重连命令 capability-derived 交互终端内一键重连全部 MCP 服务器;对应断线后恢复连接流程
feat_spend_limit_usd_fields 网关花费限额美元字段(used_usd/limit_usd/period) capability-derived Claude apps gateway 在 /usage 与状态栏展示已花/限额/周期;rate_limits.spend_limit 携带 used_usd、limit_usd、period 字段
fix_remote_control_file_retry Remote Control 附件下载失败重试(最多两次) capability-derived 消息附带文件在单次下载失败(网络错误/超时/服务端错误)后重试最多两次;修复此前附件被丢弃
fix_mcp_tools_after_off 会话中途关闭 MCP 服务器后工具残留修复 capability-derived SDK 与 -p 会话中关闭中途加入的 MCP Server 后,其工具不再残留可用;修复此前工具列表未同步移除
perm_hook_mod_rule_precedence 权限规则、Hook 与 Mod 审批优先级 configuration-documentation 权限规则优先于 Hook 放行;Mod tool.check 位于 PreToolUse Hooks 之后。托管设置或 Team/Enterprise 登录状态下,Mod 不能覆盖被拒绝或被阻塞的调用;缺少这些托管/登录条件时,Mod 可批准部分被拒绝调用。
feat_workflow_max_concurrent_agents Workflow 并发代理上限环境变量 capability-derived CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS 取值 1–256,用于提高 Workflow 工具单次运行的并发代理上限,适配推理密集型扇出任务。
feat_mcp_large_result_memory 大型 MCP 工具结果内存与会话文件处理 capability-derived 超大 MCP 工具结果采用更低内存占用与更小会话文件的处理方式;远超限额的结果不再额外上传以统计 token。
feat_remote_file_streaming_transfer 远程会话文件流式传输与失败重试 capability-derived 远程会话发送大文件时从磁盘流式读取而非整体载入内存;超过服务端限额的文件被拒绝并标明限额。超时、网络错误或 502/503/504 的上传失败重试一次。
bp_goal_retry_backoff /goal API 错误、断网与限额退避重试 capability-derived /goal 运行遇到 API 错误、网络中断或 token 限额时按退避策略重试;无法继续时暂停并说明原因,包括等待用量限额重置。
gateway_google_otlp_auth 网关遥测 Google Cloud OTLP 导出认证 configuration-documentation Claude apps 网关 telemetry.forward_to 目的地支持 auth: { google: {} },使用网关的 Google Cloud 凭证直接导出到 Google Cloud OTLP 端点。
feat_structured_outputs_disable_env CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS 结构化输出关闭开关 changelog-derived 网关拒绝结构化输出时,可用环境变量关闭会话标题与提示钩子等结构化输出;用于兼容 Bedrock/Mantle 或自定义网关,不关闭模型推理本身。
fix_plugin_defined_agent_custom_config 插件定义代理按名称派生时保留自定义 prompt、工具与限制配置 changelog-derived 2.1.288 修复 Agent Teams:按名称派生的插件定义代理使用自身 prompt、tools、disallowedTools 与 effort,而不是默认配置。
feat_plugin_code_pane_large_file_layout 插件代码面板大文件一次性最终宽度布局性能优化 changelog-derived 2.1.289 改进:插件代码面板打开大文件时,按最终宽度只排列一次高亮视图,减少重复布局;边界:UI 渲染性能优化,不改变插件代码内容或权限。
fix_plugin_local_marketplace_stale_copy_reload 本地文件夹市场插件陈旧副本与符号链接 --plugin-dir 热重载修复 changelog-derived 2.1.289 修复:plugin list/eval/update 不再显示本地文件夹市场安装插件的陈旧副本;符号链接 --plugin-dir 的热重载恢复正常。
fix_installed_mods_upgrade_first_session_load 升级后首个会话已安装 Mod 未加载修复 changelog-derived 2.1.289 修复:安装的 Mod 不再在版本升级后的第一个会话缺失;边界:加载时序修复,不扩大 Mod 可修改行为的授权范围。
fix_plugin_validate_marketplace_manifest_skip plugin validate 同目录市场清单导致插件被跳过与误报修复 changelog-derived 2.1.289 修复:插件目录同时包含 marketplace 清单时,claude plugin validate 不再跳过该插件;同时修正 Anthropic 市场自有插件误判,以及 --json 中干净 plugin.json 的误报。
fix_auto_mode_bedrock_mantle_classifier_fallback Bedrock/Mantle 自动模式旧模型请求后本地分类器切换修复 changelog-derived Bedrock/Mantle 上自动模式在旧模型请求(如 WebFetch 摘要或 sonnet 子代理)之后,不再切换到本地分类器并保持整段会话。
fix_otel_blocked_user_span_source_decision tool.blocked_on_user OTel span 来源与决策 unknown 修复 changelog-derived -p、SDK 会话及 PreToolUse Hook 审批的 claude_code.tool.blocked_on_user span 不再把来源或决策记为 unknown。
fix_mcp_result_double_call_large_unparseable 大型或不可解析 MCP 结果导致工具重复调用修复 changelog-derived 远程 MCP Server 结果超过 16 MB 或无法解析时,工具调用偶发重复执行的问题修复。
fix_subagent_many_agent_entries_stall 大量 Agent(...) 工具条目导致代理启动卡顿修复 changelog-derived Agent 的 tools 列表包含大量 Agent(...) 条目时,启动代理不再卡顿。
fix_cloud_admin_toggle_unrelated_setting_lock 云会话管理开关被无关安全设置加载失败连带锁定修复 changelog-derived 2.1.289 修复:Cloud sessions 管理开关不再因无关安全设置正在加载或加载失败而保持锁定关闭。边界:修正管理设置之间的加载状态依赖,不降低安全设置自身的默认策略。
env_subagent_model_force CLAUDE_CODE_SUBAGENT_MODEL_FORCE 强制统一子代理模型 configuration-documentation CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1 与 CLAUDE_CODE_SUBAGENT_MODEL 配合,把同一模型默认施加到子代理、队友与 Workflow 代理;force 开启时子代理定义内 model 字段和调用方传入模型均被忽略。边界:只约束模型选择,不改变工具权限、上下文隔离或模型可用性限制。
env_disable_explore_plan_agents CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS 关闭内置 Explore/Plan 代理 configuration-documentation CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS=1 移除内置 Explore 与 Plan 子代理;对应探索或规划请求改由主会话复用自身提示处理。边界:仅屏蔽内置代理类型,不影响用户级、项目级或自定义子代理定义。
cap_subagent_tool_pool_filter 子代理工具池两层过滤与 fork 豁免 configuration-documentation 子代理继承主会话内置工具与 MCP 工具后,先经第一层固定工具移除过滤;后台运行的子代理再经第二层内置工具范围过滤;fork 跳过两层过滤并保留主会话完整工具池。边界:过滤结果不改变主会话工具池,也不绕过工具自身审批规则。
env_disable_background_tasks CLAUDE_CODE_DISABLE_BACKGROUND_TASKS 关闭后台任务等待开关 configuration-documentation CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1 关闭后台任务:子代理需等待完成,后台命令也不可用,Ctrl+B 不再把任务移到后台。边界:只改变等待与后台调度语义,不改变子代理可用工具或权限范围。
cap_subagent_addressable_name Agent name 参数与可寻址子代理/队友名称 configuration-documentation Agent 工具的 name 参数让子代理获得可寻址名称,任务结束后仍可按名称发消息或恢复;Agent Teams 开启时通常成为 teammate,fork 或调用自身携带 isolation 的情形除外。边界:名称用于消息与恢复寻址,不等同于独立持久账号或跨设备身份。
session_project_dir_name_config CLAUDE_CODE_PROJECT_DIR_NAME 配置目录内项目会话与记忆分目录名 configuration-documentation 官方 Sessions 文档:在 CLAUDE_CONFIG_DIR 下命名项目目录;仅允许 1–64 个字母、数字、连字符或下划线,Windows 设备名等无效值被忽略。该变量由启动 shell 环境读取一次,设置文件 env 块不能设置它。
hook_windows_path_separator_normalization Hook 文件路径在 Windows 反斜杠与 POSIX 分隔符之间的归一化 configuration-documentation 官方 Hooks 文档:Write、Edit、Read 的 tool_input.file_path 始终为绝对路径;Windows 下使用反斜杠分隔符。Hook 规则比较路径前必须归一化分隔符,否则正斜杠规则无法匹配,工具调用会在规则未命中的情况下继续执行。
sa_auto_compact_window_field 子代理 autoCompactWindow 前置字段(100k–1M tokens) configuration-documentation 官方子代理文档:autoCompactWindow 在子代理 frontmatter 中单独降低该代理的自动压缩窗口,取值范围为 100000 到 1000000 tokens;该字段要求 Claude Code v2.1.296 或更高版本。它只作用于子代理自身,不替代会话级 modelSettings.autoCompactWindow。
sa_initial_prompt_field 子代理 prompt / initialPrompt 定义输入字段 configuration-documentation 官方子代理文档:Markdown 正文对应 CLI JSON 定义中的 prompt;frontmatter 字段清单另列 initialPrompt。CLI 临时定义的 prompt 可为空;空 prompt 且无 memory 的 --agent 主会话不改写系统提示。空 prompt 支持要求 v2.1.281 或更高版本。
sa_description_startup_token_warning 子代理 description 合并超 15k tokens 启动警告 configuration-documentation 官方子代理文档:除内置代理外,各子代理 description 合并超过 15,000 tokens 时,Claude Code 在启动时展示包含总 token 数的警告。处理方式是缩短 description,把细节移入仅在该子代理运行时加载的系统提示。
cli_agents_json_file_definition --agents 非交互 JSON 文件路径与空 prompt 定义 configuration-documentation 官方子代理文档:非交互模式 --agents 除内联 JSON 外还接受 JSON 文件路径,用于承载过大的代理定义;交互式会话拒绝文件路径,文件形式要求 v2.1.281 或更高版本。CLI 定义只存在于当前会话,不会写入磁盘。
perm_network_share_add_dir_mapping 网络共享目录需先映射为本地路径:Windows 盘符或 macOS/Linux 挂载点 official-public-docs-derived 读取网络共享目录前需要给共享一个本地路径:Windows 映射驱动器后用 --add-dir 传入盘符;macOS/Linux 先挂载到 /mnt 或 /Volumes,再读取本地挂载路径。
settings_reload_timing_configchange_managed_schedule 设置重载时机:直接编辑触发 ConfigChange;托管策略按计划到达;部分键启动时只读一次 official-public-docs-derived 直接编辑用户/项目/本地设置文件会触发 ConfigChange Hook;MDM 或控制台托管设置按计划到达运行会话;少数敏感配置键只在会话启动时读取,运行中修改不会立即生效。
settings_invalid_entry_warning_strict_fallback 设置错误分级:Settings Error 阻断/可修复;Warning 跳过单项;托管非法项回退更严格值 official-public-docs-derived 无效 JSON 或被 schema 拒绝的值形成 Settings Error;单项规则或未知 Hook 事件只产生 Warning,跳过该项并保留其余设置;托管文档中的非法条目回退到更严格的默认值。
feat_agents_view_queued_reply_deferred_slash claude agents 回复排队到达;回合运行中除 /stop 外斜杠命令延迟到回合结束执行 changelog-derived 代理视图回复以排队消息形式到达;回合正在运行时发送的斜杠命令,除 /stop 外都会等到当前回合结束后再执行。
feat_code_review_inline_prompts_uncustomized_models /code-review 为无定制调参模型使用精简内联评审提示,不再派生多个评审子代理 changelog-derived 对没有专属调参配置的模型,/code-review 使用更精简的内联评审提示,替代派生多个评审子代理的做法。
fix_headless_mcp_transient_connect_retry_without_slowest_wait 无头模式 MCP 远程服务器瞬时首连失败可重试,不必等待最慢服务器完成连接 changelog-derived 无头模式下,远程 MCP 服务器首次连接瞬时失败时会重试;该重试不需要等待最慢的其他服务器先完成连接。
feat_stream_json_startup_deferred_mcp_arrive_later stream-json 首轮不再等待尚未连接的延迟加载 MCP;工具在后续回合到达 changelog-derived 使用 --input-format stream-json 的会话首轮不再等待仍在连接、且由工具搜索延迟加载的 MCP 服务器;其工具列表在后续回合到达。
feat_worktree_submodule_removal_safety_check 删除含子模块检出的代理 worktree 前执行安全检查 changelog-derived 移除代理使用的 Git worktree 前,会检查其中是否包含子模块检出;存在子模块时先经过安全检查再删除。
feat_local_session_artifact_watch_no_automatic_turn 本地会话监听 Artifact 外部重发布不再自动开启新回合,改由后续 Artifact 工具结果获知 changelog-derived 本地会话中,已监听 Artifact 在别处发布新版本时不再自动触发新回合;Claude 在后续 Artifact 工具结果中获知版本变化。
feat_background_workflow_status_row 后台 Workflow 状态行展示名称、进度条、宽屏代理数、耗时、token 与大工作流警告 changelog-derived 提示下方的后台 Workflow 状态行显示名称、进度条;宽屏终端显示代理数量,并展示已用时间、总 token 数以及大工作流警告。
feat_mcp_managed_config_parse_failure_exclusive_warn managed-mcp.json 不可读或解析失败时保留 MCP 独占控制并在启动时告警 changelog-derived 企业托管 managed-mcp.json 无法读取或解析时,仍保持独占 MCP 控制:用户、项目与插件服务器不加载,并在启动时给出告警。
feat_api_retry_budget_shared_whole_model_call API 请求重试预算按整个模型调用共享;流式与非流式兜底、中途断连不再另起预算 changelog-derived 失败 API 请求的重试预算覆盖整个模型调用;默认重试设置下一次失败调用最多发送 14 个请求,流式与非流式兜底、中途断连共享同一预算。
feat_system_prompt_dynamic_boundary_global_cache 含 SYSTEM_PROMPT_DYNAMIC_BOUNDARY 的 --system-prompt:分隔线上方文本全局缓存 changelog-derived --system-prompt 中包含 SYSTEM_PROMPT_DYNAMIC_BOUNDARY 行时,该行上方文本按全局方式缓存;行为与 SDK 的数组形式一致。
ci_review_levels Code Review 评审深度等级(Quick / Standard / Deep) capability-derived Quick 轻量快速低成本;Standard 为深度、速度与成本的默认平衡;Deep 最彻底、耗时最长且成本最高。组织可选默认等级,单个仓库可覆盖为不同等级。
plugin_mod_hooks_module Mod:插件钩子模块(JS 函数,可绘制面板并新增命令) public-docs-derived Mod 是带 JavaScript 钩子模块的插件组件;钩子函数可以绘制插件面板并添加命令,部分 Mod 内置于 Claude Code。
feat_agents_view_n_filter_match Agents 视图 n:<text> 筛选与回车最佳匹配会话 official-public-docs-derived Agents 视图的 n:<text> 筛选匹配会话名称与任务;折叠分区内也显示匹配项,按 Enter 打开最佳匹配的后台会话。
fix_screen_reader_permissions_announcements 屏幕阅读器权限规则选择与播报保留 official-public-docs-derived 屏幕阅读器模式下,在 /permissions 输入规则编号会选中对应规则,而不是打开搜索框;短播报保留到下次按键或上方内容变化,已回答的问题对话框会播报 answered。
fix_bare_session_login_credential_hint --bare 会话 /login 凭证适用范围提示修复 official-public-docs-derived 全新 --bare 会话中的 /login 原先可能执行会话从不读取的登录流程,并覆盖已保存登录;修复后明确提示哪些凭证可用于当前会话。
feat_permission_prompt_stack_count 堆叠权限请求的 “2 of 5” 数量提示 official-public-docs-derived 当多个权限请求排队叠加时,权限提示显示 “2 of 5” 这类计数,帮助用户识别当前请求在整批待审批请求中的位置。
feat_list_mouse_support 全屏列表 “N more” 行鼠标跳转与悬停按压状态 official-public-docs-derived 全屏模式下列表的 “N more” 行支持鼠标点击跳转到列表对应末端,并提供 hover 与 pressed 状态反馈。
fix_cloud_credentials_expiry_refresh GCP/AWS 刷新凭证过期时避免重复打开登录浏览器 official-public-docs-derived gcpAuthRefresh 或 awsAuthRefresh 凭证过期时,多个 Claude Code 进程与 IDE 扩展原先可能各自打开登录浏览器;修复后避免重复唤起登录窗口。
fix_explore_subagent_model_inheritance Explore 子代理继承未知代理模型 ID official-public-docs-derived 当会话运行代理无法识别的模型 ID(例如代理后的自定义模型)时,Explore 子代理原先切换到 Claude API 的 Opus;修复后继承当前会话模型。
fix_loop_visible_status_updates 自节奏 /loop 状态更新与停止结果可见输出 official-public-docs-derived 自节奏模式下 /loop 的状态更新原先只写在推理中,界面不可见;修复后每次更新以及循环停止时的结果都作为可见文本输出。
setting_mcp_connection_timeout_env MCP 连接阻塞模式与连接超时环境变量 official-public-docs-derived MCP_CONNECTION_NONBLOCKING=0 控制非阻塞连接行为;MCP_CONNECT_TIMEOUT_MS 控制 MCP 服务器连接等待超时,替代旧的固定 1 秒放弃行为。
fix_hook_matcher_input_serialization_block PreToolUse / PermissionRequest 钩子匹配失败或工具输入无法序列化时阻断调用 changelog-derived 当钩子匹配失败,或工具输入不能序列化为 JSON 时,PreToolUse 与 PermissionRequest 钩子原先会被跳过;修复后该工具调用被阻断,避免绕过钩子决策。
fix_fresh_session_model_switch_builtin_limit_window 新环境或模型切换后首个请求使用服务端输出上限与自动压缩窗口 changelog-derived 全新环境或模型切换后的首个请求原先使用客户端内置输出上限与自动压缩窗口,而不是服务端配置;修复后采用服务端配置,该请求最多可能等待 1.5 秒。
fix_screen_reader_short_announcement_persistence 屏幕阅读器短播报保留到下次按键或上方界面变化 changelog-derived 删除单词等短屏幕阅读器播报原先可能立即消失;改进后播报保留到下一次按键,或屏幕上方其他内容发生变化为止。
fix_screen_reader_answered_dialog_label 屏幕阅读器问题对话框答复后播报 answered 标记 changelog-derived 问题对话框中的问题被答复后,屏幕阅读器现在会在输入框旁播报 answered,标识该问答已经完成。
fix_fullscreen_transcript_cursor_search_follow 全屏转录查看器搜索与 /theme 自定义颜色搜索中光标跟随已输入文本 changelog-derived 全屏转录查看器的搜索框,以及 /theme 的自定义颜色搜索框,原先终端光标可能不跟随输入文本;修复后光标随已输入内容移动。
fix_cloud_admin_session_switch_security_setting_lock 云会话管理开关不再被无关安全设置加载或失败状态锁定关闭 changelog-derived Claude Code 管理设置中的 Cloud sessions 开关,原先可能在无关安全设置加载中或加载失败时保持锁定关闭;修复后不再受该无关状态影响。
bg_subagent Background subagent 后台子代理 public-product-runtime-concept 在主会话继续工作时并发执行的子代理;使用较小内置工具集,完成后把结果返回主对话。
fg_subagent Foreground subagent 前台子代理 public-product-runtime-concept 主对话等待其完成的子代理模式;任务结束后结果回到主会话,适用于需要先取得结论的步骤。
managed_subagent Managed subagent 组织托管子代理定义 administrator-managed-configuration 组织级托管的子代理配置条目,沿用 frontmatter 格式;属于配置管理边界,不暴露模型权重或内部实现。
sibling_roster Sibling roster 兄弟代理名册 public-runtime-state 列出 main 与会话中已命名代理及其 SendMessage to 地址的运行时清单;用于定位可通信的兄弟代理。
statusline_setup_agent statusline-setup 内置状态行配置代理 built-in-help-agent 内置 helper agent 之一,专门服务状态行配置场景;通常自动调用,无需用户直接派生。
feat_skills_from_mcp_beta MCP 服务器提供的技能(beta,/ 菜单显示为 server:skill) changelog-derived MCP 服务器暴露的技能在 / 菜单以 server:skill 形式展示;其余技能保留原名。
feat_held_message_always_deliver 其他会话挂起消息提示新增 “Always deliver” 送达选项 changelog-derived 来自其他会话、暂时挂起的消息在提示中提供 Always deliver 选项,控制后续送达行为。
feat_otel_assistant_response_event OpenTelemetry assistant_response 事件记录 SendUserMessage / Cowork 消息工具发出的文本 changelog-derived 开启响应日志后,OTel assistant_response 事件记录经 SendUserMessage 或 Cowork 消息工具发出的文本。
feat_session_save_partial_warning 会话部分内容未能保存时 VS Code / Desktop Code 标签页警告,提示用 /compact 保存 changelog-derived 当会话一部分未能保存时,VS Code 与 Desktop Code 标签页给出警告,并说明可用 /compact 保存。
feat_resume_messages_not_loaded_notice 恢复会话时早期消息未加载的提示(VS Code / Desktop Code 标签页) changelog-derived 恢复会话若早期消息未被加载,界面给出提示;终端已有同类提示。
feat_cloud_scheduled_task_rename 定时任务文案由 routine / cloud schedule 更名为 cloud scheduled task;/routines 仍可用 changelog-derived /schedule、权限提示与 /loop 的云端邀请改称“cloud scheduled task”;/routines 命令保持兼容。
feat_model_switch_keep_effort 移动端或 claude.ai 切换模型时保留上一模型已保存的 effort 级别 changelog-derived 从移动端应用或 claude.ai 切换模型时,若新模型未单独保存 effort,沿用上一模型保存的 effort 级别。
feat_feedback_draft_not_now 终端 /feedback 草稿默认打开 Not now,上方单独列出仅发送报告或附带 transcript 的行 changelog-derived 终端反馈草稿默认停在 Not now;单独行可只发送报告,或同时附带会话 transcript。
feat_oat02_runner_token_prefix 自托管 runner CLAUDE_CODE_OAUTH_TOKEN 前缀可结束于 oat02-(原有 oat01-) changelog-derived runner 令牌前缀除 oat01- 外新增 oat02-;代理规则与日志脱敏需匹配完整令牌值。
feat_subagent_auto_mode_handback 自动模式子代理回报专用 hand-back 调用 proprietary-all-rights-reserved 自动模式下子代理通过专用 hand-back 调用向主代理回报;安全分类器审阅该调用,而不是事后审阅最后一条消息。
fix_remote_session_image_scale_timeout 远端会话图片发送缩放副本与上传超时修复 proprietary-all-rights-reserved 远端会话中边长超过 8000 像素的 PNG、JPEG、WebP 改发缩放副本;上传在 30 秒超时后延至 35 秒等待完成。
fix_rewind_diff_list_keybinding_alignment /rewind 与 /diff 列表快捷键统一规则 proprietary-all-rights-reserved /rewind 与 /diff 列表移动到与其他列表相同的 select:* 键绑定动作;旧 messageSelector:* 与 diff:* 重绑定仍可用。
fix_workflow_list_inline_terminal_size /workflows 运行列表内联终端尺寸规则 proprietary-all-rights-reserved /workflows 运行列表与其他列表一样按终端内联尺寸显示;提示行在下方出现时标题保持可见。
fix_artifact_watch_idle_timeout 自动武装 Artifact 监听空闲 3.5 小时结束规则 proprietary-all-rights-reserved 非用户主动请求而自动武装的 Artifact 监听,在无活动 3.5 小时后结束;再次发布或监听 Artifact 会重新武装。
fix_system_prompt_text_and_file_combined --system-prompt 文本与文件形式组合规则 proprietary-all-rights-reserved --system-prompt 与 --append-system-prompt 同时接受文本和 -file 形式;文件文本先进入提示。
fix_telemetry_variable_startup_notice 设置文件忽略或关闭遥测变量启动提示 proprietary-all-rights-reserved 启动通知、/status 与 claude doctor 列出项目设置文件中被忽略或关闭遥测的变量;用于发现未生效的遥测配置。
fix_subagent_foreground_task_tools 前台子代理任务跟踪工具缺失修复 proprietary-all-rights-reserved 已启用任务跟踪工具的会话中,前台子代理不再缺少 TaskCreate/Get/Update/List 与 TodoWrite 工具。
fix_subagent_reloaded_mcp_tool_definitions_cache 恢复子代理与队友重载 MCP 工具定义缓存修复 open-standard-reference 恢复后的子代理和队友不再重新渲染已加载的 MCP 工具定义,避免破坏提示缓存。
agent_spawn_teammates agent.spawn 队友派生:跨插件钩子事件的统一代理 ID,$.agent.list() 含 idle/waiting 状态 changelog-derived 官方 changelog:队友代理可经 agent.spawn 派生;同一代理 ID 贯穿插件钩子事件;$.agent.list() 返回 idle 与 waiting 等运行状态。
ui_selection_mods Mod $.ui.selection():返回全屏模式最近选中文本;选择位于单条 transcript 行时返回该行 changelog-derived 官方 changelog:Mod 可调用 $.ui.selection() 获取全屏模式下最近选中的文本;当选择落在同一条 transcript 行内时,同时返回该行。
prompt_draft_recovery_ctrlc_up Ctrl+C 清空提示词后按 Up 恢复草稿,含粘贴文本与图片 changelog-derived 官方 changelog:提示词被 Ctrl+C 清空后,在空提示行按 Up 可恢复草稿;草稿包含此前粘贴的文本与图片。
code_review_max_findings_cli /code-review --max-findings <n>\|all:覆盖常规发现条数上限;选择沿用至传入 --max-findings default changelog-derived 官方 changelog:/code-review 支持 --max-findings <n>\|all 调整评审发现条数;该选择被后续复用,直到再次传入 --max-findings default。
agents_view_ctrlf_group_jump_keybindings Agents 视图 Ctrl+F 按名称查找会话,Alt+↑/↓ 跳转分组;查找、跳转与重命名可在 keybindings.json 重绑 changelog-derived 官方 changelog:Agents 视图支持 Ctrl+F 按名称查找会话,Alt+↑/↓ 在分组间跳转;查找、分组跳转与重命名均可在 keybindings.json 中重新绑定。
managed_settings_resolved_otel_event claude_code.managed_settings_resolved OTel 事件:托管设置来源与策略辅助状态;OTEL_LOG_MANAGED_SETTINGS=1 记录脱敏设置与摘要 changelog-derived 官方 changelog:OpenTelemetry 事件 claude_code.managed_settings_resolved 记录托管设置来源与策略辅助状态;设置 OTEL_LOG_MANAGED_SETTINGS=1 后可记录脱敏后的设置与摘要。
workflow_max_concurrent_agents_setting CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS(1–256):调高 Workflow 工具单次运行的并发代理上限 changelog-derived 官方 changelog:环境变量 CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS 取值 1–256,用于调高 Workflow 工具单次运行的并发代理数量,面向推理受限的扇出场景。
max_effort_level_setting maxEffortLevel 设置(顶层或 modelSettings 下按模型):在所有提供方限制 effort 等级;用户仍可选更低等级 changelog-derived 官方 changelog:maxEffortLevel 可置于顶层或 modelSettings 下按模型配置;它在所有提供方(含 Bedrock、Vertex、Foundry)限制 effort 等级,用户仍可选择更低等级。
monitor_watch_deadline_30_min Monitor 监听始终带截止时间:最长 30 分钟;单提示 -p 运行中为 10 分钟;到期通知 Claude 重新武装 changelog-derived 官方 changelog:Monitor 监听不再使用无超时的 persistent 选项;监听始终带截止时间,常规上限 30 分钟,单提示 -p 运行中为 10 分钟;到期后通知 Claude 重新武装监听。
host_config_snapshot_option --host-config-snapshot disk\|memory:主机配置目录超 64 MiB 时避免静默丢失设置、技能、插件与 MCP 服务器 changelog-derived 官方 changelog:自托管运行器在主机配置目录超过 64 MiB 时曾静默丢失设置、技能、插件与 MCP 服务器;--host-config-snapshot disk\|memory 选择配置快照保存方式,规避该丢失。
mcp_disconnect_reconnect_giveup_notification MCP 会话中断且自动重连放弃后通知用户,并指向 /mcp changelog-derived 官方 changelog:MCP 服务器在会话中途断开且自动重连放弃后,客户端发出通知并指向 /mcp;该状态区别于服务器尚未连接的初始 Pending 状态。
feat_plugin_options_form 插件选项表单(Manage plugins 安装配置与后续修改) proprietary-all-rights-reserved Manage plugins 中的插件选项表单:带选项的插件安装时提示未填项;行内齿轮可后续修改配置。
fix_plugin_marketplace_manifest_validate plugin validate 同目录市场清单误判修复 proprietary-all-rights-reserved claude plugin validate 在目录同时含市场清单时跳过插件的问题已修复;plugin.json 校验结果与 --json 输出对齐。
fix_mcp_sdk_entry_skip_warning .mcp.json 中 sdk 类型 MCP 条目跳过并告警 proprietary-all-rights-reserved .mcp.json、设置、插件与代理文件里 "type": "sdk" 的 MCP 条目会被跳过并告警;只有 SDK 宿主应用能注册进程内服务器。
feat_artifact_large_page_compressed_upload Artifact 大页面慢连接压缩上传 proprietary-all-rights-reserved 慢连接下 Artifact 大页面上传采用压缩传输,降低发布耗时;不改变制品内容与来源记录。
feat_resumed_session_file_read_cache 会话恢复已读文件缓存匹配 proprietary-all-rights-reserved 恢复读取大量文件的长会话时,已读文件缓存按当时读取状态匹配,缩短恢复耗时;缓存只服务会话恢复,不记录文件内容来源。
feat_memory_critical_usage_warning 内存占用临界警告与安全重启提示 proprietary-all-rights-reserved 内存用量临界时显示可见警告,给出释放内存或安全重启的步骤;属运行时资源提示,不替代系统内存管理。
fix_compound_shell_nested_rule_approval_mod_managed 复合 Shell 命令嵌套片段 deny/ask 规则与托管机器 Mod 审批修复 official-public-changelog 规则覆盖复合命令嵌套片段;用户安装 Mod 的审批在托管机器上不放宽权限边界。
fix_terminal_freeze_unclosed_script_dollar_subst 短代码块未闭合 script 标签与深层 ${} 替换终端冻结修复 official-public-changelog 修复短代码块含大量未闭合 script 标签或深层 ${} 替换时终端冻结;属渲染稳定性,不改变代码语义。
fix_read_deny_symlink_ide_atmention Read 拒绝规则对 IDE @提及/改动/符号链接选择文件生效修复 official-public-changelog Read deny 规则覆盖 IDE 中 @提及、改动或经符号链接选择的文件;符号链接路径纳入文件访问规则判定。
fix_large_file_plugin_code_pane_layout 插件代码面板大文件单次最终宽度布局优化 official-public-changelog 插件代码面板打开大文件时按最终宽度只布局一次,减少重复绘制;不改变插件权限或插件能力。
fix_plugin_local_folder_marketplace_stale_hotreload 本地文件夹市场插件陈旧副本与符号链接热重载修复 official-public-changelog 修复本地文件夹市场安装插件在 plugin list/eval/update 显示陈旧副本,以及符号链接 --plugin-dir 热重载问题。
fix_mods_load_first_session_after_upgrade 升级后首个会话 Mod 未加载修复 official-public-changelog 修复升级后首个会话已安装 Mod 未被加载;Mod 属于插件打包单元内的钩子界面模块。
fix_plugin_row_stale_background_tasks_fullscreen 后台任务对话框全屏时插件提示行陈旧显示修复 official-public-changelog 后台任务对话框全屏打开时,插件提示行不再显示陈旧行;属界面状态同步修复。
fix_plugin_pane_localhost_at_file_uri_link 插件面板 localhost/@/大写主机/file: 链接绘制修复 official-public-changelog 修复插件面板链接为 localhost、路径含 @、大写主机或 file: 路径时不绘制;链接渲染边界不扩展文件访问权限。
fix_plugin_box_border_unknown_terminal_launch_freeze 插件未知边框 Box 导致启动冻结强退修复 official-public-changelog 插件绘制终端不认识边框样式的 Box 时不再导致启动冻结或强制退出;不新增插件系统权限。
fix_supervised_background_session_mod_async_handler Mod 屏幕处理器异步抛错导致监督/后台会话结束修复 official-public-changelog 插件屏幕处理器异步抛错时不再终结监督会话或后台会话;错误隔离在 Mod 绘制层。
fix_plugin_region_zero_height_growing_interface_error 无高度插件区域持续增长接口错误修复 official-public-changelog 无高度插件区域持续增长时不再以接口错误结束会话;区域尺寸异常被限制在插件界面层。
fix_mod_ui_render_row_draw_engine_fallback Mod ui.render 钩子行绘制抛错引擎自绘兜底 official-public-changelog Mod 的 ui.render 钩子写入值导致行绘制抛错时,引擎改为自绘行;失败行由宿主引擎兜底。
fix_mod_client_region_failure_isolated 失败 Mod Client 区域隔离并抛出 ui.fault official-public-changelog 绘制失败的 Mod Client 区域单独失败并抛出 ui.fault,不再拖垮周围 Mod 绘制;故障隔离到单个区域。
fix_mod_band_failure_cards_step_aside Mod 面板带绘制失败卡片避让修复 official-public-changelog Mod 面板带绘制失败时短暂让下方卡片避让,避免重叠;属界面布局容错。
fix_failed_plugin_component_error_message 失败插件组件无消息时 Error/空白原因修复 official-public-changelog 失败插件组件在失败原因无消息时不再显示 Error 或空白原因;错误信息回退为可诊断文本。
fix_mod_band_pane_failure_author_line_names_mod Mod 面板/带失败提示命名 Mod 且说明未绘制 official-public-changelog Mod 面板或带绘制失败时,作者可见提示行命名对应 Mod,并说明未绘制;便于定位失败插件。
fix_published_artifact_short_code_block_browser_freeze 已发布 Artifact 短代码块浏览器标签冻结修复 official-public-changelog 已发布 Artifact 页面短代码块含大量未闭合 script 标签时,不再冻结或崩溃阅读端浏览器标签。
fix_mcp_403_insufficient_scope_error_naming_permission MCP 403 权限不足错误命名缺失权限并指向重认证 official-public-changelog MCP 工具调用返回 403 insufficient_scope 时,错误信息命名缺失权限并指向 /mcp 重认证,不再误报登录过期。
fix_feedback_zip_transcript_invalid_json_redaction /feedback zip 转录脱敏后无效 JSON 行修复 official-public-changelog /feedback 保存到磁盘的 zip 中转录在密钥脱敏后出现无效 JSON 行的问题修复;导出转录保持可解析。
fix_mcp_connectors_no_tools_after_old_handshake_drop 旧握手丢弃后 MCP 连接器不列工具修复 official-public-changelog 服务器丢弃旧 MCP 握手后,连接器最长一天不列工具的问题修复;工具清单随连接协议状态恢复刷新。
fix_repeat_mcp_signin_link_replaced 重复 MCP 登录请求替换待处理链接修复 official-public-changelog 重复 MCP 登录请求不再替换待处理登录链接,避免链接失效;登录链接状态由单次认证流程持有。
fix_usage_mcp_server_tool_call_crediting_connecting /usage 连接中 MCP 工具调用记账修复 official-public-changelog MCP 服务器仍在连接或刚连接时发生的工具调用,在 /usage 中正确归属到对应服务器;连接阶段调用不再漏记。
fix_plugins_claude_ai_missing_transient_server_error claude.ai 插件瞬时服务器错误后丢失修复 official-public-changelog claude.ai 启用插件在瞬时服务器错误后不再从 Claude Code 会话中丢失;插件状态以同步结果为准恢复。
fix_subagent_message_typed_twice_transcript 运行中子代理消息转录重复显示修复 official-public-changelog 消息键入运行中子代理后,不再在子代理转录中显示两次;转录消息按单次接收记录。
fix_subagent_handback_raw_task_id_name 子代理 hand-back 原始任务 ID 显示名称修复 official-public-changelog 子代理无注册名称时,hand-back 消息不再显示原始任务 ID,而显示代理名称;名称缺失时保持稳定回退。
fix_remote_control_file_not_arrived_notification Remote Control 文件未到达通知与下载重试修复 official-public-changelog Remote Control 消息附带文件未到达时告知 Claude;单次下载失败后网络错误、超时或服务器错误最多重试两次。
fix_remote_control_exit_message_queued_next_run 退出时到达的 Remote Control 消息留待下次运行排队 official-public-changelog Claude Code 退出时到达的 Remote Control 消息不再标记已投递,保持排队等待会话下次运行处理。
fix_auth_status_console_api_key_label auth status Console API Key 标签识别修复 official-public-changelog claude auth status 不再把 Console 登录存储的 API Key 误报为 claude.ai,现标记为 api_key;VS Code 扩展据此识别 API Key 会话。
fix_status_profile_api_key_both_in_use /status 不再显示配置文件与 API Key 同时生效 official-public-changelog /status 不再把 API Key 旁的 Anthropic 配置文件显示为同时生效;未使用配置文件明确标记。
fix_mid_session_model_switch_output_limit_compact 会话内切换模型输出上限与压缩窗口保留修复 official-public-changelog Agent SDK setModel 等 set_model 请求切换模型后,新模型不再在重启前保留内置输出上限与自动压缩窗口;模型配置与上下文边界对齐。
fix_mcp_server_disabled_mid_session_sdk_p_tools SDK/-p 会话中途关闭 MCP 服务器工具残留修复 official-public-changelog SDK 与 -p 会话中途关闭 MCP 服务器后,其工具不再继续可用;服务器停用同步到工具清单。
fix_mcp_list_get_escape_sequences_names_values MCP 命令输出服务器名称值换行转义序列修复 official-public-changelog claude mcp list/get 以及 remove/login/logout 的未找到错误,不再打印 MCP 服务器名称和值中的换行与终端转义序列。
fix_remote_control_chrome_flag_help_default Remote Control chrome 标志帮助说明与默认值修复 official-public-changelog remote-control --help 修正 --[no-]chrome 默认说明;派生会话默认关闭 Claude in Chrome,除非显式传 --chrome。
fix_background_subagent_auto_mode_redundant_reply 自动模式后台子代理冗余回复修复 official-public-changelog 自动模式后台子代理每次报告后不再触发第二次冗余回复;报告完成即结束当前后台子代理回合。
fix_subagent_auto_mode_end_after_handback 自动模式子代理交还报告后立即结束 official-public-changelog 自动模式子代理交还报告给调用方后立即结束,不再多走无人接收的额外回合。
fix_mcp_meta_alwaysload_false_deferred 工具 _meta alwaysLoad false 保持延迟加载 official-public-changelog 工具自设 _meta anthropic/alwaysLoad 为 false 时,即使父服务器在 --mcp-config、Agent SDK 或插件配置中设为 alwaysLoad,该工具仍保持延迟加载。
fix_vscode_extension_autosave_stall_read_write_edit VS Code 自动保存无响应导致工具停滞跳过修复 official-public-changelog 编辑器停止响应扩展自动保存时,VS Code Read/Write/Edit 不再停滞十分钟后被跳过;工具等待与编辑器保存状态解耦。
fix_vscode_agent_map_subagent_model_label VS Code 代理地图子代理模型标注修复 official-public-changelog VS Code 代理地图不再用会话模型标注子代理;标签显示子代理实际运行模型,包括强制模型或子代理自身模型。
fix_vscode_plugin_uninstall_wrong_installation Manage plugins 对话框卸载插件错误安装修复 official-public-changelog Manage plugins 对话框卸载插件时,不再移除错误安装,也不再失败于项目级安装插件;卸载定位到对应安装范围。
fix_vscode_signin_auth_code_step_back_same_method VS Code 返回重选同登录方式停留在授权码步骤修复 official-public-changelog 登录流程返回并重选同一登录方式后,不再停留在授权码步骤;认证回退重新进入对应登录路径。
fix_mcp_prompts_resources_list_changed_notification MCP 提示与资源 list-changed 通知刷新修复 official-public-changelog 服务器发送 list-changed 通知但未声明 listChanged 时,MCP 提示和资源仍能刷新;通知事件驱动资源清单更新。
fix_streamable_http_mcp_per_server_timeout Streamable HTTP MCP 工具调用遵循服务器超时 official-public-changelog Streamable HTTP MCP 工具调用不再在约五分钟固定超时,遵循每个服务器配置的更长 timeout。
fix_corrupted_transcript_unexpected_tool_use_id_self_heal 损坏转录 unexpected tool_use_id 400 自愈修复 official-public-changelog 损坏转录导致 unexpected tool_use_id 400 死循环时,可自愈处自动修复;否则给出清晰错误并附 /rewind 提示,终止循环。
fix_mcp_http_legacy_sse_4xx_connect 旧版 HTTP+SSE MCP 服务器首请求 4xx 连接修复 official-public-changelog 仅说旧版 HTTP+SSE 的 http MCP 服务器在首个请求返回 422 或其他 4xx 错误时,连接不再失败;兼容旧传输握手。
fix_goal_compaction_overflow_hook_session 钩子驱动会话上下文溢出压缩而非结束 official-public-changelog 活动 /goal 等钩子驱动会话在上下文再次溢出时执行压缩,不再以 Prompt is too long 结束;响应式压缩后继续钩子流程。
fix_active_goal_lost_after_resume_compaction 恢复已压缩会话活动 /goal 丢失修复 official-public-changelog --continue 或 --resume 恢复已压缩会话时,活动 /goal 不再丢失;目标状态纳入会话恢复上下文。
fix_claude_agents_flags_after_auto_update_relaunch claude agents 自动更新重启保留命令行标志修复 official-public-changelog claude agents 自动更新重启后保留 --model、--effort、--permission-mode、--allow-dangerously-skip-permissions 和 --agent;重启不丢失启动配置。
fix_language_server_project_wide_diagnostics_slowdown 语言服务器项目级诊断导致单回合变慢修复 official-public-changelog 语言服务器为数千文件发布项目级诊断时,不再造成单回合延迟;诊断结果与代理回合调度解耦。
fix_bedrock_vertex_foundry_opus_model_family 托管平台 opus 子代理模型家族识别修复 official-public-changelog Bedrock、Vertex 或 Foundry 上模型 ID 无可识别模型家族的 opus 子代理,不再离开会话模型;除非显式设置默认 opus 模型环境变量。
fix_self_hosted_runner_401_token_refresh_retry 自托管 Runner 401 后令牌刷新重试修复 official-public-changelog 自托管 Runner 在几次令牌刷新失败后不再每回合 401;保持重试,并在收到 401 后重新获取令牌。
fix_local_file_path_links_vscode_file_uri 本地文件链接 VS Code file:// URI 修复 official-public-changelog VS Code 及其他需要 file:// URI 的终端中,本地文件路径链接可点击;链接协议形式与宿主要求对齐。
fix_transcript_ordered_list_renumbering 转录有序列表编号不再重排修复 official-public-changelog 转录不再重排用户消息中的有序列表编号;数字和 N) 标记按原样显示,列表编号保留用户输入形式。
fix_ask_user_question_preview_note_option AskUserQuestion 预览备注附着选项修复 official-public-changelog AskUserQuestion 预览备注不再附着到先前选择选项,而对应当前高亮选项;备注与选项选择状态同步。
fix_ask_user_question_preview_mode_highlight_drop AskUserQuestion 预览模式提交备注高亮选项丢失修复 official-public-changelog AskUserQuestion 预览模式下提交备注按 Enter 时,不再丢失高亮选项;提交动作保留当前选项与备注。
fix_resumed_background_agent_interrupted_tool_batch 恢复后台代理中断工具批次保留修复 official-public-changelog 恢复后台代理时,某个工具调用被带消息批准打断后的剩余工具批次不再丢失;中断批次由恢复流程续接。
fix_resume_interrupted_turn_background_tasks_report 恢复中断回合时报告遗留后台任务 official-public-changelog 以 CLAUDE_CODE_RESUME_INTERRUPTED_TURN 启动的本地 -p --resume,会报告前一进程遗留的后台任务;中断会话恢复不漏后台工作。
fix_cloud_session_first_turn_sdk_mcp_tools_connecting 云会话首回合缺少连接中 SDK MCP 工具修复 official-public-changelog 云会话首回合不再缺少仍在连接的 SDK 托管 MCP 服务器工具;连接中工具在后续到达时补齐到会话清单。
fix_sdk_session_early_turn_deferred_tool_approval SDK 会话早退回合保留延迟工具调用、完成工具结果与重启后审批提示 official-public-docs-derived SDK 会话在回合提前结束、worker 重启后持有审批提示,以及非流式兜底 result.usage 场景下,原先可能丢失延迟工具调用或已完成工具结果;修复后这些状态被保留。
fix_mcp_stdio_server_shutdown_starting_session 会话结束时仍在启动的 stdio MCP 服务器不再残留运行 official-public-docs-derived 会话结束时,仍处于启动阶段的 stdio MCP 服务器原先可能被遗留为运行进程;修复后随会话收尾停止。
fix_mcp_signin_server_without_valid_url 无有效 URL 的 MCP 服务器登录不再给出不透明 SDK 错误 official-public-docs-derived 缺少有效 URL 的 MCP 服务器原先登录失败并返回不透明 SDK 错误;/mcp 不再为这类服务器提供 Authenticate 入口。
fix_usage_weekly_fable_limit_telemetry_off 遥测关闭时每周 Fable 用量限制在 /usage 与 VS Code 计量器显示 official-public-docs-derived 遥测禁用时,每周 Fable 限制原先不出现在 /usage 与 VS Code 用量计量器;修复后限制信息正常显示。
fix_model_picker_suffix_version_sonnet /model 接受带日期或 -v1:0 后缀的 Sonnet 4.6 / Sonnet 5 ID official-public-docs-derived 当模型 ID 携带日期或 -v1:0 后缀时,/model 原先在纯 ID 被拒绝的情况下也拒绝 Sonnet 4.6 或 Sonnet 5;修复后可接受这类后缀形式。
fix_disable_prompt_caching_haiku_main_model DISABLE_PROMPT_CACHING_HAIKU 在 Haiku 为主模型时生效 official-public-docs-derived 当 Haiku 是会话主模型时,DISABLE_PROMPT_CACHING_HAIKU 原先不产生作用;修复后该提示缓存禁用开关按预期生效。
fix_plugin_validate_missing_asset_paths plugin validate 校验 outputStyles、themes、monitors、lspServers 缺失或越界路径 official-public-docs-derived 插件清单中的 outputStyles、themes、monitors、lspServers 路径缺失,或指向插件目录之外时,原先可通过校验;修复后 plugin validate 报告这些问题。
fix_plugin_details_declared_mcp_servers_plugin_json plugin details 展示 plugin.json 声明的 MCP 服务器数量 official-public-docs-derived 在 plugin.json 中声明 MCP 服务器的插件,原先 plugin details 显示 0 个 MCP 服务器;修复后正确列出声明条目。
fix_marketplace_remove_uninstalled_plugins_listed marketplace remove 列出随市场卸载的已安装插件 official-public-docs-derived 移除插件市场时,原先未说明哪些已安装插件会被一并卸载;修复后 plugin marketplace remove 列出这些插件。
fix_windows_wsl_invalid_managed_policy_blocking_user_policy Windows/WSL 无效或不可读托管策略不阻断用户可写策略应用 official-public-docs-derived Windows/WSL 下 HKLM 或 managed-settings.json 中的管理员策略存在但无效、不可读时,原先会阻止 HKCU 与 WSL /etc/claude-code 用户可写策略;修复后无效托管策略不再覆盖用户策略。
fix_skill_namespace_rules_claude_ai_anthropic_skills anthropic-skills / claude-ai 命名空间规则只覆盖 claude.ai 同步技能 official-public-docs-derived Skill(anthropic-skills:) 与 Skill(claude-ai:) 允许规则原先可能覆盖同名插件或其他技能;修复后只匹配从 claude.ai 同步的技能;对应命名空间文件夹、命令与 MCP 服务器的旧加载行为同步收敛。
improve_batch_worktree_create_hook_worktrees /batch 在 WorktreeCreate Hook 提供代理工作树时也可运行 official-public-docs-derived /batch 原先只在 Git 仓库内部运行;改进后当 WorktreeCreate Hook 提供代理工作树时,批量改动流程也可在这些工作树中执行。
improve_plugin_hook_shell_quoting_validation plugin validate 警告 shell 形式 Hook 未给 ${CLAUDE_PLUGIN_ROOT} 加引号 official-public-docs-derived shell 形式 Hook 中 ${CLAUDE_PLUGIN_ROOT} 未加引号时,含空格的插件路径会断裂;plugin validate 现在对此给出警告,插件 Hook 失败错误也会指明出错插件。
improve_synced_skill_short_name_menu_display claude.ai 同步技能在菜单中按短名显示 official-public-docs-derived 当没有其他命令占用短名时,/、/skills、/context 与 /plugin 已安装列表原先显示 anthropic-skills: 前缀;改进后按 claude.ai 同步技能的短名展示。
improve_hook_detail_screen_kind_location Hook 详情页说明 Hook 类型与修改位置,而非固定指向 settings.json official-public-docs-derived /hooks 详情页原先总是指向 settings.json;改进后说明 Hook 属于哪一类以及应在何处修改;hooks-disabled、safe mode 与 managed-hooks-only 提示也改为一句平实说明。
fix_plugin_uninstall_data_kept_shared_folder 插件文件夹被其他插件共用或安装记录不可读时卸载保留数据并说明 official-public-docs-derived plugin uninstall --json 与 /plugin 对话框原先未说明数据保留条件;当文件夹被另一已安装插件使用,或安装记录无法读取时,插件数据被保留并明确标注。
fix_mods_load_after_upgrade_first_session 升级后首个会话已安装 Mod 正常加载 official-public-docs-derived 升级后的第一个会话中,已安装 Mod 原先可能不加载;修复后 Mod 在首次升级会话正常载入。
cap_you_should_know_mod You Should Know 内置 Mod:侧代理观察并提示遗漏事项 official-public-document-entry Built-in mod where a side agent watches the session and flags items the user or Claude might miss; first-party telemetry-gated entry.
cap_nonstreaming_timeout_retries CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES:非流式超时重发上限 official-public-document-entry Environment variable caps resends of a timed-out non-streaming fallback request.
cap_mid_session_model_output_limit_preserved 会话中途切换模型后保留输出上限与自动压缩窗口 official-public-document-entry Fix: a set_model request no longer leaves the new model on the built-in output-token limit and auto-compact window until restart.
cap_remote_control_attachment_retry Remote Control 附件下载失败重试 official-public-document-entry Message attachment over Remote Control retries up to twice after network error, timeout or server error.
cap_mid_session_mcp_server_tools_removed 会话中途关闭 MCP 服务器后移除其工具 official-public-document-entry Fix: switching off an MCP server added mid-session in SDK and -p sessions no longer leaves its tools available.
cap_managed_mcp_plugin_restriction_refusal 托管设置限制 MCP 服务器为插件时拒绝手动添加 official-public-document-entry claude mcp add refuses and explains when managed settings restrict MCP servers to plugins.
cap_otel_settings_variables_ignored 项目与本地设置忽略 OpenTelemetry 导出变量 official-public-document-entry Project and local settings ignore OTEL export, endpoint and content-capture variables such as telemetry enablement and OTEL_LOG_*.
cap_worktree_session_project_skills_load Worktree 会话加载主仓库项目技能 official-public-document-entry Project skills from the main repository load in --worktree sessions when .claude/skills is untracked.
cap_resumed_subagent_mcp_definitions_not_rerendered 恢复后的子代理不重复渲染 MCP 工具定义 official-public-document-entry Resumed subagents and teammates keep loaded MCP tool definitions to preserve prompt caching.
cap_plugin_install_newer_version_update_hint 已安装插件提示市场新版本与更新命令 official-public-document-entry claude plugin install on an installed plugin reports a newer marketplace version and names claude plugin update.
cap_agent_panel_keyboard_cursor_follow 代理面板行点击后键盘光标跟随选中行 official-public-document-entry Mouse click on an agent-panel row leaves the keyboard cursor on the selected row.
cap_agent_panel_escape_deselects_row Esc 在代理面板取消选中行而非中断运行回合 official-public-document-entry Esc deselects the selected agent-panel row instead of interrupting the running turn.
cap_dialog_list_fullscreen_paging_keys 全屏对话框列表支持 PgUp/PgDn 翻页 official-public-document-entry Dialog list such as /skills responds to PgUp and PgDn in fullscreen mode.
cap_heapdump_native_js_classification /heapdump 摘要区分 JS 堆快照与原生内存 official-public-document-entry Heapdump summary no longer reports native memory when memory resides in the JS heap snapshot.
cap_bash_edit_diff_snapshot_cleanup Bash edit-diff 临时快照目录自动清理 official-public-document-entry Abandoned snapshot directories delete immediately; remaining directories delete on Claude Code exit.
cap_workflow_list_run_pointer_and_stop_fix /workflows 列表新运行时指针与停止动作跟随目标 official-public-document-entry A new run while the list open no longer moves the pointer or stops another run.
cap_tabbed_dialog_no_color_tab_focus_highlight 无颜色模式下标签对话框保留标签焦点高亮 official-public-document-entry Selected tab in /config, /plugin, /permissions shows focus highlight while the tab bar has focus with NO_COLOR.
cap_plugin_installed_list_mouse_wheel_scope /plugin 已安装列表鼠标滚轮作用于列表本身 official-public-document-entry Mouse wheel over the Installed list scrolls the list rather than the pane behind it.
cap_list_hover_highlight_after_filter 列表悬停高亮在滚动或过滤后清除 official-public-document-entry Hover highlight no longer lingers on a row after scroll or filter moves the mouse away.
cap_narrow_list_row_ellipsis_wrap 窄终端长列表行截断为省略号而非换行 official-public-document-entry Long rows such as the /remote-control menu wrap onto one line with ellipsis in narrow terminals.
cap_hook_mcp_detail_narrow_value_wrap /hooks 与 /mcp 详情窄终端长值不覆盖下一行 official-public-document-entry Detail views keep a long value on its row instead of printing over the next row in narrow terminals.
cap_list_screen_reader_number_selection 列表状态选项支持屏幕阅读器数字选择 official-public-document-entry Skill state options in /plugin are answerable by typing a number in screen-reader mode.
cap_windows_tmpdir_bash_permission Windows Bash 写入 TMPDIR 不再权限拒绝 official-public-document-entry Windows Bash commands writing to $TMPDIR succeed without Permission denied.
cap_windows_session_backup_exe_race Windows 并发会话不互删 claude.exe 备份 official-public-document-entry A race between simultaneous session updates no longer deletes another session claude.exe backup.
cap_startup_policy_fetch_no_retry 托管设置与策略获取不对注定失败请求重试 official-public-document-entry Managed settings and policy fetches skip requests that can never succeed.
cap_startup_nonblocking_git_telemetry_model_checks 启动首帧前不阻塞读取 Git、遥测与模型升级检查 official-public-document-entry Git reads, startup telemetry and Bedrock/Vertex model-upgrade checks do not run before the first frame.
cap_resumed_file_cache_matches_read_state 长会话恢复文件缓存匹配读取时状态 official-public-document-entry Restored file cache matches files as they were read to improve resume time.
cap_compacted_long_session_resume_speed 压缩超长会话恢复速度改善 official-public-document-entry Compacted very long sessions resume faster, especially through Agent SDK and Claude Desktop.
cap_large_first_prompt_summary_recovery 超大首提示词单独摘要以恢复超长提示会话 official-public-document-entry A very large first prompt is summarized on its own instead of omitted from the summary.
cap_auto_mode_prompt_cache_reused_after_resume 新进程恢复会话后自动模式复用提示缓存 official-public-document-entry The permission classifier reuses its earlier prompt cache after a session resume in a new process.
cap_auto_mode_denial_outcome_scope 自动模式拒绝覆盖结果而非仅原命令 official-public-document-entry Denial message treats the denial as covering the outcome, not only the exact command.
cap_dangerous_rm_variable_target_check 危险 rm 检查覆盖变量派生目录与反斜杠目标 official-public-document-entry Dangerous-rm flags a shell variable followed by a top-level directory, cwd-derived variable, or backslash-only target.
cap_macos_local_binding_sandbox_guidance macOS 本地开发服务器端口绑定失败指向沙箱网络配置 official-public-document-entry Sandbox guidance points to sandbox.network.allowLocalBinding when a local dev server cannot bind a port.
cap_agents_json_file_and_empty_prompt --agents 接受 JSON 文件路径并允许空 prompt official-public-document-entry --agents accepts a JSON file path with -p and allows an empty prompt.
cap_batch_worktree_hook_support /batch 在 WorktreeCreate Hook 提供工作树时运行 official-public-document-entry /batch runs where a WorktreeCreate hook provides agent worktrees, not only inside a git repository.
cap_plugin_hook_root_quote_validation_warning 插件 Hook 未引用 CLAUDE_PLUGIN_ROOT 时校验告警 official-public-document-entry plugin validate warns when a shell-form hook leaves CLAUDE_PLUGIN_ROOT unquoted for paths with spaces.
cap_deep_research_scope_required_fields /deep-research 长研究简报移除未用必填字段 official-public-document-entry The scope step output removes unused required fields to improve long-research reliability.
cap_artifact_design_plain_prose_skill 制品页面设计技能要求平实直接文字 official-public-document-entry The bundled artifact-design skill asks Claude for plain, direct prose in published artifact pages.
cap_large_artifact_compressed_upload 慢连接下大页面制品压缩上传 official-public-document-entry Large artifact page uploads are sent compressed on slow connections.
cap_claude_md_startup_notice_instruction_file_count CLAUDE.md 启动通知合并统计指令文件与 @-imports official-public-document-entry The large CLAUDE.md notice counts instruction files together to catch many mid-sized files and imports.
cap_debug_env_variable_ignored_source_naming 调试日志标注被启动环境覆盖忽略的设置 env 变量 official-public-document-entry Debug logs name settings env variables ignored because the launch environment already sets them.
cap_tabbed_dialog_keyboard_focus_transfer 标签对话框键盘焦点在标签行与内容间转移 official-public-document-entry Up/down move focus between the tab row and content; a list responds only while focused.
cap_help_sandbox_tab_list_key_navigation /help 与 /sandbox 标签列表内方向键切换 official-public-document-entry Left/right and Tab switch tabs from inside a list; an empty custom commands tab does not trap keys.
cap_standard_dialog_frame_prompts 安装/桌面/权限/插件提示使用标准对话框框架 official-public-document-entry Install-github-app, desktop, auto-mode prompts and plugin marketplace/command prompts use the standard dialog frame with key hints; Ctrl+C/D cancels on the second press.
cap_workflow_mcp_list_paging_and_mouse /workflows 与 /mcp 列表支持翻页、j/k、鼠标与停止动作 official-public-document-entry Lists page with PgUp/PgDn, Home/End, j/k and mouse; arrows follow select rebinds; x stops a workflow run.
cap_plugin_detail_menu_home_end_click 插件详情与远程控制菜单支持 Home/End 与点击 official-public-document-entry Plugin/marketplace details and the connected remote-control menu support Home/End and row click.
cap_background_workflow_row_progress_fields 后台工作流行展示名称、进度、代理数、耗时与 token official-public-document-entry The background workflow row shows name, progress bar, agent count on wide terminals, elapsed time, total tokens and large-workflow warning.
cap_plugin_installed_list_column_alignment /plugin 已安装列表按状态、名称、类型、详情对齐 official-public-document-entry Installed list rows line up in columns across every section.
cap_skills_list_name_onoff_single_line /skills 列表名称在前、开关单列、窄终端单行 official-public-document-entry Each row leads with the skill name; check/circle shows on/off; it stays one line in narrow terminals.
team_idle_row_collapse 空闲队友行折叠:超过三个空闲代理合并为 N idle agents 行 official-public-document-entry 空闲队友面板在超过三个空闲代理时,将多余行折叠为一条 N idle agents 汇总行;选中可展开,Esc 可折叠;工作中、失败中或正在查看的队友保留独立行。
feat_compaction_spinner_token_timer 压缩进度条:压缩开始计时并流式统计摘要 token official-document-derived 压缩(compaction)进度提示在压缩开始时启动计时,并随摘要 token 流式计数;替代旧的百分比进度条。
feat_artifact_db_ordered_page_view_level Artifact 数据库有序分页查询与查看层级(as_level view) official-document-derived Artifact 数据库有序查询返回完整页时标明分页状态及后续读取方式;写入结果区分查看者私有 data/users/ 子树访问,并补充 view 层级。
fix_subagent_resume_mcp_definition_prompt_cache 已恢复子代理/队友不再重复渲染 MCP 工具定义以保护提示缓存 official-public-changelog-entry 恢复后的子代理与队友不再重新渲染此前已加载的 MCP 工具定义,避免重复定义打断对应代理的提示缓存。
fix_headless_resume_cost_usage_totals 无头恢复会话退出时保存成本与用量累计 official-public-changelog-entry 无头恢复(claude -p --resume、SDK、VS Code 扩展窗口重载)不再把成本和用量清零;会话退出时保存累计总量。
fix_cloud_remote_env_only_newest_20 云会话 /remote-env 读取账号环境数量限制修复 official-public-changelog-entry 修复云会话创建和 /remote-env 只读取账号最新 20 个环境的问题。
fix_interrupted_reply_duplicate_message 新消息打断回复时避免重复发送同一条回复 official-public-changelog-entry 修复 Claude 在回复中途被新消息打断后,偶尔重复发送同一条回复的问题。
cap_workflow_per_run_concurrent_agent_limit Workflow 工具单次运行并发代理上限配置 CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS official-public-changelog-entry CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS(1–256)用于提高 Workflow 工具单次运行的并发代理数量上限,适配推理密集型扇出。
feat_worktree_hard_link_checkout_refuse Worktree 拒绝符号链接目录或硬链接 Git 布局检出 official-public-changelog-entry 新建 worktree 时拒绝 .git 目录为链接、或包含硬链接的 Git 目录布局,例如 git-new-workdir 与 cp -al 复制;普通 clone 作为替代。
fix_ide_model_picker_selection_apply IDE 模型选择器或启动后 applyFlagSettings 模型选择生效修复 official-public-changelog-entry 修复 IDE 模型选择器改动、或启动后经 applyFlagSettings 改变模型时,模型选择未实际应用的问题。
fix_nested_teammate_via_agent_name_param Agent 工具 name 参数误派生嵌套队友修复 official-public-changelog-entry 修复队友会话通过 Agent 工具 name 参数意外再派生嵌套队友的问题;与仅主会话可派生队友的团队边界一致。
fix_workflow_background_shell_mcp_cleanup Workflow 回交后后台 Shell 与 MCP 服务器清理 official-public-documentation Workflow 代理回交报告后,后台 Shell 和 MCP 服务器有时仍继续运行;该修复覆盖报告交接后的资源清理。
fix_code_mode_background_command_empty_output_notice 后台慢命令空输出与时限通知 official-public-documentation 慢命令转入后台后,脚本输出为空时代理未收到提示;claude -p 与 Agent SDK 后台命令时限通知也在修复范围内。
feat_disable_response_compression_setting CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION 响应压缩开关 official-public-documentation 代理截断压缩响应的网关后,可设置该变量请求未压缩模型响应;当前不建议用于自托管 Runner 或 Remote Control。
feat_send_now_key Send-Now 快捷键:打断当前回合并发送排队消息 official-public-changelog-entry ctrl+enter 或 ctrl+x ctrl+s 中断当前回合并一次性发送全部排队消息;已发送与排队消息在模型接收前以灰色展示。
settings_precedence_stack 设置优先级栈:托管 > CLI/环境 > 项目本地 > 共享项目 > 用户设置 official-public-document-entry 记录 Claude Code 设置来源的覆盖顺序:托管设置、命令行/环境覆盖、项目本地、共享项目与用户设置;有序列表类配置整体取自最高优先级来源,不跨来源合并。
team_task_dependency 团队任务依赖:完成任务自动解除下游阻塞 official-public-document-entry 记录共享任务列表中的依赖关系与自动解锁规则;任务状态包括 pending、in progress、completed,认领使用文件锁避免并发竞争。
checkpoint_snapshot_retention_30d 检查点文件快照默认约 30 天保留期;过期快照缺失可导致还原失败 official-public-document-entry 记录检查点快照的保留边界:最近 100 个检查点保留文件快照,旧快照随会话最后保存时间默认约 30 天清理;缺失快照的检查点只能还原对话或提示失败。
fix_auth_login_save_failure_exit_code auth login 保存失败退出码与诊断 official-public-documentation-entry claude auth login 在 claude.ai 登录无法保存时退出码为 1,并提示检查残留锁文件或磁盘已满;不把成功误报为 Login successful。
feat_context_fullscreen_shorter_output /context 全屏输出精简与单位图例 official-public-documentation-entry /context 在全屏模式缩短输出,减少短窗口滚动;图例只标注一次单位。
improvement_usage_memory_many_sessions /usage 在多历史会话场景的峰值内存与速度改进 official-public-documentation-entry 针对近期会话较多的机器,优化 /usage 峰值内存占用和速度;属于性能改进条目,不记录内部算法实现。
cap_voice_dictation 语音口述输入 Tap-mode Voice Dictation official-public-documentation-entry 终端/IDE 语音口述输入;麦克风空闲超时、发送提示词停止、面板遮挡或音频中断时停止。官方 changelog 记录行为边界,不收录内部识别模型。
entry_2_1_289_gateway_telemetry_google_oauth Gateway telemetry Google Cloud OTLP export destination official-public-document-entry Claude apps gateway telemetry.forward_to 支持 auth: { google: {} },使用 Google Cloud 凭证直接导出到 Google Cloud OTLP 端点;仅记录公开网关配置形态。
entry_2_1_289_mcp_alwaysload_defer_tool_search MCP alwaysLoad false defers tool definitions behind tool search official-public-document-entry MCP 服务器或工具设置 _meta anthropic/alwaysLoad 为 false 时,工具定义推迟到工具搜索阶段加载;用于降低启动上下文占用。
entry_2_1_332_vscode_diff_close_unapplied_notification VS Code proposed diff close leaves edit unapplied notification official-document-derived-entry 关闭提议 diff 且编辑未应用时,VS Code 增加更多场景通知;已答复 diff 的拆分副本不再重复推送 diff 通知。
entry_2_1_332_vscode_panel_open_long_session_and_diagnostics_speed VS Code panel open, long session stream and large-workspace diagnostics speed official-document-derived-entry VS Code 改进 Claude 面板打开速度、长会话流式回复性能,以及超大工作区诊断读取速度。
fix_vscode_diff_notification_split_copy_stale VS Code:关闭建议差异导致编辑未应用时补提示;已应答差异的分屏副本不再重复差异通知 changelog-derived 官方 changelog 2.1.332:关闭建议 diff 留下未应用编辑时给出通知;已应答 diff 的分屏副本上停止重复 diff 通知。
improvement_computer_use_setup_screen_recording_resume computer use 安装:屏幕录制权限提示可重启 Claude Code 并恢复对话 changelog-derived 官方 changelog 2.1.332:computer use 设置流程中,屏幕录制权限提示可重启 Claude Code,并在重启后恢复聊天对话。
improvement_compressed_proxy_zlib_plain_error 代理/网关截断压缩响应时:回合以普通文案结束,不再暴露原始 ZlibError changelog-derived 官方 changelog 2.1.332:代理或网关切断、损坏压缩响应时,回合以普通文字错误结束,不再输出原始 “ZlibError fetching” 文本。
fix_local_mcp_server_stdout_freeze_ctrlc 本地 stdio MCP 服务器泛滥标准输出导致终端冻结:Ctrl+C 可忽略响应的冻结修复 changelog-derived 官方 changelog 2.1.332:本地 MCP 服务器向标准输出大量刷屏时,终端冻结且忽略 Ctrl+C;该问题修复为不再出现此冻结。
fix_prompt_at_long_unbroken_string_hang 提示词或管道输入中 @ 后超长无分隔字符串(如内嵌字体的压缩 CSS)导致挂起修复 changelog-derived 官方 changelog 2.1.332:提示词或管道输入中 @ 跟随超长无空白字符串(例如内嵌字体的 minified CSS)曾造成长时间挂起;该解析问题已修复。
fix_mcp_sse_stream_reconnect_tool_hang SSE MCP 服务器事件流断开后重连端点异常:未手动重连前工具调用挂起或拒绝修复 changelog-derived 官方 changelog 2.1.332:SSE MCP 服务器事件流被切断、换用新端点或未恢复后,曾挂起或拒绝所有工具调用,直到手动重连;该连接恢复问题已修复。
fix_remote_control_usage_limit_reset_report Remote Control:用量限额重置后仍被报为已达上限的状态修复 changelog-derived 官方 changelog 2.1.332:用量限额已经重置后,Remote Control、IDE 与 SDK 客户端仍可能报告达到上限;该状态同步问题已修复。
improvement_windows_company_pc_startup_stability Windows 部分公司 PC:启动后无输出退出的稳定性修复 changelog-derived 官方 changelog 2.1.332:在部分公司配发 Windows PC 上,Claude Code 启动后不久可能无输出退出;该稳定性问题已改善。
improvement_computer_use_reduced_context_until_needed computer use:在 Claude 使用前尽量少占上下文 changelog-derived 官方 changelog 2.1.332:computer use 改进为在实际使用前减少上下文占用,避免早期视觉信息过度进入会话上下文。
entry_2_1_332_otel_tool_input_text_length OpenTelemetry tool_input text length recording boundary proprietary-all-rights-reserved OpenTelemetry tool_input records only the length of text sent through SendUserMessage or the Cowork message tool unless OTEL_LOG_ASSISTANT_RESPONSES enables response logging.
entry_2_1_332_voice_dictation_idle_timeout_extended Tap-mode voice dictation extended idle timeout proprietary-all-rights-reserved Tap-mode voice dictation keeps the microphone open until 60 seconds without new words or 10 minutes; unsent draft text is retained and the next tap appends to it.
entry_2_1_332_plugin_marketplace_windows_file_lock_retry Windows plugin marketplace file-lock retry proprietary-all-rights-reserved On Windows, claude plugin marketplace add waits and retries when another program, such as a virus scanner, briefly holds downloaded plugin files.
fix_keybinding_chord_meta_alt_unbind 键位和弦解绑 meta/alt 别名残留首键等待修复 proprietary-all-rights-reserved keybindings.json 中解除和弦绑定时,若按键拼写为 meta 而绑定为 alt(或反向),首个按键仍等待第二键;该残留状态已修复。
fix_mcp_builtin_connection_telemetry_unused 未启用内置 MCP 服务器不再上报连接失败事件 proprietary-all-rights-reserved 账户未开启的内置服务器在每次启动时被上报为失败 mcp_server_connection 事件;修复后遥测只反映实际启用的连接。
feat_model_footer_different_model_flag 模型切换状态页脚提示 proprietary-all-rights-reserved 模型切换状态页脚提示:会话处于另一模型时保留页脚,直到用 /model 选择模型
fix_stats_local_timezone_day_boundary /stats 活动按本地时区日期统计,而非 UTC 日期日界 proprietary-all-rights-reserved /stats 活动按本地时区日期统计,而非 UTC 日期日界
fix_macos_keychain_readable_not_save_signout_repeat macOS 钥匙串可读但不可写时,会话到期停止并说明原因,其他会话保持登录 proprietary-all-rights-reserved macOS 钥匙串可读但不可写时,会话到期停止并说明原因,其他会话保持登录
fix_autocompact_pct_override_runtime_stale CLAUDE_AUTOCOMPACT_PCT_OVERRIDE 从 settings.json proprietary-all-rights-reserved CLAUDE_AUTOCOMPACT_PCT_OVERRIDE 从 settings.json 移除后,运行中会话不再继续沿用
fix_terminal_setup_keybindings_block_comment_corruption /terminal-setup 不再破坏 VS Code settings 或 keybindi proprietary-all-rights-reserved /terminal-setup 不再破坏 VS Code settings 或 keybindings 块注释;未闭合字符串下保留 Shift+Enter 绑定
fix_remote_control_off_explanation_missing_list 云会话或其他电脑未列出时,跨会话消息说明 Remote Control 已关闭 proprietary-all-rights-reserved 云会话或其他电脑未列出时,跨会话消息说明 Remote Control 已关闭
fix_stream_idle_timeout_gateway_custom_base_url CLAUDE_STREAM_IDLE_TIMEOUT_MS 在网关、自定义 base URL 和 proprietary-all-rights-reserved CLAUDE_STREAM_IDLE_TIMEOUT_MS 在网关、自定义 base URL 和云提供商上延长 5 分钟连接限制
fix_oauth_refresh_lock_temp_files_pileup 配置目录不再堆积 .oauth_refresh.lock.owner.tmp.* 残留临时文件 proprietary-all-rights-reserved 配置目录不再堆积 .oauth_refresh.lock.owner.tmp.* 残留临时文件
fix_aws_gcp_credentials_without_home_env 无 HOME 环境变量启动时,AWS credential_process 辅助与 Google proprietary-all-rights-reserved 无 HOME 环境变量启动时,AWS credential_process 辅助与 Google Cloud 默认凭证仍可读取
fix_transcript_local_gc_concurrent_rewrite_message_loss 另一进程重写转录文件期间裁剪本地转录 GC,不再丢失已保存消息 proprietary-all-rights-reserved 另一进程重写转录文件期间裁剪本地转录 GC,不再丢失已保存消息
fix_attach_agents_move_to_background_key claude attach 与 claude agents 会话中,移到后台按键生效;Ctrl+ proprietary-all-rights-reserved claude attach 与 claude agents 会话中,移到后台按键生效;Ctrl+B d 需在 800 ms 内按下 d
doc_subagent_mcp_servers_field Subagent mcpServers frontmatter field official-public-documentation-entry 子代理 frontmatter 的 mcpServers 字段可引用已配置服务器或内联 MCP 定义;内联服务器在子代理启动时连接,最后一个使用代理结束后断开;插件子代理忽略该字段。边界:只记录配置作用域,不收录内部 MCP 实现。
doc_subagent_concurrent_limit Concurrent subagent limit and CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS official-public-documentation-entry 默认会话同时运行 20 个子代理;达到上限后新的 Agent 派生失败并报 Concurrent subagent limit reached,数量回落到阈值以下才可再派生;环境变量可设为正整数;ultracode 会话豁免该限制。
doc_workflow_capability_self_query 能力:查询自身功能与文档限制 proprietary-all-rights-reserved 代理可回答自身特性与限制;答案查阅当前 Claude Code 公开文档,不局限于本机运行版本。
doc_team_subagent_definition_teammate Agent Teams:复用子代理定义作为队友角色 proprietary-all-rights-reserved 启动队友时可引用项目、用户、托管或插件作用域的子代理类型;同一角色定义可同时作为委派子代理和 Agent Teams 队友复用。
doc_team_size_token_coordination_boundary Agent Teams:团队规模受 token 成本与协调开销约束 proprietary-all-rights-reserved 队友数量无硬性上限,但每个队友有独立上下文窗口并独立消耗 token;队友越多,任务通信与协调开销越高,需按任务粒度选择规模。
doc_agent_team_compare_subagents Agent Teams 与 Subagents 并行模型适用边界比较 official-public-documentation-entry 两者都可并行工作:Subagents 由主代理派生并回报结果;Agent Teams 通过共享任务列表协调队友。无团队的分离会话消息协作应走跨会话消息机制。
doc_agent_team_context_communication Agent Teams 队友独立上下文窗口与项目上下文通信范围 official-public-documentation-entry 每个队友拥有独立上下文窗口;派生时加载普通会话同等的 CLAUDE.md、MCP 服务器与技能,并接收 Lead 派生提示;Lead 会话历史不自动带入队友上下文。
doc_agent_team_token_usage_boundary Agent Teams token 用量随活跃队友增长与成本权衡边界 official-public-documentation-entry 团队 token 用量随活跃队友数和各自上下文窗口增长;研究、评审与新功能通常值得额外成本,例程任务使用单会话更经济;进程内队友请求另有上下文计量边界。
doc_subagent_scope_config 子代理定义文件作用域与优先级位置配置 official-public-documentation-entry 子代理定义按托管设置、--agents CLI 标志、项目 .claude/agents/ 等位置确定作用域;同名定义按更高优先级位置覆盖。
doc_subagent_preload_skills 子代理启动时 skills 字段预加载技能内容 official-public-documentation-entry skills 字段在子代理启动时把指定技能内容注入上下文,使子代理无需执行期自行发现和加载技能;完整技能内容注入占用子代理上下文。
doc_permission_prompt_comment 权限提示单条批准/拒绝答复附加评论字段 official-public-documentation-entry 多数 Bash、PowerShell、文件与 MCP 权限提示可在 Yes/No 上按 Tab 打开评论字段;WebFetch 与浏览器提示不提供该字段,会话永久允许或保存规则选项也不接收评论。
doc_subagent_extended_thinking_inheritance 子代理继承主会话 Extended thinking 配置 configuration-documentation 官方子代理文档:子代理继承主对话的 extended thinking 配置;没有按单个子代理单独设置 thinking 的字段。
doc_subagent_api_error_partial_output 子代理 API 错误与部分输出回交 configuration-documentation 子代理因限流、过载或服务器错误结束时,把失败报告回交主会话;前台子代理若已产出文本,Agent 工具返回截断部分输出并说明任务未完成。
doc_subagent_nested_model_inheritance 嵌套子代理模型默认继承父级 configuration-documentation 嵌套子代理默认运行在派生它的父级子代理模型上;要切换模型,需在子代理 model 字段或调用参数中显式指定。
doc_team_task_assign_claim_dependency 团队任务清单:分配、领取与依赖阻塞 configuration-documentation 共享任务列表含 pending、in progress、completed 状态;任务可依赖其他任务,依赖未完成时显示 blocked;队友不自行领取阻塞任务,但主会话或 team lead 仍可分配。
doc_settings_scope_files_comparison 设置文件作用域比较(机器/队友/云会话/项目) configuration-documentation 不同设置文件按当前机器、队友机器、云会话与项目目录确定可达范围;从对应目录启动 Claude Code 时,用户、项目共享、项目本地与托管文件分别作用于不同文件夹集合。
doc_settings_broken_headless_run_skip 无头 -p 运行损坏设置跳过与 stderr 报告 configuration-documentation -p 运行无对话框;除托管设置文档无法解析外,损坏的用户、项目或本地设置文件或其损坏值会被跳过,其余配置继续加载;默认 text 输出在 stderr 列出未加载内容。
doc_settings_list_keys_merge_not_override 同类列表键合并而非整体覆盖 configuration-documentation permissions.allow 等列表键在多个设置文件中出现时合并条目,各文件可追加规则而不移除其他文件条目;fallbackModel 等模型列表或模型条目按各自有序链或合并规则处理。
doc_notebook_replace_cell_output_cleared NotebookEdit 替换代码单元清除保存输出 official-public-documentation NotebookEdit 替换代码单元源码后,执行计数与已保存输出被清除;需要重新运行该单元及其依赖函数或变量所在单元。
cli_replay_user_messages --replay-user-messages 用户输入回执重放开关 configuration-documentation 要求 stdin 与 stdout 均为 stream-json;把来自 stdin 的用户消息重新发到 stdout 作为接收确认;需配合 --input-format/--output-format stream-json,不改变权限或模型调用。
doc_session_script_structured_interfaces 脚本读取会话结构化结果、transcript 路径与事件流接口 official-public-documentation-entry 非交互 -p 配合 JSON/stream-json 获取结果、会话 ID、用量与成本;可 --resume 现有会话发送后续提示;Hook 与状态行命令接收 transcript_path;Agent SDK 按消息流嵌入应用。
doc_subagent_model_allowlist_fallback 子代理模型被 availableModels 允许列表阻止时的回退顺序 official-public-documentation-entry 被阻止的非 web-fetch 子代理模型依次回退:家族别名下最新允许版本(支持替换的提供商)、CLAUDE_CODE_SUBAGENT_MODEL、主会话或派生父级模型;交互顶层子代理会提示请求模型与替换结果。
doc_tool_glob_grep_platform_availability Glob/Grep 在平台默认工具集中的可用性条件 official-public-documentation-entry Windows 默认包含 Glob;macOS/Linux/WSL 默认由 Bash 内 bfs/ugrep 替代;可由 --tools/--allowedTools、移除 Bash 的 deny/限制、子代理 tools 字段或其他条件恢复对应 Glob/Grep 工具。
doc_tool_grep_ripgrep_modes Grep 基于 ripgrep 语法与三种输出模式 official-public-documentation-entry Grep 使用 ripgrep 正则语法而非 POSIX grep;非法正则返回 ripgrep 诊断;files_with_matches 仅返回路径(默认),content 返回匹配行与行号,count 返回每文件与总匹配数。
doc_tool_background_command_time_limit 无人值守会话后台命令时限与超时提升环境变量 official-public-documentation-entry -p、SDK、CI 或云会话等无人值守会话后台 Bash/PowerShell 有时限:后台启动默认 30 分钟且上限 2 小时,前台转入后台从转入起 30 分钟;文本提示 -p 默认 10 分钟;BASH_DEFAULT_TIMEOUT_MS 与 BASH_MAX_TIMEOUT_MS 只提高不缩短限制。
doc_tool_foreground_auto_background_directory_cwd 前台命令超时自动转后台与目录变更不继承规则 official-public-documentation-entry 前台命令超时未完成时转入后台(sleep 开头除外);禁用后台任务或 bare mode 可改为直接停止;转入后台命令内的 cd、pushd、popd、chdir 不影响后续命令的会话工作目录。
doc_mcp_oauth_preconfigured_client MCP OAuth pre-configured client credentials (clientId / clientSecret) proprietary-all-rights-reserved 部分 MCP Server 不支持动态客户端注册,需要预先在服务端注册 OAuth 应用;Claude Code 通过 oauth.clientId、callbackPort 与 --client-secret 配置预注册凭证。
doc_mcp_oauth_metadata_override MCP OAuth authorization server metadata override (authServerMetadataUrl) proprietary-all-rights-reserved 当标准 OAuth 元数据端点报错或需要路由到指定授权服务器时,可在 MCP Server 的 oauth 配置中设置 authServerMetadataUrl,绕过默认发现链。
doc_session_websearch_call_limit 会话 WebSearch 调用限额与子代理共享计数 proprietary-all-rights-reserved 交互式终端会话限制 200 次 WebSearch 调用;主对话与子代理(含并行研究 fan-out)搜索计入同一限额,超限搜索在对话中显示为空调用。
doc_tool_availability_check_runtime 运行会话工具集查看方式:对话摘要与 /mcp 精确名称 proprietary-all-rights-reserved 运行中会话可直接询问已加载工具获得对话式摘要;需要精确 MCP 工具名称时运行 /mcp;服务器侧工具与本地 Claude Code 工具分开建模。
team_config_file_runtime_state Team config runtime state file(config.json 成员、session ID、tmux pane ID) official-public-documentation 团队配置文件保存运行态成员与会话/面板标识;官方说明该文件不应手工编辑,状态更新会覆盖改动。
team_task_list_disk_directory Team task list on-disk directory(~/.claude/tasks/{team-name}/) official-public-documentation 任务列表本地目录在会话结束后仍保留;与会话派生的团队配置目录分开持久化。
team_task_dependency_auto_unblock Team task dependency automatic downstream unblock official-public-documentation 队友完成被依赖任务后,依赖任务自动解除阻塞,无需 Lead 手工干预。
settings_scope_user_machine_only User settings machine-only scope(~/.claude/settings.json) official-public-documentation 用户级设置只作用于当前机器上的项目,不进入队友机器或云会话。
settings_shared_project_version_control_scope Shared project settings version-control reachability official-public-documentation 共享项目设置文件提交到版本控制后才到达队友克隆与云会话;未提交时仅限本机当前项目。
settings_local_personal_repository_exclusion Project local settings personal file git exclusion official-public-documentation 项目本地设置文件只服务本项目当前用户;首次写入时被加入全局 Git 排除,避免个人配置进入提交。
team_teammate_task_and_cron_tool_retention Agent-team teammate retained task and cron tools official-public-documentation 队友在团队协作中额外保留任务工具与定时工具;任务工具继承边界区分普通子代理与队友。
cli_flag_append_system_prompt --append-system-prompt proprietary-cli-flag-documented-publicly 在默认系统提示末尾追加自定义文本。
cli_flag_append_system_prompt_file --append-system-prompt-file proprietary-cli-flag-documented-publicly 从文件加载额外系统提示文本并追加到默认系统提示。
cli_flag_correlation_id --correlation-id proprietary-cli-flag-documented-publicly 配合 --environment 把 ID 传给 spawn-runner Hook,作为 CLAUDE_RUNNER_CORRELATION_ID。
cli_flag_include_partial_messages --include-partial-messages proprietary-cli-flag-documented-publicly 在输出中包含部分流式事件;需要 --print 与 --output-format stream-json。
cli_flag_replay_user_messages --replay-user-messages proprietary-cli-flag-documented-publicly 把 stdin 用户消息重新发到 stdout 作为确认;要求输入与输出格式均为 stream-json。
cli_flag_setting_sources --setting-sources proprietary-cli-flag-documented-publicly 逗号分隔的设置来源加载过滤清单,可选 user、project、local;派生子会话继承该列表。
cli_flag_system_prompt --system-prompt proprietary-cli-flag-documented-publicly 用自定义提示替换默认系统提示。
cli_flag_system_prompt_file --system-prompt-file proprietary-cli-flag-documented-publicly 从文件读取系统提示并替换默认系统提示。
cli_flag_system_prompt_snapshot --system-prompt-snapshot proprietary-cli-flag-documented-publicly 关闭快照复用后,按每次请求重建系统提示;适用于迭代 --append-system-prompt 等场景。
cli_flag_ref --ref proprietary-cli-flag-documented-publicly 配合 --environment,为新会话检出指定命名 ref。
cli_flag_metadata --metadata proprietary-cli-flag-documented-publicly 配合 --environment 重复标记新会话标签;标签不得放入秘密值。
cli_flag_input_format --input-format proprietary-cli-flag-documented-publicly 指定 print 模式输入格式,选项为 text 或 stream-json。
cli_flag_dry_run --dry-run proprietary-cli-flag-documented-publicly 导入其他编码代理配置前预览变更;导入命令也接受 --yes 跳过确认。
cli_flag_agents --agents proprietary-cli-flag-documented-publicly 通过 JSON 动态定义自定义子代理;print 模式可读取 JSON 文件并在启动时校验。
cli_flag_append_subagent_prompt --append-subagent-system-prompt proprietary-cli-flag-documented-publicly 向每个嵌套子代理系统提示末尾追加自定义文本;fork 子代理复用会话自身提示。
cli_flag_append_subagent_prompt_file --append-subagent-system-prompt-file proprietary-cli-flag-documented-publicly 从文件加载子代理系统提示追加文本;与 --append-subagent-system-prompt 互为长文本替代。
cli_flag_autocompact --autocompact proprietary-cli-flag-documented-publicly 不改变已保存设置,覆盖本会话自动压缩窗口;取值与 /autocompact 的值形式一致。
cli_flag_exclude_dynamic_prompt_sections --exclude-dynamic-system-prompt-sections proprietary-cli-flag-documented-publicly 把自动记忆位置等按用户上下文从系统提示移到首条用户消息,改善跨用户与机器的提示缓存复用。
cli_flag_hook_label --hook-label proprietary-cli-flag-documented-publicly 配合 --environment,为编排器的 Hook 重复添加标签;标签不得包含秘密。
doc_self_hosted_runner_idle_release_policy Runner 空闲会话释放与待机退出策略 official-public-documentation-entry 官方自托管参考:release-idle-session-min 在回合结束或会话等待用户后释放空闲槽位;exit-if-unused-min 让未接到任务的待机 Runner 退出;kill-session-after-min 作为卡死会话的最长墙钟上限。
doc_self_hosted_mcp_first_turn_wait 自托管会话首轮等待 MCP Server 就绪配置 official-public-documentation-entry 官方自托管配置文档:会话可配置在首个回合前等待 MCP 服务器完成连接;与默认不阻塞 alwaysLoad:false 服务器的云会话行为分开建模。
entry_2_1_331_doctor_api_connectivity_section doctor API connectivity section: reachability, HTTP status or error changelog-derived 官方 changelog 2.1.331:claude doctor 增加 API 连通性分区;报告 API 是否可达,给出 HTTP 状态、错误原因,或说明为何未测试。条目只记录诊断可见性,不记录凭证或内部网络拓扑。
entry_2_1_332_startup_mcp_many_tools_memory_improvement Startup memory improvement for MCP servers listing many tools changelog-derived 官方 changelog 2.1.332:启动阶段面对列出大量工具的 MCP 服务器时内存占用得到改进;与首轮等待 MCP 就绪的配置分开建模。
mcp_resource_uri_mention MCP 资源 @ 提及格式:@server:protocol://resource/path mcp-integration-tool 连接的 MCP Server 资源可在提示中用 @ 提及;具体资源格式为 @server:protocol://resource/path,例如 @github:issue://123;claude -p 运行时资源提及保持纯文本。
mcp_resource_multiple_references 单条提示引用多个 MCP 资源 mcp-integration-tool 一条提示可以同时引用多个 MCP 资源,例如比较 @postgres:schema://users 与 @docs:file://database/user-model;资源列表与读取仍由既有 MCP 资源工具处理。
mcp_prompt_command_entry MCP Prompt 暴露为 /servername:promptname 命令 mcp-integration-tool MCP Server 暴露的 Prompt 在命令列表中显示为 /servername:promptname (MCP);也可输入 /mcp__servername__promptname 执行;保留服务器名 anthropic-skills 的 Prompt 不显示。
doc_subagent_frontmatter_skip_rules Subagent files skipped for invalid frontmatter proprietary-all-rights-reserved agents 目录文件缺 name、首行非 ---、name 非法或超长、缺 description 或 YAML 解析失败时跳过并写调试日志;插件子代理同类规则。
doc_subagent_effort_missing_field_fallback Subagent effort fallback when no effort field or parameter proprietary-all-rights-reserved 无 effort 字段或参数时依次取环境变量、派生子代理或当前回合级别、子代理环境变量;主会话模型再取会话级别,其他模型不沿用该级别。
doc_bash_cwd_env_persistence Bash cwd carry-over and non-persistent environment variables proprietary-all-rights-reserved 前台退出 0 且结束于项目或附加目录时 cwd 可延续;环境变量不跨命令保留;子代理会话不继承工作目录变更。
doc_bash_foreground_timeout_env BASH_DEFAULT_TIMEOUT_MS and BASH_MAX_TIMEOUT_MS foreground ceiling proprietary-all-rights-reserved 前台命令默认超时与上限由两个环境变量控制;Claude 按需传 timeout,用户不设置单命令超时;后台命令另有独立时限。
doc_bash_output_valid_failure_windows Bash output valid and failure read-back windows proprietary-all-rights-reserved 有效结果内联约 30,000 字符,失败结果约 10,000 字符;输出超过 5 GB 被杀;落盘文件读回窗口 64 MiB,预览前 2,000 字符。
doc_agent_view_row_summary Agent view 行摘要(Row summaries) official-public-docs-derived 代理视图每一行以摘要展示会话当前任务、状态和是否需要用户输入;摘要来自会话运行状态。
doc_agent_view_pr_status Agent view PR 状态列(Pull request status) official-public-docs-derived 代理视图可展示关联 GitHub PR 状态,便于在多任务面板中区分等待评审、合并或失败的会话。
doc_agent_view_peek_reply Agent view 查看与回复(Peek and reply) official-public-docs-derived 代理视图支持查看会话局部内容并向后台会话发送回复;不要求先附着进入完整会话。
doc_agent_view_filter_sessions Agent view 会话筛选(Filter sessions) official-public-docs-derived 代理视图按任务、状态或其他会话属性过滤面板行;筛选只改变展示集合,不改变后台会话。
doc_agent_view_shell_dispatch 从 Shell 派发代理会话(Dispatch from shell) official-public-docs-derived 官方支持从 shell 命令派发新的后台代理会话;派发后的会话进入代理视图或后台会话列表管理。
doc_workflow_input_parameters 工作流输入参数(Pass input to a saved workflow) official-public-docs-derived 保存后的工作流可接收输入参数,把任务对象、范围或文件集合传递给扇出的子代理。
doc_workflow_fanout_cache 工作流扇出提示缓存(Prompt caching in a fan-out) official-public-docs-derived 动态工作流向多个子代理扇出时,公共前缀尽量复用提示缓存;模型切换、上下文压缩等事件可使缓存失效。
doc_chrome_prerequisites Chrome 集成前置条件(Prerequisites) official-public-docs-derived Claude in Chrome 启动浏览器集成前需满足官方列出的账号、组织或扩展安装前提;不满足时浏览器工具不可用。
doc_computer_use_downscaled_screenshots 截图自动降分辨率(Screenshots are downscaled automatically) official-public-docs-derived computer-use 采集的屏幕截图会自动降分辨率;降尺度降低视觉上下文体积,但不等同于关闭屏幕可见性权限。
doc_prompt_cache_layer_ordering 提示缓存层顺序(How the cache is organized) official-public-docs-derived 请求按少变内容优先排序:系统提示、核心指令、工具定义等前缀先于会话变化内容,以提升前缀匹配命中率。
doc_cache_invalidate_model_switch 模型切换使缓存失效(Switching models) official-public-docs-derived 切换模型会使提示缓存重算;即使对话内容相同,不同模型各自维护缓存条目。
doc_cache_invalidate_effort 推理强度切换使缓存失效(Changing effort level) official-public-docs-derived 多数模型的不同 effort 级别拥有各自缓存;会话中途改变强度会导致整轮请求重新计算。
doc_cache_invalidate_mcp MCP 服务器连接/移除使缓存失效 official-public-docs-derived 连接或移除 MCP 服务器会改变工具定义集合,从而使相关提示缓存失效。
doc_cache_invalidate_plugin 插件启用/停用使缓存失效 official-public-docs-derived 在会话中启用或停用插件会改变可用组件与工具集合,触发提示缓存失效。
doc_cache_invalidate_compaction 上下文压缩使缓存失效(Compacting the conversation) official-public-docs-derived 对话压缩会重排或替换上下文内容,原有提示前缀缓存不再直接命中。
doc_cache_preserve_repo_edits 仓库文件编辑保持缓存(Editing files in your repository) official-public-docs-derived 编辑仓库文件通常属于稳定上下文变化,官方列为保持提示缓存的动作;缓存保持不代表文件变更被忽略。
doc_cache_ttl_request_lifetime 缓存 TTL 与请求生命周期(Which TTL each request gets) official-public-docs-derived 每条请求按模型与平台规则获得缓存 TTL;TTL 到期后缓存条目需重新写入,查询命中状态不持久保存为事实。
fix_mid_session_repository_skills_plugins_loading 会话中途加入仓库后加载 Skills、插件与迟到的 CLAUDE.md changelog-derived 云会话与 SDK 会话中会话中途加入的仓库原先可能不加载技能、插件,或在切换目录后才迟到读取 CLAUDE.md;修复后仓库技能、插件与记忆文件随仓库加载流程正确衔接。
improve_remote_session_large_files_stream_disk 远程会话大文件从磁盘流式发送,超限文件按服务端上限拒绝 changelog-derived 云会话与 Remote Control 发送的大文件原先整文件读入内存;改进后从磁盘流式读取,超过大小上限的文件被拒绝并标明服务端限制。
improve_large_mcp_tool_results_memory_session_files 大型 MCP 工具结果降低内存与会话文件体积,超限结果不额外计 token 上传 changelog-derived 针对远超结果上限的 MCP 工具结果,改进后占用更少内存、生成更小会话文件,且不再为结果 token 计数额外上传。
improve_slash_command_prefix_word_match_suggestions 技能或插件命令很多时,斜杠命令按词前缀匹配提升建议响应 changelog-derived 安装大量技能或插件命令时,斜杠命令建议输入响应原先变慢;改进后命令描述按词前缀匹配,保持输入时建议响应。
improve_settings_schema_parts_only_for_configured_files 设置 Schema 只按实际使用的设置文件按需构建部分结构,降低启动时间与内存 changelog-derived 设置 Schema 原先可能整体校验与构建;改进后只构建实际设置文件使用到的部分,改善启动时间和内存占用。
fix_settings_local_hold_back_git_trace2_output Git trace2 输出配置下 settings.local.json allow 规则不再被留在仓库外 changelog-derived 当 Git trace2 输出被配置时,项目本地设置文件中的 allow 规则原先可能被挡在 Git 仓库之外;修复后规则按本地设置作用域正确保留。
improve_mcp_serve_progress_update_every_30_seconds claude mcp serve 运行中的工具调用每 30 秒发送进度更新,避免空闲超时中止长命令 changelog-derived claude mcp serve 下正在运行的工具调用改进后每 30 秒发送一次进度更新;客户端可见命令仍在运行,空闲超时不会中止长时间无输出的命令。
doc_context_subagent_final_summary_context_saving 子代理仅回传最终摘要与少量元数据,主体读取留在子代理上下文 official-doc-derived 子代理可读取所需全部文件;其读取内容不进入主代理上下文,只有最终文本响应连同少量 token 数与时长元数据回传,以此体现上下文节省。
doc_team_task_claim_file_lock 团队任务领取的文件锁与竞态防护 configuration-documentation 共享任务清单中,无 Task 工具的代理通过消息协调领取;队友自行领取下一个未分配且未阻塞任务,领取由文件锁保护,避免多名队友同时领取同一任务产生竞态。
entry_2_1_332_headless_claude_p_memory_use claude -p / headless 运行内存占用改进 official-public-documentation-entry 官方 changelog 2.1.332:非交互 claude -p 运行的内存使用得到改进;条目只记录公开运行路径的内存口径,不推断内部缓存或进程实现。
entry_2_1_332_mcp_tool_description_whole_in_tool_search 工具搜索中完整展示可容纳的长 MCP 工具描述 official-public-documentation-entry 官方 changelog 2.1.332:Code Mode 工具搜索在描述可完整容纳时展示长 MCP 工具描述;截断描述曾可能导致错误调用。边界:只记录展示规则,不改变 MCP 工具定义或权限。
doc_hook_session_start_reload_skills SessionStart Hook 返回 reloadSkills 后重扫技能目录 official-doc-derived SessionStart 钩子可返回 reloadSkills,使同一会话内安装到 ~/.claude/skills/ 或 .claude/skills/ 的技能在首轮提示前被重新扫描;普通技能发现先于 SessionStart 钩子完成,缺少该返回会导致钩子写入的技能暂不可见。
doc_hook_session_start_persist_env_file SessionStart Hook 通过 CLAUDE_ENV_FILE 持久化会话环境变量 official-doc-derived SessionStart 钩子可访问 CLAUDE_ENV_FILE 文件路径,把后续会话 shell 命令所需环境变量写入 export 语句;应使用追加方式保留其他钩子设置的变量。该条目只记录公开环境文件边界,不推断内部进程实现。
doc_team_task_size_unit_deliverable 团队任务粒度:自包含交付单元、每名队友约五到六个任务 official-doc-derived 团队任务过大导致队友长时间无检查点、浪费成本;过小则协调开销超过收益。合适任务是产生函数、测试文件或评审等清晰交付物的自包含单元;Lead 拆出足够任务时,每名队友保留五到六个任务,便于卡住后重新分派。
chan_notification_payload 频道通知载荷:content 事件体与 meta 路由属性 configuration-documentation notifications/claude/channel 的 content 成为 标签正文;meta 记录字符串键值并映射为标签属性,用于聊天 ID、发送者或告警级别等路由上下文。
chan_permission_relay_request_fields 频道权限转发请求字段:request_id、tool_name、description、input_preview configuration-documentation notifications/claude/channel/permission_request 携带请求 ID、工具名、人类可读说明和参数预览;远端答复必须回传匹配的 request_id,Claude Code 只接受对应开放请求的裁决。
chan_permission_relay_capability_flag claude/channel/permission 权限转发能力声明 configuration-documentation MCP Server 在 capabilities.experimental 下声明 claude/channel/permission 后,可接收工具审批提示的远程转发;省略或 false 表示不参与转发。该能力只应在发送者已认证的频道上声明。
fix_policy_helper_timer_values_clamped 策略助手超时与刷新间隔定时器上限钳制 official-public-docs-derived policyHelper 的 timeoutMs 与 refreshIntervalMs 超过定时器最大值时被钳制到合法范围,避免定时器失败或每毫秒重复运行。
fix_keybinding_chord_unbind_timeout_notice 键位和弦解绑等待与超时提示 official-public-docs-derived 解绑 keybindings.json 中的两键和弦时,第二键延迟超过一秒仍会等待三秒并在超时给出提示,避免两个键事件被静默取消。
feat_vscode_workflows_agent_map_command /workflows 打开运行中工作流代理地图 official-public-docs-derived VS Code 命令 /workflows 打开代理地图,展示正在运行的工作流;它是界面导航入口,不新增工作流执行协议。
feat_vscode_escape_stops_claude_setting claudeCode.escapeStopsClaude Escape 停止开关 official-public-docs-derived claudeCode.escapeStopsClaude 关闭后,Escape 不再停止 Claude;该设置只控制编辑器快捷键行为,不改变权限规则或工具审批。
feat_vscode_pin_prompt_setting claudeCode.pinPrompt 消息输入框固定开关 official-public-docs-derived claudeCode.pinPrompt 控制消息输入框是否随内容滚走而保持固定;该开关只影响界面滚动布局,不改变会话持久化或上下文容量。
feat_vscode_context_usage_threshold_setting claudeCode.contextUsageThreshold 上下文指标阈值 official-public-docs-derived claudeCode.contextUsageThreshold 控制上下文用量指示何时显示;阈值属于界面提示配置,不执行压缩、模型切换或权限决策。
doc_subagent_code_reviewer_example 示例子代理:code-reviewer 代码评审代理 official-public-docs-derived 官方 sub-agents 文档示例定义的 code-reviewer:聚焦代码质量、安全与最佳实践,通常限定 Read、Grep、Glob、Bash 等评审所需工具。
doc_subagent_debugger_example 示例子代理:debugger 调试排错代理 official-public-docs-derived 官方示例中的 debugger:分析错误、测试失败与异常行为,定位根因;与 code-reviewer 不同,排错代理可包含 Edit 以便修改代码。
doc_subagent_data_scientist_example 示例子代理:data scientist 数据分析代理 official-public-docs-derived 官方示例中的领域专用 data scientist 子代理,面向 SQL 与 BigQuery 等数据分析工作;工具边界按文档示例限定。
doc_subagent_db_query_validator_example 示例子代理:database query validator 只读 SQL 校验代理 official-public-docs-derived 官方示例允许 Bash 访问、但校验命令只放行只读 SQL 查询的数据库查询校验子代理;写操作与非查询命令不纳入该代理边界。
doc_workflow_audit_many_files 动态工作流:逐文件审计同类问题并交叉验证 official-public-docs-derived 官方 workflows 示例:每个文件派发一个代理,收集发现并在上报前对抗性核验;用于审查路由处理器缺鉴权等同类问题。
doc_workflow_fix_until_check_passes 动态工作流:循环修复直到检查通过或无进展 official-public-docs-derived 官方 workflows 示例:运行检查器、修复失败项并重复,直到类型检查等检查通过,或连续两轮没有进展。
doc_workflow_parallel_file_migration 动态工作流:隔离副本并行迁移多文件 official-public-docs-derived 官方 workflows 示例:发现待迁移文件,在隔离副本中逐个转换以避免编辑冲突,并验证每个结果;如 JS 组件迁移到 TypeScript。
doc_workflow_review_changed_files_one_summary 动态工作流:逐文件评审并汇总去重排名 official-public-docs-derived 官方 workflows 示例:每个文件一名评审代理,再把全部发现交给一名代理排序、去重并写成统一总结。
doc_workflow_research_topic_parallel_sources 动态工作流:跨公开来源并行调研同一主题 official-public-docs-derived 官方 workflows 示例:并行读取公开文档与最近 changelog,再比较不同来源对同一议题(如限流策略)的处理方式。
doc_workflow_find_issues_until_list_stops 动态工作流:轮次搜索直到问题清单不再增长 official-public-docs-derived 官方 workflows 示例:分多轮继续搜索,当新一轮没有出现新问题时停止;避免在清单仍增长时过早结束。
doc_workflow_size_guideline 工作流代理规模指引(size guideline) official-public-docs-derived size guideline 告诉 Claude 在编写动态工作流时目标使用多少代理;自定义规模会替代默认 25 代理阈值。
doc_workflow_disable_scope 动态工作流关闭范围:个人 / 托管组织设置 official-public-docs-derived 工作流可在 /config 个人关闭;组织级关闭通过托管设置 disableWorkflows: true 或管理后台开关;CLI、Desktop、IDE、claude -p 与 Agent SDK 均属可用表面。
doc_ultrareview_diff_size_limit UltraReview diff size limit and empty-diff fallback proprietary-all-rights-reserved 审查前检查 diff;默认 500 个变更文件与 8000 行上限;空 diff 拒绝并命名比较基准;超限拒绝时给出规模与热点文件。
doc_advisor_model_pairing Advisor common main/advisor model pairings proprietary-all-rights-reserved Sonnet+Opus、Sonnet+Fable、Haiku+Opus、Opus+Opus 等组合在成本、规划能力与独立复核强度间取舍。
doc_advisor_toggle_prompt_cache Advisor toggle preserves main-model prompt cache prefix proprietary-all-rights-reserved 会话中开启或关闭 advisor 不使主模型 prompt cache 失效;缓存前缀保留,advisor 指引进入后续 transcript。
doc_mod_event_matcher_filter Mod event matcher filter narrows on() hook event handling mixed-source-verify-license Hook 通过 on 的第二个参数 matcher 只处理匹配事件;字段可为单值、允许值数组或正则;所有字段匹配后才运行。
doc_mod_tool_check_readonly_flag Mod tool.check e.isReadOnly read-only tool-call report mixed-source-verify-license e.isReadOnly 为工具报告的只读标志;Read/Grep/Glob/WebSearch 报告只读,Bash 与 MCP 工具按命令检查或 readOnlyHint 标注。
doc_mod_middleware_chain_order Mod hook middleware chain execution order and outer mod mixed-source-verify-license 同一事件的 Hook 组成中间件链;每个 mod 的 next 调用下一个 mod,最后到达 Claude Code 自身行为;首个 mod 在最外层,先看到事件并决定其他 mod 是否运行。
doc_mod_background_timer_jobs Mod background timer jobs via $.clock.every and $.clock.after mixed-source-verify-license 跨事件存活的工作使用 session.start 启动定时器;$.clock.every 与 $.clock.after 替代 setInterval/setTimeout,延迟单位毫秒,返回可 cancel 的定时器。
doc_mod_background_prompt_submit Mod background job $.prompt.submit starts a new idle session turn mixed-source-verify-license 后台任务发现需要 Claude 关注的事项时,可用 $.prompt.submit 提交文本;会话空闲后开启新回合;默认发送者句子标明 mod。
doc_mod_dialog_hold_toasts Mod dialog holdToasts delays notifications while decision pane shows mixed-source-verify-license $.ui.open 对对话框传 holdToasts:true 时,toast 在用户决策期间不显示;终端中保持条件为该 pane 正在显示,等待结束后再展示。
doc_mod_theme_backdrop_render Mod theme backdrop and Backdrop render site mixed-source-verify-license $.theme.set 设置 backdrop 后需在 Backdrop render site 绘制背景;$.theme.clear 移除任一 mod 的背景;终端不绘制背景。
doc_mod_theme_sound_lifecycle Mod theme sound layers and session cue lifecycle mixed-source-verify-license sound 由桌面端合成;ambience 在窗口聚焦时播放,10 分钟无输入暂停并在下次输入恢复;cues 对应发送消息、工具调用、压缩与回合完成等时刻。
doc_mod_pane_keyboard_focus_hotkey Mod pane keyboard focus, autoFocus and control hotkey rules mixed-source-verify-license Pane 可经 focus:true、Ctrl+X 然后 Tab 或点击获得焦点;hotkey 为一位数字或小写字母;控件焦点与热键规则按官方界面接口处理。
doc_powershell_shell_selection_scope settings defaultShell、Hook shell 与 Skill frontmatter shell 选择 PowerShell 的作用域边界 official-public-doc 官方 tools-reference:defaultShell 路由交互命令;Hook shell 直接派生 PowerShell;Skill frontmatter shell 需启用 PowerShell 工具。
doc_subagent_resume_slot_limit_boundary 已结束子代理恢复时占用新槽位且不先检查并发上限,可能使运行数量越过限制 official-public-doc 官方 subagents:/subtask 会话内派生运行期间占槽且不受上限阻塞;恢复已完成子代理取新槽位并跳过上限检查。
doc_team_todo_tools_environment_inheritance 队友任务跟踪工具默认跟随模型;shell 导出的 todo 开关不会自动传入队友,需通过会话 settings env 显式配置 official-public-doc 官方 tools-reference:未列 --tools/deny 且未设置 CLAUDE_CODE_ENABLE_TODO_TOOLS 时队友保留模型自带任务工具;导出变量不会自动传给队友。
doc_setup_system_requirements Claude Code 操作系统、内存/处理器、网络与 Shell 系统要求 official-doc-derived 公开安装要求覆盖 macOS 13.0+、Windows 10 1809+/Windows Server 2019+、Ubuntu 20.04+、Debian 10+、Alpine 3.19+;硬件为 4 GB+ RAM、x64 或 ARM64;需要网络连接,Shell 支持 Bash、Zsh、PowerShell 或 CMD。
doc_setup_uninstall_and_config_removal_paths 原生安装、包管理器与 npm 卸载及配置文件移除路径 official-doc-derived 卸载覆盖原生安装、Homebrew、WinGet、apt/dnf/apk 与 npm 路径;文档另列移除配置文件步骤。条目只记录公开安装卸载渠道,不记录内部文件权限实现。
doc_troubleshooting_disk_full_error_class 磁盘满、配额耗尽、inode 不足与命令未启动错误类别 official-doc-derived 排障参考列出 Disk full、Disk quota used up、Nearly out of inodes、命令未启动、磁盘配额已满、ENOSPC 或命令输出丢失等命令执行失败情形;这些是环境资源错误提示,不等同于本体关系错误。
entry_2_1_327_status_broken_configuration_files /status:损坏代理、技能、命令、输出样式文件与按键/沙箱/规则/钩子匹配清单 official-document-derived-entry /status 列出损坏的 agent、skill、command、output style 文件,按键绑定错误、不可用沙箱、被忽略的权限设置,以及永不匹配的 Hook matcher;用于诊断配置加载问题。
entry_2_1_326_managed_mcp_mid_session_addition_stop_message 会话中途新增 managed-mcp.json:MCP 服务器停止加载并说明原因 official-document-derived-entry 管理员在会话运行期间添加 managed-mcp.json 时,MCP 服务器会停止加载并给出原因;完整生效需重启打开中的会话。
doc_setting_prompt_cache_ttl promptCacheTtl:主对话提示缓存保留时长设置 official-public-docs-derived promptCacheTtl 允许 API-key 与云提供商用户把主对话提示缓存保持在 1 小时;默认短 TTL 场景下主对话与子代理分别按配置口径统计缓存保留边界。
doc_setting_subagent_prompt_cache_ttl subagentPromptCacheTtl:子代理提示缓存保留时长设置 official-public-docs-derived 子代理提示缓存默认按较短时长保留;subagentPromptCacheTtl 可设为 1h 延长保留,1 小时缓存写入在 API 侧按更高费率计费,本体只记录设置边界不固化账单金额。
entry_2_1_332_macos_computer_use_safety_rules_update macOS computer-use updated safety rules official-document-derived-entry Computer use on macOS follows newer safety rules, so some actions are refused and typing may be slower; safety-rule gating affects action approval, not a claim of full automation.
entry_2_1_332_model_switch_preserves_saved_effort Model switch preserves previous model saved effort when new model has none official-document-derived-entry Model switches from the mobile app or claude.ai keep the effort level saved for the previous model when none is saved for the new one; effort preference carry-over boundary between per-model saved settings.
entry_2_1_332_aws_credential_export_ten_minute_timeout awsCredentialExport times out after 10 minutes instead of waiting forever official-document-derived-entry awsCredentialExport now times out after 10 minutes rather than waiting indefinitely; external credential export operation deadline boundary, not credential content or scope.
entry_2_1_332_proxy_compressed_response_plain_error Proxy/gateway compressed-response failure ends turn in plain error instead of ZlibError text official-document-derived-entry When a proxy or gateway cuts or damages a compressed response, the turn now ends in plain words instead of raw “ZlibError fetching” text; transport error presentation boundary, not a protocol fix.
entry_2_1_332_usage_command_peak_memory_many_sessions /usage peak memory and speed improved with many recent sessions official-document-derived-entry /usage peak memory use and speed improve on machines with many recent sessions; performance optimization over session-history reading, not usage-accounting rule change.
entry_2_1_332_proxy_413_long_conversation_recovery Proxy/gateway request-size-limit long conversation recovery after 413 official-document-derived-entry Improved recovery for long conversations behind a proxy or gateway with a request size limit where every message and /compact failed with 413; session-size recovery boundary for gateway payload limits.
entry_2_1_332_windows_glob_parallel_folder_walk Glob walks folders in parallel on Windows machines with 6+ CPUs and lists partial results on time limit official-document-derived-entry Glob speed improves in large local Windows folders with 6 or more CPUs: folders are walked in parallel, and a stopped search lists what it found; file-search performance boundary, not new search semantics.
doc_fork_vs_subagent_cache_and_isolation Fork 与普通子代理差异:完整历史、同源提示工具模型、共享提示缓存与独立工具调用 official-public-documentation-entry 官方对比表记录 fork 与非 fork 子代理在上下文、系统提示/工具、模型和提示缓存上的差异;fork 首请求复用父会话提示缓存,因此在需要同一上下文的任务上比全新子代理成本更低。Agent 工具可传 isolation:"worktree" 使 fork 文件编辑进入独立 git worktree;fork 不能继续派生更多 fork。边界:缓存成本与 worktree 隔离是公开行为描述,不代表缓存内部实现开放。
entry_2_1_332_bg_subagent_lsp_plugin_active Background subagent may use the LSP tool when an LSP plugin is active official-document-derived-entry Official changelog: background subagents previously could not use the LSP tool while an LSP plugin was active; the fixed behavior preserves the background-agent/tool boundary and separates this availability issue from plugin LSP server installation.
entry_2_1_332_tasks_system_tasks_folded_row /tasks folds Claude Code self-run background work under one System tasks row official-document-derived-entry Official changelog: /tasks groups work Claude Code runs for itself under a single “System tasks” row; Enter opens those tasks. This records a panel grouping/surface behavior, not a new agent runtime.
entry_2_1_332_artifact_classifier_deferred_until_first_use Classifier rules and the Artifact tool load lazily on first use rather than at startup official-document-derived-entry Official changelog startup improvement: classifier rules and the Artifact tool are loaded on first use rather than eagerly at startup. This records deferred loading behavior; it is not evidence that Artifact publishing or classifier checks are skipped.
doc_sdk_tool_search_deferral_optimization_limit Tool search on-demand deferral, discovery optimization and deployment limits official-document-derived-entry Official tool-search reference: tool search scales to many tools by discovering and loading definitions on demand, reducing context consumption and preserving selection accuracy for large tool catalogs. This records deferral behavior, optimization rationale, and deployment/model limits rather than an implementation of the search API.
doc_sdk_otel_trace_link_enduser_and_export_control Agent SDK OpenTelemetry trace linking, end-user attribution and sensitive-data export control official-document-derived-entry Official observability reference: Agent SDK telemetry reaches an OTLP backend through CLI spans, metrics, and log events. This entry records trace-to-application linking, end-user attribution, tagging, and export-sensitive-data controls, complementing existing OpenTelemetry CLI events rather than duplicating event fields.
doc_mcp_add_server_from_remote_url MCP server added from a remote URL endpoint official-public-documentation-entry A remote https endpoint is registered with --transport http; a wss endpoint uses the WebSocket option. The URL is the server's remote launch target; credentials headers are passed separately.
doc_mcp_add_server_from_local_launch_command MCP server added from an npx, uvx, or binary launch command official-public-documentation-entry A launch command starts a local stdio process; the whole command follows -- so flags such as -y reach the server command instead of being parsed as CLI options.
doc_mcp_add_server_from_mcpservers_json MCP server imported from an mcpServers JSON block official-public-documentation-entry claude mcp add-json receives the object inside another client's mcpServers block. A url entry without type must be repaired to http, sse, or ws; server keys may use only letters, numbers, hyphens, and underscores.
doc_mcp_config_hidden_whitespace_warning MCP configuration warning: hidden leading or trailing whitespace official-public-documentation-entry Claude Code warns when command, url, args, env, or header values carry hidden leading or trailing whitespace. It names affected fields without echoing values and does not trim the configuration.
doc_mcp_config_scope_name_conflict_warning MCP configuration warning: same server name in more than one scope official-public-documentation-entry When one server name has different endpoints across scopes, Claude Code warns about the conflict. OAuth sign-in is stored per endpoint, so a definition loaded in another project still requires separate sign-in.
doc_mcp_reserved_builtin_server_name_warning MCP reserved built-in server names and rename warning official-public-documentation-entry Built-in server names such as workspace, claude-in-chrome, computer-use, Claude Preview, and Claude Browser are reserved. A configured reserved name is skipped at load with a rename warning; add rejects the reserved name.
doc_mcp_missing_env_var_warning MCP configuration warning: missing referenced environment variable official-public-documentation-entry A ${VAR} reference without a set variable and no :-default produces a warning naming the variable; the server still loads with the unexpanded text. Some remote url and header credential variables read as empty instead.
doc_mcp_task_call_requirements Requirements for a plain tool call to become an MCP task official-public-documentation-entry A call becomes an MCP task only when the server supports tasks, connects on protocol revision 2026-07-28 over an allowed transport, the session type has tasks enabled, feature-flag and session-format conditions hold, and the call originates from an allowed main conversation or non-fork subagent context.
doc_sdk_tool_search_five_result_default Tool search returns up to five most relevant tools per search by default official-doc-derived Official tool-search reference: when discovery runs, the catalog search returns up to the five most relevant tools by default; those definitions remain available for subsequent turns until the messages that discovered them are compacted.
doc_team_teammate_model_selection Agent Teams 队友模型选择(per-teammate model selection) official-public-document-entry 官方 Agent Teams 文档支持为不同队友选择不同模型;该能力记录模型分配粒度,不记录内部模型路由、未发布模型代号或性能排名。
doc_team_task_assignment_claim_workflow Agent Teams 任务分派与自认领工作流(assignment and claim) official-public-document-entry 官方任务清单同时支持 lead 直接指派队友,以及队友认领 pending 任务;条目记录分派/认领模式与依赖阻塞关系,文件锁已由既有团队任务认领边界建模。
doc_setting_named_agent_main_thread agent setting: run the main thread as a named subagent official-public-docs-derived Official settings reference: the agent key names a built-in or custom agent whose system prompt, tool restrictions, and model apply to the main session; --agent overrides this key for one session and also sets the default agent for claude agents dispatch.
doc_setting_teammate_mode_values teammateMode: in-process, auto, tmux and iTerm2 teammate display values official-public-docs-derived Official settings reference: teammateMode chooses whether teammates appear in the main terminal pane or split panes. Values are in-process, auto, tmux, and iterm2; --teammate-mode overrides the setting for one session.
doc_setting_worktree_base_ref worktree.baseRef: fresh remote default branch or local HEAD branch source official-public-docs-derived Official worktree settings: fresh branches from the remote default branch for a clean tree; head branches from the current local HEAD and carries unpushed commits and feature-branch state. Inside a linked worktree, head resolves to that worktree's HEAD rather than the main checkout's HEAD.
doc_otel_signal_exporters OpenTelemetry metrics, log events and traces: independent exporter switches and signals official-public-docs-derived Official Agent SDK observability docs: the CLI exports three independent OTel signals. Metrics cover token/cost/session/LOC/tool-decision counters; log events record prompts, API requests/errors, and tool results; traces record interaction, model request, tool and hook spans. Each signal has its own exporter switch; traces also require CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1.
doc_otel_flush_short_lived OTel short-lived call flush: batched export intervals, bounded exit flush and killed-process loss official-public-docs-derived Official Agent SDK observability docs: the CLI batches telemetry and exports on an interval; clean exit attempts a bounded flush, so slow collectors can still drop spans, and a process killed before shutdown loses buffered data. Metrics default to a 60-second export interval; traces and logs default to 5 seconds; OTEL_METRIC/LOGS/TRACES_EXPORT_INTERVAL can shorten them.
doc_otel_exporter_diagnostics_stderr OTel exporter diagnostics: silent default drop, CLAUDE_CODE_OTEL_DIAG_STDERR and SDK stderr callback official-public-docs-derived Official Agent SDK observability docs: unreachable or rejecting exporters fail silently by default and the agent continues while telemetry is dropped. CLAUDE_CODE_OTEL_DIAG_STDERR=1 surfaces exporter diagnostics; read them through the Python stderr callback or TypeScript stderr option. Requires Claude Code v2.1.179 or later.
doc_headless_bare_mode --bare non-interactive mode: skip hooks, skills, commands, subagents, plugins, MCP, memory and CLAUDE.md discovery official-public-docs-derived Official headless docs: --bare reduces startup by skipping auto-discovery of hooks, skills, custom commands, subagents, installed plugins, MCP servers, auto memory and CLAUDE.md. It still reads settings files and permission rules; hooks and project MCP servers do not run. In bare mode the CLI never reads OAuth credentials or the system keychain; provider credentials for non-Anthropic providers still apply. It also limits system reminders and background tasks.
doc_env_settings_file_application Settings-file env block: shell versus settings precedence, in-place running-session application and startup-only exceptions official-public-docs-derived Official env-vars docs: shell variables last for the terminal session while a settings-file env block applies each claude launch. In most sessions the settings env value replaces the inherited shell value; between settings files, env follows settings precedence, and managed settings override user/project/local values. A running session reapplies changed settings env values, but features that read variables once at startup keep startup values until relaunch; removing a file entry does not unset a variable in the running session.
entry_2_1_332_vertex_region_env_sonnet VERTEX_REGION_CLAUDE_5_5_SONNET region selection for Vertex Sonnet and background requests official-document-derived-entry Changelog 2.1.332: sonnet and background requests on Google Cloud Agent Platform read VERTEX_REGION_CLAUDE_5_5_SONNET; with only the 4_5 variable set they fall back to CLOUD_ML_REGION or us-east5. This records routing behavior, not credentials.
doc_output_style_role_tone_format Output style: session-wide role, tone and response format official-document-derived-entry Overview documentation: an output style sets Claude's role, tone and response format for every response in a session; one active style can be switched at a time. It concerns response presentation rather than project facts stored in CLAUDE.md.
doc_extension_source_precedence_and_hook_merge Extension name precedence by source scope; hooks merge across registered sources official-document-derived-entry Overview documentation: skills/subagents and MCP servers override by name across managed, user, project, plugin and local/project scope; hooks instead merge so all registered matching-source hooks fire for their events. Records source layering, not a permission grant.
doc_feature_context_cost_tradeoff Extension context-window cost versus retained signal tradeoff official-document-derived-entry Overview documentation: every added extension consumes context; too much context adds noise, can prevent correct skill triggers and weaken retained conventions. Records the documented cost/benefit tradeoff, not a tuning threshold.
doc_dynamic_workflow_script_background_subagents Dynamic workflow: script-written background run of many subagents returning one result official-document-derived-entry Overview documentation: a dynamic workflow is a script Claude writes that runs many subagents in the background and returns one result; it suits work that outgrows a handful of subagents or findings needing cross-checking.
doc_goal_evaluator_verdicts /goal evaluator verdicts: not yet met, met, impossible official-documentation-visible-source 独立评估模型每轮返回三种判定:未满足则继续工作,满足则清除目标并记录完成,不可满足则清除目标并记录失败原因;评估器不调用工具,只能依据会话已呈现内容判断。
doc_goal_condition_writing_boundary Goal condition: measurable end state, stated check, constraints and 4,000-character limit official-documentation-visible-source 有效目标条件应包含可度量终态、明确校验方式和必要约束;条件最长 4,000 字符,可加入轮次或时间上限;评估条件必须能由 Claude 输出或 transcript 结果证明。
doc_goal_retry_pause_error_boundary Goal retry versus pause: transient retry, rate-limit or usage-limit pause official-documentation-visible-source 其他失败默认保留目标;可自愈的服务器过载或断连自动重试,三次后暂停;限流、用量上限或结束回合的 Hook 类失败进入暂停,等待条件恢复后继续;CLAUDE_CODE_GOAL_CHECKIN_MINUTES=0 关闭检查与自动重试。
doc_output_style_four_builtin_styles_keep_base_instructions Built-in output styles: four styles besides Default keep base instructions and add their own changes official-document-derived-entry Official output-style documentation: Claude Code starts in the Default style; the four other built-in styles retain those base instructions and add their own role, tone, or response-format changes. This distinguishes presentation output styles from project facts stored in CLAUDE.md and from hooks that enforce recurring actions.
doc_code_mode_experimental_javascript_tool_calls_one_step Code Mode experimental JavaScript runs several tool calls in one step inside the session official-document-derived-entry Official Code Mode documentation: Code Mode is an experimental feature in which Claude writes JavaScript that makes several tool calls in one step; Claude Code runs that code in the session. It differs from direct Bash, Read, or Edit calls that wait for each result before the next decision. Experimental status means the feature may change or be removed in a release.
doc_team_teammate_definition_skills_not_inherited 队友定义 skills 字段不应用于队友;技能从项目与用户设置加载 official-document-derived-entry Agent Teams 文档:子代理定义中的 skills 不会应用到队友;队友从项目和用户设置加载技能。该边界区分角色定义字段与运行时技能加载来源。
doc_team_config_members_name_agent_id_lead_type 团队 config members 记录成员名称、agent ID;Lead 类型固定 team-lead official-document-derived-entry 团队配置 members 数组保存每名成员名称与 agent ID;Lead 条目 agent type 为 team-lead,队友条目使用派生时命名的类型;配置文件为运行态,不应手工编辑。
doc_cloud_thread_repo_permission_hooks_env_absent 项目云线程不应用仓库 settings.json 的权限规则、Hook 与 env official-document-derived-entry 云会话项目线程中,仓库 .claude/settings.json 的权限规则、hooks 与 env 不生效;云端配置应通过环境变量或对应云端设置边界处理。CLAUDE.md、skills、MCP、插件与凭证的携带范围由既有云会话设置条目记录。
glossary_agentic_harness Agentic harness: tools, context management and execution environment around the model official-doc-derived Official glossary: the harness supplies file access, shell execution, permission gating, memory loading and the loop that chains actions. Claude Code is the harness; Claude is the model inside it. This records the public boundary between model and harness, not internal source structure.
glossary_agentic_loop Agentic loop: gather context, act, verify, repeat until done official-doc-derived Official glossary: every task follows the context-gather, action, verify cycle; each tool result informs the next step. Hooks, skills and MCP plug into specific loop phases. The loop is observable public workflow, not a disclosed scheduler or algorithm.
glossary_system_prompt System prompt: pre-request instructions for tools, safety and response format official-doc-derived Official glossary: system prompt precedes every request and explains tool use, safe behavior and response formatting. CLAUDE.md and output-style instructions are delivered as conversation system reminders rather than included in the system prompt.
glossary_system_reminder System reminder: harness-injected conversation context beyond the system prompt official-doc-derived Official glossary: the harness inserts reminders during a session, including CLAUDE.md files, output-style instructions, Hook additionalContext, available skills, on-disk change notes and attribution lines. Users do not send reminders themselves.
glossary_verification_loop Verification loop: iterate until a supplied check passes instead of trusting a plausible result official-doc-derived Official glossary: a supplied check such as a test suite, build or screenshot comparison lets the session keep iterating until it passes. A verification loop is the prerequisite for /goal, unattended runs and dynamic workflows; without one, the agent alone decides it is finished.
glossary_settings_layers Settings layers: managed policy, --settings, local, shared project and user precedence official-doc-derived Official glossary: configuration is read as a hierarchy; most lists such as permissions.allow merge across files rather than overriding wholesale. This entry records the public layer order and merge boundary, not a hidden settings parser.
glossary_mcp_tool_search MCP Tool Search: defer full MCP tool schemas until a tool is needed official-doc-derived Official glossary: startup loads only tool names and server instructions; Claude fetches the full schema on demand when it decides to use a specific tool, keeping idle MCP servers from consuming context. This public deferral boundary complements the existing on-demand tool-search optimization record.
entry_2_1_332_dictated_text_10000_characters_preserved Dictated text past 10,000 characters no longer lost official-doc-derived Official changelog 2.1.332 bug fix: dictated text past 10,000 characters was previously lost; this entry records the public character-length preservation boundary only, not audio processing internals.
plugin_cost_usage_measurement Plugin cost and usage measurement: plugin details reports always-on and on-invoke token estimates official-doc-derived Official measure documentation: claude plugin details inventories skills, agents, hooks, MCP servers and LSP servers, then separates always-on names and descriptions from per-invoke body cost. Token counts are estimates; hooks and MCP tool schemas do not receive the same per-component cost row.
plugin_cli_hint_tag CLI plugin hint: claude-code-hint tag on stderr gates official-marketplace install prompt official-doc-derived Official CLI hints documentation: a CLI or SDK running inside Claude Code may emit a one-line stderr tag; Claude removes the line before model context and shows a one-time install prompt. The mechanism applies to official-marketplace plugins only; CLAUDECODE and CLAUDE_CODE_CHILD_SESSION gate the emitter.
mods_api_command_tool_registration Mods API: session.start registers user commands and Claude-callable tools with input schema official-doc-derived Official Mods API documentation: a mod registers a command for the user or a tool for Claude in session.start; tool calls arrive through tool.call filtered by the full mcp__plugin__name identifier. The API exposes namespaces such as $.ui and $.fs; this entry records the public registration surface only.
mod_test_kit_no_session_network Mod test kit: fire events and stub answers with no session, sign-in, or network official-doc-derived Official Mod test documentation: claude plugin test loads the mod, sends events through hooks and checks behavior; tests import claude-code/testing, use *.test.ts files, and the command exits 1 on failure for CI. No live session, login, or network connection is required.
mod_render_site_interface_layout Mod render sites: pane, prompt band, spinner and other UI locations supplied through ui.render official-doc-derived Official Mod interface documentation: each drawable location is a render site; Claude Code fires ui.render before drawing it and the hook returns the element to draw. A pane sits beside the transcript in a wide terminal or above the prompt in a narrow one; state can persist across redraws and sessions.
doc_workflow_runtime_isolated_script_environment Workflow runtime isolated script environment and retained script file official-public-docs-derived Official workflows documentation: the workflow runtime runs its script in an isolated environment separate from the conversation; intermediate results remain in script variables instead of entering Claude's context. Unless started from an existing script path, Claude Code writes the run script under the current session's directory in ~/.claude/projects, and the script can only be started from a file the session is already allowed to read.
doc_workflow_script_resource_caps Workflow script caps: agent count, concurrent agents and list-item length official-public-docs-derived Official workflows documentation: the script body may not use module loading through import(); it has no direct filesystem or shell access, and the agents perform reads, writes and commands. By default up to 16 agents run concurrently (fewer on constrained CPUs; configurable through the existing maximum-concurrent-agent setting), one parallel() or pipeline() call accepts at most 4,096 items, and a single run contains at most 1,000 agents to bound runaway work.
doc_workflow_stall_restart_attempts_and_null_result Workflow stalled-agent restart: six attempts, transcript gap and null pipeline result official-public-docs-derived Official workflows documentation: an agent whose output stops arriving restarts from the same prompt; the new attempt omits the stalled transcript, files already changed remain changed, and spent tokens remain in the run total. The agent restarts at most five manual or automatic restarts; a sixth stalled or lost-reply attempt fails the agent() call. Inside parallel() or pipeline(), the run continues with null for that result; a directly awaited agent() failure ends the run. Per-agent stallMs or CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS widens the stall window; waiting on an own tool call or usage-limit reset does not count toward it.
doc_workflow_large_run_advisory_warning Workflow large-run advisory warning: agent count and projected token threshold official-public-docs-derived Official workflows documentation: a run that schedules more than 25 agents, or whose projected token total passes 1.5 million, shows a Large workflow warning in the task panel and /workflows view. The warning is advisory only: it does not pause or limit the run. A user-selected size guideline replaces the 25-agent threshold; sessions with ultracode enabled do not show the warning because large runs are already opted into.
doc_settings_list_keys_merge_across_scopes Settings list keys merge across non-managed scopes official-public-documentation permissions.allow 等列表键在非托管设置层级合并数组,各层级可追加条目而不是整体覆盖;模型列表等特殊键另有独立合并规则。
doc_extension_skill_overrides_description_context skillOverrides suppresses skill description context without editing the file official-public-documentation disable-model-invocation 可在技能 frontmatter 中移除模型调用描述;skillOverrides 在设置中对未编写的技能做同样处理,以节省会话上下文。
doc_sdk_custom_tool_optional_schema_required_default Optional schema parameter omitted from required; handler applies fallback default official-document-derived-entry Agent SDK custom-tools documentation: a parameter is optional when the schema omits it from required; TypeScript marks the Zod field optional, while Python JSON Schema leaves the key out of required and reads it with args.get(). The handler itself applies the fallback default; absence in the schema does not create the runtime value.
entry_2_1_332_model_footer_held_flagged_message Flagged message on a different model keeps footer until /model selection official-changelog-derived-entry Changelog 2.1.332: when a flagged message leaves the session on another model, a footer line remains while that condition persists until the user picks a model with /model. This records the persistent UI state and selection boundary; it does not record message contents.
entry_2_1_332_otel_tool_input_text_length_boundary OTel tool_input records SendUserMessage/Cowork message text length unless response logging is enabled official-changelog-derived-entry Changelog 2.1.332: OpenTelemetry tool_input normally shows only the length of text sent through SendUserMessage or the Cowork message tool; full response logging is controlled by OTEL_LOG_ASSISTANT_RESPONSES=1. This records a telemetry text-content boundary, not a request for credential handling.
doc_otel_telemetry_enable_and_exporter_selection Telemetry remains disabled until CLAUDE_CODE_ENABLE_TELEMETRY=1 and an exporter is selected official-document-derived-entry Official observability documentation: telemetry is off until CLAUDE_CODE_ENABLE_TELEMETRY=1 is set and at least one exporter is configured. The common configuration sends traces, metrics and events over OTLP HTTP to a collector; SDK per-call env options can pass the exporter configuration to the CLI child process. This records the enablement boundary, not collector credentials or internal telemetry payloads.
doc_otel_service_name_and_resource_attributes OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES tag every emitted span, metric and event official-document-derived-entry Official observability documentation: the CLI defaults service.name to claude-code. Several agents or SDK services sharing one collector can override the service name and attach deployment metadata through OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES; these values are applied as OpenTelemetry resource attributes on every span, metric and event the agent emits.
doc_tool_search_model_support_and_platform_defaults Tool search defaults on except unsupported models; Agent Platform generation and beta-header limits override ENABLE_TOOL_SEARCH official-document-derived-entry Official tool-search documentation: tool search is on by default. Models on the SDK unsupported-model list load definitions upfront and no ENABLE_TOOL_SEARCH value overrides that. On Google Cloud Agent Platform, Opus 4.5, Sonnet 4.5, Haiku 4.5 and later default to tool search; earlier platform models load definitions upfront because their serving stack rejects the required beta header, and ENABLE_TOOL_SEARCH cannot override this.
env_custom_request_headers ANTHROPIC_CUSTOM_HEADERS 自定义请求头 proprietary-all-rights-reserved 请求头以 Name: Value 形式配置;多行用换行分隔;非法字符会定位到对应请求头配对;凭证、组织、租户、路由或 API 行为头属于需审批的服务托管设置。
env_foundry_credential_endpoint Microsoft Foundry 认证与端点环境变量 proprietary-all-rights-reserved ANTHROPIC_FOUNDRY_API_KEY、FOUNDRY_AUTH_TOKEN、FOUNDRY_BASE_URL 或 FOUNDRY_RESOURCE 配置 Foundry 认证和资源;Bearer token 优先于 API key 与 Azure 默认凭证链。
env_aws_workspace_endpoint AWS Claude Platform 工作区与端点环境变量 proprietary-all-rights-reserved ANTHROPIC_AWS_API_KEY、AWS_BASE_URL、AWS_WORKSPACE_ID 配置 Claude Platform on AWS;工作区 ID 随每个请求发送,AWS API key 优先于 AWS SigV4。
env_google_cloud_workspace Google Cloud Anthropic Managed 工作区环境变量 proprietary-all-rights-reserved ANTHROPIC_GOOGLE_CLOUD_BASE_URL、LOCATION、PROJECT、WORKSPACE_ID 配置 Google Cloud 托管 Claude Models 的端点、区域、项目和工作区;无独立 base URL 时工作区 ID 为必需。
env_bedrock_region_tier Bedrock 区域前缀与服务等级环境变量 proprietary-all-rights-reserved ANTHROPIC_BEDROCK_REGION_PREFIX 指定优先尝试的跨区域推理 profile 前缀;ANTHROPIC_BEDROCK_SERVICE_TIER 选择 default、flex 或 priority 服务等级。
env_model_alias_picker_option 模型别名与自定义 /model 选择器环境变量 proprietary-all-rights-reserved ANTHROPIC_DEFAULT_OPUS/SONNET/HAIKU/FABLE_MODEL 及对应描述、名称、能力变量固定别名模型;CUSTOM_MODEL_OPTION 系列把非标准或网关模型加入 /model 选择器。
env_claude_profile ANTHROPIC_PROFILE 认证配置文件 proprietary-all-rights-reserved 按 ant auth login 或无 API key 控制台登录创建的 Anthropic profile 名称选择认证身份;用于认证优先级解析。
doc_agent_view_pr_mr_label_format PR/MR 会话行编号标签(#1234 / !1234) official-public-documentation Agent view 会话行按 GitHub PR 与 GitLab MR 输出编号标签:PR 为 #1234,MR 为 !1234;标签用于终端状态行识别版本控制条目。
doc_cross_message_delivered_state 跨会话消息 Delivered 已送达状态 official-public-documentation Delivered 表示消息已传给接收侧 Claude;送达后按一次提示计入用量,接收方可通过 SendMessage 回复,除非跨机器或限制规则适用。
tool_artifact_recent_reopen_ctrl_bracket 最近 Artifact 快捷键重开(Ctrl+]) official-public-documentation 会话内按 Ctrl+] 可重新打开当前会话最近发布的 Artifact;该快捷键只恢复最近制品,不等同于列出全部历史制品。
doc_tool_search_catalog_context_budget Tool Search 工具目录上下文预算与按需加载 official-public-documentation 工具搜索面对数百到数千个工具目录;工具定义不全量进入上下文,只在任务需要能力时检索相关工具,以降低上下文占用并改善多工具选择准确率。
doc_large_codebase_per_subdirectory_claude_md Monorepo 子目录 CLAUDE.md 分层指令 official-public-documentation 大型仓库按根目录、包或子系统放置 CLAUDE.md;根目录约定全局适用,子目录文件只描述该区域技术栈与约定,评审时应把该类指令改动作为文档变更跟踪。
cmd_list_agents_peers /list-agents (/peers): list messageable subagents, teammates and sessions official-public-docs-derived Official commands documentation: /list-agents, also available as /peers, lists subagents, agent-team teammates and other Claude Code sessions that Claude can message, with the name to use for each. It applies only where cross-session messaging is enabled; teammate rows and the local session's own name require v2.1.239 or later.
cmd_reload_skills /reload-skills: rescan on-disk skill and command directories without restart official-public-docs-derived Official commands documentation: /reload-skills re-scans skill and command directories so skills added or changed on disk during the session become available without restarting. It reports how many skills are available and how many were added or removed; this runtime rescanning is distinct from a SessionStart hook returning reloadSkills.
cmd_skill_doctor /skill-doctor: skill context cost and usage-frequency diagnostics official-public-docs-derived Official commands documentation: /skill-doctor shows the context cost of each installed skill and how often it is used, supporting identification of skills to turn off. It requires Claude Code v2.1.252 or later and feature-flag fetching.
otel_metrics_exporter_var OTEL_METRICS_EXPORTER: OpenTelemetry metrics signal exporter selector official-public-docs-derived Official observability documentation: OTEL_METRICS_EXPORTER selects the exporter for token, cost, session, line-of-code and tool-decision counters. Metrics are one of the three independent OTel signals; this entry records exporter selection, not exporter implementation or a hosted backend.
otel_logs_exporter_var OTEL_LOGS_EXPORTER: OpenTelemetry log-event exporter selector official-public-docs-derived Official observability documentation: OTEL_LOGS_EXPORTER selects the exporter for structured prompt, API request, API error and tool-result log events. It applies to the log-event signal separately from traces and metrics.
otel_traces_exporter_var OTEL_TRACES_EXPORTER: OpenTelemetry trace-span exporter selector official-public-docs-derived Official observability documentation: OTEL_TRACES_EXPORTER selects the exporter for interaction, model-request, tool-call and hook spans. Enhanced trace spans also require CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1; this entry does not model beta span internals beyond the public documentation boundary.
otel_exporter_otlp_endpoint_var OTEL_EXPORTER_OTLP_ENDPOINT: OTLP collector endpoint for telemetry export official-public-docs-derived Official environment-vars documentation: OTEL_EXPORTER_OTLP_ENDPOINT sets the collector address contacted by the standard OpenTelemetry exporter configuration. It records the public endpoint-configuration variable, not network credentials or backend deployment details.
otel_exporter_otlp_protocol_var OTEL_EXPORTER_OTLP_PROTOCOL: OTLP exporter protocol configuration official-public-docs-derived Official observability documentation example: OTEL_EXPORTER_OTLP_PROTOCOL configures the standard OTLP transport protocol; the documented example uses http/protobuf. This entry records the configuration surface, not the serializer implementation.
otel_metrics_include_session_id_var OTEL_METRICS_INCLUDE_SESSION_ID: session ID inclusion in metric and event attributes official-public-docs-derived Official observability and environment-vars documentation: set OTEL_METRICS_INCLUDE_SESSION_ID to false to omit the session ID from metric and event attributes; the session ID is included by default. This controls attribution metadata, not prompt or tool content.
otel_metrics_include_resource_attributes_var OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES: resource-attribute labels on metric datapoints official-public-docs-derived Official environment-vars documentation: since v2.1.161 Claude Code attaches OTEL_RESOURCE_ATTRIBUTES keys to metric datapoint labels; set OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES to false to exclude them. Default inclusion applies to metric labels only.
setting_always_thinking_enabled alwaysThinkingEnabled: per-session extended-thinking on/off setting and model/provider limit official-document-derived-entry Official settings-reference: alwaysThinkingEnabled=false turns extended thinking off for every session; true has no effect because thinking is on by default. On models that always think, false has no effect; third-party providers omit the thinking parameter instead of disabling adaptive reasoning. MAX_THINKING_TOKENS overrides this key for one session.
setting_fast_mode_per_session_opt_in fastModePerSessionOptIn: require each session to opt in to saved fast mode official-document-derived-entry Official settings-reference: when fastModePerSessionOptIn is true, a saved fastMode=true no longer enables fast mode at session start; each session must run /fast if desired. A fastMode value passed through --settings still counts unless managed settings set this key. Team or Enterprise owners can deploy it through server-managed settings; managed setting refuses /fast on in non-interactive, VS Code extension and cloud sessions.
doc_cache_mcp_server_dropout_kept_definitions Prompt cache kept when an MCP server drops out without deliberate removal official-public-docs-derived When a stdio MCP server process exits on its own or a remote server reconnects automatically, the cache is kept and existing server definitions remain unchanged; deliberate removal, deny rules or disabled servers invalidate the cache.
doc_cache_plugin_toggle_invalidation Prompt cache invalidated by enabling or disabling a plugin official-public-docs-derived Enabling or disabling a plugin changes loaded plugin-provided context and invalidates the prompt cache; this is distinct from retaining the cache during ordinary permission-mode or output-style changes.
doc_cache_denied_tool_invalidation Prompt cache invalidated when an entire tool is denied official-public-docs-derived Denying an entire tool removes its definition from the loaded tool set and invalidates the prompt cache; the removed definition is absent from the next request.
doc_cache_accumulated_images_invalidation Prompt cache invalidated by accumulating many images in conversation official-public-docs-derived Accumulating many images changes the conversation prefix and invalidates the prompt cache; this is listed as a cache-invalidation action rather than a retained-cache action.
doc_cache_cli_upgrade_invalidation Prompt cache invalidated by upgrading Claude Code official-public-docs-derived Upgrading Claude Code can change bundled tool definitions or runtime context and invalidates the prompt cache; the next request should not assume a warm prefix.
doc_cache_permission_mode_retained Prompt cache retained when changing permission mode official-public-docs-derived Changing permission mode appends to or does not touch the request prefix, so the prompt cache is retained; it does not invalidate the conversation prefix the way model, MCP removal, plugin toggle, tool denial or compaction do.
doc_cache_output_style_retained Prompt cache retained when changing output style official-public-docs-derived Changing output style leaves the cached prefix intact; output-style changes are retained-cache actions alongside permission-mode changes, skill/command invocation and /recap.
doc_cache_recap_retained Prompt cache retained by running /recap official-public-docs-derived Running /recap does not invalidate the cached prefix; it is one of the retained-cache actions listed for conversation and context management.
doc_tool_search_auto_threshold_context_ratio Tool search auto threshold: deferred-definition share of context window and auto:N override official-public-docs-derived auto loads definitions upfront until deferrable tool definitions reach 10% of the model context window, then activates; auto:N sets a custom percentage such as auto:5 at 5%. Once activated in a conversation, tool search can stay on even if definitions later drop below the threshold.
entry_2_1_332_local_mcp_server_stdout_flood_terminal_freeze Local MCP server flooded standard output: terminal freeze and ignored Ctrl+C fixed official-public-docs-derived Official changelog fix: a local MCP server flooding its standard output could freeze the terminal and ignore Ctrl+C. This records the public local MCP transport failure boundary; server process internals and protocol packet layout are not inferred.
entry_2_1_332_nonstreaming_retry_broken_response_api_error Broken or interrupted non-streaming retry no longer surfaces raw JSON Parse error or aborted-operation API text official-public-docs-derived Official changelog fix: a broken response or interruption during the non-streaming retry produced raw "JSON Parse error" and "The operation was aborted." API errors. The entry records API retry failure-presentation boundary; retry policy internals are not modeled.
entry_2_1_332_effort_flag_environment_same_level_ignored --effort ignored at interactive session start with --environment when CLAUDE_CODE_EFFORT_LEVEL already sets the same level official-public-docs-derived Official changelog fix: --effort was ignored when starting an interactive session with --environment while CLAUDE_CODE_EFFORT_LEVEL was set to the same level. This records CLI flag versus environment-variable effort resolution boundary.
doc_sdk_todo_creation_trigger_conditions Todo creation conditions: multi-step work, provided lists, longer operations and explicit organization requests official-public-docs-derived Official todo-tracking behavior: in a session with task-tracking tools, Claude creates todos for most multi-step work, user-provided lists with multiple items, longer operations that benefit from progress tracking, and explicit requests to organize todos; very short or single-step requests may skip todos. This records when the tracker is used, not a guaranteed todo for every turn.
doc_tool_search_registered_tool_scope_mcp_and_custom Tool search applies to every registered tool, including remote MCP servers and custom SDK MCP servers official-public-docs-derived Official tool-search scope: search applies to all registered tools, whether they come from remote MCP servers or custom SDK MCP servers. The auto threshold counts every deferrable tool definition that tool search can withhold. This records the public coverage boundary; tool discovery scoring internals are not inferred.
doc_env_settings_removed_variable_next_launch Settings env variable removal: running session retains value; unset applies only at next launch official-public-docs-derived Official settings environment-variable boundary: new or changed env block values apply to a running session when saved, but deleting a variable from settings.json does not unset it in that session. Removal takes effect on the next Claude Code launch; startup-once features such as telemetry export keep their startup values until relaunch. This records configuration lifecycle, not process environment internals.
doc_action_skill_prompt_invocation_boundary Action prompt can invoke a repository skill or namespaced plugin skill after checkout and plugin install official-public-docs-derived Official Action use case: the prompt input accepts a skill invocation as well as plain text. Repository .claude/skills/ files are available after actions/checkout; a packaged plugin skill requires the plugin to be installed through plugin_marketplaces and plugins, then called as the namespaced /plugin-name:skill-name prompt. This entry records the public skill/tool-availability boundary, not plugin marketplace internals.
setting_spinner_verbs spinnerVerbs: customize turn-progress spinner verbs and append/replace mode official-public-docs-derived Official settings reference: spinnerVerbs supplies an optional verbs array and mode. Append adds verbs to the built-in rotation; replace shows only configured verbs, but an empty verbs array keeps the built-in list. This setting controls only progress wording, not turn state, hooks, model selection or tool approval.
fix_vscode_spinner_verbs_user_managed_settings VS Code spinnerVerbs loaded from user and managed settings official-public-docs-derived Official 2.1.332 changelog: spinnerVerbs entries supplied through Claude Code user and managed settings were previously ignored in VS Code; the fix applies those configured progress verbs. Managed settings remain a separate policy source, while the key itself controls spinner wording only.
doc_artifact_specific_view_anchor_link Artifact direct-view anchor link for tabs or sections official-public-docs-derived Official Artifacts documentation: when a page exposes several views such as tabs or sections, Claude can produce direct links that append a view anchor (for example #overview) to the artifact link. This records the link-level navigation surface, not the page's rendered UI implementation.
doc_agent_view_supervisor_process_hosts Supervisor process hosts each background session as its own Claude Code process official-public-docs-derived Official agent-view documentation: a supervisor background service starts the first time a session is backgrounded or agent view opens; every listed background session runs as its own Claude Code process under it. Working, paused-on-dialog or attached processes keep running; an unattached session that has finished its turn is stopped after about an hour to free resources, while the saved conversation remains on disk. The entry records this public process lifecycle boundary, not supervisor internals.
doc_agent_view_dispatch_prefixes Dispatch prompt prefixes select subagent, repository, command, shell job or existing PR row official-public-docs-derived Official agent-view documentation: prompt prefixes control how a dispatch starts. A leading or @ selects a custom subagent as the main agent; @ targets a repository; / suggests skills and commands; ! starts a shell background job instead of a Claude session; # or a pull/merge-request URL selects the existing session already working on that PR or MR. When the same @name matches a subagent and a sibling repository, the subagent wins.
doc_agent_view_json_session_state_array claude agents --json session array: state, busy/waiting/idle status, waitingFor, pid and sessionId fields official-public-docs-derived Official agent-view documentation: claude agents --json prints active sessions as a JSON array and exits; --all also includes completed background sessions, and --cwd limits the list to sessions started under a directory. Every entry has cwd, kind and startedAt; background sessions add id, state and sessionId/name where set; while a process is alive it has pid and one of busy, waiting or idle status; waitingFor names the permission prompt, input needed, sandbox request, worker request or open dialog when status is waiting. State values are working, blocked, done, failed or stopped; state.json files are not a stable interface.
doc_agent_view_supervisor_reconnect_restart Supervisor reconnect within about one minute after stop, restart after auto-update, and restart stalled or exited session processes official-public-docs-derived Official agent-view documentation: session state persists on disk through auto-updates and supervisor restarts, and sessions also survive machine sleep; processes resume on wake and the supervisor reconnects instead of treating the gap as idle. If the supervisor itself stops, macOS and Linux sessions stop unless a new supervisor connects within about a minute; running sessions that exited unexpectedly can be restarted by the supervisor. After an auto-update, the supervisor restarts onto the new version and moves idle sessions over in the background; working, waiting-on-you or attached sessions are not interrupted.
entry_2_1_300_prompt_change_mod_hook prompt.change Mod hook fires when prompt text changes without a typed edit changelog-derived Official changelog 2.1.300: the prompt.change Mod hook is raised when the prompt box text changes without a typed edit, including a recalled history entry, a clear, an undo, or a plugin fill. This records the public Mod hook trigger boundary; it does not expose internal Mod dispatch internals or claim an undocumented official plugin runtime contract.
doc_goal_evaluator_small_fast_model_no_tools /goal evaluator: session-configured provider, small fast model and tool-free verdict official-doc-derived Official goal documentation: each finished turn sends the condition and conversation to the configured small fast model; the evaluator runs on the session provider and does not call tools, so it judges only available conversation evidence. This entry records the public evaluation boundary, not an internal model route or ranking.
doc_goal_haiku_model_global_background_use ANTHROPIC_DEFAULT_HAIKU_MODEL also resolves haiku alias, title generation and other small-model tasks official-doc-derived Official goal documentation warns that ANTHROPIC_DEFAULT_HAIKU_MODEL is not scoped only to /goal evaluation: Claude Code reads it everywhere the small fast model is used, including the haiku alias resolution, session title generation and other background tasks.
doc_otel_agent_resource_metadata_filter Telemetry service name and resource attributes filter multiple agents or SDK-backed services in one collector official-doc-derived Official observability documentation: with several agents or an SDK beside other services exporting to the same collector, override service.name and attach resource metadata; each emitted span, metric and event carries those resource attributes for backend filtering. The entry records public telemetry labeling, not sensitive payload contents.
setting_bash_output_max_chars bashOutputMaxChars: inline Bash/PowerShell output character limit before file fallback official-doc-derived Official settings-reference: this positive integer controls how many characters of successful Bash or PowerShell output Claude receives inline. Above the limit, output is saved to a file and Claude receives a short preview plus path. Values clamp to 4000 through 128000; when set, Claude Code ignores the BASH_MAX_OUTPUT_LENGTH environment variable.
env_api_timeout_ms API_TIMEOUT_MS:单次 API 请求响应头等待上限 official-doc-derived Each API request attempt receives a response-header timeout; streaming runtime after headers is not bounded by this variable. Default 600000 ms; positive value applies per non-streaming attempt.
env_checkpoint_disable_file_checkpointing CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING:关闭文件检查点 official-doc-derived Set to 1 to disable file checkpointing; /rewind cannot restore code changes, and the variable overrides the fileCheckpointingEnabled setting.
env_plugin_cache_dir CLAUDE_CODE_PLUGIN_CACHE_DIR:插件根目录覆盖 official-doc-derived Overrides the parent directory under which marketplaces and the plugin cache live; despite the name it sets the root, not the cache itself. Default root is ~/.claude/plugins.
env_plugin_dirs_session_load CLAUDE_CODE_PLUGIN_DIRS:会话级插件目录加载 official-doc-derived Loads plugin directories for one session with the same semantics as --plugin-dir; multiple paths are colon-separated on Unix and semicolon-separated on Windows; relative paths are skipped and absolute or ~-prefixed paths are required.
env_plugin_seed_dir_container CLAUDE_CODE_PLUGIN_SEED_DIR:容器只读插件种子目录 official-doc-derived Registers marketplaces from read-only seed directories at startup and reuses cached plugins without re-cloning; intended for bundling a pre-populated plugins directory into a container image.
env_warn_disk_free_gib CLAUDE_CODE_WARN_DISK_FREE_GIB:工作目录文件系统剩余空间告警 official-doc-derived Whole-GiB threshold warns Claude through a system reminder when free space on the working directory filesystem falls below it; unset, 0, or non-plain-digits disables the reminder. Read from the launching process environment, not a settings env copy.
env_warn_memory_free_gib CLAUDE_CODE_WARN_MEMORY_FREE_GIB:Linux/WSL 可用内存告警 official-doc-derived On Linux and WSL, a whole-GiB threshold warns through a system reminder when available memory falls below it; unset, 0, or non-plain digits disables the reminder. Read from the launching process environment rather than a settings env copy.
env_idle_compact_min_tokens CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS:空闲压缩触发上下文阈值 official-doc-derived Token context size at which idle compaction applies to a conversation; default 200000, positive whole-number input only, sub-100000 values are raised to 100000. Idle compaction remains controllable through the idleCompaction setting.
env_otel_resource_include_host OTEL_RESOURCE_INCLUDE_HOST:主机名称与 ID 资源属性 official-doc-derived Set to 1 to add machine name and ID to OpenTelemetry resource attributes as host.name and host.id; excluded by default. Accepted from shell, user or managed settings; ignored in project and local settings.
env_disable_workflows CLAUDE_CODE_DISABLE_WORKFLOWS:关闭动态工作流环境变量 official-doc-derived Set to 1 to disable workflows; equivalent to the disableWorkflows setting.
env_disable_bundled_skills CLAUDE_CODE_DISABLE_BUNDLED_SKILLS:关闭内置技能与工作流环境变量 official-doc-derived Set to 1 to remove bundled skills and workflows entirely; built-in commands such as /init remain typable but hidden from the model. Plugin skills and .claude/skills or .claude/commands sources are unaffected; equivalent to disableBundledSkills.
entry_feedback_drafts_setting_toggle feedbackDrafts 设置:关闭 SendFeedback 反馈草稿 official-doc-derived Official changelog records SendFeedback drafting a reviewable feedback report from /feedback; the feedbackDrafts setting turns that feedback draft behavior off. Existing SendFeedback tool record anchors this setting boundary.
doc_sdk_session_store_delete_method SessionStore.delete optional method: main-key deletion cascades subkeys and summary official-doc-derived Official SessionStore interface: delete is optional. Removing the main key, which has no subpath, must cascade to every subkey for that session and also remove its summary entry; otherwise a deleted session still appears in listSessionSummaries. Omitting the method makes deletion a no-op, suitable for append-only backends.
doc_sdk_session_store_fold_summary_helper foldSessionSummary helper derives main-session summary entries from append batches official-doc-derived Official SessionStore behavior: exported foldSessionSummary (fold_session_summary in Python) builds a SessionSummaryEntry from each append batch. Batches with a subpath must be skipped because subagent transcripts do not contribute to the main session summary; the fold itself is pure, while mtime is stamped at persist time and concurrent append calls must serialize the read-fold-write step.
doc_sdk_custom_tool_resource_uri_field Custom-tool resource block uri field identifies the referenced resource official-doc-derived Official custom-tools result contract: resource blocks carry a URI-identified resource reference. The URI names the resource; inline content is supplied separately through text or blob fields, and the block remains distinct from a resource_link result block.
doc_sdk_custom_tool_resource_text_field Custom-tool resource block text field carries inline plaintext resource content official-doc-derived Official custom-tools result contract: a resource block may place plaintext resource content in its text field alongside the resource URI. This field carries readable inline content; binary payload belongs in the blob field instead.
doc_sdk_custom_tool_resource_blob_field Custom-tool resource block blob field carries inline binary resource payload official-doc-derived Official custom-tools result contract: a resource block may place binary payload in its blob field, paired with a URI and mimeType. The blob carries the resource bytes; it does not replace the text field used for plaintext content.
doc_sdk_custom_tool_resource_mime_type_field Custom-tool resource block mimeType field declares the inline resource media type official-doc-derived Official custom-tools result contract: resource blocks declare their media type through mimeType, matching the image-block metadata boundary. The field identifies the inline text or blob resource format; unsupported resource formats follow the tool-result handling documented for non-supported content.
doc_sdk_custom_tool_resource_link_block Custom-tool resource_link result block associates a referenced resource with linked content official-doc-derived Official custom-tools result contract: the content array accepts resource_link as a separate block type from resource. A resource_link references a resource together with associated linked content; this entry records the block-type boundary only, not an internal MCP implementation detail.
doc_sdk_custom_tool_toolsearch_deferred_schema ToolSearch defers SDK MCP tool full schemas; name list loads before schema on demand official-doc-derived Official custom-tools note: ToolSearch is on by default and defers SDK MCP tools. Claude first sees each tool name in a compact list and loads the full schema on demand; with tool search disabled, every registered tool's schema consumes context window space on every turn. TypeScript can pass alwaysLoad in extras or server options to keep a schema in the initial prompt.
doc_setting_output_style_key outputStyle setting selects a built-in or custom output style by name official-doc-derived Official settings-reference: outputStyle names a saved output style that changes Claude's role, tone and response format. An unset value uses the default style; changing the key during a session applies the new style from the next message, and prompt-cache behavior follows the documented output-style change boundary.
doc_setting_show_thinking_summaries showThinkingSummaries exposes full extended-thinking summaries when expanded official-doc-derived Official settings-reference: showThinkingSummaries controls whether interactive sessions show full extended-thinking summaries after Ctrl+O expansion. When unset or false, the Anthropic API redacts thinking blocks and Claude Code displays a collapsed stub; this records the display/redaction boundary, not model internals.
doc_setting_ultracode_session_start ultracode starts sessions with workflow-first planning when supported official-doc-derived Official settings-reference: ultracode turns on workflow-first planning for a substantive task instead of waiting for a request. Planning occurs only when dynamic workflows are enabled and the model supports xhigh effort; the setting does not change session effort level, and Claude Code reads but never writes this key. Per-session /effort ultracode or --effort ultracode overrides it for one session.
doc_setting_agent_push_notification_enabled agentPushNotifEnabled permits Claude to send phone push notifications when it decides one matters official-doc-derived Official settings-reference: true allows Claude to send a phone push notification when it decides one is worth sending, such as a long task finishing; false suppresses those notifications. A local session may send one while Remote Control is connected; the setting appears in /config as Push when Claude decides and falls back to the account-saved value or false.
setting_plans_directory plansDirectory: plan-mode plan files directory, relative to project root official-doc-derived Official settings-reference: plansDirectory chooses where Claude Code writes plan-mode plan files. The path resolves relative to the project root; unset means ~/.claude/plans. Paths outside the root or containing a backslash on macOS, Linux and WSL fall back to the default directory.
setting_workflow_size_guideline_key workflowSizeGuideline: advisory agent-count guideline for generated dynamic workflows official-doc-derived Official settings-reference: workflowSizeGuideline sends an advisory agent-count target to the model when Claude writes a dynamic workflow; it is not an enforced cap. Values are unrestricted, small (fewer than 5 agents), medium (fewer than 10) or large (fewer than 50); medium is the default, with small for signed-in Pro sessions on v2.1.271 or later.
setting_skill_listing_budget_fraction skillListingBudgetFraction: context-window share reserved for the per-turn skill listing official-doc-derived Official settings-reference: each turn Claude sees the skill listing with descriptions, and skillListingBudgetFraction caps that listing at a share of the context window. The value must be greater than 0 and at most 1; the default is 0.01, reserving one percent of the context window.
setting_skill_listing_max_desc_chars skillListingMaxDescChars: character cap on each listed skill description official-doc-derived Official settings-reference: skillListingMaxDescChars caps the description and when_to_use text shown for each skill in the per-turn listing. It is a positive-character count; the default is 1536. Raising the value preserves longer descriptions at the cost of more context per turn; lowering it fits more skills under the budget fraction.
setting_include_git_instructions includeGitInstructions: built-in commit/PR instructions and git status snapshot inclusion gate official-doc-derived Official settings-reference: includeGitInstructions controls two git-related context pieces: built-in commit and pull-request writing instructions in the Bash tool description, and a repository git status snapshot. True includes both; false leaves both out. Cloud sessions never include the snapshot; CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS overrides the key for one session.
setting_mcp_managed_servers managedMcpServers distributes remote MCP servers from managed settings official-doc-derived Official settings reference: managedMcpServers provides remote MCP servers to every user from managed settings. Users keep servers they added themselves and cannot edit or remove the managed entries. Entries follow the .mcp.json http or sse shape, with a required https URL and optional headers, oauth, and other transport options; invalid entries are dropped.
setting_workflow_keyword_trigger workflowKeywordTriggerEnabled controls the ultracode dynamic-workflow keyword official-doc-derived Official workflows/settings reference: this Boolean chooses whether typing the keyword ultracode in a prompt triggers a dynamic workflow. True triggers a workflow; false lets the word be typed without triggering one. It appears in /config as Ultracode keyword trigger and applies to any settings file scope.
setting_feedback_survey_rate feedbackSurveyRate controls session quality survey appearance probability official-doc-derived Official settings reference: this number between 0 and 1 sets the probability an eligible session quality survey appears; zero keeps the survey from appearing. Unset uses Anthropic's remote rate, or the built-in 0.005 on Bedrock, Agent Platform, and Foundry, which do not receive remote configuration. CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1 turns the survey off for one session regardless of the rate.
setting_auto_scroll_enabled autoScrollEnabled 全屏渲染跟随新输出到底部 public-documentation-setting-no-source-code Boolean; controls whether the conversation follows new output to the bottom in fullscreen rendering; applies to terminal interface behavior.
setting_auto_updates_channel autoUpdatesChannel 后台自动更新与 claude update 跟随的发布通道 public-documentation-setting-no-source-code Selects stable or latest release channel for background auto-updates and claude update; stable skips recent major-regression releases.
setting_aws_auth_refresh awsAuthRefresh 自定义命令刷新 Amazon Bedrock 过期凭证 public-documentation-setting-no-source-code Runs a user command such as aws sso login to refresh credentials in .aws when Bedrock credentials stop working; checks ambient credentials against STS first.
setting_company_announcements companyAnnouncements 启动时展示组织公告数组 public-documentation-setting-no-source-code Shows organization announcements at startup; multiple entries are picked at random per session, first entry shown on first launch; array of strings.
setting_diff_tool diffTool 选择 IDE diff 查看器或终端展示变更 public-documentation-setting-no-source-code Chooses whether proposed Edit/Write changes open in the connected VS Code or JetBrains diff viewer, or remain in the terminal; auto/terminal values documented.
setting_emoji_completion_enabled emojiCompletionEnabled 输入框短码表情建议与替换开关 public-documentation-setting-no-source-code Shows : shortcode suggestions in prompt input and replaces completed shortcodes such as :heart:; false disables both suggestions and replacement.
setting_footer_links_regexes footerLinksRegexes 输出 ID 匹配正则生成可点击页脚链接 public-documentation-setting-no-source-code Renders extra clickable badges below the input box when a regex matches turn output, including tool results and Claude responses; maps project CLI IDs such as review or issue trackers to session links.
setting_gcp_auth_refresh gcpAuthRefresh 自定义命令刷新 Google Cloud 应用默认凭证 public-documentation-setting-no-source-code Runs a user command to refresh Google Cloud Application Default Credentials when expired or unloadable so Google Cloud Agent Platform requests keep working without manual re-authentication.
setting_parent_settings_behavior parentSettingsBehavior 嵌入宿主与托管设置的合并或覆盖策略 public-documentation-setting-no-source-code Chooses whether managed settings supplied by an embedding host process such as Agent SDK or IDE extension apply when an admin-deployed managed tier is also present; merge lets a host pass its own restrictions to launched sessions.
setting_prefers_reduced_motion prefersReducedMotion 减少或关闭界面动画 public-documentation-setting-no-source-code Reduces or turns off interface animations such as spinner, shimmer, and flash effects; appears in /config as Reduce motion.
setting_respect_gitignore respectGitignore @ 文件选择器排除 gitignore 匹配文件 public-documentation-setting-no-source-code Controls whether the @ file picker leaves out files matching .gitignore patterns; falls back to ~/.claude.json when no settings file sets it; shown in /config as Respect .gitignore in file picker.
setting_show_clear_context_on_plan_accept showClearContextOnPlanAccept 计划批准菜单显示清除上下文选项 public-documentation-setting-no-source-code When a plan finishes in plan mode, this key adds the first approval-menu option Yes, clear context and …, approving the plan and clearing conversation context after plan-heavy usage.
setting_show_turn_duration showTurnDuration 回合结束时长消息显示开关 public-documentation-setting-no-source-code Shows or hides the turn-duration message after each response, such as elapsed time and completion clock; timeFormat and timeZone control format and zone.
setting_spellcheck spellcheck 输入框已安装拼写检查器下划线标记错词 public-documentation-setting-no-source-code Underlines misspelled words in the prompt input using an installed spell checker; checks only input-box text; aspell, hunspell, or ispell installation documented.
setting_spinner_tips_enabled spinnerTipsEnabled 工作时旋转功能提示开关 public-documentation-setting-no-source-code When Claude works, the spinner line rotates through short feature tips; false hides them; appears in /config as Show tips.
setting_spinner_tips_override spinnerTipsOverride 追加或替换自定义 spinner 提示 public-documentation-setting-no-source-code Adds user tips to the spinner rotation or replaces built-in tips; supplied tips enter the same rotation; disabled when spinnerTipsEnabled is false.
setting_syntax_highlighting_disabled syntaxHighlightingDisabled 关闭 diff、代码块与文件预览语法着色 public-documentation-setting-no-source-code Built-in highlighter colors code in diffs, code blocks, and terminal file previews; true shows plain text instead, for terminal-theme clash or screen-reader compatibility.
setting_terminal_progress_bar_enabled terminalProgressBarEnabled 终端标签或任务栏忙碌进度指示开关 public-documentation-setting-no-source-code Supported terminals can show a progress indicator on the tab or taskbar; Claude Code reports an in-progress state while working; indicator remains after the session according to terminal support.
setting_time_zone timeZone 界面时间显示时区覆盖 public-documentation-setting-no-source-code Shows interface times in an IANA time zone other than the system zone, such as UTC or Europe/Dublin; times controlled by timeFormat render in this zone; special 24-hour-utc behavior documented.
setting_voice_enabled voiceEnabled 旧版布尔语音口述开关 public-documentation-setting-no-source-code Deprecated since the voice object replaced it; Claude Code still reads the older single-boolean form so legacy settings files keep working; new configuration should use voice.enabled.
setting_wheel_scroll_acceleration_enabled wheelScrollAccelerationEnabled 全屏鼠标滚轮滚动加速度开关 public-documentation-setting-no-source-code Controls mouse-wheel scroll-speed acceleration during fast scrolls in fullscreen rendering; false keeps a constant scroll rate per wheel notch.
doc_agent_view_state_icon_running_exited_sleeping_shape Agent-view row icon shape: running process, exited restorable process, sleeping /loop session official-doc-derived Official agent-view documentation: beside the state color and animation, the icon shape has its own meaning. The animated or spinning mark means the session process is running or needs input; a bullet means the process has exited, but the row can still be peeked and a reply or Enter restarts it from the saved conversation; a separate mark means a /loop session sleeping between iterations, with run count and countdown on the row.
setting_enable_workflows enableWorkflows: per-user dynamic workflow on/off setting versus managed disableWorkflows scope official-doc-derived Official settings reference: enableWorkflows turns dynamic workflows on or off for yourself when your plan default is not what you want; the /config Dynamic workflows toggle writes this key to user settings and removes it when switching back to the plan default. To turn workflows off for everyone from managed settings, use disableWorkflows instead. CLAUDE_CODE_DISABLE_WORKFLOWS turns workflows off for one session; whichever key disables it first, the other cannot turn it back on.
setting_preferred_notif_channel preferredNotifChannel: terminal bell, desktop app or disabled notification channel selection official-doc-derived Official settings reference: preferredNotifChannel chooses how Claude Code notifies you when a task completes or a permission prompt is waiting; mod notifications use the same setting. Documented values are auto, terminal_bell, iterm2, iterm2_with_bell, kitty, ghostty, and notifications_disabled; the default is auto. The key also reads a value left in ~/.claude.json by older versions.
setting_copy_full_response copyFullResponse: /copy skips the picker and copies the full response every time official-doc-derived Official settings reference: copyFullResponse makes /copy copy the full response every time without showing the picker. Selecting Always copy full response in that picker sets the key to true; false shows the picker when the response contains code blocks or blockquotes. This is a global config key in ~/.claude.json, and Claude Code ignores the key in settings.json.
setting_external_editor_context externalEditorContext: previous response as commented context in the Ctrl+G external editor buffer official-doc-derived Official settings reference: with externalEditorContext on, Ctrl+G opens the prompt in the external editor and the buffer starts with Claude's previous response as # comment lines, which Claude Code strips when saving. false opens the external editor with only the prompt. The buffer keeps the last 50 lines of the response and marks the cut with the earlier-output-truncated comment. The key is a global config setting ignored in settings.json.
setting_left_arrow_opens_agents leftArrowOpensAgents: empty-prompt arrow shortcut backgrounds the session and opens agent view official-doc-derived Official settings reference: leftArrowOpensAgents controls pressing ← on an empty prompt to background the session and open agent view. true backgrounds a terminal-started session and opens agent view; false turns the shortcut off. In a session attached from agent view, ← on an empty prompt still detaches even when the key is false. The default is true, and this global config key is ignored in settings.json.
doc_cache_fast_mode_separate_prefix Prompt cache invalidated by fast-mode speed toggle; standard and fast caches do not share prefix official-doc-derived Official prompt-caching reference: standard speed and fast mode keep separate caches; turning fast mode on or off means the next request cannot reuse the other speed cached prefix, and the first toggle in a conversation reads the current conversation uncached. Boundary: this records cache reuse behavior only, not model availability or rate-limit fallback.
doc_cache_mcp_server_change_tool_definition_invalidation Prompt cache invalidation boundary for mid-session MCP server connect, disconnect, reconnect or intentional tool removal official-doc-derived Official prompt-caching reference: tool definitions sit in the system-prompt layer; with upfront-loaded tools, adding or intentionally removing an MCP tool definition invalidates the cache. Deferred tool search can retain the first-request tool list, and an automatic reconnect generally keeps definitions unchanged except when a reconnect request adds WaitForMcpServers.
doc_cache_claude_mid_session_edit_retained Editing project-root or user CLAUDE.md mid-session keeps the cached prefix official-doc-derived Official prompt-caching reference: CLAUDE.md files are read at session start and held in memory; a mid-session edit to project-root or user-level CLAUDE.md does not change the earlier conversation and leaves the cached prefix intact. Reloading requires /clear, /compact, or a restart; later nested or path-scoped files are on-demand loaded separately.
doc_cache_skill_command_invocation_retained Invoking skills or commands injects a user message and retains the earlier cached prefix official-doc-derived Official prompt-caching reference: skills and commands inject their instructions as user messages at invocation point; earlier conversation contents are unchanged, so the cached prefix survives. A skill or command with an applicable model frontmatter can still be a model switch for that turn, which would start a fresh cache.
doc_cache_ttl_control_resolution_order Prompt-cache TTL bucket controls resolved by force flag, environment variable, setting and subagent frontmatter order official-doc-derived Official prompt-caching reference: main-conversation and auxiliary request buckets each accept 5m or 1h; control precedence runs FORCE_PROMPT_CACHING_5M, bucket env var, bucket setting, subagent experimental.cacheTtl, ENABLE_PROMPT_CACHING_1H, then the bucket default. Entry records public settings/env precedence; provider-specific one-hour TTL availability remains outside this boundary.
setting_file_suggestion fileSuggestion: custom command supplies @ path autocomplete instead of built-in traversal official-doc-derived Official settings-reference: fileSuggestion lets a user command supply @ file-path autocomplete; the built-in suggestion uses fast filesystem traversal, while large monorepos may prefer project-specific indexing such as a pre-built file index. Suggestion-gate managed-value and disable boundaries follow the official settings page.
setting_attribution_commit attribution.commit: commit attribution text or empty-string hiding boundary official-doc-derived Official settings-reference: attribution.commit sets the attribution text added to Git commits including trailers; an empty string hides commit attribution. Default Co-Authored-By behavior and subagent commit attribution remain documented in the official reference.
setting_attribution_pr attribution.pr: pull-request description attribution text or empty-string hiding boundary official-doc-derived Official settings-reference: attribution.pr sets attribution text added to pull-request descriptions; an empty string hides PR attribution. The default PR generator text and cloud/remote session link behavior are separate official boundaries.
setting_keybinding_flavor keybindingFlavor 已废弃按键风味兼容键 official-doc-derived 官方 settings-reference:keybindingFlavor 自 v2.1.261 起废弃且不再生效;输入框词编辑键始终遵循 readline/Bash 约定。旧设置文件仍可读取该键以保持兼容,新配置不应依赖它。
setting_prompt_suggestion_enabled promptSuggestionEnabled 输入框灰色提示预测开关 official-doc-derived 官方 settings-reference:promptSuggestionEnabled 控制提示输入框中的灰色预测建议;false 隐藏建议。CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION 环境变量可对单会话覆盖该键。
setting_respond_to_bash_commands respondToBashCommands Shell 命令输出是否触发回复 official-doc-derived 官方 settings-reference:使用 ! 前缀运行 Shell 命令时,默认命令输出进入对话并由 Claude 回复;false 仅把输出加入上下文而不回复,便于连续执行多条命令后再统一提问。
setting_terminal_title_from_rename terminalTitleFromRename 会话重命名后的终端标签标题开关 official-doc-derived 官方 settings-reference:默认终端标签使用对话生成标题;用 /rename 或 --name 命名会话后标签显示该名称。false 保持生成标题,会话名本身仍保留并可被 /resume 与会话选择器使用。
setting_vim_insert_mode_remaps vimInsertModeRemaps Vim 插入模式两键序列映射 official-doc-derived 官方 settings-reference:vimInsertModeRemaps 把 Vim 编辑器模式中的两字符插入序列映射为 Escape;每个按键序列必须是两个可打印字符,唯一支持目标为 ,其他条目被忽略。作用域为用户或托管设置,仓库不能重映射个人按键。
setting_include_co_authored_by includeCoAuthoredBy 旧版 Git/PR 署名兼容键 official-doc-derived 官方 settings-reference:includeCoAuthoredBy 自 v2.0.62 起被 attribution 替代;旧文件中 false 仍被读取。一旦设置 attribution.commit 或 attribution.pr,规则以 attribution 为准。
setting_teammate_default_model teammateDefaultModel 已移除队友默认模型键 official-doc-derived 官方 settings-reference:teammateDefaultModel 自 v2.1.234 随 /config 的 Default teammate model 行移除;当前版本设置无效。旧版用于为提示未指定模型的 Agent Teams 队友选择模型别名、完整模型 ID 或 null 跟随主模型。
doc_execution_environment_local_cloud_remote Execution environments: Local, Cloud and Remote Control capability-derived 官方把代码执行环境区分为本机 Local、Anthropic 管理或组织自托管 Cloud,以及浏览器控制而文件与执行留在本机的 Remote Control;同一代理循环跨环境复用,差异在执行位置与文件可达性。
doc_claude_access_git_state Project, terminal, Git state, instructions, memory and configured extensions access set capability-derived 在目录中启动后,Claude Code 可访问项目目录及获授权的其他位置、终端命令环境、当前 Git 状态、CLAUDE.md/AGENTS.md、Auto Memory 与已配置扩展;访问仍受权限规则和沙箱约束。
doc_interrupt_and_queued_steering Interrupt and steer: Esc cancellation versus queued correction capability-derived Esc 立即停止运行中的工具调用并等待下一条指令;未停止时直接输入并回车的修正消息进入队列,当前工具调用结束后在同一回合内被读取并调整下一步。
doc_delegate_context_direction_not_dictated_steps Delegation guidance: provide context and direction, do not dictate file-by-file steps capability-derived 官方有效协作建议是给出问题、相关位置与方向,由 Claude 决定读取哪些文件和执行哪些命令;该条目只记录使用指导,不等同于子代理委派机制。
ch_remote_image_over_8000_pixels_scaled_copy_fix Changelog fix: remote session sends scaled-down copy of PNG, JPEG or WebP over 8,000 pixels per side capability-derived 官方 changelog 修复:远程会话发送边长超过 8,000 像素的 PNG、JPEG、WebP 图片会失败;修复后发送缩小副本。
ch_headless_mcp_auth_after_refused_call_fix Changelog fix: headless session no longer reports MCP server needing authentication after one refused successful later call capability-derived 官方 changelog 修复:headless 会话在一次调用被拒绝后即把 MCP 服务器标为需要认证,即使后续调用成功;修复后认证状态按后续成功调用校正。
ch_headless_mcp_transient_connect_retry_without_slowest_server Changelog improvement: headless MCP startup retries transient remote connect failure without waiting for slowest server capability-derived 官方 changelog 改进:headless 模式下首个连接瞬时失败的远程 MCP 服务器会重试,不再等待连接最慢的服务器完成。
ch_workflow_subagent_stalled_connection_restart_fix Changelog fix: Workflow tool subagent restarted from original prompt after a mid-response stalled connection capability-derived 官方 changelog 修复:Workflow 工具派生的子代理在响应过程中连接停滞数分钟后,会从原始提示重启;修复按停滞连接后的恢复衔接处理。
doc_scheduled_task_loop_md_default_prompt loop.md customizes the bare /loop default maintenance prompt capability-derived A project loop.md file replaces the built-in /loop maintenance prompt for bare /loop; it supplies one default prompt and does not become a list of separate scheduled tasks, while an explicit command-line prompt overrides it.
doc_model_surface_coverage_available_models availableModels allowlist coverage differs by delivery mechanism across CLI, IDE, desktop, web, mobile, cloud and SDK surfaces capability-derived Each surface enforces the allowlist it receives; the delivery mechanism that reaches terminal/IDE, local desktop, web/mobile/cloud, Agent SDK, non-interactive mode and Cowork differs. This documents surface propagation, not a guarantee that every policy reaches every surface.
doc_model_automatic_content_based_fallback Automatic content-based fallback for classifier-flagged requests capability-derived Documented automatic fallback applies to content flagged by safety classifiers for the listed Fable, Opus 5.5, Sonnet 5.5 and Opus 5 model families; availability-based overloaded/unavailable-model fallback is a separate fallbackModel chain topic.
doc_model_effort_subagents_teammates_inheritance Subagent and teammate effort level follows explicit setting, otherwise the main conversation model level capability-derived When a subagent or teammate has no separate effort level configured, it runs at the level selected for the main conversation model; explicit subagent/teammate configuration takes precedence. This documents inheritance only, not model or tool access.
doc_model_adaptive_reasoning_fixed_thinking_budget Adaptive reasoning chooses thinking per step; fixed thinking budgets are a separate configuration mode capability-derived Adaptive reasoning makes thinking optional on each step, reserving deeper thinking for steps that benefit from it. Prompt or CLAUDE.md guidance can adjust frequency, while fixed thinking budgets remain a separate budget boundary rather than the adaptive behavior itself.
doc_advisor_advisor_model_source_precedence Advisor model source precedence: --advisor flag, advisorModel setting, /advisor command official-doc-derived 官方 advisor 文档:启动旗标 --advisor 对单会话覆盖 advisorModel 设置;/advisor 命令可在会话中选择或修改顾问模型并持久化为用户设置,命令只在当前会话被可用模型、允许列表和配对规则接受时生效。
doc_advisor_turn_guidance_reviewed_declined_unavailable Advisor session transcript states: Reviewed guidance, Declined, or Unavailable error official-doc-derived 官方 advisor 文档:顾问调用进行中显示 Advising;返回后结果分为 Reviewed(顾问审阅了对话并可读取可读指导)、Declined(顾问拒绝并附可能原因)和 Unavailable(调用失败并报告错误码)。Claude 通常遵循指导,但与自身证据冲突时会暴露冲突而非无条件服从。
doc_voice_dictation_language_setting_fallback_english Dictation follows response language setting; unsupported or empty setting falls back to English official-doc-derived 官方语音口述文档:听写语言复用控制 Claude 回复语言的 language 设置;设置为空时默认为英语。VS Code 扩展在 language 为空时先读取 accessibility.voice.speechLanguage,再回退英语;不在支持列表的语言会在启用时告警并回退英语,文本回复不受该回退影响。
doc_gateway_required_listen_config Gateway required listen block: bind address, public origin and optional TLS official-public-docs-derived The listen block controls where the gateway serves: host binds by default to 0.0.0.0, port to 8080, and public_url is required unless host is loopback. TLS certificate and key paths are optional; trusted_proxies governs client-IP resolution for allowed frontends.
doc_gateway_required_oidc_config Gateway required OIDC block: issuer, OAuth client and optional email/group restrictions official-public-docs-derived The oidc block connects the identity provider and decides who may sign in. issuer and client_id are required; client_secret is omitted only with private_key_jwt authentication. allowed_email_domains and allowed_groups restrict sign-in independently.
doc_gateway_required_session_config Gateway required session block mints bearer tokens with secret and lifetime official-public-docs-derived The session block defines the bearer tokens the gateway mints for session access, including the secret used to sign or verify them and their lifetime. This is a required gateway configuration section.
doc_gateway_required_postgres_store Gateway required PostgreSQL store holds device grants and rate-limit counters official-public-docs-derived The store section uses PostgreSQL to persist device grants and rate-limit counters across gateway restarts. It is one of the five required gateway.yaml sections.
doc_gateway_required_upstreams_config Gateway required upstreams block selects the inference destination official-public-docs-derived upstreams defines where inference goes: Anthropic, Amazon Bedrock, Claude Platform on AWS, Google Cloud Anthropic-managed models, Google Cloud Agent Platform, or Microsoft Foundry. It is a required gateway configuration section.
doc_gateway_secret_env_file_expansion Gateway gateway.yaml secrets use ${VAR} environment expansion or ${file:/path} contents official-public-docs-derived Do not write client_secret, jwt_secret, or postgres_url directly into gateway.yaml. ${VAR} resolves an environment variable and fails at boot if undefined; ${file:/path} trims an absolute file's contents. A file reference must be the entire field value, not embedded in a longer string.
doc_gateway_optional_managed_settings_policy Gateway optional managed section applies settings policies by IdP group official-public-docs-derived The optional managed section supplies managed-settings policies keyed to identity-provider groups. It governs which hosted Claude Code settings reach a signed-in developer, not upstream model routing by itself.
doc_gateway_optional_pricing_rate_multiplier Gateway optional pricing section sets contracted rates and spend-meter multiplier official-public-docs-derived The optional pricing section supplies contracted rates and a multiplier applied to the spend meter and to cost figures shown to developers. It configures gateway-facing pricing presentation; authoritative billing remains outside this local estimate.
doc_analytics_team_enterprise_dashboard Team/Enterprise Claude Code dashboard: usage, contribution metrics, leaderboard and CSV export official-public-docs-derived The claude.ai/analytics/claude-code dashboard for Team and Enterprise is viewed by admins and owners. It includes usage metrics, contribution metrics with GitHub integration, a usage leaderboard, and CSV data export for custom reporting.
doc_analytics_contribution_metrics_github_integration Contribution metrics require Owner setup, GitHub App install and GitHub organization authorization official-public-docs-derived Contribution metrics are public beta for Team and Enterprise and cover users inside the claude.ai organization only. A Claude Owner enables analytics and a GitHub admin installs the GitHub app; contribution coverage applies to github.com repositories, while GitHub Enterprise Server shows usage metrics only.
doc_analytics_suggestion_accept_rate_metric Suggestion accept rate counts accepted Edit, Write and NotebookEdit tool usage official-public-docs-derived The suggestion accept rate is the percentage of times users accept code-editing tool usage, including Edit, Write, and NotebookEdit tools. It is a dashboard adoption metric rather than a billing charge.
doc_analytics_api_console_dashboard API Console dashboard: UsageView access, usage and spend; GitHub contribution metrics absent official-public-docs-derived API customers access platform.claude.com/claude-code with UsageView permission, held by Developer, Billing, Admin, Owner, and Primary Owner roles. The Console dashboard shows accepted lines, suggestion accept rate, active users, sessions and spend; contribution metrics with GitHub integration are not available for API customers.
setting_auto_continue_at_usage_limit autoContinueAtUsageLimit: continue the open session after a usage-limit reset official-doc-derived Official settings reference: after a claude.ai usage limit stops the session, this setting waits in the open session and continues the task automatically after the reset. It is read from user settings, --settings, and managed settings; a project or local settings file that sets it turns the feature off when none of those sources set the key. Requires Claude Code v2.1.234 or later.
entry_2_1_332_plugin_not_cached_reload_plugins_target 2.1.332 plugin not-cached error points to /reload-plugins instead of /plugin official-doc-derived Official changelog 2.1.332: the plugin not-cached error now points to /reload-plugins, the command that reloads plugins, instead of /plugin. This records the command-target correction for the plugin reload diagnostic.
doc_advisor_consultation_decision_timing Advisor consultation timing is model-driven; prompt can request a consultation official-public-docs-derived Official advisor documentation: Claude decides when to call the advisor, typically before committing to an approach, when an error recurs, or before declaring a task complete. Timing is model-driven rather than rule-based; there is no setting to cap or force calls, but a prompt may ask to consult the advisor before continuing.
doc_channel_experimental_permission_capability_option Channel permission relay is an optional experimental claude/channel/permission capability official-public-docs-derived Official Channels reference: capabilities.experimental['claude/channel'] is required and registers the notification listener. The optional claude/channel/permission object declares that the channel can receive permission relay requests; omit it or set false to opt out. Before v2.1.234, Claude Code treated false as declared.
doc_artifact_design_system_font_precedence_boundary Artifact design system precedes built-in choices; prompt precedes both; only Google Fonts loads externally official-public-docs-derived Official Artifacts documentation: a supplied design system has higher precedence than Claude's own visual choices, and the prompt has higher precedence than both. Artifact pages may load a typeface from Google Fonts, the one external font source; other typefaces are inlined as @font-face data URIs with a fallback stack so the page still renders if the font does not load.
doc_agent_view_row_summary_freshness_boundary Agent-view row summary: Haiku-class model, fresh output updates at most every 15 seconds official-public-docs-derived Official agent-view documentation: each row's one-line summary uses a Haiku-class model to show what the session is doing, needs, or produced without opening the transcript. While working, row text updates at most once every 15 seconds from recent output without sending a model request; the model writes a fresh summary at turn end and periodically during a long turn.
fix_otel_disabled_builtin_mcp_connection_event 2.1.332 disabled built-in MCP server no failed mcp_server_connection event at startup official-public-changelog Changelog fix: a built-in MCP server not enabled for the account no longer emits a failed mcp_server_connection event on each startup. Boundary: telemetry event status follows actual enabled-server state; this entry records the public changelog behavior only, not internal server selection or credentials.
fix_vscode_signin_failure_without_error_notice 2.1.332 VS Code failed sign-in returns to sign-in screen with visible error notice official-public-changelog Changelog fix: a sign-in that previously failed with no error message now returns to the sign-in screen and shows the authentication failure; an earlier authentication error also stops appearing current after a fresh sign-in in that tab. Boundary: public authentication UX state; token exchange, session cookies and provider internals are not recorded.
fix_vscode_extensionless_folder_file_line_links 2.1.332 VS Code most extensionless file, folder and line-column links now act official-public-changelog Changelog fix: most links to files without an extension, to folders, and with line and column coordinates now work instead of doing nothing. Boundary: IDE link rendering and path resolution; this supplements the existing local file-path file:// URI entry and does not expose editor internals.
doc_plugin_relevance_topic_session_signals_local_match Plugin relevance topic and local session signals: cwd, CLI, hosts, filesRead, manifestDeps official-doc-derived 官方插件推荐文档:marketplace.json 条目可声明 relevance.topic 与 relevance.signals;信号包含 cwd 目录、已运行命令 cli、Bash URL 主机 hosts、已读文件 filesRead 以及清单依赖 manifestDeps。匹配在用户本机完成,不向 Anthropic 或市场运营方上报匹配信号或其值;信号匹配后只提示安装,始终由用户确认。
doc_otel_signal_endpoint_protocol_headers_per_signal OpenTelemetry per-signal endpoint, protocol and headers override for metrics, logs and traces official-doc-derived 官方监控文档:metrics、logs、traces 可分别选择导出器;端点、协议与认证头可按信号覆盖。OTLP 协议支持 grpc、http/json、http/protobuf;通用 OTLP endpoint/protocol/headers 被信号专用变量覆盖,各信号头与通用头合并。
doc_otel_cardinality_inclusion_session_version_account_entrypoint_repo OTel metric cardinality toggles: session ID, version, account UUID, entrypoint, resource attributes and repository identity official-doc-derived 官方监控文档:指标与事件可按开关决定是否包含 session ID、应用版本、账户 UUID/账户 ID、入口点、资源属性标签与 VCS 仓库身份属性。自定义键会成为每条指标序列标签;高基数值会增加指标后端存储成本;OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES=false 可只在资源块发送自定义属性,不放入数据点标签。
review_severity_important Important severity: bug that should be fixed before merge official-public-docs-derived Official pull-request review documentation marks 🔴 Important as a bug that should be fixed before merging; it is the blocking finding class, distinct from Nit and Pre-existing.
review_severity_nit Nit severity: minor issue worth fixing but non-blocking official-public-docs-derived Official pull-request review documentation marks 🟡 Nit as a minor issue worth fixing but not blocking; it does not prevent merge.
review_severity_preexisting Pre-existing severity: bug already in codebase and not introduced by this PR official-public-docs-derived Official pull-request review documentation marks 🟣 Pre-existing as a bug that exists in the codebase but was not introduced by this pull request.
review_check_run_status_neutral_skipped Claude Code Review check run ends neutral or skipped; never failure official-public-docs-derived Official pull-request review documentation: the check run concludes neutral, or skipped after pushes that change no files and keep the earlier result; it never concludes as a failure, so a finished review does not fail a required check.
review_severity_count_html_comment Review body counts omitted findings in HTML comment count sentences official-public-docs-derived Official pull-request review documentation: a later review leaves out unchanged-code findings and nits/pre-existing findings; the review body sentences count those omitted findings rather than posting them as comments.
review_draft_fork_automatic_skip Automatic reviews skip draft PRs and fork pull requests official-public-docs-derived Official pull-request review documentation: automatic reviews skip both draft pull requests and pull requests from forks; a comment command can still request the review in those cases.
review_tip_comment_toggle Show tips toggle posts short no-review explanation comments when enabled official-public-docs-derived Official setup documentation: a tip comment explains why no review started and what to do next. Show tips on pull requests is on by default; disabling it stops Manual, fork, unauthorized-command, and unlinked-organization explanation comments.
review_analytics_usage_sections Code Review analytics sections: PRs, cost, feedback, findings, repository breakdown official-public-docs-derived Official costs documentation: claude.ai/analytics/code-review shows PRs reviewed over the selected range, month-to-date Code Review cost, auto-resolved review comments, daily findings by severity, and a per-repository breakdown with PR counts, resolved comments, review runs, estimated cost, and per-PR view.
local_review_target_pr_branch_path_commit_range Local review target accepts PR number, branch, path, or Git revision range official-public-docs-derived Official local review documentation: with no target, /code-review reviews branch commits ahead of upstream plus uncommitted changes; the target text can be a pull-request number, branch name, file or directory path, or Git revision range such as HEAD~15..HEAD, main...my-feature, or a commit hash range.
local_review_report_channels_text_and_findings_list Review findings reported in terminal/-p text or host-app ReportFindings list official-public-docs-derived Official local review documentation: findings appear as reply text in a terminal session, where /code-review runs as a forked subagent, and in a -p run with text or JSON output. A host application that requests the findings list, such as the desktop app, receives them through ReportFindings instead.
local_review_effort_level_persistence_boundary Non-interactive effort level does not update remembered local review level official-public-docs-derived Official local review documentation: when no level is typed, the review reuses the last low-through-max level from an earlier session and shows a reuse notice. A typed level changes what later runs reuse; a level passed in a non-interactive -p run does not update the remembered level; ultra has its own level behavior.
local_scheduled_task_no_cloud_ultrareview Session-scoped scheduled /code-review never launches cloud UltraReview official-public-docs-derived Official local review documentation: a session-scoped scheduled task with /code-review as its prompt runs the review, but never launches the cloud review; schedule /code-review without the ultra argument.
entry_2_1_318_review_analytics_network_retry 2.1.318 Code Review analytics retries once after server or network failure and shows Try again banner official-public-changelog-entry Changelog 2.1.318: the Code Review analytics page retries once after a server or network failure, then shows a Try again banner instead of empty cards.
entry_2_1_316_review_findings_severity_card 2.1.316 Analytics findings-by-severity card totals findings, daily stacked chart, and per-severity counts official-public-changelog-entry Changelog 2.1.316: a findings-by-severity card was added to the Code Review analytics page, showing the period's total findings, a daily chart stacked by severity, and each severity count.
env_mcp_allowlist_environment CLAUDE_CODE_MCP_ALLOWLIST_ENV: restrict stdio MCP server startup environment official-doc-derived Official env-vars documentation: set this to 1 so a stdio MCP server starts with only a safe baseline environment plus the server's configured env, instead of inheriting the caller's full shell environment. This records the environment isolation boundary; it does not describe credential values or internal server process layout.
env_mcp_auto_background_ms CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS: threshold before a slow MCP tool call backgrounds official-doc-derived Official env-vars and MCP documentation: this millisecond threshold (default 120000, two minutes) decides when a still-running MCP tool call moves to a background task. Zero disables automatic backgrounding; in an interactive terminal it also makes Claude wait for MCP tasks. Requires Claude Code v2.1.212 or later.
env_mcp_disable_task_background CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND: keep an interactive session waiting for an MCP task official-doc-derived Official env-vars and MCP documentation: set this to 1 so an interactive terminal session waits for an MCP task result. When automatic backgrounding remains on, the call still moves to the background after the two-minute default; the backgrounded call is a plain background call and does not survive exiting the session. Requires Claude Code v2.1.304 or later.
env_mcp_tool_idle_timeout CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT: idle-no-progress abort window for MCP tool calls official-doc-derived Official env-vars documentation: an MCP tool call aborts after this idle timeout if the server sends no response and no progress notification. It overrides per-transport idle defaults; zero disables the check, values below 1000 are raised to one second, and the effective overall MCP_TOOL_TIMEOUT caps it. It does not apply to IDE servers or SDK in-process servers. Requires Claude Code v2.1.187 or later.
env_subagent_max_spawn_depth CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH: nested subagent layer limit below the main conversation official-doc-derived Official env-vars and subagent documentation: this count limits subagent layers allowed below the main conversation; the default is 3, so a third-layer subagent cannot spawn further. Set 1 to turn nesting off. Only a positive whole number is accepted; other input is ignored and the limit can be adjusted but not removed. Requires Claude Code v2.1.217 or later.
env_max_agentic_turns CLAUDE_CODE_MAX_TURNS: cap agentic turns when no explicit turn limit is passed official-doc-derived Official env-vars documentation: this variable caps the number of agentic turns when no explicit limit is supplied. It matches the --max-turns CLI flag; the flag takes precedence when both are set. A non-positive or non-integer value fails startup with an error instead of being treated as no cap.
env_task_list_shared_session_id CLAUDE_CODE_TASK_LIST_ID: shared task-list identifier across separate Claude Code instances official-doc-derived Official env-vars documentation: set the same ID in multiple Claude Code instances to coordinate one shared task list. Coordination applies only in sessions that have the Task tools; the variable does not create a task tool in sessions where those tools are unavailable.
env_disable_session_scoped_cron CLAUDE_CODE_DISABLE_CRON: disable session-scoped scheduled tasks and firing CronCreate tasks official-doc-derived Official scheduled-task documentation through env-vars: set this to 1 to disable session-scoped scheduled tasks. The /loop skill and CronCreate become unavailable, and already-scheduled tasks stop firing, including a task already running mid-session.
env_disable_artifact_tool CLAUDE_CODE_DISABLE_ARTIFACT: environment-level switch that turns off the Artifact tool official-doc-derived Official artifact and env-vars documentation: set this to 1 to turn off the Artifact tool, which publishes session output as a private web page on claude.ai. Once this environment switch is set, no settings file turns the tool back on; a settings-file alternative is enableArtifact=false, with the deprecated disableArtifact key also able to turn it off.
env_disable_advisor_tool CLAUDE_CODE_DISABLE_ADVISOR_TOOL: environment switch disabling the advisor tool official-doc-derived Official advisor and env-vars documentation: set this to 1 to disable the advisor tool. The /advisor command becomes unavailable, any configured advisorModel is ignored, and the --advisor flag is still accepted but has no effect, so existing scripts passing it continue without errors.
env_disable_agent_view_sessions CLAUDE_CODE_DISABLE_AGENT_VIEW: environment switch for background agents and agent view official-doc-derived Official agent-view and env-vars documentation: set this to 1 to turn off background agents and the agent view, including claude agents, --bg, /background, and the on-demand supervisor. It matches the disableAgentView setting; this records availability scope, not supervisor internals.
doc_plugin_eval_suite_isolated_noneductive_session Plugin eval suite: fresh isolated non-interactive session, case prompt and graders official-doc-derived Official plugin eval documentation: each case runs a fresh isolated non-interactive session with only the plugin loaded, sends the case prompt, applies transcript/file/reply graders after completion or turn/time limits. Eval and judge calls count against usage or API bill; no internal source structure or score algorithm beyond documented grader rules is modeled.
doc_plugin_eval_no_plugin_baseline_with_without_score Plugin eval no-plugin baseline: WITH, W/OUT arms and contribution Δ official-doc-derived Official plugin eval baseline: the same case repeats with the plugin loaded and without it; WITH and W/OUT scores compare, and positive Δ marks the plugin contribution. Equal scores in both arms mean the plugin was not the cause of passing.
doc_scheduled_task_loop_fixed_interval_maintenance_jitter_reminder_boundary Scheduled session loops support fixed interval, Claude-chosen interval, maintenance prompt, jitter and one-time reminder official-doc-derived Official scheduled-task documentation: a /loop repeats the prompt on a fixed interval or an interval Claude chooses, can run the built-in maintenance prompt or a customized loop.md default, records scheduling jitter for late recurring and early one-shot runs, and supports a separate one-time reminder. This describes session-scoped recurring prompts; cloud scheduled task triggers are modeled as a separate capability.
doc_sdk_hosting_multi_agent_container_per_agent_cwd_settings_isolation Agent SDK multi-agent container: separate per-agent working directory and isolated settings loading official-doc-derived 官方 hosting 文档:多代理容器在同一容器内运行多个 SDK 子进程,适合需要在共享环境密切协作的模拟;每个代理应有独立工作目录以避免互相覆盖文件,并隔离设置加载,防止各代理的 CLAUDE.md 跨代理泄漏。具体隔离选项归入多租户隔离边界。
doc_deployment_least_privilege_filesystem_network_credentials_capabilities Secure deployment least privilege: restrict filesystem, network, credentials and dropped Linux capabilities to task needs official-doc-derived 官方 secure-deployment 文档:按需限制代理能力;文件系统只挂载所需目录并优先只读,网络经代理限制到特定端点,凭证由代理注入而非直接暴露,容器中丢弃不需要的 Linux capabilities。条目只记录公开原则与资源类别,不展开内部实现或凭证格式。
doc_deployment_container_hardening_cap_drop_read_only_network_pids_memory_cpu Hardened container controls: dropped capabilities, no-new-privileges, seccomp, read-only root, tmpfs, network, memory, CPU and PID limits official-doc-derived 官方 secure-deployment 文档:Linux 命名空间提供容器隔离,容器内有独立文件系统、进程树与网络视图但共享宿主内核;加固示例包括 --cap-drop ALL、no-new-privileges、seccomp 配置、只读根文件系统、临时文件系统、关闭网络、内存/CPU/PID 限制与非特权用户。条目记录公开 Docker 加固选项类别。
doc_sdk_hosting_local_disk_state_transcripts_memory_files_artifacts SDK local disk state: transcripts, CLAUDE.md memory files and working-directory artifacts do not survive container restart or move official-doc-derived 官方 hosting 文档:三类代理状态默认位于容器文件系统:会话转录位于 ~/.claude/projects/ 或 CLAUDE_CONFIG_DIR/projects/,CLAUDE.md 记忆文件位于用户层或会话工作目录,工作目录制品位于会话工作目录;容器重启、缩容或迁移节点后这些默认状态不存活。跨主机持久化转录需 SessionStore;记忆文件与制品另需挂载卷或对象存储同步策略。
doc_screen_reader_mode_flat_text_output Screen reader mode flat plain-linear terminal output(屏幕阅读器扁平顺序文本输出) official-public-documentation 官方 accessibility 文档:屏幕阅读器模式把装饰边框、进度动画和原地重绘替换为带标签的顺序文本;用户可完整对话、审批工具权限并逐行审阅输出。该模式仅改造终端界面,VS Code 扩展聊天面板无需启用。
doc_screen_reader_transcript_announcement_labels Screen reader transcript announcement labels(转录播报标签 you/claude/thinking/tool/error/warning) official-public-documentation 屏幕阅读器模式下转录每条消息起始带有可搜索标签:you、claude、thinking、tool、tool error、error、warning、Permission Required、Cost;标签帮助阅读器按章节定位,不记录被批准的工具参数内容。
doc_screen_reader_numbered_prompt_menus Screen reader numbered menus and prompt selection(编号菜单与数字选择提示) official-public-documentation 屏幕阅读器模式下箭头菜单、权限提示和 /effort 选择器变为编号列表;阅读器逐项播报编号行,输入选项编号回车选择;无效编号播报有效范围,提示可 Escape 取消;是或否提示要求键入 y/n 或 yes/no。
doc_theme_daltonized_colorblind_values theme dark-daltonized / light-daltonized colorblind-friendly values(色盲友好主题值) official-public-documentation theme 设置提供 dark-daltonized 与 light-daltonized 色盲友好主题;主题选择属于界面可访问性偏好,不授予文件、命令或网络权限,自定义主题仍按既有 ~/.claude/themes 或插件规则加载。
setting_dialog_expiry dialogExpiry: forwarded Remote Control, SDK-host and held cross-session dialog deadline official-doc-derived 官方 settings-reference:dialogExpiry 设置转发给远程客户端(Remote Control 或 SDK 宿主)的对话框,以及挂起跨会话消息审批对话框的等待截止时间;无人在终端时同样约束 Fable 用量额度同意提示。超时未答复则取消对话框并采用无动作默认值。取值 60s、5m、10m、never,默认 5m;CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS 单会话覆盖。权限提示与 AskUserQuestion 走各自流程,不受该截止时间约束。
setting_default_shell defaultShell: choose Bash or PowerShell for !-prefixed inline shell commands official-doc-derived 官方 settings-reference:defaultShell 选择输入框 ! 前缀内联命令以及 Claude Code 直接运行并写入会话的命令使用 Bash 还是 PowerShell;powershell 仅在 PowerShell 工具可用时生效。不可用时另一个 shell 回退:PowerShell 工具关闭时 powershell 回退 Bash,Bash 未安装时 bash 回退 PowerShell。取值 bash、powershell,默认 bash;Windows 无 Bash 时默认 PowerShell。
change_mcp_reserved_widgets_name Cloud and self-hosted runner MCP server name widgets is reserved; close spellings do not load official-doc-derived 官方 changelog 2.1.285:MCP 服务器名 widgets 在云会话与自托管 runner 中保留;用户自定义同名服务器,或 widgets_ 等近似拼写,都不再加载,需改名。条目记录公开命名保留边界,不收录服务器内部实现。
change_mcp_bare_elicitation_capability MCP URL elicitation on 2025-11-25 protocol: bareElicitationCapability compatibility flag for older servers official-doc-derived 官方 changelog 2.1.332 与 2.1.283:2025-11-25 协议下 MCP 服务器可提供 URL 提示(例如登录);若更新后服务器不再连接,可在 MCP 配置条目加入 bareElicitationCapability: true。2026-07-28 连接还支持 URL 模式 elicitation 浏览器流程;服务器无完成确认方式时不保留等待对话框。条目只记录协议兼容配置项。
doc_fast_mode_speed_configuration_same_model Fast mode: same model under a speed-prioritized API configuration, with unchanged quality and capabilities official-public-docs-derived Official fast-mode documentation: fast mode is a high-speed configuration for supported models, using the same model with a different API configuration that prioritizes speed over cost efficiency; quality and capabilities remain the same. It applies to supported Fable and Opus models and is not available for Sonnet, Haiku or every other model.
doc_runtime_error_reference_surface_scope Runtime error reference: CLI, Desktop app and cloud sessions share the same wrapped CLI error and recovery catalog official-public-docs-derived Official error-reference documentation: except wrapper and IDE errors printed by the launching program, runtime errors and recovery steps apply across the CLI, Desktop app and cloud sessions because all three wrap the same Claude Code CLI. Most runtime errors map to an underlying Claude API error code; the reference covers meaning and recovery inside Claude Code rather than raw HTTP platform status definitions.
doc_cache_scope_machine_directory_prefix Prompt cache scope: one machine and working directory prefix proprietary-all-rights-reserved 官方文档说明缓存按机器与工作目录形成前缀;系统提示嵌入自动记忆路径,会话开场包含目录、平台、shell 与 OS 版本,不同目录会话不会共享前缀。
doc_cache_parallel_same_directory_shared_prefix Parallel sessions in the same directory may read one another’s cache prefix proprietary-all-rights-reserved 同一目录并行会话构建匹配前缀,可读取彼此缓存;这是目录与前缀匹配结果,不代表跨会话共享消息内容授权。
doc_cache_sequential_session_git_status_snapshot_prefix Sequential session cache prefix depends on matching startup Git status snapshot proprietary-all-rights-reserved 顺序会话只有启动时 Git 状态快照匹配时才共享前缀;会话携带分支与近期提交快照,快照不同会导致缓存未命中。
doc_cache_performance_read_creation_token_counts Cache performance: cache_read_input_tokens and cache_creation_input_tokens counts proprietary-all-rights-reserved API 每次响应报告缓存读取与写入 token;高读取/创建比表示缓存有效,创建持续偏高说明前缀发生变化。
doc_cache_performance_usage_hit_ratio_miss_warm_status /usage Prompt cache line: hit ratio, miss count and warm status with likely miss cause proprietary-all-rights-reserved 官方会话用量摘要展示主对话缓存命中率、未命中次数与当前是否温热;可识别最近一次未命中的可能原因。
doc_cache_rewind_retained_prefix_checkpoint_restoration_no_effect /rewind retains earlier cache prefix; restoring file checkpoints has no separate cache effect proprietary-all-rights-reserved Rewind 把对话截断到更早回合;剩余历史与缓存构建内容一致,系统提示和项目上下文层不变,下一请求可命中旧缓存。文件检查点恢复本身对缓存无独立影响。
doc_cache_resume_session_prefix_unchanged_within_ttl Resumed session reads unchanged prefix from cache while still inside cache lifetime proprietary-all-rights-reserved 恢复会话会重新发送完整对话;前缀未变且仍在缓存生命周期内的部分可命中缓存。默认恢复对话保留启动时系统提示,改动到压缩或新会话才生效。
doc_cache_subagent_separate_system_prompt_tool_cache_fork_inherits_parent Subagent starts separate system prompt, tool set and cache; fork inherits parent prefix proprietary-all-rights-reserved 子代理自带独立系统提示与工具集,首请求不读父代理缓存并在自身回合预热;Fork 完全继承父代理系统提示、工具和历史,因此首请求可读父代理缓存。
doc_cache_disable_model_alias_environment_variables Disable prompt caching by model alias environment variables proprietary-all-rights-reserved DISABLE_PROMPT_CACHING 系列变量可关闭全部或按 Haiku/Sonnet/Opus/Fable 默认模型关闭缓存;别名解析到的模型与手动固定模型 ID 的覆盖范围存在文档边界。
doc_analytics_pr_attribution_matching_process PR attribution process: diff added lines, session matching, multi-strategy output match and normalized comparison official-public-docs-derived When a pull request is merged, contribution attribution extracts added lines from the PR diff, identifies Claude Code sessions that edited matching files within the time window, matches PR lines against Claude output using multiple strategies, and calculates AI-assisted and total-line metrics. Before comparison, whitespace is trimmed, repeated spaces collapsed, quotes standardized and text lowercased.
doc_analytics_attribution_session_time_window Attribution time window: sessions from 21 days before through 2 days after PR merge date are matched official-public-docs-derived Only Claude Code sessions in the documented attribution window are considered for matching: 21 days before to 2 days after the pull-request merge date. Sessions outside that window are not attributed; the source algorithm does not consider the PR source or destination branch.
doc_debug_context_command_context_window_breakdown /context lists system prompt, tools, MCP tools, subagents and sources, memory, skills and messages occupying the current context window configuration-documentation Official debug-your-configuration documentation: /context shows everything occupying the current session context, split by system prompt, system tools, MCP tools, custom subagents with source, memory files, skills, and conversation messages. In fullscreen mode use /context all to expand the per-item breakdown. Missing files can be checked against memory-file loading rules.
doc_plugin_unused_recently_usage_signal_boundary Unused-plugin evidence appears in /plugin, /skill-doctor, /doctor and /usage; a standalone installation sends no usage signal back to the plugin author official-public-docs-derived Official measure-plugin documentation: local user-facing evidence of unused plugins appears in the /plugin panel, /skill-doctor, /doctor, and /usage. Claude Code does not report a standalone installed plugin's usage back to its author; organization-wide fleet usage comes from configured OpenTelemetry events or the Enterprise Analytics API.
adoption_champion_role Champion role: share discoveries, answer colleague questions, grow recurring adoption habits official-public-docs-derived 官方 Champion kit:内部倡导者的三个相互强化行为是分享自身实践、成为同事询问时可求助的人、并建立轻量持续习惯。该条目只记录文档化推广职责与协作边界,不把倡导者能力视为产品内置功能。
adoption_champion_time_budget Champion weekly time budget: short public sharing, Q&A and optional pairing remain a multiplier on existing work official-public-docs-derived 官方 Champion kit:倡导者活动预期贴合普通工作周,分享提示与成果约 15 分钟、共享频道答疑约 20 分钟、每周展示线程约 5 分钟,可选结对或演示 0–30 分钟;边界是不把该角色变成额外支持责任。
adoption_champion_reusable_technique_sharing Champion share reusable techniques from the team's own codebase rather than completed outcome reports official-public-docs-derived 官方 Champion kit:最有说服力的分享是同事明天可复用的具体技术,而不是已完成结果的状态更新;示例来自本仓库、提示、截图和小胜利。条目记录推广材料口径,不收录内部仓库代码或未公开实现。
adoption_champion_grow_circle_habits Grow the adoption circle through lightweight recurring habits such as a dedicated channel or weekly thread official-public-docs-derived 官方 Champion kit:依赖单个倡导者的采用是脆弱的;频道、每周线程等少量轻量重复习惯让采用势头在个人注意力离开后继续积累。条目记录推广协作模式,不声称产品自动生成组织习惯。
doc_mods_overview_capabilities Mod overview: UI panes/bands, interface restyling, tool-call and request interception official-public-documentation-entry Mods 公开概览列示三类能力:绘制会话侧栏/提示栏界面、重绘 Claude Code 自身界面元素、进入工具调用或请求流程进行拦截、应答或暂停;不推断内部实现。
doc_mod_api_model_background_session_messages Mods API: call model, background work, cross-session messages, file/process/network reach official-public-documentation-entry 官方 Mods API 文档公开能力入口:调用模型、后台运行工作、会话间收发消息、访问文件/进程/网络;缓存条目 TTL、断点等具体规则以对应 API 页为准。
doc_mod_ui_layout_text_markdown_code_box_input Mod UI elements: Text, Markdown, Link, Code, Box and input controls arranged in panes official-public-documentation-entry Mod 界面参考公开组件:文本、Markdown、链接、代码与变更展示、Box 布局和输入控件;元素在面板中组织并响应按压与输入状态。
doc_mod_test_stub_fake_session_policy_test Mod test kit: stub API calls with on, use a fake $ as Claude Code, and test timer, drawing or policy mods official-public-documentation-entry Mod 测试文档公开:测试自有 $ 扮演 Claude Code;on 注册存根钩子;可测试定时器、界面绘制与策略 Mod;未返回 value 或 deny 的裸存根值判定为失败。
doc_large_codebase_layered_claude_md_scope_skills_worktrees Monorepo/large codebase setup: root and per-directory CLAUDE.md layering, reduce context, scope worktrees/file access and add directory skills official-public-documentation-entry 大型代码库指南按目录分层 CLAUDE.md、减少读取范围、限定 worktree 与文件访问、添加目录级技能;约定改动应随 PR 文档审阅。
doc_sdk_hosting_concurrency_subprocess_ram_consistent_hash Agent SDK hosting concurrency: one subprocess per session; host capacity sized by RAM, long-running sessions pinned by consistent sessionId hash official-public-documentation-entry Official hosting documentation: each session runs in its own subprocess, so a host's concurrency is bounded by how many subprocesses its RAM can hold; capacity follows (host RAM minus overhead) divided by a per-session RAM ceiling measured from representative peak RSS. For long-running sessions, a pool sits behind a load balancer and each session is pinned to one container with consistent hashing on sessionId until eviction or restart.
doc_sdk_loop_parallel_tools_readonly_stateful_custom_readonly_hint Agent SDK loop parallel tool execution: read-only tools may run concurrently; state-changing tools and custom tools default to sequential unless readOnlyHint marks the custom tool official-public-documentation-entry Official agent-loop documentation: when one turn requests multiple tool calls, read-only tools such as Read, Glob, Grep and read-only MCP tools can run concurrently; tools that modify state such as Edit, Write and Bash run sequentially to avoid conflicts. Custom tools default to sequential execution; parallel execution for a custom tool is enabled by setting readOnlyHint in its annotations, using the same field name in the TypeScript and Python SDKs.
doc_sdk_hosting_resources_1gib_ram_5gib_disk_1cpu_starting_floor Agent SDK container resources: 1 GiB RAM, 5 GiB disk and 1 CPU per agent as a fresh-instance starting floor; size upward for session length and tool load official-public-documentation-entry Official hosting documentation gives 1 GiB RAM, 5 GiB disk and 1 CPU per agent as a reasonable starting point for a freshly started instance. Memory grows with session length and tool activity, so operators must size for actual session lengths and concurrency rather than the idle baseline; per-host agent capacity is then derived from the measured per-session RAM ceiling.
doc_ultrareview_custom_base_branch_commit_tag UltraReview custom base: branch, commit ID or tag official-public-docs-derived UltraReview 可把当前分支对照默认分支之外的 base 比较;base 可为远端分支、提交 ID 或标签,缺失分支由 origin 拉取。
doc_ultrareview_plain_language_request_note UltraReview plain-word request retained as review note official-public-docs-derived 普通自然语言请求作为审查备注保留,在启动对话框显示并关联后续发现;多词且非分支名/PR 引用时才按备注处理,单词按分支名解析。
doc_auto_mode_setup_command_drafts_environment /auto-mode-setup drafts autoMode.environment entries from project and recent sessions official-public-docs-derived 内置 /auto-mode-setup 命令读取项目与近期会话,草拟 autoMode.environment 条目及必要规则条目;接受草稿后写入用户 settings.json。该命令是内置命令而非 bundled skill。
doc_orchestrator_spawn_metadata_label_policy Orchestrator --hook-label passes session metadata to spawn-runner hook as allowed labels official-public-docs-derived A --hook-label entry forwards a session's metadata label to the hook as CLAUDE_RUNNER_META_
doc_orchestrator_expected_spawn_lease_and_prewarm Orchestrator expected-spawn-seconds lease and --min-idle pre-warm runner slots official-public-docs-derived Expected spawn seconds is the p99 time from spawn request to runner registration, including platform capacity wait; the server-side lease range is 10 to 3600 seconds, and all replicas share the value. --min-idle keeps a configured number of idle slots free by proactively spawning standby runners; 0 disables pre-warming and pairs with idle runner exit.
doc_security_review_per_edit_pattern_no_model_call Per-edit security pattern check is deterministic string match with no model call and no usage cost official-public-docs-derived When Claude writes a file, the plugin scans new content for known risky patterns such as dynamic execution, unsafe deserialization, DOM injection, or workflow-file edits. This is a deterministic string match with no model call; warnings append to the next-step context and fire once per pattern, file, and session.
doc_security_review_end_turn_background_diff_review End-of-turn security review sends working-tree diff to separate background model reviewer official-public-docs-derived After a turn, the plugin computes the git diff of working-tree changes from edit tools, Bash commands, and subagents, then sends it to a separate focused security reviewer in the background. The reply is not delayed; if issues are found, Claude is re-prompted with findings as a follow-up. Coverage caps at 30 changed files per turn and three consecutive findings rounds.
doc_security_review_commit_push_agentic_context_review Commit/push agentic review reads surrounding callers, sanitizers and related files official-public-docs-derived When Claude runs git commit or git push through the Bash tool, a deeper background agentic review reads surrounding code including callers, sanitizers and related files before deciding whether a finding is real. It fires only on Claude-made Bash commits/pushes; shell commits and the in-session ! shell escape are not reviewed, and review is capped at 20 per rolling hour.
doc_voice_tap_mode_submit_threshold_and_recording_resume Tap-mode voice dictation submits at three-plus words; stopped recording resumes unsent until edited official-public-docs-derived Tap mode starts on one keypress and stops on the next; after the second tap, transcripts of three words or more submit automatically, while fewer words insert without sending. A recording that stops by itself keeps words unsent in the prompt; Enter sends them, or appending text at the cursor and a second tap resends all text when at least three words were added.
doc_feature_setup_overtime_additive_context_layering Extension setup grows over time; CLAUDE.md loads additively, while skills, subagents and MCP resolve same-name conflicts by source priority official-public-docs-derived Official features-overview documentation: start with project conventions in CLAUDE.md and add skills, subagents, hooks, MCP and plugins as concrete triggers arise. Instruction files contribute additively; same-named skills, subagents and MCP servers resolve by documented source priority. Hooks merge across sources instead of resolving by name.
doc_plugin_eval_init_interactive_generator claude plugin eval init:交互式生成评测用例与评分器 proprietary-all-rights-reserved 官方 plugin-evals 文档:claude plugin eval init 读取插件后交互式询问期望结果,提议应触发与不应触发插件的提示、设计评分器并试跑一次,再向 evals/ 写入用例目录;与既有隔离会话运行、评分器类型和基线得分条目分开挂载。
doc_routine_prompt_repo_connector_saved_configuration 云端定时任务保存配置:提示、仓库与连接器 proprietary-all-rights-reserved 官方文档:云端定时任务是一次打包保存的 Claude Code 配置,包含提示、一个或多个仓库与一组连接器;触发后作为完整云端会话自动运行,可使用仓库中提交的技能和已包含的连接器。
entry_2_1_332_claude_p_sdk_hosted_session_startup_memory claude -p and SDK-hosted sessions reduce memory use at the start of a conversation official-public-documentation-entry Official 2.1.332 changelog improves memory use of claude -p and SDK-hosted sessions at the start of a conversation. This complements the existing separate improvements for resuming long conversations and startup with MCP servers that list many tools; it concerns initial session memory rather than resumed transcript size.
doc_sdk_config_setting_sources_files settingSources / setting_sources:用户、项目与本地设置文件加载来源 proprietary-all-rights-reserved 官方配置文档:settingSources(TypeScript)或 setting_sources(Python)控制用户、项目、本地三类文件系统来源;设置文件与 CLAUDE.md 文件经这些来源加载。传入空列表可禁用这些文件系统来源。
doc_sdk_config_cwd_working_directory_resolution cwd:会话工作目录决定项目设置、技能发现与会话存储归属 proprietary-all-rights-reserved 官方配置文档:cwd 指定会话运行目录;未设置时使用调用进程的工作目录。SDK 没有 cwd setter,更换目录需以该 cwd 另启会话。Claude Code 依据工作目录确定项目设置与 Hooks、技能发现位置,以及存储会话所属项目。
doc_error_retry_watchdog_unattended_capacity Retry watchdog:无人值守会话在重试预算外继续等待 429/529 容量错误 proprietary-all-rights-reserved 官方错误参考:CLAUDE_CODE_RETRY_WATCHDOG 用于 CI 等无人值守会话;设置后可在 CLAUDE_CODE_MAX_RETRIES 之外继续重试 429 与 529 容量错误。看门狗仍会在花费限额、额度耗尽或响应标记 x-should-retry: false 时停止;Fast Mode 的限额处理另见官方 Fast Mode 文档。
doc_error_retry_countdown_reason_display 重试倒计时:Retrying in Ns · attempt x/y 与首条错误原因标签展示 proprietary-all-rights-reserved 官方错误参考:重试期间 spinner 显示 Retrying in Ns · attempt x/y 倒计时;可直接处理的失败会在标签中命名首条原因(网络中断、TLS 握手失败或限流),其他错误先显示通用 API error。v2.1.198 起第三次尝试或最后一次尝试切换到具体原因;529 过载时倒计时下方还会提示查看服务状态的位置。
doc_error_request_body_32mb_separate_context_window 请求体 32MB 限制:独立于 token 上下文窗口的消息、图片与附件体积上限 proprietary-all-rights-reserved 官方错误参考:原始请求体在分词前超过 API 32MB 限制时出现 Request too large;常见原因是粘贴内容、工具结果或附件累积。该限制与上下文窗口 token 限制分开:图片/文档导致超限可剥离附件后重试;仅消息本身超限则压缩也无法容纳,非交互模式应减少输入或另开会话。
doc_plugin_unused_recently_threshold_local_machine_signal 插件“近期未使用”阈值:14 天且 10 个会话未使用;用量信号只保留在本机 proprietary-all-rights-reserved 官方插件测量文档:已安装的市场插件至少 14 天且 10 个会话未使用后进入“Not used recently”分组;Claude Code 不把插件使用情况回报给作者,个人组织内可见的用量信号来自本机命令与本机遥测后端。
doc_advisor_subagent_inherits_configured_pairing Advisor 子代理继承已配置 advisor,并按自身模型通过同一配对校验 official-public-documentation 官方 advisor 文档:子代理继承已配置的 advisor,并针对自己的模型执行同一配对校验。本条记录继承配置与配对边界;不推断 advisor 调用频率、服务端路由或未公开评分算法。
doc_gateway_upstream_static_headers 上游 headers: 静态请求头:给单个网关上游发送固定、可模板化的自定义头 configuration-documentation 官方网关配置:每个 upstream 可设置 headers:,向该上游或其前方代理发送固定请求头,用于代理路由、流量归因或身份透传。配置要求 Claude Code v2.1.277 或更高网关版本;头值为可打印 ASCII,两端无空格,数值与布尔须加引号。普通消息、count_tokens 与故障转移请求携带本上游自有头;放弃请求后的 Bedrock CountTokens 与 Workload Identity Federation token exchange 不携带。AWS SigV4 签名上游上这些头属于签名组成部分,代理必须原样透传。
doc_gateway_telemetry_forward_to_destination telemetry.forward_to OTLP 目的地:URL、认证头与 metrics/logs/traces 独立开关 configuration-documentation 官方网关配置:telemetry.forward_to 列出 OTLP 导出目的地,每项含 URL、headers 认证头,以及独立的 metrics、logs、traces 开关;默认仅 metrics。目的地 URL 必须使用 HTTPS,唯一例外是网关本机回环采集器,且回环导出受 SSRF 守卫与 CLAUDE_GATEWAY_ALLOW_LOOPBACK=1 约束。网关逐目的地转发 OTLP 信号,不缓冲、不重试或持久化遥测;日志和追踪的敏感度高于聚合指标。
doc_env_anthropic_betas_header ANTHROPIC_BETAS:追加 anthropic-beta 请求头值的 API beta 开关 configuration-documentation 官方环境变量:ANTHROPIC_BETAS 接受逗号分隔的额外 anthropic-beta 头值,用于在 Claude Code 原生支持前选择 Anthropic API beta。Claude Code 已发送所需 beta 头;该变量与要求 API Key 认证的 --betas 标志不同,可配合 Claude.ai 订阅等其他认证方式使用。
doc_env_auto_mode_classifier_model CLAUDE_CODE_AUTO_MODE_MODEL:自动模式分类器请求使用的模型 ID configuration-documentation 官方环境变量:CLAUDE_CODE_AUTO_MODE_MODEL 设置自动模式分类器请求所使用的模型,需传完整模型 ID(如 claude-sonnet-4-6)。官方文档说明存在忽略该变量的情形,并列出选择分类器模型的对应规则;该变量要求 Claude Code v2.1.302 或更高版本。
doc_env_automount_roots_skip CLAUDE_CODE_AUTOMOUNT_ROOTS:跳过上层目录查找的自动挂载根路径清单 configuration-documentation 官方环境变量:CLAUDE_CODE_AUTOMOUNT_ROOTS 指定 Claude Code 在工作目录上层查找 CLAUDE.md、技能与 .mcp.json 时应跳过的自动挂载根目录。多个路径在 Unix 以 : 分隔、Windows 以 ; 分隔;每个路径须为绝对路径且不含符号链接。该变量用于自动挂载器导致上层查找等待的场景,要求 Claude Code v2.1.323 或更高版本。
doc_env_subagent_default_model CLAUDE_CODE_SUBAGENT_MODEL:子代理、队友与工作流代理的默认模型 configuration-documentation 官方环境变量:CLAUDE_CODE_SUBAGENT_MODEL 为未另行指定模型的子代理、Agent Teams 队友和 Workflow 代理设置默认模型,接受可用模型 ID。它与强制覆盖已有模型选择的 CLAUDE_CODE_SUBAGENT_MODEL_FORCE 不同,只承担默认分配边界。
doc_env_subagent_default_effort CLAUDE_CODE_SUBAGENT_EFFORT:子代理与工作流代理默认推理强度级别 configuration-documentation 官方环境变量:CLAUDE_CODE_SUBAGENT_EFFORT 设置子代理与 Workflow 代理的默认 effort 级别,可选 low、medium、high、xhigh、max。官方文档标明该级别不应用于 fork 出来的分支;该变量控制代理请求的强度提示,不等同替换模型选择。
entry_2_1_332_code_mode_unanswered_typed_message_esc_turn Code Mode message typed during a command and left unanswered by Esc starts a new turn configuration-documentation 命令运行期间输入、随后按 Esc 未获答复的 Code Mode 消息会开启新回合;第二次 Esc 停止该回合。记录公开交互状态转换,不建模内部消息队列或任务调度源码。
entry_2_1_332_code_mode_slow_background_command_notice Code Mode tells Claude when a slow command moves to the background, its script output is empty, or a background time limit applies configuration-documentation Code Mode 会告知 Claude 慢速命令转入后台、脚本输出为空,以及后台命令时限;记录公开命令状态通知边界,不收录后台进程私有排队或 shell 内部实现。
entry_2_1_332_code_mode_inline_shell_after_background_output Typed slash-command inline shell commands run in Code Mode after background script output arrives configuration-documentation 后台脚本输出到达后,输入斜杠命令的内联 shell 命令在 Code Mode 中继续执行。该条目记录公开命令执行顺序边界;不建模 shell 子进程、私有环境变量或未公开命令注册。
entry_2_1_332_computer_use_reduced_context_until_needed Computer use takes less context until Claude uses it configuration-documentation computer use 在 Claude 使用前尽量减少上下文占用。记录公开上下文预算边界,不收录屏幕图像内部编码、视觉模型参数或未公开采集策略。
entry_2_1_331_code_mode_provider_platform_terminal_support 2.1.331 Code Mode terminal sessions on Bedrock, Google Cloud Agent Platform, Foundry and Claude Platform on AWS official-document-derived-entry 官方 changelog 2.1.331:Code Mode 在终端会话中支持 Amazon Bedrock、Google Cloud Agent Platform、Microsoft Foundry 与 Claude Platform on AWS。边界:条目只记录交付平台覆盖,不记录模型权重、内部实现或提供商未公开配额。
entry_2_1_331_workflow_background_shell_mcp_cleanup_after_report 2.1.331 Workflow agent cleans background shells and MCP servers after report handback official-document-derived-entry 官方 changelog 2.1.331:Workflow 代理交还报告后,后台 Shell 与 MCP 服务器有时仍继续运行;该修复覆盖报告交接后的资源清理。边界:只记录代理生命周期清理行为,不暴露进程树、服务器内部结构或未公开调度算法。
feat_runner_start_dir Self-hosted runner --start-dir / SELF_HOSTED_RUNNER_START_DIR repository starting directory official-public-changelog-entry Official changelog: the self-hosted runner accepts --start-dir and SELF_HOSTED_RUNNER_START_DIR so Claude starts its work in a repository folder; settings and hooks continue to load as without it. The entry records only the public directory-selection contract, not internal runner filesystem or process layout.
feat_plugin_install_json_status_fields claude plugin install --json commandPrinted and commandFailed install-result status fields official-public-changelog-entry Official changelog: commandPrinted is true when the plugin install command wrote to stderr; commandFailed marks an install command that exited with an error, was killed, or timed out. The entry records only the public CLI JSON result boundary.
feat_signin_link_full CLAUDE_CODE_FULL_SIGN_IN_LINK=1: print the full sign-in link when the short link errors or a script reads values official-public-changelog-entry Official changelog: CLAUDE_CODE_FULL_SIGN_IN_LINK=1 prints the full sign-in link when the short link shows an error or a script reads values from it. The boundary covers link presentation only, not auth secrets or internal implementation.
env_transcript_local_gc CLAUDE_CODE_TRANSCRIPT_LOCAL_GC: cap long -p or Agent SDK session transcript growth configuration-documentation Official session and environment documentation: set to 1 to limit how large the transcript file of a long -p or Agent SDK session grows. After each compaction, once the file exceeds 5 MB, Claude Code removes history before that compaction; on v2.1.296 or later it preserves the file when removal would shrink it by less than 10%. The entry records only the public transcript-size boundary, not the internal JSONL layout.
env_workflow_prefix_stagger_ms CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS: same-prefix sibling workflow agent stagger bound configuration-documentation Official Workflow and environment documentation: upper bound in milliseconds on how long a workflow agent waits for a same-prefix sibling's first response to begin before sending its own first request. When a fan-out starts several agents sharing a prompt-cache prefix, Claude Code holds all but the first agent for up to this bound so the others read the cached prefix. Default bound is 5000 ms; set 0 to disable the hold.
env_loop_keepalive CLAUDE_CODE_LOOP_KEEPALIVE=1: one extra self-paced /loop iteration after an unscheduled turn configuration-documentation Official scheduled-task and environment documentation: set to 1 to run one extra iteration of an interactive self-paced /loop when its second or later iteration ends with nothing scheduled. The entry preserves the session-scoped loop boundary and does not describe cloud RemoteTrigger scheduling.
doc_mcp_server_scope_hierarchy_precedence MCP server definition scope hierarchy and precedence official-public-documentation-entry Official MCP documentation: when the same server appears in more than one scope, Claude Code connects once and uses the highest-precedence source definition; fields are not merged across scopes. The entry records source precedence and duplicate-matching boundary, not internal configuration storage implementation.
doc_mcp_automatic_reconnection_backoff MCP automatic reconnection and retry backoff official-public-documentation-entry Official MCP documentation: dropped remote servers reconnect with exponential backoff; transient HTTP/SSE first-connection failures and capability discovery requests have separate retry limits. Authentication, not-found, stdio first-connection and WebSocket first-connection cases are excluded from these automatic retries.
doc_troubleshooting_terminal_table_row_display_cap Terminal Markdown table row display cap official-public-documentation-entry Official troubleshooting documentation: a Markdown table with more than 200 rows renders the first 200 rows followed by a hidden-row notice. Only the terminal display is capped; the full table remains in the conversation and /copy copies every row.
doc_cli_system_prompt_customization_flags CLI system-prompt flags: replace, file replace, append, append-file and prompt snapshot control official-public-docs-derived Official CLI reference provides five system-prompt flags for interactive and non-interactive modes: --system-prompt replaces the entire default prompt; --system-prompt-file replaces it with file contents; --append-system-prompt appends to the default prompt; --append-system-prompt-file appends file contents; --system-prompt-snapshot controls whether a conversation keeps the text it started with. The entry records these public flags and their prompt-scope boundary, not prompt composition internals.
doc_project_batch_workflow Project batch workflow: send work to threads and read returned results official-public-docs-derived Projects support batching work into threads and collecting thread results; the batch workflow separates task dispatch, thread execution, result review and follow-up control.
doc_mod_next_signal_abort Mod next.signal: AbortSignal that aborts when the hook event is abandoned official-public-docs-derived Official Mods reference: inside a Mod hook, next.signal is an AbortSignal that aborts when the event is abandoned. Hooks observe it to cancel in-flight background work rather than waiting for a completed abandoned event. The entry records this documented abort-signal contract; signal implementation and event teardown internals are not modeled.
doc_mod_next_origin_plugin_tier Mod next.origin: { plugin, tier } event-source marker; engine/core marks Claude Code's own action official-public-docs-derived Official Mods reference: next.origin carries { plugin, tier } of whoever fired the event. Claude Code itself is { plugin: 'engine', tier: 'core' }; a Mod's tier is its priority group in the order Mods run: prepend, user, append, or builtin. Hooks should check next.origin.plugin before refusing an event that also fires for Claude Code's own actions. The entry records this documented source-marker boundary only.
doc_mod_next_to_tier_skip Mod next.to(e, tier): skip to a later Mod tier; restricted to prependPlugins/appendPlugins Mods official-public-docs-derived Official Mods reference: next.to(e, tier) skips to a later tier, which may be append, builtin, or core; next.to(e, 'append') skips the Mods a user installed. Only a Mod listed in prependPlugins or appendPlugins may call it. The entry records the documented tier-skip operation, allowed targets and caller restriction; it does not model the internal priority scheduler.
doc_mod_box_border_style Mod Box borderStyle: named terminal border styles for a Box element official-public-docs-derived Official Mods reference: to draw a border around a Box, set its borderStyle to one of the documented names, as in borderStyle: 'round'. Each name maps to what the terminal draws and its top edge; the documented set includes single, double, round, bold, singleDouble, doubleSingle, classic, arrow, dashed and quote. The entry records the public style-name boundary; internal box-drawing layout is not modeled.
doc_mod_box_spacing_step Mod Box spacing props and step names measured in terminal cells official-public-docs-derived Official Mods reference: Box spacing props are gap, columnGap, rowGap, padding, margin, and the one-side and one-axis forms such as paddingX and marginTop. Each takes a number of terminal cells such as gap: 1, or a step name such as gap: 'md'. The documented steps xs, sm, md, lg and xl map to cell widths and heights in the terminal and VS Code extension; a step applied to gap, padding or margin applies across and down. The entry records the public spacing property and step boundary.
doc_mod_text_typography_prop Mod Text typography props: size, weight, mono and tabular with renderer support check official-public-docs-derived Official Mods reference: set size, weight, mono or tabular on a Text to ask the app drawing the tree for a text size, a weight, a monospaced typeface, or equal-width digits. Before relying on a prop, check what the terminal and the VS Code extension do with it; if an app ignores a prop, the tree still draws there with the text as if the prop had been left out. The entry records the public typography property set and renderer-support boundary.
doc_auth_credential_resolution_order Authentication credential resolution order: provider, Bearer token, API key, helper, OAuth token, profile/federation, login OAuth official-public-documentation-entry Official authentication reference: when multiple credentials are present, Claude Code resolves them in seven documented steps: cloud provider credentials (Bedrock/Vertex/Foundry flags), ANTHROPIC_AUTH_TOKEN as Authorization Bearer, ANTHROPIC_API_KEY as X-Api-Key, apiKeyHelper script output, CLAUDE_CODE_OAUTH_TOKEN, Anthropic profile and federation credentials, and finally /login subscription OAuth. A logged-in gateway session sits outside this chain and outranks ambient provider credentials. The entry records the documented order only; it does not model token lifetimes, encryption or provider-side RBAC.
doc_parallel_agent_five_approach_comparison Five parallel agent approaches: subagents, agent view, agent teams, Projects, dynamic workflows; compared by coordinator, worker communication and shared-file isolation official-public-documentation-entry Official agents reference: Claude Code has five ways to work on several tasks at once: subagents, agent view, agent teams, dynamic workflows, and Projects. The right approach depends on three documented dimensions: who coordinates the work (Claude delegates inside one conversation; the user hands off independent tasks; Claude plans, assigns and supervises a team; a script holds the plan instead of turn-by-turn judgment), whether workers need to talk to each other (cross-session messaging between user-run sessions; subagents report back to the spawning conversation; agent view sessions report only to the user; teammates in an agent team message each other directly), and whether tasks touch the same files (worktree isolation for separate checkouts; agent teams do not isolate teammates in worktrees, so work must be partitioned). Worktrees, cross-session messaging and the /batch skill are supporting tools rather than separate coordination styles. View commands map to claude agents, /agents, /tasks and /workflows. The entry records this documented comparison boundary only.
entry_2_1_330_simple_system_prompt_unknown_model 2.1.330 unrecognized sonnet/haiku names use the shorter system prompt; CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 gives every model the full prompt official-public-changelog-entry Official changelog 2.1.330: unrecognized model names containing sonnet or haiku use the shorter system prompt, like other unrecognized names; CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 gives every model the full one. The entry records the documented unknown-name rule and environment override; model identifiers, custom deployment names and inference-profile ARNs themselves remain outside this entry.
entry_2_1_330_subagent_model_fallback_carryover 2.1.330 subagent model fallback carries over: no-model agents and their forks run on the fallback; nested agents use its Bedrock region official-public-changelog-entry Official changelog 2.1.330: a subagent's model fallback carries over: agents with no model and forks it then starts run on the fallback, and the agents they start use its Bedrock region. Separately, skills that Claude runs with a model setting, other than context: fork skills, leave subagents, forks, compaction and /recap on the session's model. The entry records the documented fallback propagation and skill-model retention boundary; explicit per-agent model selection is covered by existing model anchors.
doc_mod_api_command_register Mods API $.command.register: name, description, argumentHint, immediate and isTextDisplayOnly; taken name throws official-public-docs-derived Official Mods API documentation: $.command.register adds a user-slash command in the session.start hook alongside tool registration. Options: argumentHint shown after the command and a space; immediate: true lets the command run while Claude is working; isTextDisplayOnly: true on the returned text prints in the transcript without Claude reading it (before v2.1.326, or otherwise, Claude can read the text). Registering a name already used by a built-in command throws; the throwing hook is skipped, so commands should be registered last or wrapped in try/catch.
doc_mod_api_model_complete_fork Mods API $.model.complete vs $.model.fork: standalone prompt request vs conversation repeated with appended prompt official-public-docs-derived Official Mods API documentation: $.model.complete sends the passed model and one user prompt, a short attribution system block plus optional system, and no project CLAUDE.md context or tools. $.model.fork({ prompt }) repeats the current conversation, appending the prompt as a user message; it keeps the session model and session system prompt, includes project context, and Claude's tools are exposed but the model cannot call them. Both calls use the session credentials and bill to the user plan, API key or cloud provider; a fork repeats the last request so the Claude API serves most of it from prompt cache while the conversation stays cached.
doc_mod_api_wasm_compile Mods API $.wasm.compile: load a file up to 64 MiB as a WebAssembly module; v2.1.326 or later official-public-docs-derived Official Mods API documentation: $.wasm.compile('./engine.wasm') turns a file of up to 64 MiB into a module passed to WebAssembly.instantiate. The path is a string literal relative to the calling file. Available on Claude Code v2.1.326 or later. Records the documented namespace method, size bound and version threshold only; no internal module structure.
doc_mod_api_fs_namespace Mods API $.fs: read, write, exists, stat, list over files and directories; list is non-recursive official-public-docs-derived Official Mods API documentation: $.fs covers read(path), write(path, text), exists(path), stat(path) and list(path) on files and directories. In $.fs and $.process a relative path resolves against the session working directory, or that of the subagent whose event the hook handles. $.fs.list returns one directory's entries as { name, kind, size, isLink } and is not recursive. Mods reach these with the same permissions as the user running Claude Code; the hooks module itself has no Node APIs, timers, network or file access of its own.
doc_mod_api_process_namespace Mods API $.process.run and $.process.spawn: argument-list command, no shell; spawn output withhold after exit is not undone official-public-docs-derived Official Mods API documentation: $.process.run(['git', 'status']) starts a command and resolves when it exits; it takes an argument list and uses no shell, resolving to { exitCode, stdout, stderr } whatever the exit code, and rejects if the program cannot start or is still running at the default 30-second timeout. $.process.spawn streams a long-running command's output. A Mod can refuse a $.process.spawn call after the command has produced output or exited; nothing the command did is undone. The rejection ends with $.process.spawn started, and a plugin withheld its result: (command still running; stopped) or $.process.spawn ran, and a plugin withheld its result: (command had exited).
doc_mod_api_http_fetch_namespace Mods API $.http.fetch: http/https request resolving to { status, ok, headers, text }; up to five redirects, origin-switch header drop official-public-docs-derived Official Mods API documentation: $.http.fetch(url, init) works over http or https and resolves to { status, ok, headers, text } once the body is read. It follows up to five redirects; on a redirect to a different origin it keeps only accept, accept-language, content-type and user-agent request headers and drops the rest, so a request depending on another header such as Authorization can fail after that redirect. Timeout and body-size limits are documented in the Mods reference limits section.
doc_mod_api_store_namespace Mods API $.store: plugin-private JSON key-value store kept between sessions official-public-docs-derived Official Mods API documentation: $.store is a JSON key-value store belonging to the plugin itself, kept between sessions. Records the documented namespace and persistence boundary only; stored keys, values and internal serialization are not part of this entry.
doc_mod_api_env_namespace Mods API $.env.get and $.env.set: read and write environment variables; name written as a string literal official-public-docs-derived Official Mods API documentation: $.env exposes get and set for environment variables; the name is written as a string literal. Records the documented namespace method pair and literal-name boundary only; specific environment variables and values are not enumerated here.
doc_mod_api_settings_read Mods API $.settings.read(): merged settings, one source, or one key; source user/project/local/flag/policy official-public-docs-derived Official Mods API documentation: $.settings.read() resolves to all settings merged by precedence as one object whose top-level keys match a settings.json file (such as permissions and hooks). Pass { source } to read one source, { key } to read one key in the merged settings, or both. Source names: user (~/.claude/settings.json), project (.claude/settings.json), local (.claude/settings.local.json), flag (--settings and SDK inline settings), policy (managed settings). The key argument requires Claude Code v2.1.304 or later; key is a top-level key, not a dotted nested path.
doc_mod_api_session_messages_usage Mods API $.session.messages() transcript list and $.session.usage() context-window use and plan limits official-public-docs-derived Official Mods API documentation: $.session.messages() returns the transcript as a list of { role, text, toolUses }, along with the working directory, model and more. $.session.usage() returns context-window use and plan limits. Records the documented read-only session accessors only; transcript contents and internal usage accounting are not part of this entry.
doc_mod_api_mcp_call_namespace Mods API $.mcp.call: call a tool on a connected MCP server from a Mod hook official-public-docs-derived Official Mods API documentation: $.mcp.call invokes a tool on a connected MCP server from inside a Mod. Like $.tool.call it can skip permission rules, permission prompts, a hook's ask and the auto-mode classifier by default under the guard boundary documented in admin.md. Records the documented namespace method and permission-skip boundary only; server connection details stay with existing MCP entries.
glossary_agentic_coding Agentic coding: AI reads files, runs commands and makes changes autonomously official-public-docs-derived 术语表定义:agentic coding 是 AI 可读取文件、执行命令并自主修改代码的工作流,区别于只回复文本、需用户自行应用的聊天助手;Claude Code 因具备可行动工具而是 agentic。
doc_mod_session_send_action Mod $.session.send({ to, text }) delivers a message via the SendMessage delivery channel official-public-docs-derived Mod 可调用 $.session.send({ to, text }) 向另一会话({ sessionId })、子代理或队友({ agentId })或来信回复地址发送纯文本;投递通道与 SendMessage 工具相同。消息入队即 resolve { isDelivered: true };未投递时 resolve { isDelivered: false, reason }。
doc_mod_ui_status_toast_log_notify_surfaces Mod background-job display surfaces: $.ui.status, $.ui.toast, $.ui.log, $.ui.notify official-public-docs-derived 后台任务可在不启动回合的情况下展示文本:$.ui.status 提示行常驻提示下方;$.ui.toast 几秒后消失;$.ui.log 写入 transcript 的暗色行且 Claude 不读取;$.ui.notify 按 preferredNotifChannel 设置发出终端通知。isSent: true 仅表示已发出,终端不回报用户是否看到。
cli_cmd_agents_not_claude_agents /agents prints subagent file-location notice; separate from the claude agents agent-view CLI official-public-docs-derived /agents 命令打印提示:请 Claude 创建或管理子代理,或直接编辑 .claude/agents/、~/.claude/agents/;v2.1.197 及更早版本曾打开交互式子代理配置界面。名称相似但 /agents 与 claude agents(agent view CLI)相互独立。
doc_mod_site_above_prompt_list Mod render site AbovePromptList: stacked AbovePrompt rows, one { plugin, tree } entry per mod official-public-documentation-entry Official Mods reference: AbovePromptList is the stack of AbovePrompt rows. Its rows prop lists one { plugin, tree } entry for each mod's row, plus the AbovePrompt props. It renders as one instance on Terminal, Desktop and VS Code, and requires Claude Code v2.1.323 or later. The entry records this documented list render site; the individual AbovePrompt band props and collapse behavior remain separate band entries.
doc_mod_site_beside_prompt Mod render site BesidePrompt: cell to the right of the prompt; maxColumns, floatRows, floatColumns, isWorking, view official-public-documentation-entry Official Mods reference: BesidePrompt is a cell to the right of the prompt. Its props are maxColumns, floatRows, floatColumns, isWorking and view; the site renders one instance on Terminal in fullscreen rendering and on Desktop, and requires Claude Code v2.1.331 or later. The entry records this documented beside-prompt site and its documented props.
doc_mod_site_underlay Mod render site Underlay: blank-area layer; columns, rows, isWorking, view; requestId site:underlay official-public-documentation-entry Official Mods reference: Underlay is a layer visible only where the interface is blank. Its props are columns, rows, isWorking and view; e.requestId is site:underlay. It renders on Terminal in fullscreen rendering and requires Claude Code v2.1.331 or later. The entry records this documented underlay site and its requestId marker.
doc_mod_site_list_layout_order Mod render site BesidePromptList and UnderlayList: ordering of BesidePrompt cells and Underlay layers; plugins prop official-public-documentation-entry Official Mods reference: BesidePromptList and UnderlayList define the order of the BesidePrompt cells and Underlay layers. Their plugins prop carries the ordering; the site renders one instance on the same apps as the site it orders, and requires Claude Code v2.1.331 or later. The entry records this documented ordering render site; individual BesidePrompt and Underlay cells remain separate site entries.
doc_mod_site_tool_group Mod render site ToolGroup: tool name, input and result row grouped with ToolUse and ToolResult; tool call id official-public-documentation-entry Official Mods reference: ToolGroup groups the tool's name, input and result with the ToolUse and ToolResult rows. e.requestId is the tool call id. The site renders on Terminal, Desktop and VS Code. The entry records this documented tool-group display site; SDK ToolUseBlock and ToolResultBlock content blocks are separate SDK entries.
doc_mod_site_command_output Mod render site CommandOutput: command and text row; drawn row id as requestId; Terminal and Desktop official-public-documentation-entry Official Mods reference: CommandOutput carries the command and text props; e.requestId is the drawn row's id. The site renders on Terminal and Desktop. The entry records this documented command-output row site; command registration and the command.run handler event are separate entries.
doc_mod_site_tool_progress Mod render site ToolProgress: kind prop; tool call id as requestId; Terminal only official-public-documentation-entry Official Mods reference: ToolProgress carries the kind prop; e.requestId is the tool call id. The site renders on Terminal only. The entry records this documented tool-progress row site; spinner and turn-duration row sites are separate existing interface entries.
doc_mod_site_info_notice Mod render site InfoNotice: text and command props; notice text prefixed notice:; Terminal official-public-documentation-entry Official Mods reference: InfoNotice carries the text and command props; the notice's text is prefixed with notice:. The site renders on Terminal. The entry records this documented information-notice row site; the notice command remains a display reference rather than an executed tool call.
doc_mod_site_session_mode Mod render site SessionMode: modes prop; one instance; Terminal and Desktop official-public-documentation-entry Official Mods reference: SessionMode carries the modes prop and renders as one instance on Terminal and Desktop. The entry records this documented session-mode display site; permission modes themselves and their approval rules remain separate permission-mode entries.
doc_mod_site_agent_row Mod render site AgentRow: agent.list fields plus rowIds, columns, body, isHidden; agent id; Terminal and VS Code Focus view official-public-documentation-entry Official Mods reference: AgentRow carries the $.agent.list() fields plus rowIds, columns, body and isHidden; e.requestId is the agent id. The site renders on Terminal and the VS Code Focus view, and requires v2.1.326 or later of Claude Code or the extension. The entry records this documented agent-row display site; agent.spawn lifecycle and $.agent.list statuses are separate existing entries.
doc_self_hosted_environments_quickstart Self-hosted environments quickstart: create environment, register runner, route session to self-hosted compute official-public-docs-derived Official self-hosted quickstart: a self-hosted environment runs Claude Code cloud sessions on organization-operated infrastructure, executed by deployed runner processes. The quickstart stands up the smallest working setup: one runner on a single host serving one test session. Host and network prerequisites: Linux or macOS host/container (Windows is not supported as a runner host; use a Linux container), outbound HTTPS to api.anthropic.com, claude.ai, download hosts and the git host; Claude Code v2.1.224 or later (runner serving Claude Tag sessions needs v2.1.229 or later and python3 on PATH); Git 2.24 or newer. The environment key/secret is shown once and expires 365 days after creation; the runner starts with --environment-secret-file and --base-dir (default /workspace), logs Registered: runner_id= then polls for work, and the environment status moves from No runners deployed to Healthy. The guided claude self-hosted-runner setup writes ./runner-setup/CHEAT-SHEET.md; a runner holding a revoked secret fails its next authenticated poll and exits. The entry records documented prerequisites, flags and lifecycle signals only; secrets and control-plane protocol internals are not modeled.
doc_ship_skilloverrides_managed_disable_keys Disable /ship and /steward via managed skillOverrides: ship-local and steward set to off; separate from CLAUDE_CODE_DISABLE_SHIP official-public-docs-derived Official /ship documentation: to turn off both commands, set keys under skillOverrides in managed settings; ship-local is the skill behind /ship. The documented example sets "ship-local": "off" and "steward": "off". CLAUDE_CODE_DISABLE_SHIP is a separate environment-variable route recorded on the existing disable-env entry. The entry records the managed-settings skill-override keys and their documented separation from the env flag.
doc_tool_search_default_on_withheld_definitions Tool search 默认开启;工具定义在被检索前从上下文撤回,仅按需加载 official-public-document Tool search 默认开启;工具定义在被检索前从上下文撤回,仅按需加载
doc_tool_search_name_description_query_match 工具检索按工具名称与描述匹配查询;命名清晰的工具可覆盖更宽请求范围 official-public-document 工具检索按工具名称与描述匹配查询;命名清晰的工具可覆盖更宽请求范围
doc_tool_search_catalog_10k_results_five_model_support 工具检索上限:目录最多 10,000 工具,每次默认返回 5 个最相关结果;模型支持范围受文档约束 official-public-document 工具检索上限:目录最多 10,000 工具,每次默认返回 5 个最相关结果;模型支持范围受文档约束
doc_headless_p_print_noninteractive_basic_usage -p / --print 标志以非交互方式运行 claude;并非所有 CLI 选项都适用于无头运行 official-public-document -p / --print 标志以非交互方式运行 claude;并非所有 CLI 选项都适用于无头运行
doc_headless_background_work_after_stdin_close 回合结束且 stdin 关闭后,claude -p 可保持打开等待后台任务;后台命令未结束前进程不退出 official-public-document 回合结束且 stdin 关闭后,claude -p 可保持打开等待后台任务;后台命令未结束前进程不退出
doc_headless_mcp_background_not_waited_on_exit 非交互运行结束时不等待后台 MCP 任务;服务器端 MCP 任务与客户端后台工作的退出等待规则分开 official-public-document 非交互运行结束时不等待后台 MCP 任务;服务器端 MCP 任务与客户端后台工作的退出等待规则分开
doc_headless_sigterm_exit_143_turn_state SIGTERM 停止 claude -p 时退出码 143;回合中断后留下的会话状态按无头运行规则处理 official-public-document SIGTERM 停止 claude -p 时退出码 143;回合中断后留下的会话状态按无头运行规则处理
doc_headless_deleted_working_directory_session_continues 会话运行中工作目录被删除时会话继续运行;目录缺失时新回合启动受文档约束 official-public-document 会话运行中工作目录被删除时会话继续运行;目录缺失时新回合启动受文档约束
doc_headless_system_init_event_session_metadata system/init 事件报告模型、工具、MCP 服务器与已加载插件等会话元数据;除非启动被延迟,否则为流中首个事件 official-public-document system/init 事件报告模型、工具、MCP 服务器与已加载插件等会话元数据;除非启动被延迟,否则为流中首个事件
doc_headless_plugin_mcp_load_failure_system_init_detection 利用 system/init 事件中的插件字段捕获未加载成功的插件;--plugin-dir 目录或归档加载失败时插件条目缺失 official-public-document 利用 system/init 事件中的插件字段捕获未加载成功的插件;--plugin-dir 目录或归档加载失败时插件条目缺失
doc_headless_allowedtools_automatic_tool_approval --allowedTools 列出无需提示即可使用的工具;Read、Edit 列入后可在对应范围内免审批读写文件 official-public-document --allowedTools 列出无需提示即可使用的工具;Read、Edit 列入后可在对应范围内免审批读写文件
doc_routine_usage_limits_subscription_consumption 定时任务与交互会话同样消耗订阅用量;当前消耗在用量页面查看,受套餐与额度限制 official-public-document 定时任务与交互会话同样消耗订阅用量;当前消耗在用量页面查看,受套餐与额度限制
env_anthropic_model ANTHROPIC_MODEL:本次启动会话的模型别名或完整模型名 configuration-documentation 官方模型配置文档:ANTHROPIC_MODEL= 与 --model 标志一样只作用于本次启动的会话;后续 /model 保存的选择在再次启动时优先于该变量。该变量与 model 设置键、组织默认模型共同参与模型选择优先级解析;本条只记录公开配置入口,不推断模型权重或内部路由。
env_anthropic_default_model ANTHROPIC_DEFAULT_MODEL:新会话默认起始模型(v2.1.236+) configuration-documentation 官方模型配置文档:ANTHROPIC_DEFAULT_MODEL= 选择新会话默认起始模型,要求 Claude Code v2.1.236 或更高版本;仅当 --model 标志、ANTHROPIC_MODEL、各设置文件中的 model 值以及组织默认模型都未选定模型时,变量模型才生效。/model 保存的选择在后续启动时优先于该变量。
env_claude_code_max_context_tokens CLAUDE_CODE_MAX_CONTEXT_TOKENS:覆盖当前模型假定的上下文窗口大小 configuration-documentation 官方环境变量文档:CLAUDE_CODE_MAX_CONTEXT_TOKENS 覆盖 Claude Code 为当前模型假定的上下文窗口大小;自 v2.1.193 起其适用方式取决于模型 ID 的解析结果,用于经 ANTHROPIC_BASE_URL 路由到上下文窗口与内置名称大小不一致的模型。未知模型 ID 的窗口假定由该变量纠正;区别于关闭未知模型窗口强制压缩的开关变量。
env_claude_code_auto_compact_window CLAUDE_CODE_AUTO_COMPACT_WINDOW:自动压缩触发窗口(≥100000 tokens) configuration-documentation 官方环境变量文档:CLAUDE_CODE_AUTO_COMPACT_WINDOW 设置自动压缩窗口,即上下文填充到何种程度触发压缩,取值为 100000 或更多 token;200k 这类带后缀的值要求 v2.1.304 或更高版本。窗口优先级与状态栏 used_percentage 效果见模型配置文档的自动压缩窗口章节;网关在 200K 以上拒绝请求时可按该边界设置对应窗口。
entry_2_1_332_mcp_protocol_version_connector_double_call_fix MCP connector duplicate-call or failure fixed when server switches protocol version official-document-derived-entry 修复 MCP 连接器在服务器切换所支持 MCP 协议版本时,工具调用偶发重复执行,或连接器调用在重启前失败的问题。
entry_2_1_332_remote_image_over_8000px_scaled_copy Remote session images over 8,000 pixels on a side sent as scaled-down copy official-document-derived-entry 远程会话中边长超过 8000 像素的 PNG、JPEG、WebP 图片此前发送失败;现改为发送缩放后的副本。
entry_2_1_332_attachments_17_20_first_16_drop_fix Claude apps 17-20 attached files no longer deliver only the first 16 official-document-derived-entry 修复 Claude 应用携带 17 到 20 个附件时只送达前 16 个文件的问题。
entry_2_1_332_plugin_marketplace_plain_language_error Plugin marketplace errors explain plainly why marketplace was ignored or refused official-document-derived-entry 改进插件市场错误信息:用通俗语言说明市场被忽略或拒绝的原因,以及应采取的处理动作;插件列表同时标注未安装的依赖,更新时重试未完成的安装。
entry_2_1_332_headless_mcp_first_connect_transient_retry Headless MCP startup retries transient first-connect remote server without waiting on slowest server official-document-derived-entry 改进无头模式 MCP 启动:远程服务器首次连接瞬时失败时即重试,不必等待最慢的服务器完成连接。
entry_2_1_332_api_retry_limit_whole_model_call_14_requests Failed API requests: one limit covers a whole model call; default retry sends at most 14 requests official-document-derived-entry 失败 API 请求的重试改为按整个模型调用计数;默认重试设置下一次失败调用最多发送 14 个请求。
entry_2_1_332_bare_mode_mcp_cli_system_reminders_background_tasks --bare connects only command-line MCP servers, sends no system reminders, starts no background tasks official-document-derived-entry --bare 模式只连接命令行指定的 MCP 服务器,不向模型发送系统提醒,不启动后台任务;该模式下达到超时的 Shell 命令停止运行,而不是转入后台。
entry_2_1_332_cloud_session_mid_session_repo_skills_plugins_claude_md Repositories added mid cloud/SDK session load skills, plugins and CLAUDE.md without late directory change official-document-derived-entry 修复云会话与 SDK 会话在会话中途添加仓库时,其技能、插件未加载且 CLAUDE.md 在切换目录后才延迟加载的问题。
entry_2_1_332_unavailable_default_model_stepdown_rule --model default and Default pick move to an older model when unavailable; in auto mode only to a model auto mode accepts official-public-docs-derived 2.1.332 changelog: --model default and a Default pick now move to an older model when that model is unavailable, instead of stopping with an error; in auto mode the step-down goes only to a model auto mode accepts.
entry_2_1_332_cloud_scheduled_task_rename_terms /schedule, permission prompts and /loop cloud offer say "cloud scheduled task" instead of routine or cloud schedule; /routines still works official-public-docs-derived 2.1.332 changelog: /schedule, permission prompts and the /loop cloud offer now say cloud scheduled task instead of routine or cloud schedule; /routines still works.
entry_2_1_332_model_switch_keeps_saved_effort Model switches from mobile app or claude.ai keep the effort level saved for the previous model when none is saved for the new one official-public-docs-derived 2.1.332 changelog: model switches from the Claude mobile app or claude.ai keep the effort level saved for the previous model when no effort level is saved for the new model.
entry_2_1_332_linux_clipboard_package_hint Linux: Ctrl+V message names the package to install (wl-clipboard or xclip) when images can't be read from the clipboard official-public-docs-derived 2.1.332 changelog: on Linux the Ctrl+V message names the package to install (wl-clipboard or xclip) when images cannot be read from the clipboard.
entry_2_1_332_startup_mcp_many_tools_memory Improved memory use at startup with MCP servers that list many tools official-public-docs-derived 2.1.332 changelog: improved memory use at startup when MCP servers list many tools.
entry_2_1_332_vscode_panel_long_session_diagnostics_perf [VSCode] Faster panel open and long sessions, long-reply streaming, and diagnostics reading in very large workspaces official-public-docs-derived 2.1.332 changelog: VS Code improved the time to open the Claude panel and long sessions, performance while long replies stream, and the speed of reading diagnostics in very large workspaces.
doc_channel_server_instructions_context_string Channel Server instructions context string(MCP Server 构造器 instructions) official-public-docs-derived Channel 服务器构造器的 instructions 字符串;Claude Code 在服务器连接时把它作为上下文交付给 Claude,说明预期事件类型、 标签属性含义、是否需要回复以及回复工具与回填属性。该字段是标准 MCP 选项,不是 channel 专属扩展。
doc_channel_notification_order_grouped_delivery Channel notification order: queued events processed in order; busy-turn notifications delivered as a group official-public-docs-derived 通道通知进入会话后按顺序排队处理;多条通知在 Claude 忙碌期间到达时,下一回合合并为一组交付、由 Claude 作为一组处理。独立事件流需要并发处理时应使用分开的会话。
entry_2_1_332_artifact_watch_ten_published Artifact 会话可同时监视最多 10 个已发布制品的重发布(原上限 5) official-public-changelog-entry 官方 changelog:一个会话可同时监视最多 10 个已发布 Artifact 在别处的重发布,上限由 5 提升到 10。
entry_2_1_332_gateway_drain_timeout_sigterm Claude apps 网关 SIGTERM 前放行在途请求最多 25 秒(CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS) official-public-changelog-entry 官方 changelog:网关收到 SIGTERM 时不再切断所有开放流;在退出前让在途请求最多完成 25 秒,时长由 CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS 控制。
entry_2_1_332_background_tasks_single_model_call 后台任务完成时已排队的补全由一次模型调用应答,不再每个后台任务单独调用 official-public-changelog-entry 官方 changelog:修复 headless 与 SDK 会话每个完成的后台任务都发起一次模型调用;已排队的补全现在由一次调用统一应答。
entry_2_1_332_plugin_installed_json_invalid_record_recovery installed_plugins.json 含无效插件 ID 记录时仍可加载,损坏记录先备份再重建 official-public-changelog-entry 官方 changelog:修复 installed_plugins.json 含无效插件 ID 记录时显示无插件、以及不可读记录被重写丢失的问题;损坏内容先备份到旁侧文件,claude plugin 命令指明记录与恢复方式。
entry_2_1_332_compaction_spinner_timer_counts_summary_tokens 压缩转圈计时从压缩开始启动,并随摘要流式输出统计 token,替代百分比条 official-public-changelog-entry 官方 changelog:改进压缩 spinner——计时器在压缩开始时启动,并在摘要流式输出时统计其 token,替代原来的百分比进度条。
entry_2_1_332_prompt_suggestions_fade_after_20_unused 终端提示建议连续 20 次未使用后减少出现频率,再次使用即恢复 official-public-changelog-entry 官方 changelog:终端 prompt 建议在连续 20 次未被采用后降低出现频率;采用一次建议即可恢复。
entry_2_1_332_keybindings_misspelled_modifier_warn keybindings.json 拼错修饰键(如 ctl+k)在调试日志告警并提示修正,不再静默接受 official-public-changelog-entry 官方 changelog:修复 keybindings.json 静默接受拼错修饰键的问题;现在在调试日志告警并给出修正建议。
entry_2_1_332_type_ahead_keys_against_stale_state_fix 快速连续按键(type-ahead、键重复、ssh/tmux 突发)不再基于过期状态处理 official-public-changelog-entry 官方 changelog:修复快速连续输入的按键有时对照过期状态处理的问题。
cap_openai_handoffs Agents SDK · Handoffs(代理任务委派) open-source-sdk-documented-capability Handoffs 让一个代理把对话与历史交给专项代理接管;支持意图分类、参数传递与返回值,是多代理协调的基础模式。
cap_openai_guardrails Agents SDK · Guardrails(输入/输出护栏) open-source-sdk-documented-capability Guardrails 与代理运行并行校验输入与输出;校验不通过时快速失败,输入护栏检查首条消息链,输出护栏检查最终响应。
cap_openai_tracing Agents SDK · Tracing(内置追踪与可观测性) open-source-sdk-documented-capability Tracing 为每个代理步骤采集 span,可导出到 OpenAI traces,并接入第三方处理器;运行配置可关闭追踪、设置 workflow name、trace id、group id 与元数据。
fix_remote_control_mac_idle_sleep_mid_turn Remote Control macOS 空闲睡眠中断回合修复 capability-derived macOS 上以 claude remote-control 或 /remote-control 启动的会话,在 Mac 进入空闲睡眠时不再中途停止回合。
fix_windows_piped_raw_mode_hang Windows 管道/重定向输入 Raw mode 不支持退出修复 capability-derived 交互式 claude 在输入被管道或重定向时不再挂起或崩溃报 Raw mode unsupported;改为说明原因并退出,管道输入使用 -p。
fix_sdk_priority_now_keeps_background_fetch SDK 高优先级消息不打断后台 WebFetch/WebSearch capability-derived SDK 会话中以 now 优先级发送的消息不再取消运行中的 WebFetch 或 WebSearch;检索继续在后台加载。
fix_remote_upload_retry_timeout_network_5xx 云/遥控文件上传超时、网络错误与 502/503/504 单次重试 capability-derived 云端会话与 Remote Control 发送文件时,超时、网络错误或 502/503/504 失败后重试一次;临时原因不可达时提示稍后再请求。
fix_remote_large_file_stream_disk_size_limit_named 远端大文件磁盘流式发送与超限拒绝并标注上限 capability-derived 远端会话大文件改为从磁盘流式读取而非整段入内存;超过大小上限的文件被拒绝,并指明服务端限额。
improvement_subagent_send_now_background_command 子代理视图发送即时消息时运行命令转入后台 capability-derived 子代理视图中 ctrl+enter 发送即时消息时,子代理正在运行的命令转入后台,使消息可被立即读取。
improvement_external_editor_opens_cursor_line 外部编辑器 Ctrl+G 打开到光标所在行 capability-derived 外部编辑器(Ctrl+G)支持行号的编辑器现在打开在提示框光标所在行。
improvement_output_style_picker_current_style 输出样式选择器打开当前样式且数字键不再选样式 capability-derived 输出样式选择器默认打开当前样式,描述显示在名称下一行;数字键不再用于挑选样式。
improvement_list_scrollbar_arrows_fullscreen 全屏列表滚动条稳定并带上下箭头可点击滚动 capability-derived 多数全屏列表的滚动条不再随 N more 行增减而位移,并提供可点击或长按的 ↑/↓ 箭头滚动。
fix_hook_detail_screen_pronoun_label Hooks 详情屏收尾文案改为 this hook capability-derived /hooks 详情屏收尾行把代词 it 改为 this hook,避免指代不清。
improvement_fallback_notice_compact_1m_to_200k 模型回退提示与自动压缩报错标注 1M→200K 窗口收缩 capability-derived 模型回退通知与自动压缩抖动错误说明回退何时把上下文窗口从 1M 降到 200K tokens。
improvement_sdk_p_resend_mcp_enable_already_connected SDK/-p 重复发送已连接 MCP 启用请求响应更快 capability-derived 主机对已连接 MCP 服务器重复发送 enable 时,SDK 与 -p 会话不再重复握手,响应更顺畅。
improvement_slash_command_word_prefix_suggestion_many_skills 大量技能/插件命令下斜杠命令按词前缀匹配建议 capability-derived 安装大量技能或插件命令时,斜杠命令建议响应更快;命令描述按词前缀匹配。
change_plugin_install_refuse_npm_git_folder_source 插件安装拒绝 npm 来源中的 git 仓库或目录 capability-derived 插件安装拒绝作为 npm 来源的 git 仓库或文件夹;插件依赖仅从 registry 包安装。
change_list_screens_row_detail_column_alignment 列表屏各行详情在名称后对齐为同一列 capability-derived /artifacts、/mcp、/skills、/hooks 等列表屏各行详情统一在名称后同一列对齐。
change_list_overflow_rows_arrow_n_more_label 列表溢出行改为 ↑ N more / ↓ N more 标签 capability-derived 列表溢出行文案由 N more above/below 改为 ↑ N more 与 ↓ N more。
change_hooks_single_list_grouped_by_event /hooks 打开按事件分组的单一钩子列表 capability-derived /hooks 打开一个按事件分组的已配置钩子列表;查看一个钩子只需一次 Enter。
change_theme_picker_scrolling_list_number_keys 主题选择器改为终端内滚动列表且数字键不选主题 capability-derived 主题选择器改为适配终端的滚动列表,不再把预览挤出屏幕;数字键不再挑选主题。
change_exit_remove_worktree_after_servers_shells /exit 清理 worktree 在停止服务器与 Shell 之后执行 capability-derived /exit 的 Remove worktree 在 Claude Code 先停止其在该 worktree 启动的服务器和 Shell 后再执行,修复 Windows 上目录无法删除。
change_claude_api_skill_managed_agents_limited_network claude-api 技能托管代理示例使用受限网络环境 capability-derived claude-api 技能的 Managed Agents 示例创建带有限网络的环境。
remove_browser_link_ultrareview /ultrareview 与 claude ultrareview 输出移除浏览器链接 capability-derived /ultrareview 与 claude ultrareview 输出中的浏览器链接被移除。
fix_windows_bg_agents_trust_case_insensitive Windows 后台代理信任记录大小写不匹配被拒修复 capability-derived Windows 上 claude --bg 与 agents 视图不再因信任记录字母大小写不同而拒绝 claude 已信任的文件夹。
fix_p_fork_subagent_agent_call_foreground -p 配合 fork 子代理时 Agent 调用在前台运行 capability-derived claude -p 且 CLAUDE_CODE_FORK_SUBAGENT=1 时,子代理自身的 Agent 调用在前台运行,子代理可拿到子级结果。
fix_plugin_marketplace_ssh_git_ssh_command 插件/市场 SSH 安装更新尊重 GIT_SSH 与 core.sshCommand capability-derived 经 SSH 的插件与市场安装、更新不再忽略 GIT_SSH 或 git config core.sshCommand 指定的 ssh 程序。
fix_managed_settings_unreadable_warn_without_policy 托管设置文件不可读时告警并在无策略下启动 capability-derived 操作系统拒绝读取托管设置文件时,Claude Code 告警并在不带该文件策略的情况下启动;其他读错误与解析失败仍会阻止会话。
fix_compacted_cloud_session_artifact_update_refused 压缩后云会话拒绝已读/已发布制品的后续更新修复 capability-derived 会话压缩后重启的云会话,不再拒绝对其已读取或已发布 Artifact 的下一次更新。
fix_plugin_enable_disable_case_settings_entry 插件 enable/disable 全 id 改动正确作用于自身设置项 capability-derived claude plugin disable/enable 使用完整 name@marketplace id 时,不再改动另一大小写变体的设置项,而是作用于已安装插件自身。
fix_url_password_redaction_at_sign 脱敏日志与转录不再泄露 URL 密码中的 @ capability-derived 脱敏日志与转录不再显示含 @ 的 URL 密码片段;@ 写作 %40 时也不泄露整段。
fix_ssh_passphrase_new_host_worktree_teleport_fail_fast worktree 与 /teleport 抓取的 SSH 口令/新主机提示快速失败 capability-derived worktree 与 /teleport 抓取中的 SSH 口令与新主机提示不再抢占终端;改为快速失败。
fix_mid_session_mcp_toggle_disabled_tools_sdk_p SDK/-p 会话中途关闭 MCP 服务器后其工具不再可用 capability-derived SDK 与 -p 会话中会话中途关闭的 MCP 服务器,其工具不再残留可用。
fix_p_permission_prompt_tool_background_subagent -p 后台子代理权限请求进入提示工具而非自动拒绝 capability-derived claude -p --permission-prompt-tool 下,后台子代理的权限请求进入提示工具,不再被自动拒绝。
fix_cloud_remote_env_only_newest_20_environments 云会话 /remote-env 只读取账户最新 20 个环境修复 capability-derived 云会话创建与 /remote-env 此前只读取账户最新 20 个环境;该计数限制问题在新版本中修正。
fix_remote_control_message_read_on_start_queued_resume Remote Control 消息到达即标已读与退出排队消息丢失修复 capability-derived Remote Control 不再在消息刚到达时即标记已读,而是在 Claude 开始处理时标记;退出终端时仍排队的消息在下一次恢复时送达。
fix_plugin_install_id_dot_dash_at_case_collision_refused 插件 id 仅以 . - @ 或大小写不同碰撞时拒绝安装 capability-derived 安装插件与已安装插件 id 仅在 .、-、@ 或(macOS/Windows)大小写上不同导致碰撞时,安装被拒绝。
fix_local_settings_allow_rules_outside_git_trace2 .claude/settings.local.json allow 规则在 git 仓库外不再被搁置 capability-derived 配置了 git trace2 输出时,仓库之外的 .claude/settings.local.json allow 规则不再被搁置。
fix_eval_runner_output_symlink_hardlink_guard 评测运行脚手架与报告生成不穿过输出文件软/硬链接 capability-derived /claude-api 评测运行脚手架与报告构建器不再通过 planted 在输出文件上的符号链接或硬链接写入。
fix_eval_runner_max_tokens_truncated_separate_count 评测平均分单独标记 max_tokens 截断响应 capability-derived /claude-api 评测运行脚手架把因 max_tokens 被截断的响应单独标记为截断并分别计数,不计入正常分数平均。
fix_nbsp_literal_shown_terminal_reply 回复中的   不再在终端显示为字面文本 capability-derived 回复用   缩进文本(如 Markdown 表行标签)时,终端不再显示字面  。
fix_long_session_freeze_outside_fullscreen 非全屏长会话中途短暂冻结在 /clear 或 /compact 后复现修复 capability-derived 修复非全屏模式下长会话中途(最多约一秒)的短暂冻结;该冻结在 /clear 或 /compact 后会复现。
fix_approved_edit_device_dev_null_symlink_ide_diff 目标为设备的已批准 Edit 经 IDE diff 不再被丢弃 capability-derived Edit 目标是设备(如软链到 /dev/null 的文件)且批准来自 IDE diff 视图或改动编辑时,已批准编辑不再被丢弃。
fix_streaming_failure_retry_shares_budget_not_fresh 流式持续失败的重试与非流式回退共享请求重试预算 capability-derived API 请求流式持续失败时不再最多重试 21 次;非流式回退共享本次请求的重试预算,不另得一套重试。
improvement_marketplace_git_address_refusal_plain_error 市场 git 地址拒绝原因以直白错误说明而非企业策略引用 capability-derived 插件市场错误对 git 地址被拒绝给出直白原因,不再引用企业策略。
fix_upgrade_suggestion_highest_max_plan_usage_credits 最高 Max 计划不再被建议 /upgrade,指向 /usage-credits capability-derived 用量限制警告不再向已在最高 Max 计划的用户建议 /upgrade;警告与 /upgrade 本身在可用时指向 /usage-credits。
fix_explore_subagent_inherit_unrecognized_model_id Explore 子代理继承会话中无法识别的模型 ID capability-derived 会话运行 Claude Code 不认识的模型 ID(如代理后的自定义模型)时,Explore 子代理不再切到 Claude API 上的 Opus,而是继承该模型。
fix_loop_self_paced_status_updates_visible_text 自节奏 /loop 状态更新与停止结果作为可见文本输出 capability-derived 自节奏模式 /loop 状态更新此前常只写在推理中而不显示;现在每次更新及循环停止结果都写成可见文本。
fix_ultrareview_worktree_upload_claude_desktop_worktree 桌面应用创建的 git worktree 启动的 UltraReview 上传工作树修复 capability-derived 从 macOS 或 Linux 上 Claude 桌面应用创建的 git worktree 启动的 /ultrareview 不再无法上传工作树。
improvement_usage_limit_wait_countdown_single_block 用量限制等待状态与倒计时在提示下合并为一个区块 capability-derived 用量限制等待的状态、倒计时与用量额度选项在提示下合并为一个区块;限制消息不再重复倒计时。
improvement_chrome_tool_prefix_not_found_names_tool Chrome 工具缺前缀的未找到错误指明应调用的工具名 capability-derived Claude in Chrome 工具在缺少前缀被调用时,No such tool available 错误现在指明应调用的工具。
improvement_monitor_event_rows_printed_output_not_description Monitor 事件行展示事件打印内容而非重复描述 capability-derived Monitor 事件行显示每个事件实际打印的内容;未变化的 Waiting for N 行不再在每个事件后重复。
improvement_marketplace_add_same_name_replace_undo marketplace add 同名不同来源替换时说明如何撤销 capability-derived claude plugin marketplace add 在同名市场来自不同来源被替换时,说明替换情况以及如何撤销。
improvement_startup_refusal_force_login_named_credential 强制登录与已配置凭证冲突的启动拒绝指明所用凭证 capability-derived 托管设置要求登录方式或组织 UUID,同时配置了 API key、token 或 apiKeyHelper 时,启动拒绝说明所用凭证、设置位置与移除方式。
improvement_artifact_page_design_plan_in_page_title Artifact 页面把设计计划写入页面并复用已有命名作为标题 capability-derived Artifact 页面改进:Claude 把设计计划写入页面而非回复,并使用已给对象的名称作为页面标题。
entry_2_1_332_gateway_mantle_upstream_provider Claude apps gateway: mantle upstream provider added for the Amazon Bedrock Mantle endpoint official-public-docs-derived Official changelog: the Claude apps gateway now accepts a mantle upstream provider for Amazon Bedrock's Mantle endpoint. The entry hangs off the existing gateway command anchor and records the new upstream provider; it does not model internal routing or undisclosed endpoint identifiers.
entry_2_1_332_otel_tool_output_span_event OpenTelemetry: MCP tool, WebFetch and WebSearch outputs attach to the tool.output span event when OTEL_LOG_TOOL_CONTENT=1 official-public-docs-derived Official changelog: MCP tool, WebFetch and WebSearch outputs are added to the tool.output OpenTelemetry span event when OTEL_LOG_TOOL_CONTENT=1. The entry hangs off the existing OTel resource-attributes anchor and records this optional content-event boundary only.
entry_2_1_332_stream_json_plugin_error_path stream-json system/init plugin_errors: a path field names the directory that failed to load for --plugin-dir load failures official-public-docs-derived Official changelog: the stream-json system/init plugin_errors entries now carry a path field naming the directory that did not load for a --plugin-dir load failure. The entry hangs off the existing script/session JSON anchor and records the diagnostic field boundary.
entry_2_1_332_agents_cli_json_file_prompt --agents accepts a path to a JSON file (with -p) alongside inline JSON, and allows an empty prompt official-public-docs-derived Official changelog: the --agents flag accepts the path to a JSON file together with -p as well as inline JSON, and permits an empty prompt. The entry hangs off the existing non-interactive session anchor and records the CLI input flexibility.
entry_2_1_332_claudemd_startup_notice_instruction_count Large CLAUDE.md startup notice counts instruction files together, so many mid-sized files and @-imports are caught official-public-docs-derived Official changelog: the large CLAUDE.md startup notice now counts instruction files together, so many mid-sized instruction files and @-imports are also caught. The entry hangs off the existing automatic-memory/context anchor and records the counting improvement.
entry_2_1_332_artifact_design_plan_written_to_page Artifact pages: Claude writes its design plan into the page instead of the reply, and reuses the existing item name as the page title official-public-docs-derived Official changelog: Claude writes the artifact design plan into the page rather than the reply, and uses the name already given to an item as the page title. The entry hangs off the existing Artifact tool anchor and records this authoring-layout change.
entry_2_1_332_artifact_tool_feedback_link_clarify Artifact tool asks for the right chat/project link, artifact link or content when given a claude.ai chat or project link, an artifact from a chat, or an artifact id official-public-docs-derived Official changelog: when Claude receives a claude.ai chat or project link, an artifact from a chat, or an artifact id on its own, the Artifact tool asks for the correct link or content instead of stopping. The entry hangs off the existing Artifact tool anchor and records the reference-resolution improvement.
entry_2_1_332_desktop_error_hints_usage_credits Claude Desktop session error hints suggest slash commands such as /usage-credits instead of CLI flags unavailable there official-public-docs-derived Official changelog: error hints in Claude Desktop sessions now suggest slash commands such as /usage-credits rather than CLI flags that cannot be used there. The entry hangs off the existing feedback/usage anchor and records the surface-appropriate hint change.
entry_2_1_332_background_command_idle_memory_stop Background commands under mild memory pressure are no longer stopped after 30 idle minutes; they stop only at critically low memory, with the reason in the debug log official-public-docs-derived Official changelog: background commands that were stopped after 30 idle minutes on machines under mild memory pressure now run until memory is critically low; the debug log records why. The entry hangs off the existing background-task anchor and records this memory-pressure threshold change.
entry_2_1_332_artifact_publish_older_version_merge Artifact publishing stops a publish built on an older version before it is sent; the newer page is to be merged official-public-docs-derived Official changelog: artifact publishing now stops a publish built on an older version before it is sent, with the newer page to merge. The entry hangs off the existing Artifact tool anchor and records this staleness guard.
entry_2_1_332_long_session_hook_subagent_reprocess Long-session responsiveness: hook progress and sub-agent activity no longer re-process the whole conversation on every update official-public-docs-derived Official changelog: in long sessions, hook progress and sub-agent activity no longer re-process the whole conversation on each update, improving responsiveness. The entry hangs off the existing large-transcript session anchor and records this processing improvement.
entry_2_1_332_redundant_builtin_model_validation_skipped Startup skips a redundant validation of built-in model data on every launch official-public-docs-derived Official changelog: startup time improves by skipping a redundant validation of built-in model data that previously ran on every launch. The entry hangs off the existing large-transcript/startup session anchor and records this startup simplification.
entry_2_1_332_cjk_prompt_suggestion_filter Prompt suggestion filtering keeps mixed-script and single-word Japanese, Chinese and Korean text; meta or evaluative text is dropped as for English official-public-docs-derived Official changelog: prompt suggestion filtering for Japanese, Chinese and Korean keeps mixed-script and single-word suggestions while dropping meta or evaluative text, as it already does for English. The entry hangs off the existing skill/command suggestion anchor and records the CJK filtering improvement.
entry_2_1_332_skill_unknown_full_plugin_name Skill tool Unknown-skill error names the plugin skill's full name when a bare name matches exactly one plugin skill official-public-docs-derived Official changelog: the Skill tool's Unknown-skill error now names the plugin skill's full name when a bare name matches exactly one plugin skill. The entry hangs off the existing skill anchor and records this name-resolution improvement.
entry_2_1_332_bug_feedback_native_cursor_fix /bug and /feedback description field shows the cursor when the terminal's native cursor is enabled official-public-docs-derived Official changelog: the /bug and /feedback description field previously showed no cursor when the terminal's native cursor was enabled; this is fixed. The entry hangs off the existing send-feedback anchor and records the UI fix.
entry_2_1_332_telemetry_off_alwaysload_mcp_next_turn First-party sessions with telemetry disabled: an alwaysLoad MCP server that connects mid-conversation is usable next turn without a tool-search round trip official-public-docs-derived Official changelog: in first-party sessions with telemetry disabled, an alwaysLoad MCP server that finishes connecting mid-conversation is usable on the next turn without a tool-search round trip. The entry hangs off the existing first-turn MCP anchor and records this mid-session availability improvement.
entry_2_1_332_system_prompt_dynamic_boundary_cache Prompt caching for a --system-prompt containing a SYSTEM_PROMPT_DYNAMIC_BOUNDARY line: text above it caches globally, as the SDK array form already does official-public-docs-derived Official changelog: prompt caching for a --system-prompt that contains a SYSTEM_PROMPT_DYNAMIC_BOUNDARY line now caches the text above it globally, matching the SDK array form. The entry hangs off the existing prompt-cache anchor and records this boundary caching behavior.
entry_2_1_332_held_messages_always_deliver_prompt "Always deliver" prompt for held messages arriving from other sessions official-public-docs-derived 2.1.332: inbound held messages from other sessions carry an "Always deliver" prompt so the receiving session can choose delivery behavior.
entry_2_1_332_plugin_marketplace_add_windows_retry claude plugin marketplace add on Windows waits and retries when another program (e.g. antivirus) briefly holds downloaded files official-public-docs-derived 2.1.332 improvement: on Windows, plugin marketplace add retries after a transient file lock held by another program such as a virus scanner.
entry_2_1_332_computer_use_context_reduced_until_used Computer use consumes less context until Claude actually uses it official-public-docs-derived 2.1.332 improvement: computer use holds back context until the capability is actively used.
entry_2_1_332_context_fullscreen_shorter_output_legend_unit /context output shortened in fullscreen; legend names its unit once to avoid scrolling off a short window official-public-docs-derived 2.1.332 improvement: /context renders shorter output in fullscreen mode and the legend states its unit once.
entry_2_1_332_usage_peak_memory_many_sessions /usage peak memory and speed improved on machines with many recent sessions official-public-docs-derived 2.1.332 improvement: /usage reduces peak memory and speeds up rendering when many recent sessions are present.
entry_2_1_332_code_mode_script_variables_gone_notice Code Mode resume tells Claude up front that earlier script variables are gone official-public-docs-derived 2.1.332 improvement: when resuming a session in Code Mode, Claude is informed up front that prior script variables no longer exist.
entry_2_1_332_code_mode_worktree_confirm_artifact_read_existing Code Mode confirms before discarding worktree changes, reads artifact files before publishing, and updates an existing artifact instead of creating a second one official-public-docs-derived 2.1.332 improvement: Code Mode confirms before discarding worktree changes, reads artifact files before publishing, and reuses an existing artifact rather than creating a duplicate.
entry_2_1_332_tool_search_long_mcp_description_whole Code Mode tool search shows long MCP tool descriptions whole where they fit; a cut description could lead to wrong calls official-public-docs-derived 2.1.332 improvement: Code Mode tool search renders long MCP tool descriptions in full when they fit, avoiding truncated descriptions that cause wrong tool calls.
entry_2_1_332_linux_clipboard_package_name_message Linux Ctrl+V message names the package to install (wl-clipboard or xclip) when images cannot be read from the clipboard official-public-docs-derived 2.1.332 improvement: on Linux, the clipboard read failure message names the required package (wl-clipboard or xclip).
entry_2_1_332_long_session_413_proxy_gateway_limit_fix Long conversations behind a proxy/gateway with a request size limit no longer fail every message and /compact with 413 official-public-docs-derived 2.1.332 improvement: resuming long conversations behind a proxy or gateway request-size limit, where every message and /compact failed with 413, is recovered.
entry_2_1_332_windows_glob_parallel_walk_time_limit Glob speed improved on Windows folders with 6+ CPUs: folders walked in parallel; a time-limited search lists what it found official-public-docs-derived 2.1.332 improvement: on Windows machines with 6 or more CPUs, Glob walks folders in parallel, and a search stopped by its time limit returns results collected so far.
entry_2_1_332_memory_resume_long_conversation Memory use improved when resuming a long conversation official-public-docs-derived 2.1.332 improvement: resuming a long conversation consumes less memory.
entry_2_1_332_memory_startup_many_mcp_tools Startup memory reduced with MCP servers that list many tools official-public-docs-derived 2.1.332 improvement: startup memory footprint drops when MCP servers advertise a large number of tools.
entry_2_1_332_memory_startup_claude_p_sdk_session Memory use improved at conversation start for claude -p and SDK-hosted sessions official-public-docs-derived 2.1.332 improvement: initial conversation memory for claude -p and SDK-hosted sessions is reduced.
entry_2_1_332_vscode_panel_long_session_performance VS Code Claude panel open time, long-reply streaming, and large-workspace diagnostic reading speed improved official-public-docs-derived 2.1.332 improvement: VS Code panel open time, streaming of long replies, and diagnostics reading in very large workspaces are faster.
entry_2_1_332_plain_text_tab_command_output_wrap Commands and one-line output opened in a plain text tab now wrap official-public-docs-derived 2.1.332 improvement: command and one-line output opened in a plain text tab wraps its text.
entry_2_1_332_added_a_warning_in_vs_code_and_desktop_s_code_tab_when_part_of_a_sessi Added a warning in VS Code and Desktop’s Code tab when part of a session couldn’t be saved, saying how to save it with /compact official-public-changelog-entry Added a warning in VS Code and Desktop’s Code tab when part of a session couldn’t be saved, saying how to save it with /compact
entry_2_1_332_added_a_warning_when_restoring_a_conversation_with_rewind_in_the_side_ [VSCode] Added a warning when restoring a conversation with /rewind in the side bar stops a self-paced /loop official-public-changelog-entry [VSCode] Added a warning when restoring a conversation with /rewind in the side bar stops a self-paced /loop
entry_2_1_332_changed_sdk_and_claude_p_mid_turn_messages_to_count_as_the_user_s_wher Changed SDK and claude -p mid-turn messages to count as the user’s where feature flags aren’t fetched, as on clouds or with telemetry off, from Opus 4.8 on; mark relayed text isSynthetic: true official-public-changelog-entry Changed SDK and claude -p mid-turn messages to count as the user’s where feature flags aren’t fetched, as on clouds or with telemetry off, from Opus 4.8 on; mark relayed text isSynthetic: true
entry_2_1_332_self_hosted_runner_changed_claude_code_oauth_token_its_prefix_can_now_ Self-hosted runner: Changed CLAUDE_CODE_OAUTH_TOKEN: its prefix can now end in oat02- as well as oat01-. Update proxy rules and log scrubbers that match oat01-, and mask the whole value official-public-changelog-entry Self-hosted runner: Changed CLAUDE_CODE_OAUTH_TOKEN: its prefix can now end in oat02- as well as oat01-. Update proxy rules and log scrubbers that match oat01-, and mask the whole value
entry_2_1_332_changed_claude_self_hosted_runner_setup_with_no_arguments_on_macos_and Changed claude self-hosted-runner setup with no arguments on macOS and Linux to ask for the environment key in the terminal before Claude starts, and to hide it as you paste official-public-changelog-entry Changed claude self-hosted-runner setup with no arguments on macOS and Linux to ask for the environment key in the terminal before Claude starts, and to hide it as you paste
entry_2_1_332_changed_claude_desktop_s_code_tab_on_anthropic_s_api_to_ignore_default Changed Claude Desktop’s Code tab on Anthropic’s API to ignore default, side-request, alias and subagent model ids not starting with claude in your own settings beside a gateway address official-public-changelog-entry Changed Claude Desktop’s Code tab on Anthropic’s API to ignore default, side-request, alias and subagent model ids not starting with claude in your own settings beside a gateway address
entry_2_1_332_changed_pgup_and_home_to_go_to_no_on_destructive_questions_such_as_cle Changed PgUp and Home to go to No on destructive questions, such as /clear from an agent’s view official-public-changelog-entry Changed PgUp and Home to go to No on destructive questions, such as /clear from an agent’s view
entry_2_1_332_changed_the_hint_a_mod_s_prompthint_hook_receives_to_leave_out_the_hin Changed the hint a mod’s PromptHint hook receives to leave out the hint for selected text when the fullscreen footer has a label on its right official-public-changelog-entry Changed the hint a mod’s PromptHint hook receives to leave out the hint for selected text when the fullscreen footer has a label on its right
entry_2_1_332_improved_context_shorter_output_in_fullscreen_so_the_total_is_less_lik Improved /context: shorter output in fullscreen, so the total is less likely to scroll off in a short window, and the legend names its unit once official-public-changelog-entry Improved /context: shorter output in fullscreen, so the total is less likely to scroll off in a short window, and the legend names its unit once
entry_2_1_332_fixed_claude_auth_login_reporting_login_successful_when_a_claude_ai_lo Fixed claude auth login reporting Login successful. when a claude.ai login could not be saved: it now exits 1 and says what to check, such as a leftover lock file or a full disk official-public-changelog-entry Fixed claude auth login reporting Login successful. when a claude.ai login could not be saved: it now exits 1 and says what to check, such as a leftover lock file or a full disk
entry_2_1_332_fixed_read_mentions_and_compaction_hanging_on_a_named_pipe_that_nothin Fixed Read, @-mentions and compaction hanging on a named pipe that nothing writes to, such as a .env mounted by a locked secrets manager; the read now fails after 20 seconds official-public-changelog-entry Fixed Read, @-mentions and compaction hanging on a named pipe that nothing writes to, such as a .env mounted by a locked secrets manager; the read now fails after 20 seconds
entry_2_1_332_fixed_a_freeze_and_context_overflow_when_a_hook_blocks_or_fails_during Fixed a freeze and context overflow when a hook blocks or fails during a turn, or after /compact, with a very large log; text over about 50,000 characters is now shortened official-public-changelog-entry Fixed a freeze and context overflow when a hook blocks or fails during a turn, or after /compact, with a very large log; text over about 50,000 characters is now shortened
entry_2_1_332_fixed_a_family_name_such_as_sonnet_in_fallback_model_being_dropped_whe Fixed a family name such as sonnet in --fallback-model being dropped when availableModels allows only an older version of it official-public-changelog-entry Fixed a family name such as sonnet in --fallback-model being dropped when availableModels allows only an older version of it
entry_2_1_332_fixed_a_session_failing_when_the_cloud_refused_its_default_model_and_a Fixed a session failing when the cloud refused its default model and an availableModels list that isn’t enforced named neither it nor an older model of that family official-public-changelog-entry Fixed a session failing when the cloud refused its default model and an availableModels list that isn’t enforced named neither it nor an older model of that family
entry_2_1_332_fixed_effort_being_ignored_when_starting_an_interactive_session_with_e Fixed --effort being ignored when starting an interactive session with --environment while CLAUDE_CODE_EFFORT_LEVEL is set to the same level official-public-changelog-entry Fixed --effort being ignored when starting an interactive session with --environment while CLAUDE_CODE_EFFORT_LEVEL is set to the same level
entry_2_1_332_fixed_self_hosted_runner_sessions_failing_their_first_clone_under_anth Fixed self-hosted runner sessions failing their first clone under Anthropic-managed git when the machine’s git config has an includeIf \"gitdir:\" or (git 2.44 to 2.46) \"onbranch:\" section official-public-changelog-entry Fixed self-hosted runner sessions failing their first clone under Anthropic-managed git when the machine’s git config has an includeIf \"gitdir:\" or (git 2.44 to 2.46) \"onbranch:\" section
entry_2_1_332_self_hosted_runner_fixed_configure_git_sometimes_reporting_a_hung_git_ Self-hosted runner: Fixed --configure-git sometimes reporting a hung git --version as a git that isn’t on PATH official-public-changelog-entry Self-hosted runner: Fixed --configure-git sometimes reporting a hung git --version as a git that isn’t on PATH
entry_2_1_332_fixed_code_mode_not_telling_claude_when_a_slow_command_moved_to_the_ba Fixed Code Mode not telling Claude when a slow command moved to the background and left its script with empty output, or of the time limit on background commands in claude -p and the Agent SDK official-public-changelog-entry Fixed Code Mode not telling Claude when a slow command moved to the background and left its script with empty output, or of the time limit on background commands in claude -p and the Agent SDK
entry_2_1_332_fixed_code_mode_sessions_in_the_agent_sdk_and_claude_p_sometimes_losin Fixed Code Mode sessions in the Agent SDK and claude -p sometimes losing Claude’s last reply on resume after being stopped while a script was running official-public-changelog-entry Fixed Code Mode sessions in the Agent SDK and claude -p sometimes losing Claude’s last reply on resume after being stopped while a script was running
entry_2_1_332_fixed_unbinding_a_chord_in_keybindings_json_still_leaving_its_first_ke Fixed unbinding a chord in keybindings.json still leaving its first key waiting for a second when it was spelled meta and bound as alt, or the reverse official-public-changelog-entry Fixed unbinding a chord in keybindings.json still leaving its first key waiting for a second when it was spelled meta and bound as alt, or the reverse
entry_2_1_332_fixed_interrupting_a_turn_while_a_mod_s_turn_step_hook_was_waiting_sho Fixed interrupting a turn while a mod’s turn.step hook was waiting showing “user-cancel” as an error instead of “Interrupted” official-public-changelog-entry Fixed interrupting a turn while a mod’s turn.step hook was waiting showing “user-cancel” as an error instead of “Interrupted”
entry_2_1_332_fixed_claude_json_being_reported_as_corrupted_when_another_session_was Fixed ~/.claude.json being reported as corrupted when another session was in the middle of saving it official-public-changelog-entry Fixed ~/.claude.json being reported as corrupted when another session was in the middle of saving it
entry_workflow_max_concurrent_agents_env CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS 工作流并发代理上限环境变量(1–256) capability-derived Workflow 工具可通过 CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS(取值 1–256)提高单次运行的并发代理上限,用于推理受限的扇出场景。
entry_mcp_serve_tool_call_progress_30s claude mcp serve 工具调用每 30 秒发送进度更新,避免空闲超时中止静默长命令 capability-derived claude mcp serve 运行中的工具调用每 30 秒发送一次进度更新,使客户端知道调用仍在运行,避免空闲超时终止不打印输出的长时间命令。
entry_autofix_pr_gh_view_native_error /autofix-pr:gh pr view 失败时显示 gh 原生错误(登录、SAML、限流)而非通用退出码 capability-derived /autofix-pr 在 gh pr view 失败时透传 gh 自身错误信息(未登录、SAML、速率限制等),不再只显示通用退出码行。
entry_autofix_pr_webhook_missing_linked_account /autofix-pr:说明 GitHub webhook 无法为 PR 设置投递的原因(如未关联 GitHub 账号) capability-derived /autofix-pr 明确说明 GitHub webhook 投递无法为该 PR 设置的原因,例如当前未关联 GitHub 账号,替代此前的通用警告。
entry_settings_watcher_macos_polling_fallback macOS 系统文件事件服务饱和时,会话外设置文件变更监听回退为轮询 capability-derived macOS 上系统文件事件服务饱和导致监听遗漏时,设置文件变更监听器回退到轮询,确保会话外修改的设置仍能被察觉。
entry_mcp_tight_loop_list_changed_high_cpu MCP 服务器紧凑循环发送 list_changed 通知导致的持续高 CPU 与重复工具列表请求修复 capability-derived 修复 MCP 服务器在紧凑循环中发送 list_changed 通知时,造成的持续高 CPU 占用和反复发起工具列表请求问题。
fix_compaction_repeated_failure_prompt_too_long 重复自动压缩失败后上下文极限再压缩可续跑,避免 Prompt is too long 中断 official-changelog-verified 修复此前重复自动压缩失败后,回合在上下文极限处直接以 Prompt is too long 结束;现在再执行一次压缩即可让会话继续运行。
fix_hook_unbounded_output_freeze_memory Hook 持续无结束输出导致冻结与内存失控的修复 official-changelog-verified 修复多数情况下 Hook 打印无结束输出时出现的界面冻结与内存失控问题;属于 Hooks 生命周期稳定性修复。
fix_mcp_sse_event_stream_reconnect_hang SSE MCP 服务器事件流断开后重连前挂起或拒绝工具调用的修复 official-changelog-verified 修复 SSE 传输的 MCP 服务器在事件流被切断、换到新端点或未恢复时,挂起或拒绝全部工具调用,直到手动重连的问题。
fix_fullscreen_footer_label_wrap_wrong_line_copy 全屏选中文本时页脚右侧标签换行错位导致复制错行的修复 official-changelog-verified 修复全屏模式下选中文本把页脚右侧标签挤到第二行、文本位置移到鼠标下方从而可能复制错误行的界面问题。
cap_gemini_headless Gemini CLI headless / scripting mode capability-derived Gemini CLI headless 模式,供脚本化与自动化工作流以非交互方式调用代理。
cap_gemini_telemetry Gemini CLI telemetry organization-public-ecosystem-entry Gemini CLI 遥测与用量监控;收集范围、开关与本地导出目标以官方 Telemetry 文档为准。
cap_openai_realtime_agents Agents SDK · Realtime Agents(实时语音代理) apache-2.0-verify-package-metadata Agents SDK Realtime 能力基于实时模型构建语音代理,提供自动中断检测、上下文管理、护栏与会话移交(realtime handoff);RealtimeAgent 配合 RealtimeRunner 与 RealtimeSession 运行。
cap_openai_voice_pipeline Agents SDK · Voice Pipeline(语音管线) apache-2.0-verify-package-metadata Voice pipeline 把语音识别(STT)、代理工作流与文本转语音(TTS)串成完整语音应用;属于 Agents SDK 上层语音编排能力,区别于底层 Realtime API 模型服务。
cap_openai_human_in_loop Agents SDK · Human in the Loop(人工介入) apache-2.0-verify-package-metadata Agents SDK 内置人在回路机制,在代理运行期间引入人工参与;与护栏、会话和追踪同属 SDK 运行时能力。
cap_openai_agents_streaming Agents SDK · Streaming(流式中间输出) apache-2.0-verify-package-metadata Streaming 能力向响应式 UI 推送中间工具使用与 LLM 响应;Runner 按同步、异步或批量方式执行并产出流事件。
entry_2_1_332_dictation_stop_on_send_prompt Tap-mode dictation stops when prompt is sent official-document-derived-entry Tap-mode 语音口述在用户发送提示时停止;此前 idle 超时为 60 秒无新词或 10 分钟上限,文本保持未发送,再次按键追加。
entry_2_1_332_held_message_always_deliver 跨会话 held message 增加 Always deliver 提示(2.1.332) official-changelog-documented 来自其他会话的 held message 在提示中增加 Always deliver 选项;挂到会话消息衔接锚点。
entry_2_1_332_desktop_otel_service_name_claude_code_desktop 桌面 Code tab 会话默认 OTel service.name 改为 claude-code-desktop(2.1.332) official-changelog-documented 桌面 Code tab 会话默认 OpenTelemetry service.name 变为 claude-code-desktop;按 claude-code 键控的过滤器需更新,或设置 OTEL 变量覆盖。
entry_2_1_332_dictation_idle_timeout_60s_10min tap-mode 语音口述空闲超时放宽至 60 秒无词 / 10 分钟(2.1.332) official-changelog-documented tap-mode 口述在 60 秒无新词或累计 10 分钟后停止(原为 15 秒 / 2 分钟),随后键盘操作接管。
entry_2_1_332_dictation_stop_send_edit_panel_connection 口述在发送提示、编辑、面板遮挡或连接中断时停止并说明原因(2.1.332) official-changelog-documented 发送提示即停止口述;编辑提示、面板遮挡、连接或麦克风中断时停止并说明原因。
entry_2_1_332_schedule_cloud_task_terminology /schedule、权限提示与 /loop 云端offer 改称 cloud scheduled task(2.1.332) official-changelog-documented /schedule、权限提示与 /loop 的云端提议改用“cloud scheduled task”措辞;/routines 命令名仍保留。
entry_2_1_332_model_switch_preserve_effort 手机应用或 claude.ai 切换模型时保留上一模型已存 effort 级别(2.1.332) official-changelog-documented 从移动应用或 claude.ai 切换模型时,新模型未单独保存 effort 时沿用前一模型保存的 effort 级别。
entry_2_1_332_aws_credential_export_10min_timeout awsCredentialExport 改为 10 分钟超时,不再无限等待(2.1.332) official-changelog-documented awsCredentialExport 凭证导出在 10 分钟后超时,替代原先无限等待。
entry_2_1_332_windows_company_pc_startup_stability 部分公司 PC 上 Claude Code 启动后无输出退出的稳定性修复(2.1.332) official-changelog-documented 修复部分公司配发 Windows PC 上 Claude Code 启动后不久无输出退出的稳定性问题。
entry_2_1_332_local_mcp_stdout_flood_terminal_freeze 本地 MCP 服务器标准输出泛滥时终端冻结与忽略 Ctrl+C 修复(2.1.332) official-changelog-documented 修复本地 MCP 服务器大量冲刷标准输出时终端冻结、且忽略 Ctrl+C 的问题。
entry_2_1_332_long_at_string_prompt_freeze 提示或管道输入中 @ 后超长无断字符串导致的冻结修复(2.1.332) official-changelog-documented 修复提示或管道输入持有 @ 后超长无断字符串(如内嵌字体的压缩 CSS)时的冻结。
entry_2_1_332_usage_limit_reset_remote_control_ide_sdk 用量限额重置后 Remote Control、IDE 与 SDK 客户端不再误报已达上限(2.1.332) official-changelog-documented 修复限额已经重置后,Remote Control、IDE 与 SDK 客户端仍报告用量上限已达的问题。
entry_2_1_332_declined_permission_tool_call_summary_count 权限提示被拒绝后未运行的工具调用不再计入 claude.ai 摘要完成数(2.1.332) official-changelog-documented 修复会话中拒绝权限提示后,从未运行的工具调用仍被计入 claude.ai 聊天摘要完成数的问题。
entry_2_1_332_ctrlc_background_subagent_report_unread 停止的后台代理有未读子代理报告时 Ctrl+C 新开回合、双击不退出修复(2.1.332) official-changelog-documented 修复被停止的后台代理存在未读子代理报告时,Ctrl+C 会新开回合、双击 Ctrl+C 不退出的问题。
entry_2_1_332_install_github_app_esc_rework_ticks_workflow /install-github-app 按 Esc 返回后不再重复勾选工作流(2.1.332) official-changelog-documented 修复 /install-github-app 中用 Esc 返回后工作流被再次勾选的问题。
entry_2_1_332_dictated_text_over_10k_chars_lost 超过 10,000 字符的口述文本不再丢失(2.1.332) official-changelog-documented 修复口述文本超过 10,000 字符时被丢弃的问题。
entry_2_1_332_nonstreaming_retry_broken_response_abort_error 非流式重试收到破损响应或被中断时不再报原始 JSON Parse / aborted 错误(2.1.332) official-changelog-documented 修复非流式重试遇到破损响应或被中断时,暴露原始 “JSON Parse error” 与 “operation aborted” API 错误的问题。
entry_2_1_332_esc_computer_use_app_window_mac macOS 允许应用或窗口在前时 Esc 不再中断 computer use 动作(2.1.332) official-changelog-documented 修复 macOS 上 Claude Code 窗口或被允许的应用在前时,Esc 未正确停止 computer use 动作的问题。
entry_2_1_332_fullscreen_selection_footer_label_wrap_copy 全屏选中文本时页脚右侧标签换行错位导致复制错行修复(2.1.332) official-changelog-documented 修复全屏选中文字时页脚右侧标签被挤到第二行、文字移位到鼠标下并可能复制错误行的问题。
entry_2_1_332_local_mcp_new_session_id_after_remote_restart Remote Control 会话进程重启后本地 MCP 服务器不再看到新会话 ID(2.1.332) official-changelog-documented 修复 Remote Control 会话进程重启后,本地 MCP 服务器被分配新会话 ID 的问题。
entry_2_1_332_history_picker_repeated_timestamp_rows 全屏 Ctrl+R 历史选择器同时间戳提示的陈旧重复行修复(2.1.332) official-changelog-documented 修复全屏 Ctrl+R 历史选择器中共享时间戳的提示出现陈旧重复行的问题。
entry_2_1_332_code_mode_large_tool_input_list_freeze Code Mode 工具输入含超 4,096 项列表或超大 typed array 时跳过并冻结修复(2.1.332) official-changelog-documented 修复 Code Mode 对输入列表超过 4,096 项的工具调用静默跳过,以及超大 typed array 导致冻结的问题。
entry_2_1_332_code_mode_waiting_on_stopped_command Code Mode 有时在已停止命令上等待数分钟的修复(2.1.332) official-changelog-documented 修复 Code Mode 偶尔在已经停止的命令上等待数分钟的问题。
entry_2_1_332_code_mode_slash_inline_shell_after_background_output 后台脚本输出到达后 Code Mode 斜杠命令内联 Shell 命令不再不执行(2.1.332) official-changelog-documented 修复后台脚本输出到达后,Code Mode 中键入斜杠命令的内联 Shell 命令不再运行的问题。
entry_2_1_332_pasted_image_link_path_late_swallow_enter 粘贴的链接与图片文件名相对路径延迟出现并吞掉紧随回车的修复(2.1.332) official-changelog-documented 修复粘贴链接与以图片文件名结尾的相对路径延迟出现,并吞掉紧随其后回车的问题。
entry_2_1_332_desktop_needs_input_status_after_background_report Desktop session keeps needs-input status after a background task report official-public-changelog-entry 2.1.332 fix: a Desktop session no longer loses its "needs input" status after a background task report arrives; the waiting-for-user state survives the background notification.
entry_2_1_332_vscode_mic_tooltip_webfetch_highcontrast_fixes VS Code blocked-mic tooltip, long Web Fetch rows, High Contrast usage bar and thumbnail UI fixes official-public-changelog-entry 2.1.332 VS Code fixes: blocked microphone tooltip no longer cut off; long addresses do not overflow Web Fetch rows; usage bars render correctly in High Contrast; thumbnail UI corrected alongside the listed visual defects.
entry_2_1_331_auto_mode_refusing_stop_loop_fix 2.1.331 Auto mode no longer refuses a call to stop a /loop official-changelog-entry Fixed Auto mode sometimes refusing Claude's call to stop a /loop, which left the next wake-up to fire; Auto mode now permits the stop call.
entry_2_1_332_macos_computer_use_newer_safety_rules computer use on macOS follows newer safety rules; some actions are refused and typing can be slower official-documentation-entry 2.1.332: computer use on macOS follows newer safety rules; some actions are refused and typing can be slower.
entry_2_1_332_voice_dictation_idle_timeout_extended_vscode VS Code voice dictation stops by itself after 60 seconds without recognized speech or 10 minutes, up from 15 seconds and 2 minutes, so the microphone can stay on longer official-documentation-entry 2.1.332: VS Code voice dictation stops by itself after 60 seconds without recognized speech or 10 minutes, up from 15 seconds and 2 minutes, so the microphone can stay on longer.
entry_2_1_332_voice_dictation_stop_when_panel_hidden_mic_lost VS Code voice dictation stops, and reports why, when the microphone stops sending audio or the panel stays hidden official-documentation-entry 2.1.332: VS Code voice dictation stops, and reports why, when the microphone stops sending audio or the panel stays hidden.
entry_2_1_332_schedule_permission_loop_cloud_task_rename /schedule, permission prompts and /loop cloud offer say cloud scheduled task instead of routine or cloud schedule; /routines still works official-documentation-entry 2.1.332: /schedule, permission prompts and /loop cloud offer say cloud scheduled task instead of routine or cloud schedule; /routines still works.
entry_2_1_332_model_switch_keeps_effort_level model switches from the Claude mobile app or claude.ai keep the effort level saved for the previous model when none is saved for the new model official-documentation-entry 2.1.332: model switches from the Claude mobile app or claude.ai keep the effort level saved for the previous model when none is saved for the new model.
entry_2_1_332_code_mode_tool_search_long_mcp_description_whole Code Mode tool search shows long MCP tool descriptions whole where they fit; a cut description could otherwise lead to wrong calls official-documentation-entry 2.1.332: Code Mode tool search shows long MCP tool descriptions whole where they fit; a cut description could otherwise lead to wrong calls.
entry_2_1_332_idle_compaction_skipped_well_under_weekly_limit fixed idle compaction being skipped for subscribers still well under their weekly limit official-documentation-entry 2.1.332: fixed idle compaction being skipped for subscribers still well under their weekly limit.
entry_2_1_332_at_long_unbroken_string_prompt_freeze Prompt or piped input holding an @ followed by a very long unbroken string no longer freezes official-public-docs-derived Official changelog fix: a prompt or piped input containing an '@' followed by a very long unbroken string, such as minified CSS with an embedded font, could freeze the terminal. The entry records the long-unbroken-token input boundary; internal tokenization internals are not modeled.
entry_2_1_332_cloud_env_only_newest_20 云端会话与 /remote-env 只读取账号最新 20 个环境的修复 official-document-derived-entry 云端会话创建与 /remote-env 此前只读账号环境列表中最新 20 项;修复后不再截断遗漏其他可用环境。
entry_2_1_332_plugin_case_dot_id_collision_refused 插件安装按 . - @ 与大小写归一化识别 ID 冲突并拒绝安装 official-document-derived-entry 两个插件 ID 仅以句点、连字符、@ 或大小写区分时,安装不再写入彼此缓存/数据目录;ID 冲突被拒绝安装。
entry_2_1_332_explore_subagent_inherits_unknown_model Explore 子代理在代理不识别模型 ID 时继承当前会话模型 official-document-derived-entry 会话模型 ID 为代理无法识别的自定义代理模型时,Explore 子代理不再切到 API 默认 Opus,而是继承当前模型。
entry_2_1_332_plugin_marketplace_same_name_replace_notice marketplace add 同名不同源替换提示与撤销说明 official-document-derived-entry 添加插件市场时若同名市场已来自其他来源,命令说明其被替换以及如何撤销,避免静默覆盖。
entry_2_1_332_resume_hook_summary_malformed_crash 恢复含无完整 Hook 列表的 Stop hook 摘要 transcript 的崩溃修复 official-document-derived-entry 会话保存 transcript 中 Stop hook 摘要缺少规范 hook 列表时,恢复不再报 unrecoverable interface error。
entry_2_1_332_desktop_open_failure_explanation /desktop 打开 Claude Desktop 失败时给出原因与后续操作 official-document-derived-entry 桌面应用未启动时,错误信息说明失败原因以及下一步可执行操作,而非泛化报错。
entry_2_1_332_logout_gateway_token_revocation 网关登录登出同时结束宣告令牌可撤销的网关会话 official-document-derived-entry Claude apps 网关登录场景下,/logout 对支持令牌撤销的网关一并结束服务端会话。
entry_2_1_332_cloud_account_environment_limit_boundary 账号环境列表云端可见范围边界:环境选择以账号已同步环境为准 official-document-derived-entry 云端会话与远程环境向导只能列出账号在平台可见的环境;本地未同步配置不构成可选择远程环境。
entry_2_1_332_synced_skills_org_disabled_trash 组织关闭 Skills 后已同步 claude.ai 技能移入可恢复回收站 official-document-derived-entry 组织策略关闭 Skills 时,先前从 claude.ai 同步的技能不再保持可用,转入可恢复的回收站。
entry_2_1_332_login_refresh_thinking_discard /login /upgrade /extra-usage 不再丢弃会话早先 thinking 内容 official-document-derived-entry 这些命令此前会清空对话早期 thinking,导致下次请求全量重写提示缓存;修复后保留 thinking 避免缓存重建。
entry_2_1_332_git_exclude_stub_recreated_after_remove 仓库 .git 目录移走后长会话不再重建占位 .git/info/exclude official-document-derived-entry 仓库 .git 目录被删除或移动后,运行中的长会话不再反复生成占位 exclude 文件。
entry_2_1_332_shell_mode_leading_bang_preserved Shell 模式下开头输入的 ! 不再被吞掉 official-document-derived-entry 处于 shell 模式时主提示不再丢弃首字符 !,否定式命令(如 ! grep …)可正常输入。
entry_2_1_332_macos_symlink_second_path_read_reject macOS 拖拽截图经第二路径读取的符号链接解析误判修复 official-document-derived-entry 系统以第二个路径报告的拖拽截图或文件不再因权限检查后符号链接解析变化而被 Read 拒绝。
entry_2_1_332_memory_dir_outside_block_not_loaded 仓库设置指定的内存目录位于工作目录外时不加载、不召回、不索引 official-document-derived-entry 在 permissions.blockReadsOutsideWorkingDirectories 下,设置指定的外部内存目录不进入提示、召回、索引或记忆抽取。
entry_2_1_332_subagent_final_missing_usage_not_failed 最终流回复缺少 token 用量或模型 ID 时子代理结果仍正常交付 official-document-derived-entry 子代理/后台代理最后一条流式回复省略用量或无模型 ID 时,不再被误报失败且结果不丢失。
entry_2_1_332_advisor_context_meter_double_count 上下文计量与自动压缩不再把 advisor 工具回合按两倍上下文计 official-document-derived-entry advisor 工具回合此前被按约两倍真实上下文统计,导致自动压缩在窗口一半时触发;修复后计量与真实尺寸一致。
entry_2_1_332_scheduled_task_wrong_session_worktree_copy scheduled_tasks.json 复制到其他目录后计划任务不再在错误会话运行 official-document-derived-entry .claude/scheduled_tasks.json 被复制到新 worktree 等目录时,保存的计划任务不再绑定到错误的原会话执行。
entry_2_1_332_install_github_app_saml_block_mislabel /install-github-app 的 SSO SAML 阻断不再误报为管理员权限不足 official-document-derived-entry GitHub 应用安装遇 SAML 单点登录阻断时,提示指向 SAML SSO 原因,而非泛称 admin permissions required。
entry_2_1_332_spinner_false_positive_design_plugin_tip 读取/发布 Artifact 后不再误建议 frontend-design 插件 official-document-derived-entry Artifacts 读取或发布场景不再触发错误指向前端设计插件的加载提示。
entry_2_1_332_artifact_db_write_single_field_remove 制品数据库更新可删除单个字段而不必重写整条文档 official-document-derived-entry Artifact 数据库写入支持局部字段移除;更新不再要求重写完整文档。
entry_2_1_332_artifact_publish_reconnect_no_duplicate 连接在到达 claude.ai 后断开的制品发布安全重发,不产生重复版本 official-document-derived-entry 发布请求抵达服务端后网络断开,本次发布被安全重发,不会失败或生成重复制品版本。
entry_2_1_332_autofix_pr_webhook_setup_reason /autofix-pr 说明 GitHub webhook 无法建立的具体原因 official-document-derived-entry webhook 投递无法为 PR 建立时,命令给出原因(如未关联 GitHub 账号),不再只输出泛化警告。
entry_2_1_332_otel_raw_body_index_jsonl_link OTEL_LOG_RAW_API_BODIES 文件以 index.jsonl 与 request_body_id/message.id 关联 official-document-derived-entry 原始 API 日志目录新增 index.jsonl,事件属性 request_body_id 与 message.id 把每条响应链接到请求文件和 transcript 消息。
entry_2_1_332_gateway_login_rate_limit_message 网关登录限流错误说明触发的限制与需调整的设置 official-document-derived-entry Claude apps 网关登录遇限流时,/login 解释拒绝原因,网关日志标明命中的限制项和应调整的设置。
entry_2_1_332_signin_requests_claudeai_plugins_scope Claude 账号登录同时请求 claude.ai 插件访问授权 official-document-derived-entry 账号登录流程新增对 claude.ai 插件的访问范围请求,与插件连接能力保持一致。
entry_2_1_332_stale_git_config_lock_sandbox_fail Linux 沙箱命令未启动后残留 .git/config.lock 不再阻断后续 git 操作 official-document-derived-entry 沙箱命令启动失败遗留的陈旧配置锁,此前会让 git checkout -b、push -u、git config 整会话失败;修复后锁不残留。
entry_2_1_332_settings_watcher_macos_polling_fallback macOS 文件事件饱和时设置文件外部变更回退轮询检测 official-document-derived-entry 系统文件事件服务饱和导致会话外修改设置不被感知时,监听器回退到轮询,确保配置变更被捕获。
entry_2_1_332_headless_all_mcp_tools_defer_loading_fix 恢复的 -p 会话工具全部来自 MCP 时不再报 defer_loading 错误 official-document-derived-entry headless 恢复会话所有工具由 MCP 服务器提供时,不再触发 At least one tool must have defer_loading=false 报错。
entry_2_1_332_terminal_diff_transcript_render_perf 大 diff 与长 transcript 终端渲染更快、卡顿帧更少 official-document-derived-entry 终端渲染优化:大型差异和长会话记录渲染提速,减少慢帧。
entry_2_1_332_hook_spinner_elapsed_time_and_esc Hook 运行时 spinner 显示耗时,Esc 可取消等待 SessionStart 钩子的提示 official-document-derived-entry SessionStart、UserPromptSubmit、PreToolUse、SessionEnd 钩子运行期间 spinner 显示已用时间;等待 SessionStart 钩子的提示可按 Esc 取消。
entry_2_1_332_workflow_pause_on_usage_limit_resume 动态工作流遇到用量限制暂停,额度恢复后自动继续受影响代理 official-document-derived-entry Workflow 在命中用量上限时暂停而非丢弃受影响代理;限制解除后自动恢复运行。
entry_2_1_332_remote_control_setup_fewer_empty_sessions 网络抖动导致 Remote Control 初始化失败时少留空 claude.ai 会话 official-document-derived-entry 脆弱网络下远程控制设置失败不再在服务端残留空会话,减少无效会话记录。
entry_2_1_332_worktree_subagent_claude_md_second_load worktree 隔离子代理首次读文件不再二次加载项目 CLAUDE.md 及其导入 official-document-derived-entry 带 worktree 隔离生成的子代理不再从 worktree 副本二次读取项目 CLAUDE.md 与其导入内容。
entry_2_1_332_background_approval_done_state 后台任务等待审批时不再被显示为已完成 official-document-derived-entry 后台代理任务仍在等待用户批准时,状态不再标记为 done,避免审批被遗漏。
entry_2_1_332_collapsed_thought_row_click_no_expand 全屏下点击折叠行词间空白只选中行、不展开 official-document-derived-entry Thought for 4s 等折叠行,点击词间空白处仅高亮该行,不再误触完整展开。
entry_2_1_332_long_filename_cloud_attachment 超长文件名附件不再无法送达云端会话 official-document-derived-entry 文件名过长的附加文件此前在挂到云端会话时无法送达;修复后可正常附带。
entry_2_1_332_skill_shell_command_send_now_background 发送快捷键把技能自身 shell 命令转入后台而非结束命令 official-document-derived-entry 技能自带 shell 命令运行时,send-now 快捷键改为将其转入后台,不再终止该命令。
entry_2_1_332_webfetch_safety_rate_limit_no_retry_loop 域名安全检查被限流时 WebFetch 错误提示模型不要循环重试 official-document-derived-entry WebFetch 遇到域名安全检查限流返回的错误,明确告知代理不要在循环中反复重试该域名。
entry_2_1_332_plugin_npm_git_folder_source_refused 插件安装拒绝 git 仓库或文件夹作为 npm 来源,依赖仅取自 registry 包 official-document-derived-entry 插件安装拒绝以 git 仓库或本地文件夹作为 npm 来源;插件依赖只从 registry 软件包安装。
entry_2_1_332_managed_agent_env_limited_network claude-api 技能的 Managed Agents 示例创建限制网络的环境 official-document-derived-entry 托管代理示例环境使用有限网络配置,与托管隔离环境的网络边界要求一致。
entry_2_1_332_artifact_read_share_menu_permissions 制品读取结果说明页面可访问者与所有者 Share 菜单能力 official-document-derived-entry Artifact 工具发布与读取结果说明谁可打开页面,以及所有者 Share 菜单提供的选项。
entry_2_1_332_artifact_shared_inplace_edit 已有编辑权限的共享制品就地更新,不再另发副本 official-document-derived-entry 具备共享制品编辑权限时,指导代理在原制品上更新,而非发布一份独立副本。
entry_2_1_332_background_notification_false_idle 后台代理等待自身后台任务时不再误报无活跃后台工作 official-document-derived-entry 后台代理仍在等待自己的后台任务并将恢复时,通知不再声称没有存活的后台工作。
entry_2_1_332_schedule_routine_prompt_role_preserved /schedule 保存例程提示时保留消息角色 official-document-derived-entry 当 Claude 按例程列表返回形态编写计划任务时,保存例程提示不再丢失其消息角色。
entry_2_1_332_fast_mode_managed_policy_disabled_message 非交互会话 fast mode 受组织托管策略关闭时明确提示 official-document-derived-entry 组织托管 fast mode 策略禁用时,/fast on 不再报告开启后又关闭;改为说明已被组织策略关闭。
entry_2_1_332_teammate_artifact_network_off_read_boundary Cowork / claude.ai 云端会话读取队友制品不再误判为网络关闭 official-document-derived-entry 具备网络访问的云端会话读取队友制品时,不再按网络关闭处理权限判断。
entry_2_1_332_plugin_dir_version_from_enclosing_git 无独立 git 仓库的插件/市场目录不再取外层仓库版本 official-document-derived-entry 插件或市场目录自身无 git 仓库时,不再从外层(如 git 管理的 ~/.claude)继承版本号。
entry_2_1_332_written_document_audience_named 替非当前用户撰写的文档/消息面向目标受众并在回复顶部标明 official-document-derived-entry VS Code 中为他人撰写文档或消息时,内容面向该受众,并在回复顶部说明受众对象。
capability_qwen_function_calling Qwen Function Calling Tool-Calling Capability official-model-service-feature-documented Function Calling 允许 Qwen 模型在首轮调用返回外部工具的函数名与 JSON 入参;应用端执行工具后把结果回传,模型再综合生成回复。流程覆盖 Chat Completions 与 Responses API 两类接入面;Qwen 系列不支持把 tool_choice 强制设为 required。
entry_2_1_331_voice_dictation_connection_lost_message 2.1.331 Voice dictation reports connection lost or unable to connect instead of no-speech-recognized official-changelog-derived-entry Official changelog 2.1.331: when the dictation connection closed or never opened, voice dictation previously said no speech was recognized; it now reports the connection was lost or could not connect. Records audio connection boundary; transcription server internals excluded.
entry_2_1_330_recurring_loop_task_30_day_runtime_session_lifetime 2.1.330 Recurring scheduled tasks and /loop run up to 30 days instead of 7 while their session keeps running; pre-release tasks keep 7-day end official-changelog-derived-entry Official changelog 2.1.330: recurring scheduled tasks and /loop run up to 30 days rather than 7 while their session keeps running, and report when they end; tasks created before this release still end at 7 days. Records lifetime policy boundary; no scheduler storage internals.
entry_2_1_330_stats_count_activity_local_timezone_not_utc 2.1.330 /stats counts new activity in the local time zone instead of UTC days official-changelog-derived-entry Official changelog 2.1.330: /stats previously counted new activity in UTC days; the fix groups activity by the local time zone. Records reporting boundary; usage ledger internals excluded.
entry_2_1_331_code_mode_provider_platform_terminal 2.1.331 Code Mode 终端会话支持 Bedrock、Agent Platform、Foundry 与 AWS Claude Platform official-documentation-entry Code Mode 终端会话在 Amazon Bedrock、Google Cloud Agent Platform、Microsoft Foundry 与 AWS 上的 Claude Platform 可用。
entry_2_1_331_gateway_oidc_groups_jsonpath 网关 OIDC groups_jsonpath 从对象列表匹配项读取用户组 official-documentation-entry Claude apps 网关新增 oidc.groups_jsonpath,用小范围 JSONPath 从对象列表匹配项读取用户组。
entry_2_1_331_dictation_idle_notice_15s_2min tap-mode 口述 15 秒无词或 2 分钟上限自动停止提示 official-documentation-entry tap-mode 语音口述在 15 秒无识别语音或达到 2 分钟上限时自行停止并给出提示。
entry_2_1_331_disable_response_compression_env CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION 请求代理后端未压缩响应 official-documentation-entry 代理截断压缩响应时,可用该环境变量请求未压缩模型响应;官方标注暂不建议在一般场景使用。
entry_2_1_331_gateway_idp_connect_by_hostname CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME 按主机名转交 IdP 登录 official-documentation-entry 网关开启 oidc.use_proxy: true 时,该开关让登录请求按主机名把代理交给 https IdP。
entry_2_1_331_otel_llm_request_usage_model_fields llm_request 追踪 span 增加 gen_ai.usage、response.model 与 operation.name 字段 official-documentation-entry claude_code.llm_request span 新增 gen_ai.usage.*、gen_ai.response.model 与 gen_ai.operation.name;usage.input_tokens 计入上下文。
entry_2_1_331_plugin_optional_dependencies_manifest 插件清单 optionalDependencies:依赖插件可独立禁用或卸载 official-documentation-entry 插件清单支持 optionalDependencies;作为依赖安装的插件可被单独禁用或卸载。
entry_2_1_331_push_notification_headless_first_minute 无头定时运行首分钟 PushNotification 误报终端活跃修复 official-documentation-entry PushNotification 不再告诉无头运行(如定时任务)首分钟终端处于活跃,而按真实后台状态报告。
entry_2_1_331_install_github_app_esc_rework_ticks_workflow /install-github-app 无仓库跳过步骤与 Esc 返回重复勾选工作流修复 official-documentation-entry 修复未找到仓库时安装流程跳过仓库步骤,以及 Esc 返回后工作流被重复勾选的问题。
entry_2_1_331_vscode_add_cell_to_chat VS Code 笔记本单元格菜单 Add Cell to Chat 附带输出或错误 official-documentation-entry 笔记本单元格菜单新增 Add Cell to Chat,把单元格连同其输出或错误附加到对话。
entry_2_1_330_easel_builtin_chart_mod easel 内置 Mod:按需与 MCP 指标结果绘制图表 official-documentation-entry easel 为内置 Mod,在被要求时以及 MCP 指标结果下绘制图表;Pro、Max 及可用的 Team/Enterprise(macOS)提供。
entry_2_1_330_full_sign_in_link_env CLAUDE_CODE_FULL_SIGN_IN_LINK=1 打印完整登录链接 official-documentation-entry 短链接报错或脚本读取其值时,该开关打印完整登录链接。
entry_2_1_330_runner_start_dir_env 自托管 runner --start-dir / SELF_HOSTED_RUNNER_START_DIR 指定起始目录 official-documentation-entry runner 在仓库指定文件夹开始工作;设置与其他配置仍从默认位置解析。
entry_2_1_330_runner_plugin_marketplace_repo_notice 云端与 runner 会话:插件市场仓库不属于会话允许范围时给出提示 official-documentation-entry 插件市场无法拉取、其仓库不在会话允许范围时,云端与自托管 runner 会话给出说明提示。
entry_2_1_330_plugin_install_json_command_printed_failed plugin install --json 结果新增 commandPrinted 与 commandFailed 字段 official-documentation-entry 安装命令写入 stderr 时 commandPrinted 为真;commandFailed 记录命令失败状态。
entry_2_1_330_runner_order_to_registered_metric runner /metrics:工单发出到注册耗时 order_to_registered_seconds official-documentation-entry 自托管 runner /metrics 新增 claude_code_self_hosted_runner_order_to_registered_seconds。
entry_2_1_330_runner_order_to_first_session_metric runner /metrics:工单发出到首个会话耗时 order_to_first_session_seconds official-documentation-entry 自托管 runner /metrics 新增 claude_code_self_hosted_runner_order_to_first_session_seconds。
entry_2_1_330_webfetch_freeze_empty_result_pages WebFetch 部分页面冻结数分钟或返回空结果修复 official-documentation-entry 修复部分页面 WebFetch 冻结会话数分钟、另一些页面返回空结果的问题。
entry_2_1_330_exit_worktree_dialog_other_session_worktree ExitWorktree 与退出对话框不再删除其他会话正在使用的 worktree official-documentation-entry 修复 ExitWorktree 及 worktree 退出对话框删除另一个运行中 Claude Code 会话所用 worktree 的问题。
entry_2_1_330_mcp_many_tools_json_schema_session_growth MCP 工具输入 schema 过多导致 JSON schema 非法与会话文件膨胀修复 official-documentation-entry 修复大量 MCP 工具输入 schema 使回合报 JSON schema 非法、会话文件增长数 MB 的问题。
entry_2_1_330_mcp_resources_connector_not_attached_at_mention @提及未附加 claude.ai 连接器与插件服务器 MCP 资源修复 official-documentation-entry 终端提示框 @-提及未附加来自 claude.ai 连接器和插件服务器的 MCP 资源,已修复。
entry_2_1_330_subagent_declared_mcp_server_shutdown 子代理声明的 MCP 服务器在其一结束即被关闭修复 official-documentation-entry 修复某个子代理结束后,其声明的 MCP 服务器被关闭,而其他子代理或会话仍在使用的问题。
entry_2_1_330_chrome_stay_not_connected_brief_drop Chrome 短暂断连后保持未连接状态修复 official-documentation-entry 修复 Chrome 已打开并登录时,短暂连接问题后 Claude in Chrome 仍显示未连接的问题。
entry_2_1_330_stats_count_activity_local_timezone /stats 按本地时区而非 UTC 统计新活动 official-documentation-entry /stats 不再按 UTC 日期统计新活动,改为本地时区。
entry_2_1_330_grep_line_break_no_multiline_rejected_pattern Grep 模式含换行且未开 multiline 时报无匹配改为报告被拒模式 official-documentation-entry 修复模式含换行但未启用 multiline 时 Grep 报无匹配;现在报告被拒绝的模式。
entry_2_1_330_notebook_bom_invalid_json_read_edit 带 BOM 的 Jupyter 笔记本被 Read/NotebookEdit 判为非法 JSON 修复 official-documentation-entry 修复保存带字节顺序标记的笔记本被 Read 与 NotebookEdit 报告为非法 JSON 的问题。
entry_2_1_330_vscode_fork_last_reply VS Code /fork 在最后一条回复之后分叉会话 official-documentation-entry VS Code 新增 /fork,在最后一条回复之后分叉对话(不再覆盖原会话计划文件时给出警告)。
entry_2_1_332_dictation_10000_chars_not_lost 口述文本超过 10,000 字符不再丢失 official-documentation-entry 修复 tap-mode 语音口述中超过 10,000 字符的文本被丢弃的问题。
entry_2_1_332_ctrl_c_background_subagent_report_new_turn 停止含未读子代理报告的后台代理时 Ctrl+C 不再误开新回合 official-documentation-entry 修复后台代理被停止且存在未读子代理报告时,Ctrl+C 启动新回合、双击 Ctrl+C 无法退出的问题。
entry_2_1_332_mcp_transient_refresh_clears_slash_commands_resources MCP 提示词/资源刷新的瞬时错误不再清空服务器斜杠命令与资源 official-documentation-entry 修复 MCP 服务器在提示词或资源刷新期间遇到瞬时错误时,其斜杠命令与资源被清空的问题。
entry_2_1_332_otel_log_events_outside_turn_async_context 回合异步上下文外发出的 OTel 日志事件补回交互 span 追踪上下文 official-documentation-entry 修复在回合异步上下文之外发出的 OTel 日志事件缺失交互 span trace 上下文的问题。
entry_2_1_332_session_cost_token_telemetry_double_count 多条累计 message_delta 帧的会话成本与 token 遥测不再重复计数 official-documentation-entry 修复在发出多个累计 message_delta 帧的流上,会话成本与 token 遥测被重复计数的问题。
entry_2_1_332_advisor_spurious_network_warning advisor 思考期间不再误报 check your network 网络警告 official-documentation-entry 修复 advisor 处于思考状态时出现虚假 check your network 警告的问题。
entry_2_1_332_doctor_update_hang_shell_config_path_directory shell-config 路径为目录时 claude update / doctor 与 /status 诊断不再静默挂起 official-documentation-entry 修复 shell-config 路径是目录时,claude update、claude doctor 静默挂起且 /status 系统诊断分区空白的问题。
entry_2_1_332_feature_flags_stale_after_oauth_token_rotate 长会话 OAuth 令牌轮换后功能标志不再陈旧 official-documentation-entry 修复长运行会话在 OAuth 令牌轮换后功能标志保持陈旧的问题。
entry_2_1_212_keepalive_pool_disabled_after_stale_connection 陈旧连接错误后关闭保活连接池,重试打开全新套接字 official-documentation-entry 保活连接池在遇到陈旧连接错误后被禁用,使重试打开全新套接字,而不是复用失效连接。
doc_gateway_spend_limit_admin_api 网关花费限额 Admin API:spend_limits 端点、scope/amount/period、429 超限强制与限额解析顺序 official-documentation-entry 网关通过 admin: 块在 /v1/organizations/spend_limits 提供 Admin API;限额不写在 gateway.yaml,而由 POST 按 {scope, amount, period} 创建或替换。scope 为 user(OIDC sub)、rbac_group(IdP 组)或 organization;amount 为美分整数字符串,null 表示不限额,0 为零限额阻断全部请求;period 为 daily/weekly/monthly,各周期独立强制。超限请求返回 429、error.type billing_error、x-should-retry: false 并带 retry-after。有效限额按用户覆盖、组最严限制、组织默认、不限额顺序解析;admin.group_limit_mode: max 可翻转多组平局裁决为最宽松。
doc_install_login_troubleshooting_diagnostic_checks 安装与登录排障诊断:网络连通性、PATH、冲突安装、目录权限与二进制可执行性;安装脚本返回 HTML 错误类别 official-documentation-entry 安装失败或无法登录时按症状匹配修复:command not found 与 PATH、本地原生安装目录未入 PATH、where.exe 找不到文件的冲突安装核对、shell 配置目录权限;诊断检查覆盖网络连通性、PATH、冲突安装、目录权限与二进制可执行性。安装脚本返回 HTML 的错误按 Bash/Zsh 首行引用或 PowerShell 解析报错归类;另覆盖 curl 连接/写入失败、Linux 低内存安装被 Killed、EACCES 目录权限、TLS/SSL 与证书吊销检查、版本获取失败、更新下载中断与发布校验失败等类别。
doc_costs_usage_command_organization_management 成本管理:/usage 会话 token 与提示缓存统计、计划用量分解、修复建议快捷项、用量额度支出与组织级成本管理 official-documentation-entry Claude Code 按 API token 消耗计费;/usage 的 Session 块展示当前会话 token 用量(API 用户相关;Pro/Max/Ultra 订阅者看计划用量条、活动统计与用量分解)。本地美元估算按列表价计算,modelPricing 表生效时采用组织合同费率;Session 总量随 /clear 重置。提示缓存行汇总请求数、缓存服务输入 token 占比、缓存未命中与当前是否 warm。其余覆盖用量额度支出核对、/usage 请求失败处理,以及组织级成本管理与上下文管理、模型选择、扩展思考设置、预处理 hooks 等降本手段。
entry_2_1_332_held_message_always_deliver_prompt Always deliver option added to prompt for held messages from other sessions (2.1.332) official-public-changelog-entry 来自其他会话被暂存的消息,其提示新增 Always deliver 选项。
entry_2_1_332_otel_assistant_response_sendusermessage_cowork OpenTelemetry assistant_response event for SendUserMessage/Cowork message tool text when logging on (2.1.332) official-public-changelog-entry 响应日志开启时,为 SendUserMessage 或 Cowork 消息工具发出的文本新增 assistant_response OTel 事件。
entry_2_1_330_foreground_subagent_missing_task_tracking_tools Foreground subagents no longer miss TaskCreate/Get/Update/List and TodoWrite when enabled (2.1.330) official-public-changelog-entry 前台子代理在启用任务跟踪工具时不再缺失 TaskCreate/Get/Update/List 与 TodoWrite。
cap_adk_builtin_evaluation ADK built-in agent evaluation official-documentation-capability ADK 内置评估能力,可针对预定义测试用例同时评估代理最终响应质量与逐步执行轨迹;用于在部署前系统化衡量代理表现。
agent_sdk_openai_runner Agents SDK · Runner(代理运行编排器) open-source-sdk-documented-capability Runner 从起始 Agent 执行代理循环:调用输入、生成最终输出即终止;遇到交接则切换到新 Agent;否则执行工具调用并回到循环。支持上下文、max_turns、RunHooks、RunConfig、错误处理器、session、conversation_id 与 previous_response_id。
env_otel_content_max_length CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH:OTel 内容属性最大长度(含截断标记) configuration-documentation 官方环境变量:CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH 设定承载内容的 OpenTelemetry 属性(模型响应、工具内容、系统提示、原始 API 请求体)的最大长度,长度计入截断标记。条目只记录公开长度上限配置,不收录内部采样、脱敏算法或未公开导出目标。
env_otel_flush_timeout_ms CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS:待导出 OTel span 刷写超时(毫秒) configuration-documentation 官方环境变量:CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS 以毫秒设定刷写待处理 OpenTelemetry span 的超时,默认 5000ms。条目只记录公开超时配置,不收录导出器内部队列、重试实现或私有上报通道。
env_otel_headers_helper_debounce_ms CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS:动态 OTel 请求头刷新防抖间隔(毫秒) configuration-documentation 官方环境变量:CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS 以毫秒设定动态 OpenTelemetry 请求头刷新的防抖间隔,默认 1740000ms(29 分钟)。条目只记录公开间隔配置,不收录令牌刷新内部流程或私有请求头取值。
env_otel_shutdown_timeout_ms CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS:退出时 OTel 导出器收尾超时(毫秒) configuration-documentation 官方环境变量:CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS 以毫秒设定 OpenTelemetry 导出器在进程关闭时完成收尾的超时,默认 2000ms;退出时若指标丢失可上调该值。条目只记录公开超时配置,不收录导出器内部缓冲或上报实现。
env_plugin_dir_watch CLAUDE_CODE_PLUGIN_DIR_WATCH:Mod 文件变更后是否自动重载开关 configuration-documentation 官方环境变量:CLAUDE_CODE_PLUGIN_DIR_WATCH 控制 Mod 文件变化时是否触发重载;默认情况下 skills 目录中的 Mod 在多提示会话中会重载。条目只记录公开监听开关配置,不收录 Mod 打包内部结构或私有脚本执行规则。
env_subagent_history CLAUDE_CODE_SUBAGENT_HISTORY:/tasks 重开已结束子代理历史行开关 configuration-documentation 官方环境变量:CLAUDE_CODE_SUBAGENT_HISTORY 设为 0 时移除 /tasks 中用于重开已结束子代理的历史行。条目只记录公开展示开关,不收录子代理 transcript 存储内部布局或私有会话状态。
env_subagent_prompt_cache_ttl CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL:主对话外请求(子代理等)提示缓存 TTL(5m/1h) configuration-documentation 官方环境变量:CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL 为子代理等主对话之外的请求选择提示缓存 TTL,只接受 5m 或 1h。条目只记录公开 TTL 取值配置,不收录缓存命中内部算法、缓存服务拓扑或私有模型路由。
env_otel_metrics_include_account_uuid OTEL_METRICS_INCLUDE_ACCOUNT_UUID:指标与事件属性是否包含账号 UUID 开关 configuration-documentation 官方环境变量:OTEL_METRICS_INCLUDE_ACCOUNT_UUID 设为 false 时从指标与事件属性中排除账号 UUID(默认包含)。条目只记录公开包含开关,不收录账号标识内部生成规则、私有遥测端点或其他身份字段。
env_bg_tasks_report_running CLAUDE_CODE_BG_TASKS_REPORT_RUNNING:非交互会话每回合结束向宿主报告空闲状态开关 configuration-documentation 官方环境变量:CLAUDE_CODE_BG_TASKS_REPORT_RUNNING 设为 0 时,非交互会话在每个回合结束向宿主报告空闲状态,即使后台工作仍在运行。条目只记录公开状态上报开关,不收录后台任务调度内部队列或宿主私有通信协议。
entry_2_1_330_runner_managed_git_plugin_repo_refusal_notice Runner:Anthropic 托管 Git 拒绝插件自身仓库时提示插件名与处理方式(2.1.330) official-changelog-derived-entry 官方 changelog 2.1.330:自托管 runner 会话中,当 Anthropic 托管 Git 拒绝插件自身仓库时,提示会点名插件并给出处理方式。条目只记录公开拒绝提示可见性,不收录托管 Git 内部鉴权、仓库策略实现或未公开流水线。
entry_2_1_281_vscode_paste_marker_long_text VS Code 粘贴文本标记:超过 800 字符或含 2 个以上换行的粘贴内容被标记,便于 Claude 区分粘贴与手工输入 official-public-document-entry Pasted text over 800 characters or over 2 line breaks is marked so Claude can tell it from typed input.
entry_2_1_281_vscode_open_in_new_tab_editor_group VS Code “Open in New Tab” 在当前编辑器组旁打开 Claude,而不是排在最后一个编辑器组之后 official-public-document-entry Open in New Tab opens Claude beside the current editor group rather than after the last group.
entry_2_1_281_vscode_python_extension_60s_startup_fallback VS Code Python 扩展挂起激活时,Claude Code 60 秒后在无 Python 环境下启动,不再永久阻塞 official-public-document-entry When the Python extension hangs during activation, Claude Code starts after 60 seconds without the Python environment.
entry_2_1_281_vscode_session_list_arrow_keys_archive VS Code 会话列表在归档或取消归档后,方向键导航不再中断 official-public-document-entry Arrow-key navigation in the session list no longer stops after archiving or unarchiving a session.
entry_2_1_281_vscode_paste_marker_lines_reopen VS Code 重新打开会话后,粘贴标记行不再残留在用户自己的消息中 official-public-document-entry Paste marker lines no longer show in the user’s own messages after reopening a session.
entry_2_1_281_web_admin_routines_capability_remote_sessions Claude Code on the web:Admin Routines 开关归入 Admin settings → Capabilities → Remote sessions,管理页提供链接 official-public-document-entry Admin Routines on/off setting lives under Admin settings → Capabilities → Remote sessions; the admin page links to it.
entry_2_1_281_web_ghes_gh_token_auto_renew_8h 云会话内 GitHub Enterprise Server 仓库的 gh 与 GitHub API 调用约八小时后失败;令牌现在自动续期 official-public-document-entry gh and GitHub API calls inside a cloud session on a GitHub Enterprise Server repository failing after about eight hours; the token now renews automatically.
entry_2_1_281_web_routine_resume_old_prompt_name_fix 已存在会话的定时 Routine 在计划运行前一刻被编辑时,不再沿用旧提示与旧名称运行 official-public-document-entry A routine resuming an existing session no longer runs with its old prompt and name when edited moments before the scheduled run starts.
entry_2_1_281_web_app_saves_files_for_open Claude App 中查看云会话时,Claude 把留给用户的文件保存到应用可打开的位置 official-public-document-entry For cloud sessions viewed in the Claude app, Claude saves files meant for the user where the app can open them.
entry_2_1_281_web_self_hosted_empty_repo_picker_removed 组织管理员关闭 GitHub 后,自托管环境启动会话不再显示空仓库选择器 official-public-document-entry Removed the empty repository picker shown when starting a session on a self-hosted environment in an organization where an admin turned GitHub off.
feat_21329_tasks_view_scheduled_forks /tasks 视图纳入定时任务、/loop 唤醒、会话目标与会话分叉 official-public-documentation 2.1.329:/tasks 汇总当前会话的定时任务、/loop 唤醒、会话目标与 forks;x 确认后可停止其中一项。挂到后台任务停止工具与定时任务锚点。
feat_21329_mcp_server_message_row /mcp 服务器页 “Server message” 行展示远程 HTTP MCP 的 JSON-RPC 拒绝错误 official-public-documentation 2.1.329:远程 HTTP MCP 服务器拒绝连接时,/mcp 服务器页面新增 “Server message” 行,显示其 JSON-RPC 错误信息。挂到 MCP 协议锚点。
feat_21329_marketplace_autoupdate_status /status “Marketplace auto-update” 行列出无自动更新的托管市场及原因 official-public-documentation 2.1.329:/status 新增 “Marketplace auto-update” 行,标明哪些托管市场不做自动更新以及原因。挂到插件市场锚点。
feat_21329_code_mode_otel_events Code Mode 允许在 OTel 事件与指标开启时启用;代码每次工具调用发送事件,tracing 仍关闭 official-public-documentation 2.1.329:Code Mode 支持在 OpenTelemetry 事件和指标启用时打开;代码发起的每次工具调用发送对应事件,tracing 保持关闭。挂到 Code Mode 锚点。
feat_21329_runner_clone_host_namespace 自托管 runner:同一 owner/name 的第二主机名克隆归入 _repos/clones// 目录 official-public-documentation 2.1.329:自托管 runner 对同一 owner/name 在另一主机名上的克隆,放入基础目录下 _repos/clones//;已有克隆不迁移。挂到 runner 锚点。
feat_21329_tasks_header_unified_count /tasks 头部与页脚后台计数合并为一个数字,覆盖 Shell、Monitor、MCP 调用、代理、工作流与定时任务 official-public-documentation 2.1.329:/tasks 头部与页脚的后台计数改为单一数字,覆盖 Shell、Monitor、MCP 调用、agents、workflows 与 scheduled tasks。挂到 Monitor 与后台任务锚点。
env_debug_log_level CLAUDE_CODE_DEBUG_LOG_LEVEL 调试日志级别环境变量 configuration-documentation 最小写入调试日志文件的级别;取值 verbose/debug(默认)/info/warn/error;verbose 输出高量诊断(完整状态栏命令输出),error 降噪。
env_drop_unavailable_deferred_tool CLAUDE_CODE_DROP_UNAVAILABLE_DEFERRED_TOOL 丢弃不可用延迟工具调用 configuration-documentation 置 1 后恢复会话时丢弃挂起的不可用工具调用:调用以错误结果返回,后续恢复不再有待处理调用;不置位则需先让工具可用再恢复。
env_sessionend_hooks_timeout_ms CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS SessionEnd Hook 超时预算(毫秒) configuration-documentation 显式覆盖 SessionEnd Hook 整体超时预算(毫秒);该值同时成为未单独设置 timeout 的 Hook 的超时;预算随最高单 Hook timeout 自动抬升,上限 60 秒。
env_git_bash_path CLAUDE_CODE_GIT_BASH_PATH Git Bash 路径环境变量 configuration-documentation Windows 上未自动找到 Git Bash 时显式指定 Git Bash 可执行路径;shell 形式且未设 shell 的 Hook 缺 Git Bash 会落到 PowerShell 而失败。
env_claude_code_remote CLAUDE_CODE_REMOTE 远程 Web 环境标记变量 configuration-documentation 远程 Web 环境中取值为 "true",本地 CLI 不设置;供 Hook 处理器识别当前运行于远程会话环境。
env_otel_metrics_include_entrypoint OTEL_METRICS_INCLUDE_ENTRYPOINT 指标事件纳入会话入口点 configuration-documentation 置 true 在指标与事件属性中纳入会话入口点;默认排除;v2.1.152 新增。
env_otel_metrics_include_version OTEL_METRICS_INCLUDE_VERSION 指标事件纳入 Claude Code 版本 configuration-documentation 置 true 在指标与事件属性中纳入 Claude Code 版本;默认排除。
env_claude_pid CLAUDE_PID Claude Code 自身进程号(子进程可见) configuration-documentation Claude Code 在派生的 Bash/PowerShell 工具命令子进程环境中设置为自身进程 ID;供脚本识别宿主进程。
env_webfetch_cache_ttl_ms CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS WebFetch 缓存存活毫秒数 configuration-documentation WebFetch 工具结果缓存的存活时间(毫秒);过期后重新抓取。
env_send_feedback CLAUDE_CODE_SEND_FEEDBACK 关闭 Claude 草拟反馈开关 configuration-documentation 置 0 关闭 Claude 草拟的反馈(SendFeedback 工具生成反馈草稿)能力。
cli_flag_allowed_tools --allowed-tools(--allowedTools)免提示工具清单 proprietary-cli-flag-documented-publicly 除网络路径读取外无需权限提示即执行的工具;模式匹配见权限规则语法;限制可用工具本身用 --tools。
cli_flag_disallowed_tools --disallowed-tools(--disallowedTools)拒绝工具清单 proprietary-cli-flag-documented-publicly 拒绝规则:裸工具名把匹配工具移出 Claude 上下文;"Edit" 移除 Edit,"" 移除全部工具,"mcp__" 匹配 MCP 工具族。
fix_mcp_tool_input_validation_lists_all_invalid_parameters Tool input validation errors list every invalid parameter instead of naming only an unknown, missing or mistyped one official-public-changelog-entry When several parameters in the same call are invalid, validation errors list all of them rather than just one.
fix_gateway_startup_warning_empty_available_models_policy Claude apps gateway warns at startup when a managed policy's availableModels is empty, or leaves out the startup model without setting model or enforceAvailableModels official-public-changelog-entry Gateway startup reports a managed policy with an empty availableModels, or one missing the startup model without model/enforceAvailableModels, as a warning.
fix_gateway_sign_in_rate_limit_explained_setting Gateway sign-in rate-limit errors: /login explains the refusal and the gateway log names the limit hit and the setting to change official-public-changelog-entry A sign-in rate-limit refusal explains itself in /login; the gateway log names the limit and the relevant setting.
fix_logout_gateway_sign_in_ends_revocation_session /logout for Claude apps gateway sign-ins also ends the session on gateways that advertise token revocation official-public-changelog-entry Logout also ends the session on gateways advertising token revocation, alongside clearing local sign-in.
fix_policy_helper_warnings_headless_runs_printed Policy-helper warnings print on headless (-p) runs instead of being suppressed official-public-changelog-entry Policy-helper warnings are surfaced in headless runs rather than omitted from non-interactive output.
fix_mcp_add_remove_config_write_failure_reported_success claude mcp add, add-json and remove no longer report success when the user or local config file could not be written, e.g. inside a sandbox official-public-changelog-entry MCP config mutations report a write failure when the config file cannot be written; sandboxed write failure is not reported as success.
entry_2_1_325_notebook_cell_rerun_spinner_tip Jupyter notebook 单元格重跑提示:VS Code 等集成终端在读取/编辑 notebook 后一次性提示 official-document-derived-entry Claude 读取或编辑 Jupyter notebook 后,VS Code 及同类集成终端出现一次性 spinner 提示,说明可重跑 notebook 单元格;仅提示,不自动执行。
entry_2_1_325_prompt_suggestion_tab_accept_setting 终端提示建议:Tab 接受下一条建议;promptSuggestionEnabled=false 关闭 official-document-derived-entry 终端展示提示建议时按 Tab 接受建议的下一条提示;settings.json 的 promptSuggestionEnabled: false 可关闭该建议。
entry_2_1_325_max_context_tokens_unrecognized_claude_model_gateway CLAUDE_CODE_MAX_CONTEXT_TOKENS 同时约束 claude- 开头未识别模型 ID(如网关 claude-sonnet-latest)的上下文窗口 official-document-derived-entry CLAUDE_CODE_MAX_CONTEXT_TOKENS 除已知模型外,也为以 claude- 开头的未识别模型 ID 设置上下文窗口,覆盖网关别名如 claude-sonnet-latest。
entry_2_1_325_cost_metrics_count_mod_model_complete_classify /cost、$.session.usage()、--max-budget-usd 与成本/令牌指标计入 Mod 的 $.model.complete 与 $.model.classify 调用 official-document-derived-entry 成本与令牌统计覆盖 Mod 的 $.model.complete 和 $.model.classify 调用;/cost、$.session.usage()、--max-budget-usd 及相关成本指标均纳入。
entry_2_1_325_remote_control_exit_status_4_69_service_manager claude remote-control 自行停止退出码 4(单会话仍 0);无法注册退出 69,供服务管理器重启 official-document-derived-entry claude remote-control 自行停止时退出码 4,单会话运行仍退出 0;无法注册时退出 69,便于服务管理器据此重启进程。
entry_2_1_317_schedule_warning_unrequested_cloud_connectors /schedule 对新增云定时任务附带未请求连接器给出警告,并附移除方法 official-document-derived-entry 新建云定时任务附带用户未要求的连接器时,/schedule 给出警告并说明如何移除这些连接器。
entry_2_1_317_desktop_code_tab_remote_managed_settings_notice Claude Desktop Code 标签:组织远程托管设置未加载/加载完成各有一条提示 official-document-derived-entry Claude Desktop 的 Code 标签在组织远程托管设置本次会话未加载时给出提示,加载完成后再给出另一条通知。
entry_2_1_317_otel_plan_seat_type_provider_base_url_attributes OTel 指标、事件与 span 增加 anthropic.plan、anthropic.seat_type、anthropic.provider、anthropic.custom_base_url 属性 official-document-derived-entry OpenTelemetry 指标、事件与 span 补充 anthropic.plan、anthropic.seat_type、anthropic.provider 与 anthropic.custom_base_url 属性,用于会话归属与上游区分。
entry_2_1_317_exit_skip_plugin_monitor_background_work_prompt 退出时可跳过插件监控的“后台任务运行中”提示 official-document-derived-entry 退出流程可跳过针对插件监控的“Background work is running”提示;插件监控后台任务不阻塞退出确认。
entry_2_1_317_design_sync_system_moved_to_claude_notice_before_build /design-sync 预先说明设计系统已迁移到 Claude,并在构建前停止,而非上传时才失败 official-document-derived-entry /design-sync 在设计系统已迁移到 Claude 时提前说明,并在开始构建前停止,避免流程进行到上传阶段才失败。
entry_2_1_317_gateway_unreachable_startup_error_network_tls_vs_signin 必需 Claude apps 网关不可达的启动错误指向网络而非登录,并说明网关 TLS 证书无法验证的情形 official-document-derived-entry 必需的 Claude apps 网关无法到达时,启动错误指向网络问题而非登录;并说明网关 TLS 证书无法验证时的情况。
entry_2_1_317_remote_control_fork_name_numbering_default 应用未设分支名时:长名保留 “(fork)” 后缀;claude remote-control 中 “Name (fork)” 的分支为 “Name (fork 2)” official-document-derived-entry 应用未设置分支名称时,长分支名保留 “(fork)” 结尾;claude remote-control 会话中 “Name (fork)” 的再分支命名为 “Name (fork 2)”。
capability_qwen3_hybrid_thinking Qwen3 Hybrid Thinking Mode (thinking / non-thinking in one model) open-weight-model-capability-apache-2.0-documentation Qwen3 在单一模型内集成思考模式(复杂多步推理、数学、编码)与非思考模式(快速上下文对话),无需切换专用聊天或推理模型;支持思考预算调节、119 种语言方言、编码与代理任务及 MCP 支持。
fix_attribution_reminder_after_compaction_toolresult Commit attribution reminder is no longer delivered inside a tool result after a compaction official-public-docs-derived Official changelog: the commit attribution reminder no longer arrives inside a tool result after compaction. Boundary: attribution reminder delivery timing; attribution policy itself follows existing managed-setting rules.
feat_artifact_publish_suggested_same_step Artifact results suggest publishing in the same step as writing or editing the page official-public-docs-derived Official changelog: Artifact tool results now suggest publishing in the same step as writing or editing the page, which can save a round trip. Boundary: Artifact tool interaction flow; published page content and hosting rules follow existing artifact boundaries.
feat_image_formats_preview_convert BMP, HEIC, HEIF, AVIF and TIFF pictures show a preview where Claude Code can convert them official-public-docs-derived Official changelog: pictures Claude Code sends as BMP, HEIC, HEIF, AVIF or TIFF now show a preview where Claude Code can convert them. Boundary: image format preview/conversion surface; codec internals excluded.
fix_prompt_cache_invalidate_output_limit_resume Prompt cache is no longer partially invalidated on the turn after a response cut off at the output-token limit and automatically resumed official-public-docs-derived Official changelog: the prompt cache is no longer partially invalidated on the turn after a response was cut off at the output-token limit and automatically resumed. Boundary: prompt-cache reuse behavior; cache storage internals excluded.
fix_resume_mid_thought_context_resend_cache Resuming after an interrupt mid-thought no longer changes how earlier context is re-sent, protecting prompt-cache reuse official-public-docs-derived Official changelog: resuming a session after interrupting Claude mid-thought no longer changes how earlier context was re-sent, which previously hurt prompt-cache reuse. Boundary: session resume context reconstruction; transcript internals excluded.
fix_nonspace_language_prompt_suggestion Prompt suggestions are no longer dropped for Japanese, Chinese, Thai and other languages written without spaces between words official-public-docs-derived Official changelog: prompt suggestions are no longer dropped for text in Japanese, Chinese, Thai and other languages written without spaces between words. Boundary: suggestion filtering surface; suggestion generation internals excluded.
fix_status_apikeyhelper_failure_shown /status shows the apiKeyHelper failure that its own error banner told you to check official-public-docs-derived Official changelog: /status no longer omits the apiKeyHelper failure that its own error banner told you to check. Boundary: status display of credential helper state; helper command output and credentials excluded.
entry_2_1_314_force_hyperlink_false_turns_hyperlinks_off FORCE_HYPERLINK=false (also no/off) turns terminal hyperlinks off instead of on official-public-docs-derived Official changelog change: the FORCE_HYPERLINK flag with false, no or off disables terminal hyperlinks; the prior opposite default behavior was corrected. Records a documented terminal rendering flag; supported values and surface follow official CLI settings documentation.
entry_2_1_307_claude_code_safety_event_otel claude_code.safety_event OpenTelemetry event emitted for each tool call stopped, prompted or sent back by a permission rule, auto mode, safety check, hook or sandbox official-public-docs-derived Official changelog addition: an OpenTelemetry claude_code.safety_event is emitted for each tool call that a permission rule, auto mode, safety check, hook or the sandbox stopped, prompted or sent back. Records the telemetry safety-event boundary; retained attributes and export configuration follow official telemetry documentation.
entry_2_1_307_unparseable_tool_call_retry_up_to_twice Recovery from unparseable tool calls: Claude Code retries the call up to twice before ending the turn with an error official-public-docs-derived Official changelog improvement: when a tool call cannot be parsed, Claude Code retries the call up to twice before ending the turn with an error. Records the malformed-tool-call recovery boundary; turn termination and error reporting follow official session behavior documentation.
entry_2_1_305_retry_watchdog_usage_limit_recheck_ms CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS lets unattended retry mode notice a usage limit lifted before its reset official-public-docs-derived Official changelog addition: CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS configures how unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices that a usage limit was lifted before its reset time. Records a watchdog timing flag; retry mode and limits remain official settings documentation scope.
entry_2_1_304_auto_mode_setup_guided_environment_teaching /auto-mode-setup guided setup reads the project and recent sessions to teach auto mode about the environment; also available on Bedrock, Vertex, Foundry, gateway and telemetry-disabled sessions official-public-docs-derived Official changelog addition: /auto-mode-setup is a guided setup that reads the project and recent sessions to teach auto mode about the local environment; it also runs on Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions. Records the auto-mode setup command surface; classifier behavior and training boundaries follow official auto-mode documentation.
entry_2_1_302_auto_mode_model_flag_client_classifier CLAUDE_CODE_AUTO_MODE_MODEL chooses the model for the client-side auto mode classifier; it does not change the server-side auto mode model official-public-docs-derived Official changelog addition: CLAUDE_CODE_AUTO_MODE_MODEL selects the model used by the client-side auto mode classifier; it does not affect the model used for server-side auto mode. Records a classifier model flag split between client and server auto mode; both remain official auto-mode documentation scope.
entry_2_1_301_retry_watchdog_max_usage_limit_wait_ms CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS ends an unattended retry request at a usage limit that resets too far away instead of waiting official-public-docs-derived Official changelog addition: CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS makes unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) end a request when the usage-limit reset is too distant, instead of waiting indefinitely. Records a watchdog wait-time flag; retry mode semantics follow official settings documentation.
entry_2_1_301_otel_tool_decision_classifier_verdict_permission_mode OpenTelemetry tool_decision events add classifier_verdict and permission_mode so auto mode classifier decisions can be distinguished from permission rules official-public-docs-derived Official changelog addition: OpenTelemetry tool_decision events carry classifier_verdict and permission_mode, letting auto mode classifier decisions be told apart from permission rules. Records the telemetry decision-attribution boundary; retained fields and export settings follow official telemetry documentation.
entry_2_1_332_tool_calls_declined_counted_done_summary Declined-but-not-run tool calls were counted as done in the claude.ai chat summary changelog-derived 官方 changelog 2.1.332:被拒绝权限提示后未实际运行的工具调用,曾被计入 claude.ai 聊天摘要为已完成;修复后摘要只反映真正执行的调用。条目记录摘要口径边界,不涉及内部消息聚合实现。
entry_2_1_331_login_console_link_shorter Console sign-in link shown by /login and claude auth login --console is much shorter changelog-derived 官方 changelog 2.1.331:/login 与 claude auth login --console 显示的 Console 登录链接明显缩短;条目记录登录命令输出链接长度边界,不记录凭证内容。
entry_2_1_331_tool_result_narrow_window_ellipsis_automode_star_hook_reason_twice Narrow-window one-line tool result ellipsis, Auto mode Markdown stars, and forked-skill duplicated hook reason fixed changelog-derived 官方 changelog 2.1.331:窄窗口单行工具结果无省略号截断、自动模式权限页 Markdown 星号、forked skill 的 hook 原因重复显示三处修复;条目记录会话记录与权限提示展示边界。
entry_2_1_331_agent_permission_rule_dropped_queued_message_subagent_ended Permission rule on the Agent tool drops its queued message to a subagent that had already ended changelog-derived 官方 changelog 2.1.331:Agent 工具上的权限规则在子代理已结束时丢弃其排队消息,Claude 未收到通知。条目记录子代理消息投递与权限规则交互边界。
entry_2_1_331_codemode_resume_permission_mode_losing_thinking_prompt_cache Code Mode resumed with --resume or --continue in another permission mode loses thinking and prompt cache changelog-derived 官方 changelog 2.1.331:Code Mode 会话经 --resume/--continue 在另一权限模式恢复时丢失 thinking 与提示缓存;要求模式保留脚本限制的会话维持该模式边界。
entry_2_1_331_codemode_long_script_output_middle_lost_path Code Mode loses the middle of a long script output; Claude now gets a path to the uncut text changelog-derived 官方 changelog 2.1.331:Code Mode 丢失长脚本输出中段;Claude 现在获得未截断文本的路径。条目记录代码模式脚本输出保留边界。
entry_2_1_330_task_dependencies_metadata_lost_concurrent_updates Task dependencies and metadata are lost when several task updates run at the same time changelog-derived 官方 changelog 2.1.330:多个任务更新并发运行时,任务依赖与元数据丢失。条目记录定时任务元数据并发边界,不记录内部调度队列结构。
entry_2_1_330_codemode_mcp_tool_end_turn_script_auto_bypass Code Mode ignores an MCP tool's request to end the turn from a script in auto and bypass permissions modes changelog-derived 官方 changelog 2.1.330:Code Mode 忽略 MCP 工具脚本在自动与绕过权限模式下提出的结束回合请求。条目记录代码模式与 MCP 工具回合控制边界。
entry_2_1_330_codemode_auto_thinking_dropped_prompt_cache_mod_note Code Mode auto mode drops earlier thinking and rewrites the prompt cache when a mod adds a note after a skill loads changelog-derived 官方 changelog 2.1.330:Code Mode 自动模式在 mod 于脚本加载技能后追加备注时丢弃早先 thinking 并重写提示缓存。条目记录代码模式思考与缓存留存边界。
entry_2_1_330_codemode_file_script_read_not_restored_esc_compact Code Mode does not restore a file a script had read after Esc and /compact changelog-derived 官方 changelog 2.1.330:Code Mode 经 Esc 与 /compact 后未恢复脚本读取过的文件。条目记录代码模式文件读取状态恢复边界。
entry_2_1_330_context_undercount_system_tools_codemode_first_reply /context undercounts system tools in Code Mode before Claude's first reply changelog-derived 官方 changelog 2.1.330:Code Mode 首次回复前 /context 少算系统工具。条目记录上下文用量统计口径边界。
entry_2_1_330_p_full_disk_output_file_exit0_no_message claude -p exits 0 with no message when its output goes to a file on a full disk; it now prints an error and exits 1 changelog-derived 官方 changelog 2.1.330:输出写入文件且磁盘满时 claude -p 以退出码 0 且无消息退出;现在打印错误并退出 1(完整 NFS 导出可能仍未察觉)。条目记录无头命令磁盘错误退出边界。
entry_2_1_329_hook_trust_dialog_folder_declaration trust dialog showing where a folder's hooks are declared changelog-derived 官方 changelog 2.1.329:新增信任对话框提示,说明某个文件夹的 hooks 是在何处声明的;仅记录信任提示可见性,不收录 hook 脚本内部逻辑。
entry_2_1_329_managed_settings_hook_load_failure_warning non-interactive host warning when managed-settings hooks fail to load changelog-derived 官方 changelog 2.1.329:Claude Desktop 等非交互宿主在托管设置中的 hooks 加载失败时,会话内给出警告;边界为托管设置加载诊断,不记录失败 hook 的命令内容。
entry_2_1_329_tasks_scheduled_loop_wakeups_goals_forks /tasks lists scheduled tasks, /loop wakeups, goals and conversation forks changelog-derived 官方 changelog 2.1.329:/tasks 列表纳入本会话的定时任务、/loop 唤醒、目标与会话分叉;x 在询问后停止其中一项。
entry_2_1_329_mcp_server_page_jsonrpc_error_row /mcp server page Server message row showing remote HTTP MCP JSON-RPC error changelog-derived 官方 changelog 2.1.329:/mcp 服务器页面新增 Server message 行,展示拒绝连接的远程 HTTP MCP 服务器返回的 JSON-RPC 错误消息;只记录错误展示通道。
entry_2_1_329_status_marketplace_auto_update_row /status Marketplace auto-update row naming managed marketplaces without auto-update changelog-derived 官方 changelog 2.1.329:/status 新增 Marketplace auto-update 行,列出不自动更新的托管市场及其原因。
entry_2_1_329_code_mode_opentelemetry_events_enabled Code Mode can run while OpenTelemetry events and metrics are enabled changelog-derived 官方 changelog 2.1.329:支持在开启 OpenTelemetry 事件与指标时启用 Code Mode;Code 每次工具调用发送其事件,tracing 仍保持关闭。
entry_2_1_329_vscode_trust_prompt_review_line VS Code line after declining trust prompt with Review trust to reopen it changelog-derived 官方 changelog 2.1.329:VS Code 在拒绝信任提示后消息框上方新增一行,提供 Review trust 在不重载窗口的情况下重新调出提示。
entry_2_1_329_code_review_whole_branch_default_target /code-review with no target reviews whole branch against default branch changelog-derived 官方 changelog 2.1.329:多数模型上无目标参数的 /code-review 改为对照默认分支评审整个分支,并修复多提交分支丢失 diff 的问题。
entry_2_1_329_auto_mode_git_status_frequency auto mode runs git status less often to reduce wait in large repositories changelog-derived 官方 changelog 2.1.329:自动模式降低 git status 调用频率,使多数请求在大仓库中等待更少;丢弃改动的 git 命令在工作树检查前可能被阻止。
entry_2_1_329_exit_stop_tasks_resume_behavior Exit and stop tasks ends session scheduled tasks so they do not rerun on resume changelog-derived 官方 changelog 2.1.329:Exit and stop tasks 结束本会话定时任务,使其在恢复时不再运行;Claude 正在响应期间退出除外。
entry_2_1_328_auto_mode_third_party_provider_46_models auto mode for Opus 4.6 and Sonnet 4.6 on Bedrock, Agent Platform, Foundry and gateway changelog-derived 官方 changelog 2.1.328:Amazon Bedrock、Google Cloud Agent Platform、Microsoft Foundry 与 Claude apps 网关上的 Opus 4.6 / Sonnet 4.6 支持自动模式;未设置权限模式的交互会话以自动模式启动。
entry_2_1_328_otel_exporter_no_endpoint_warning /status and claude doctor warn when OpenTelemetry exporter has no endpoint changelog-derived 官方 changelog 2.1.328:OpenTelemetry exporter 无 endpoint、数据可能丢失时,/status 与 claude doctor 给出提示。
entry_2_1_328_disable_deferred_tool_resume_env CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME stops deferred tool call resume in -p sessions changelog-derived 官方 changelog 2.1.328:环境变量 CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME 允许宿主阻止 claude -p --resume 与 --continue 运行被 hook 推迟的工具调用。
entry_2_1_327_mcp_add_json_stdin_tokens_off_cli claude mcp add-json - reads server JSON from stdin to keep tokens off CLI changelog-derived 官方 changelog 2.1.327:claude mcp add-json - 从 stdin 读取服务器 JSON,使令牌不留在命令行;该命令不可在 Claude Code 会话内部使用。
entry_2_1_327_status_broken_config_files_and_matchers_list /status lists broken agent, skill, command, style files, keybinding errors, unavailable sandbox and unmatched hook matchers changelog-derived 官方 changelog 2.1.327:/status 列出损坏的 agent、skill、命令与输出样式文件、快捷键错误、不可用沙箱、被忽略的权限设置以及永不匹配的 hook matcher。
entry_2_1_327_config_other_settings_override_note /config notes when other settings override a row changelog-derived 官方 changelog 2.1.327:当其他设置覆盖某一行时,/config 给出说明。
entry_2_1_327_attribution_project_billing_group_setting attributionProject setting names session billing group for gateways with admin.billing_group_tag changelog-derived 官方 changelog 2.1.327:attributionProject 设置为会话指定计费组,供设置了 admin.billing_group_tag 的 Claude apps 网关使用。
entry_2_1_327_vscode_explorer_add_to_chat_menu VS Code Explorer right-click Add to Chat @-mentions selected files and folders changelog-derived 官方 changelog 2.1.327:VS Code 资源管理器右键菜单 Claude Code: Add to Chat 将所选文件与文件夹以 @ 提及方式带入聊天。
entry_2_1_327_exit_worktree_unsaved_work_confirmation ExitWorktree asks before removing a worktree that may hold unsaved work changelog-derived 官方 changelog 2.1.327:ExitWorktree 在移除可能存有未保存工作的 worktree 前询问;don't-ask 模式或无人应答时拒绝,除非 allow 规则、auto 或 bypass 权限模式允许。
entry_2_1_327_mcp_add_project_scope_missing_mcpservers_key claude mcp add --scope project stops instead of overwriting .mcp.json without mcpServers key changelog-derived 官方 changelog 2.1.327:当 .mcp.json 在顶层列出服务器而缺少 mcpServers 键时,claude mcp add --scope project 停止而不是覆盖文件。
entry_2_1_330_runner_push_outcome_on_release self-hosted-runner --push-outcome-on-release 发布时推送会话结果开关 changelog-derived 官方 changelog 2.1.329/330:runner 标志 --push-outcome-on-release 控制会话结束发布时推送结果;修复大仓库恢复会话丢失已推送工作,以及该标志误删 git 主机上会话分支的问题。边界:仅描述公开 CLI 标志行为,不收录内部推送实现。
entry_2_1_330_runner_startup_timeout_min self-hosted-runner --startup-timeout-min 启动挂起超时分钟数 changelog-derived 官方 changelog 2.1.330(另见 2.1.309):runner 启动阶段挂起超时阈值标志 --startup-timeout-min;修复每次启动都挂起时会话仍显示工作中,以及子代理首条提示仍在运行时被超时停止的问题。
entry_2_1_330_runner_pkill_ignore_ancestors runner Linux pkill --ignore-ancestors 进程树隔离边界 changelog-derived 官方 changelog 2.1.330:Linux 自托管 runner 会话内 pkill -f 曾以退出码 144 结束自身 shell 或 runner;需要带 --ignore-ancestors 的 pkill,避免命中祖先进程。属进程树隔离边界,不收录内部进程管理结构。
entry_2_1_330_runner_last_poll_age_seconds_metric runner last_poll_age_seconds 轮询年龄遥测字段 changelog-derived 官方 changelog 2.1.330:runner 遥测字段 last_poll_age_seconds;修复从未成功轮询时误读为 0 的问题。仅记录公开指标字段名与口径,不收录内部上报实现。
entry_2_1_329_code_review_gh_pr_diff_target /code-review 按 PR 编号经 gh pr diff 评审目标拉取请求 changelog-derived 官方 changelog 2.1.329:/code-review 改用 gh pr diff 读取目标 PR,避免误评审检出分支;--fix 或传入 PR URL 时若 gh pr diff 被拒绝或失败则停止且不评审。
cap_gemini_token_caching Gemini CLI token caching optimization official-documentation-capability 使用 API key 认证时,Gemini CLI 通过 token 缓存复用前序系统指令与上下文,减少后续请求处理的 token 数量,从而优化 API 成本;缓存命中口径以官方文档为准。
cap_openai_function_calling OpenAI Function Calling(Tool Calling 工具调用能力) proprietary-cloud-model-capability Function Calling(亦称 Tool Calling)让模型通过 JSON Schema 定义的函数工具连接应用外部系统与数据;标准流程为:携带工具发起请求 → 接收模型工具调用 → 应用侧执行 → 把工具结果回传模型 → 获取最终响应。大型函数清单可配合工具搜索延迟加载冷门工具。
entry_2_1_327_code_mode_script_shell_command_git_bash_power_shell_note Code Mode on Windows: script shell commands run in Git Bash; PowerShell aliases run instead of functions changelog-derived 官方 changelog 2.1.327(Windows 改进):Code Mode 脚本在 Windows 上告知 Claude 脚本 Shell 命令运行于 Git Bash,且 PowerShell 别名按别名执行而非函数;属运行环境提示,不改变脚本沙箱与权限判定。
entry_2_1_330_code_mode_hundreds_files_rules_pause Code Mode 读取数百文件且存在路径范围规则或 Read 拒绝规则时不再长停顿 changelog-derived 官方 changelog 2.1.330:在带路径范围规则或 Read 拒绝规则的项目中,读取数百文件的代码曾在 Code Mode 造成长停顿;修复该规则匹配停顿。边界:规则匹配与工具读取性能行为。
entry_2_1_330_code_mode_auto_thinking_cache_mod_note Code Mode 自动模式下 Mod 在脚本加载技能后追加备注不再丢弃早期 thinking 并重写提示缓存 changelog-derived 官方 changelog 2.1.330:Code Mode 自动模式中,Mod 在脚本加载技能后追加备注时曾丢弃早期 thinking 并重写提示缓存;修复该缓存路径。边界:提示缓存与 thinking 保留行为,不收录缓存内部算法。
entry_2_1_330_code_mode_script_read_file_restored_after_esc_compact Code Mode 不再丢失脚本读过的文件(Esc 与 /compact 后恢复) changelog-derived 官方 changelog 2.1.330:Code Mode 在 Esc 与 /compact 后曾不恢复脚本已读取的文件;修复文件读取记录恢复。边界:脚本文件读取上下文恢复行为,不收录上下文压缩内部结构。
entry_2_1_330_easel_blocked_policy_startup_warning_removed 内置图表工具 easel 被企业策略排除时不再每次启动重复警告 changelog-derived 官方 changelog 2.1.330:MCP 允许/拒绝清单排除内置图表工具 easel 时,曾在每次启动报 “MCP server blocked by enterprise policy: easel”;修复为不再重复启动警告。边界:策略阻止状态提示行为,不收录策略服务内部。
entry_2_1_330_stats_activity_local_timezone_not_utc /stats 活动计数按本地时区而非 UTC 天统计 changelog-derived 官方 changelog 2.1.330:/stats 曾按 UTC 天而非本地时区统计新活动;修复时区统计口径。边界:用量统计时间口径,不收录统计持久化内部结构。
style_builtin_proactive Proactive built-in output style official-document-derived-entry Claude starts implementing on task send, makes reasonable routine assumptions, and checks before deleting data or changing a shared/production system; switching style does not change permission mode.
style_builtin_concise Concise built-in output style official-document-derived-entry Response leads with the result; lead-in, narration and recap are removed; simple answers in one to three sentences; explicit detail requests and safety-critical content stay full length. Requires v2.1.237 or later.
style_builtin_explanatory Explanatory built-in output style official-document-derived-entry Keeps Default behavior and adds short Insight blocks that explain choices behind the code; each Insight carries two or three points about the codebase or the written code.
style_builtin_learning Learning built-in output style official-document-derived-entry Reuses Explanatory Insight blocks and leaves small code pieces for the user to write at genuine design decisions such as error handling, data structures, or multi-approach business logic.
entry_2_1_329_managed_settings_approval_frozen_screen_resume_picker Managed-settings approval no longer leaves a frozen screen behind resume picker or trust dialog official-changelog-derived Official 2.1.329 changelog fix: approving managed settings no longer leaves an empty frozen screen when the --resume picker, folder trust dialog, or another setup screen was still waiting. Records the startup dialog/waiting-screen boundary; managed policy file contents and approval internals excluded.
entry_2_1_330_maxtokens_limit_automatic_retry_restored Automatic retry restored when max_tokens exceeds a model or gateway output-token limit official-changelog-derived Official changelog history: 2.1.326-style automatic retry at the max_tokens error limit was removed in 2.1.329, then reverted/restored in 2.1.330. Behind a gateway whose model accepts fewer output tokens, CLAUDE_CODE_MAX_OUTPUT_TOKENS can be set to that limit. Records the retry-versus-output-token-limit boundary; retry budget internals remain with the model-call retry anchor.
entry_2_1_332_large_mcp_tool_result_memory Improved memory use with large MCP tool results: less memory, smaller session files, no extra token-count upload for oversized results official-changelog-derived Official 2.1.332 changelog improvement: large MCP tool results consume less memory and produce smaller session files; results far over the limit skip the extra token-count upload. Records the public resource/memory boundary; internal heap layout and result serialization internals excluded.
entry_2_1_331_mcp_enable_resend_already_connected SDK and -p sessions stay responsive when a host re-sends an MCP server enable for an already connected server official-changelog-derived Official 2.1.331 changelog improvement: responsiveness of SDK and non-interactive (-p) sessions when the host re-sends an MCP server enable for a server that is already connected. Records the MCP duplicate-enable/reconnect boundary; connection protocol internals excluded.
entry_2_1_332_workflow_sandbox_async_script_hook_hardening Workflow tool sandbox hardening for errors thrown by async script hooks official-changelog-derived Official 2.1.332 changelog improvement: Workflow tool sandbox hardening covers errors thrown by async script hooks. Records the workflow sandbox/hook error boundary; sandbox runtime internals excluded.
entry_2_1_332_claude_api_hillclimb_eval_rounds /claude-api hillclimb no longer spends rounds on prompt rewordings too small for the eval; extra report page builds as one local file official-changelog-derived Official 2.1.332 changelog improvement: the /claude-api hillclimb evaluator no longer spends rounds on prompt rewordings too small for the eval to measure; an extra page requested beside report.html builds as one local file loading nothing from the network. Records the eval runner boundary; scoring internals excluded.
env_subagent_per_session_spawn_cap CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION 每会话子代理派生上限 configuration-documentation 官方 changelog 2.1.329:每个会话可派生的子代理数量上限,默认 200,可用环境变量覆盖;用于阻止失控的递归派生循环;/clear 重置该预算。边界:只约束派生数量,不改变子代理权限、上下文隔离或模型可用性。
env_retry_watchdog_max_wait_ms CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS 看门狗等待 429/529 上限 configuration-documentation 官方 changelog 2.1.329:限制无人值守重试模式(CLAUDE_CODE_RETRY_WATCHDOG)为 429 与 529 容量错误等待的最长时间;避免看门狗在容量恢复前无限等待。边界:只约束等待时长,不改变重试次数、限额停止条件或 Fast Mode 回退规则。
env_overloaded_retry_max_delay_ms CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS 过载退避最大延迟 configuration-documentation 官方 changelog 2.1.329:529 过载请求重试退避的最大延迟毫秒值;该上限由 64000 调整为 300000。边界:仅控制退避等待上界,不改变过载判定、重试次数或错误是否可重试。
env_overloaded_retry_base_delay_ms CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS 过载退避基础延迟 configuration-documentation 官方 changelog 2.1.329:设置 529 过载请求重试退避的基础延迟毫秒值,用于拉长退避起始等待。边界:只控制基础延迟,不改变退避倍率、最大延迟或可重试错误集合。
env_workflow_subagent_model CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL 统一 Workflow 代理模型 configuration-documentation 官方 changelog 2.1.329:让每个 Workflow 代理运行在同一指定模型上,其他普通子代理保留各自模型。边界:只约束模型指派,不改变工具权限、上下文隔离或 Workflow 并发上限。
env_shell_prefix CLAUDE_CODE_SHELL_PREFIX Shell 命令包装前缀 configuration-documentation 官方 changelog 2.1.329:用于包装 Claude 自身与用户提供的 Shell 命令;修复 MCP stdio 服务器在参数含空格或 Shell 元字符时收到损坏参数的问题。边界:只控制命令包装,不改变命令权限判定、沙箱隔离或工具结果。
env_disable_nonstreaming_fallback CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK 关闭非流式兜底 configuration-documentation 官方 changelog 2.1.329:流式请求失败时禁用非流式兜底请求。边界:只关闭降级通道,不改变流式重试次数、超时上限、工具结果或会话历史。
env_bash_maintain_project_working_dir CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR 前台命令工作目录保持开关 official-doc-derived 前台 PowerShell/Bash 命令结束在工作目录之外时,默认重置回项目目录并在结果附 Shell cwd was reset;置 1 可关闭该重置行为。子代理会话从不继承工作目录变更;环境变量不跨命令持久。
env_powershell_respect_execution_policy CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY 执行策略遵循开关 official-doc-derived PowerShell 工具默认绕过脚本执行策略;该绕过不覆盖 MachinePolicy/UserPolicy 组策略。置 1 时改为遵循机器有效执行策略,企业策略仍然生效。
env_proxy_resolves_hosts CLAUDE_CODE_PROXY_RESOLVES_HOSTS 代理主机名解析开关 official-doc-derived 代理后的 Watch/WebSocket 监听若报 could not resolve ,v2.1.319+ 置 1 让代理负责主机名解析;用于外部服务监听通道的网络边界排障。
env_auto_background_tasks CLAUDE_AUTO_BACKGROUND_TASKS 非交互运行后台任务自动挂起开关 official-doc-derived 非交互模式下 MCP 服务器调用等待结果时默认转入后台,避免一次性运行在结果到达前结束;置 1 为相关后台任务行为开关。等待开放中的 elicitation 对话框期间调用不被后台化。
env_async_agent_stall_timeout_ms CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS 异步代理停滞超时(含 Workflow 外子代理) configuration-documentation 官方文档:设置异步代理停滞判定超时;该超时同样适用于 Workflow 之外的子代理,用于代理长时间无进展时触发停滞处理而非无限挂起。边界:只约束停滞等待,不改变代理权限或上下文隔离。
env_max_web_searches_per_session CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION 每会话 WebSearch 调用次数上限 configuration-documentation 官方 changelog:会话级 WebSearch 工具调用次数上限(默认 200,可用该变量调整),用于阻止失控的搜索循环。边界:只约束搜索调用次数,不限制 WebFetch 抓取。
env_web_search_refills_per_hour CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR WebSearch 预算按小时补充速率 configuration-documentation 官方 changelog:交互会话 WebSearch 预算随时间补充(默认 100 次/小时);该变量设置补充速率,置 0 关闭补充。边界:与每会话次数上限配合,不改变搜索结果来源。
env_enable_stream_watchdog CLAUDE_ENABLE_STREAM_WATCHDOG 响应流看门狗(无事件 5 分钟中止重试) configuration-documentation 官方 changelog:响应流在 5 分钟内未产生任何事件时中止并重试;置 0 关闭。用于检测流冻结/挂起,避免请求无限等待。边界:只覆盖流式响应事件空闲判定,不约束工具执行超时。
env_stream_first_byte_timeout_ms CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS 流式首字节超时 configuration-documentation 官方 changelog:流式响应首字节到达超时阈值;修复该变量在 Claude apps 网关会话中被忽略的问题。边界:与空闲超时分别约束首包与后续事件。
env_goal_checkin_minutes CLAUDE_CODE_GOAL_CHECKIN_MINUTES /goal 长时间运行检查间隔(分钟) configuration-documentation 官方 changelog:运行超过 30 分钟的目标任务由 Claude 主动检查进度,而非无限等待;置 0 退出该检查。边界:只约束长时间目标任务的检查节奏,不改变退出条件判定。
env_disable_auto_memory CLAUDE_CODE_DISABLE_AUTO_MEMORY 关闭自动记忆写入开关 configuration-documentation 官方 memory 文档:置 1 通过环境变量关闭 Auto Memory 自动记忆。边界:只关闭自动记忆写入,不删除已有记忆文件,也不影响手动读取记忆。
env_memory_stores CLAUDE_MEMORY_STORES 已挂载团队记忆存储清单 configuration-documentation 官方 changelog:远程会话中挂载的团队记忆存储(memory stores)配置;修复远程会话无法检索已挂载团队记忆存储的问题。边界:只声明记忆存储挂载,不等同于本地记忆文件。
env_tool_memory_limit CLAUDE_CODE_TOOL_MEMORY_LIMIT Linux Bash 工具命令内存 cgroup 上限 configuration-documentation 官方 changelog:可选的 Bash 工具命令内存 cgroup 支持(Linux),使失控的构建进程无法占满内存导致会话停滞。边界:仅适用 Linux 工具命令,不约束模型上下文内存。
env_script_caps CLAUDE_CODE_SCRIPT_CAPS 每会话脚本调用次数上限 configuration-documentation 官方 changelog:配合子进程环境隔离,限制每会话脚本调用次数;用于约束脚本类工具的重复派生。边界:只计数脚本调用,不限制普通 Bash 命令。
env_max_retries CLAUDE_CODE_MAX_RETRIES 瞬时错误重试次数上限 configuration-documentation 官方 changelog:非容量类瞬时错误的重试次数上限(重试计数提升至 300,并解除原先 15 的上限约束)。边界:只约束瞬时错误重试,不覆盖 429/529 容量看门狗等待。
env_gateway_log_format CLAUDE_CODE_GATEWAY_LOG_FORMAT Claude apps 网关日志格式(json) configuration-documentation 官方 changelog:网关日志行设为 JSON(含 severity、time、message),供日志采集系统解析。边界:只改变日志输出格式,不改变网关路由或鉴权。
env_max_output_tokens CLAUDE_CODE_MAX_OUTPUT_TOKENS 网关模型输出 token 上限覆盖 configuration-documentation 官方 changelog:在模型输出 token 更少的网关之后,将该变量设为对应输出上限,避免 max_tokens 报错。边界:只覆盖输出上限,不改变上下文窗口输入额度。
env_disable_mcp_tasks CLAUDE_CODE_DISABLE_MCP_TASKS 关闭 MCP 任务开关 configuration-documentation 官方 changelog:置 1 关闭 MCP 任务(在 Bedrock、Vertex、Foundry、LLM 网关等场景下与遥测开关并列)。边界:只关闭 MCP 任务调度,不卸载已配置的 MCP 服务器。
env_disable_bg_exit_handoff CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF 关闭后台任务退出移交 configuration-documentation 官方 agent-view 文档:置 1 使后台任务随进程一并停止,不再把携带内容移交给后续会话。边界:只改变后台任务退出移交行为,不影响前台会话恢复。
env_disable_agent_progress_summaries CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES 关闭子代理进度摘要 configuration-documentation 官方 changelog(自 2.1.318):置 1 关闭子代理进度摘要及其请求输出。边界:只抑制进度展示,不改变子代理执行结果回交。
entry_2_1_332_hook_output_no_end_memory_runaway Hook 无结束输出导致冻结与内存失控修复 configuration-documentation 官方 changelog 2.1.332:Hook 持续打印输出而没有结束标记时,原先造成冻结与内存失控;该版本修复该失控路径。边界:约束 Hook 输出堆积与内存增长,不改变 Hook 事件触发条件或退出码语义。
entry_2_1_332_mcp_sse_reconnect_after_stream_cut SSE MCP 事件流切断后挂起/拒绝工具调用修复 configuration-documentation 官方 changelog 2.1.332:SSE MCP 服务器事件流被切断并在新端点返回(或未返回)后,原先挂起或拒绝全部工具调用,需手动重连;该版本修复。边界:只覆盖 SSE 重连后的工具可用性,不改变 MCP 协议语义或服务器鉴权。
entry_2_1_332_codemode_background_slow_command_wait Code Mode 等待已停止慢命令及后台通知修复 configuration-documentation 官方 changelog 2.1.332:Code Mode 原先会在命令已经停止后仍等待数分钟;同时修复慢命令转后台、后台命令时限与脚本空输出的告知。边界:只覆盖命令停止后的等待与通知,不改变脚本执行隔离或权限模式。
entry_2_1_329_codemode_runaway_loop_memory_limit_stop Code Mode 失控循环占满内存,现按上限停止 configuration-documentation 官方 changelog 2.1.329:Code Mode 中占满机器内存的失控循环原先继续运行;该版本使其在达到上限时停止。边界:上限只约束循环导致的内存失控,不改变回合数、预算上限或工具权限判定。
entry_2_1_329_status_line_script_no_end_memory_freeze 状态栏脚本无结束输出冻结提示并占用 GB 内存修复 configuration-documentation 官方 changelog 2.1.329:状态栏脚本持续打印而无结束标记时,原先冻结提示行并占用 GB 级内存;该版本修复。边界:约束状态栏脚本输出堆积,不改变脚本配置位置或 Hook/状态栏数据格式。
entry_2_1_332_auth_login_save_failure_exit1 claude auth login 保存失败退出码 1 并提示排查项 official-document-derived-entry claude.ai 登录无法保存时不再报 Login successful;改为退出码 1 并提示检查残留锁文件或磁盘满等原因。
entry_2_1_332_usage_limit_reset_remote_clients 用量限额重置后不再向 Remote Control/IDE/SDK 误报已达上限 official-document-derived-entry 限额重置后,Remote Control、IDE 与 SDK 客户端不再收到已达用量上限的错误提示。
entry_2_1_332_code_mode_tool_input_list_4096 Code Mode 跳过输入列表超 4096 项的工具调用修复 official-document-derived-entry 工具输入列表超过 4096 项时 Code Mode 不再静默跳过该工具调用。
entry_2_1_332_code_mode_large_typed_array_refused Code Mode 工具输入中的超大类型数组被拒绝而非冻结 official-document-derived-entry 工具输入含超大 typed array 时 Code Mode 不再冻结,改为拒绝该输入。
entry_2_1_332_code_mode_message_esc_new_turn Code Mode 命令进行中按 Esc 的未回复消息开启新回合 official-document-derived-entry 命令执行期间输入消息且 Claude 回复前按 Esc,消息现在开启新回合;第二次 Esc 停止该回合。
entry_2_1_332_code_mode_slow_command_background_notice Code Mode 慢命令转后台且脚本空输出时通知 Claude official-document-derived-entry 慢命令转入后台并留下空输出脚本时,以及 claude -p 与 Agent SDK 后台命令时限,Code Mode 会告知 Claude。
entry_2_1_332_code_mode_waiting_stopped_command Code Mode 不再等待已停止命令数分钟 official-document-derived-entry 命令已经停止后,Code Mode 不再等待数分钟。
entry_2_1_332_dictated_text_10000_chars_lost 语音口述超过 10000 字符不再丢失 official-document-derived-entry 口述文本超过 10000 字符的部分不再被丢弃。
entry_2_1_332_nonstreaming_broken_response_parse 非流式兜底重试收到破损响应或被中断不再报 JSON Parse/aborted 原始错误 official-document-derived-entry 非流式重试遇到破损响应或请求中断时,不再暴露原始 JSON Parse error 与 operation aborted 错误。
entry_2_1_332_helper_command_time_limit_hang API 密钥助手等辅助命令超时限不再罕见挂起 official-document-derived-entry API key helper 等辅助命令超过时限后不再出现罕见挂起。
entry_2_1_332_fullscreen_footer_label_wrap_copy 全屏页脚右侧标签换行导致复制错行修复 official-document-derived-entry 全屏布局下页脚右侧标签换到第二行、文本移到鼠标下方导致复制错误行的问题已修复。
entry_2_1_332_effort_ignored_environment_session --environment 启动交互会话且设置同级别 EFFORT 时 --effort 不再被忽略 official-document-derived-entry 带 --environment 启动交互会话且 CLAUDE_CODE_EFFORT_LEVEL 设为同一级别时,--effort 参数不再被忽略。
entry_2_1_332_headless_cloud_foreground_fork_finished headless/云端会话不再在前台 fork 的 Agent 调用刚启动时即报完成 official-document-derived-entry 无头与云端会话不再在前台 fork 的 Agent 调用开始瞬间报告其已完成。
entry_2_1_332_design_system_readme_files_to_load 独立 Claude Design 迁移后的大型 README 不再丢失待加载文件清单 official-document-derived-entry 设计系统大型 README 从独立 Claude Design 迁出后,启动 deck 或设计时不再丢失待加载文件列表。
entry_2_1_332_otel_mcp_server_connection_builtin_off 内置未启用服务器不再每次启动上报失败 mcp_server_connection OTel 事件 official-document-derived-entry 账号未开启的内置服务器不再在每次启动时上报失败的 mcp_server_connection 事件。
entry_2_1_332_pasted_image_link_late_enter_swallow 粘贴图片链接/相对路径不再延迟显示并吞掉紧随的 Enter official-document-derived-entry 以图片文件名结尾的粘贴链接与相对路径不再延迟出现并吞掉随后按下的 Enter。
entry_2_1_332_keybinding_unbind_meta_alt_first_key_wait 解绑键位后 meta/alt 拼写互换不再残留首键等待第二键 official-document-derived-entry keybindings.json 中以 meta 拼写绑定为 alt(或反向)的和弦解绑后,不再残留第一个键等待第二键。
entry_2_1_332_stats_large_transcript_keys_lag 大 transcript 下 /stats 按键延迟与语言服务器 stderr 刷屏修复 official-document-derived-entry 读取大型会话 transcript 时按键延迟数秒的问题修复;对话框关闭后以及调试日志开启且语言服务器刷屏 stderr 时同样适用。
entry_2_1_332_ctrlc_background_agent_unread_report 后台代理有未读子代理报告时 Ctrl+C 不再开新回合/双按无法退出 official-document-derived-entry 停止的后台代理存在未读子代理报告时,提示处 Ctrl+C 不再开启新回合,双按 Ctrl+C 也能正常退出。
doc_hook_once_field Hook once 字段:首次成功运行后自动移除 official-public-docs-derived Hook 处理器公共字段 once:true 时 Claude Code 在首次成功运行后移除该 Hook;运行失败、退出码 2 阻塞或超时则保留,下一匹配事件再次运行。该字段仅在技能 frontmatter 声明的 Hook 上生效,settings 文件与代理 frontmatter 中被忽略。
doc_hook_status_message_field Hook statusMessage 运行时自定义提示文案字段 official-public-docs-derived Hook 处理器公共字段 statusMessage:Hook 运行期间展示的自定义 spinner 提示消息,替代默认运行文案;属于展示层配置,不影响 Hook 决策结果。
doc_hook_fallback_working_dir Hook 处理器工作目录回退链(会话目录 → 项目根 → 家目录 → 临时目录) official-public-docs-derived Hook 处理器在当前目录运行并继承 Claude Code 环境;若当前目录已不存在(如被另一 shell 删除的 worktree 或临时目录),命令 Hook 按会话启动目录、项目根、家目录、系统临时目录的顺序取第一个仍存在的目录运行;回退目录名写入调试日志警告。
doc_hook_skill_hook_source_limit 技能 Hook 来源上限:单来源 1,024 个 Hook,matcher 合计 16,384 字符 official-public-docs-derived v2.1.304 起,每个技能来源(项目技能、个人技能目录、各插件)在单会话内独立计数;同一来源最多注册 1,024 个 Hook,其 matcher 字符合计最多 16,384 字符(同一 matcher 下多个 Hook 按每个 Hook 各计一次)。超限技能不再注册其 Hook;调试日志以 registers none of its hooks 指向超限技能。
doc_hook_exec_shell_form 命令 Hook 的 exec 形式(args 直派)与 shell 形式(命令字符串经 shell 解析) official-public-docs-derived 命令 Hook 在设置 args 时为 exec 形式:command 解析为 PATH 可执行文件,args 作为参数向量直接派生,不经 shell;路径占位符逐元素原样替换,特殊字符透传。省略 args 时为 shell 形式:命令字符串经 sh -c(macOS/Linux)、Git Bash(Windows)或 PowerShell 运行,shell 负责分词、变量展开与管道、重定向、通配符。引用路径占位符时应设置 args。
doc_hook_async_background async / asyncRewake 后台 Hook:不阻塞主流程,超时不被强制取消 official-public-docs-derived 命令 Hook 的 async 为 true 时后台运行、不阻塞事件流程;asyncRewake 在后台运行并在退出码 2 时唤醒 Claude,其 stderr(stderr 为空时取 stdout)作为系统提醒展示。后台 Hook 不受普通超时取消约束;需要在失败时阻断动作的 Hook 不应使用 async。SessionStart/Setup 的 mcp_tool Hook 在 MCP 客户端上下文就绪前被跳过并记入调试日志。
doc_hook_debug_log Hook 调试日志:--debug / --debug-file 记录运行状态、耗时与匹配细节 official-public-docs-derived Hook 执行细节写入调试日志;claude --debug 记录到 ~/.claude/debug/.txt,--debug-file 指定已知路径,--debug 不向终端打印。命令 Hook 结束后留下事件名、匹配工具、命令、来源插件、运行结果与耗时行;CLAUDE_CODE_DEBUG_LOG_LEVEL=verbose 可查看 matcher 计数与查询匹配等额外日志行。
doc_hook_powershell_handler PowerShell Hook 处理器:shell 字段与 matcher 的 Bash|PowerShell 覆盖规则 official-public-docs-derived Hook 的 shell 字段接受 bash 或 powershell;Windows 未装 Git Bash 时默认 powershell,Hook 直接派生 PowerShell,不依赖 CLAUDE_CODE_USE_POWERSHELL_TOOL;设置 args 时忽略 shell 字段。matcher Bash|PowerShell 同时覆盖 Bash 与 PowerShell 工具;单个 if 规则只命名一个工具,Bash 与 PowerShell 命令需各自一个处理器。无 Git Bash 时 shell 形式 Hook 可能失败,onFailure 与 shell:powershell 可固定阻断行为。
setting_replace_builtin_options replaceBuiltInOptions 替换内置模型选项 configuration-documentation settings-reference:true 时模型选择器只显示所列行、Default 与会话当前模型行,替代内置阵容。
setting_behaves_as behavesAs 模型选项行为别名 configuration-documentation settings-reference:自定义模型选项的行为别名字段,与 replaceBuiltInOptions 配合使用。
setting_custom_model_option ANTHROPIC_CUSTOM_MODEL_OPTION 自定义模型选项 configuration-documentation settings-reference:自定义模型选项环境/配置条目;availableModels 白名单仍对其生效。
setting_cache_read cacheRead 模型报价缓存读取标记 configuration-documentation settings-reference:自定义模型行报价的缓存读取标记;不附加 fast-mode 加价或美国推理费率。
setting_cache_write cacheWrite 模型报价缓存写入标记 configuration-documentation settings-reference:自定义模型行报价的缓存写入标记;与 cacheRead 成对出现。
env_prompt_cache_ttl CLAUDE_CODE_PROMPT_CACHE_TTL 提示缓存存活时长 configuration-documentation 环境变量:区分主会话与子代理的提示缓存 TTL 示例;另有 5 分钟强制缓存与 1 小时缓存开关。
env_force_prompt_caching_5m FORCE_PROMPT_CACHING_5M 五分钟强制缓存 configuration-documentation 环境变量:将主会话提示缓存保持在五分钟档;与一小时缓存开关并列。
env_enable_prompt_caching_1h ENABLE_PROMPT_CACHING_1H 一小时提示缓存 configuration-documentation 环境变量:主会话提示缓存保持一小时生命周期;子代理可留在五分钟档。
setting_soft_deny soft_deny 软拒绝分类规则 configuration-documentation Auto/权限分类器软拒绝配置;未设置时分类器仅使用内置规则。
setting_hard_deny hard_deny 硬拒绝分类规则 configuration-documentation Auto/权限分类器硬拒绝配置;与 soft_deny 并列,受权限沙箱边界约束。
setting_ignore_patterns ignorePatterns 忽略模式清单 configuration-documentation 文件访问/目录规则中的忽略模式清单;限定工作目录外文件访问范围。
setting_dangerously_disable_sandbox dangerouslyDisableSandbox 关闭沙箱开关 configuration-documentation 沙箱关闭配置;作用域受限,项目与本地设置有上限,受沙箱边界约束。
env_use_builtin_ripgrep USE_BUILTIN_RIPGREP 内置 ripgrep 开关 configuration-documentation 环境变量:控制是否使用内置 ripgrep 搜索实现。
setting_inject_hosts injectHosts 注入主机清单 configuration-documentation sandbox.network 允许域名之外额外注入的主机数组;收窄主机范围。
setting_on_extract_no_match onExtractNoMatch 无匹配提取处理 configuration-documentation 密钥/令牌提取规则在无匹配时的处理选项;与 JWT 内置模式配合。
setting_mask_claims maskClaims JWT 声明掩码 configuration-documentation JWT 掩码配置:对令牌声明进行脱敏处理。
setting_mask_duplicates maskDuplicates 重复值掩码开关 configuration-documentation 布尔值,默认 false;对被掩码值在文件中的逐字副本一并替换。
setting_access_key_id_var accessKeyIdVar 访问密钥 ID 变量名 configuration-documentation AWS 凭证配对配置:指定访问密钥 ID 读取的环境变量名;默认仅传统三元组配对。
setting_secret_access_key_var secretAccessKeyVar 秘密密钥变量名 configuration-documentation AWS 凭证配对配置:指定秘密访问密钥读取的环境变量名。
setting_session_token_var sessionTokenVar 会话令牌变量名 configuration-documentation AWS 凭证配对配置:指定会话令牌读取的环境变量名。
setting_sigv4a sigv4a 签名版本 4a 配置 configuration-documentation 网关/请求签名 SigV4A 配置项;作用域为用户或托管设置。
setting_ca_cert_path caCertPath CA 证书路径 configuration-documentation 用户或托管设置级 CA 证书路径;仓库不能开启或提供证书机构。
setting_ca_key_path caKeyPath CA 私钥路径 configuration-documentation 用户或托管设置级 CA 私钥路径;与 caCertPath 并列,仓库不可切换。
env_disable_auto_compact DISABLE_AUTO_COMPACT 关闭自动压缩 configuration-documentation 环境变量:关闭会话自动压缩行为。
env_bash_max_output_length BASH_MAX_OUTPUT_LENGTH Bash 输出上限 configuration-documentation 环境变量:限制 Bash 命令输出长度。
env_enable_beta_tracing_detailed ENABLE_BETA_TRACING_DETAILED 详细 beta 追踪开关 configuration-documentation OpenTelemetry 导出相关变量:开启详细 beta 追踪;与追踪端点配置并列。
env_beta_tracing_endpoint BETA_TRACING_ENDPOINT beta 追踪端点 configuration-documentation OpenTelemetry 导出相关变量:设置 beta 追踪上报端点。
env_always_enable_effort CLAUDE_CODE_ALWAYS_ENABLE_EFFORT official-doc-derived 官方环境变量:Set to 1 to send the effort parameter with every request, even when Claude Code does not recognize the model ID as effort-capable. Use this when routing through an LLM gateway or third-party provider
env_api_key_helper_ttl_ms CLAUDE_CODE_API_KEY_HELPER_TTL_MS official-doc-derived 官方环境变量:Interval in milliseconds at which credentials should be refreshed (when using apiKeyHelper ) CLAUDE_CODE_ARTIFACT_AUTO_OPEN Set to 0 to stop Claude Code from opening the browser automatically when a n
env_artifact_auto_open CLAUDE_CODE_ARTIFACT_AUTO_OPEN official-doc-derived 官方环境变量:Set to 0 to stop Claude Code from opening the browser automatically when a new artifact is published CLAUDE_CODE_ARTIFACT_COMMENTS Set to 0 to stop the Artifact tool from reading and replying to comme
env_artifact_comments CLAUDE_CODE_ARTIFACT_COMMENTS official-doc-derived 官方环境变量:Set to 0 to stop the Artifact tool from reading and replying to comments on an artifact . Has no effect when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC has turned artifacts off . Requires Claude Code v2
env_artifact_comments_autoreact CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT official-doc-derived 官方环境变量:Set to 0 to stop Claude replying on its own to comments sent to it . Requires Claude Code v2.1.228 or later CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS Set to 0 to stop Claude from applying small changes to an
env_attribution_header CLAUDE_CODE_ATTRIBUTION_HEADER official-doc-derived 官方环境变量:Set to 0 to omit the attribution block , which carries the client version and a prompt fingerprint, from the start of the system prompt. Caching on a direct connection to the Anthropic API is unaffect
env_aws_chain_resolve_timeout_ms CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS official-doc-derived 官方环境变量:Time in milliseconds Claude Code waits for the AWS default credential provider chain to produce credentials before the request fails with AWS default-chain credential resolve timed out (default: 6000
env_bash_edit_diff CLAUDE_CODE_BASH_EDIT_DIFF official-doc-derived 官方环境变量:Set to 0 to turn off the diff of the files that changed while a Bash command ran , or 1 to record it in every permission mode. Takes precedence over the bashEditDiffEnabled setting. Requires Claude Co
env_client_cert CLAUDE_CODE_CLIENT_CERT official-doc-derived 官方环境变量:Path to client certificate file for mTLS authentication CLAUDE_CODE_CLIENT_KEY Path to client private key file for mTLS authentication CLAUDE_CODE_CLIENT_KEY_PASSPHRASE Passphrase for encrypted CLAUDE
env_client_key CLAUDE_CODE_CLIENT_KEY official-doc-derived 官方环境变量:Path to client private key file for mTLS authentication CLAUDE_CODE_CLIENT_KEY_PASSPHRASE Passphrase for encrypted CLAUDE_CODE_CLIENT_KEY (optional) CLAUDE_CODE_CONFIG_LOCK_WAIT_MS Milliseconds that a
env_client_key_passphrase CLAUDE_CODE_CLIENT_KEY_PASSPHRASE official-doc-derived 官方环境变量:Passphrase for encrypted CLAUDE_CODE_CLIENT_KEY (optional) CLAUDE_CODE_CONFIG_LOCK_WAIT_MS Milliseconds that a command adding or removing a user or local scope MCP server, such as claude mcp add , kee
env_config_lock_wait_ms CLAUDE_CODE_CONFIG_LOCK_WAIT_MS official-doc-derived 官方环境变量:Milliseconds that a command adding or removing a user or local scope MCP server, such as claude mcp add , keeps trying for the lock on ~/.claude.json before it fails . With it unset, the command waits
env_disable_adaptive_thinking CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING official-doc-derived 官方环境变量:Set to 1 to disable adaptive reasoning on Opus 4.6 and Sonnet 4.6 and fall back to the fixed thinking budget controlled by MAX_THINKING_TOKENS . Has no effect on Fable models , Sonnet 5 and later, Hai
env_disable_attachments CLAUDE_CODE_DISABLE_ATTACHMENTS official-doc-derived 官方环境变量:Set to 1 to disable attachment processing. File mentions with @ syntax are sent as plain text instead of being expanded into file content. Ignored in project and local settings CLAUDE_CODE_DISABLE_AUT
env_disable_auth_refresh_lock CLAUDE_CODE_DISABLE_AUTH_REFRESH_LOCK official-doc-derived 官方环境变量:Set to 1 to make a Claude Code process run its gcpAuthRefresh or awsAuthRefresh command itself instead of waiting while another process runs it. Requires Claude Code v2.1.286 or later CLAUDE_CODE_DISA
env_disable_bedrock_content_type_default CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_DEFAULT official-doc-derived 官方环境变量:Set to 1 to stop Claude Code from treating an Amazon Bedrock streaming response with a missing or empty Content-Type header as Amazon Bedrock’s binary event stream. By default, Claude Code as
env_disable_bedrock_content_type_guard CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD official-doc-derived 官方环境变量:Set to 1 to skip the check that an Amazon Bedrock streaming response carries the application/vnd.amazon.eventstream content-type. Without this variable, when a response carries a different cont
env_disable_bg_stable_path CLAUDE_CODE_DISABLE_BG_STABLE_PATH official-doc-derived 官方环境变量:On macOS with the native installer, set to 1 to run each background session’s host process from the installed binary, not ~/.local/share/claude/ClaudeCode.app . macOS may then ask again for permission
env_disable_cfc_prompt CLAUDE_CODE_DISABLE_CFC_PROMPT official-doc-derived 官方环境变量:For hosts that embed Claude Code and supply their own browser guidance. Set to 1 to keep the Claude in Chrome browser tools available while omitting the Chrome section of the system prompt and the /cl
env_disable_claude_mds CLAUDE_CODE_DISABLE_CLAUDE_MDS official-doc-derived 官方环境变量:Set to 1 to prevent loading any CLAUDE.md memory files into context, including user, project, and auto memory files CLAUDE_CODE_DISABLE_CRON Set to 1 to disable session-scoped scheduled tasks . The /l
env_disable_dangerous_rm_timeout CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT official-doc-derived 官方环境变量:Set to 1 to turn off the auto and bypassPermissions time limit and denials on critical-path removals. These removals then go to the classifier in auto mode, and get an untimed prompt in bypassPermiss
env_disable_feature_flags CLAUDE_CODE_DISABLE_FEATURE_FLAGS official-doc-derived 官方环境变量:Set to 1 to turn off feature-flag fetching. Requires Claude Code v2.1.319 or later. With this variable set, Remote Control and the other features that need feature-flag fetching are unavailable. Telem
env_disable_inline_shell_rm_prompt CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT official-doc-derived 官方环境变量:Set to 1 to stop Claude Code from reading scripts passed to a shell with -c , such as bash -c 'rm -rf ~' , for critical-path removals. Claude Code still checks the shell variable and positional par
env_disable_legacy_model_remap CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP official-doc-derived 官方环境变量:Set to 1 to prevent automatic remapping of Opus 4 and Opus 4.1 to the current Opus version on the Anthropic API. The remap doesn’t run on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Fo
env_disable_model_access_fallback CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK official-doc-derived 官方环境变量:Set to 1 to stop Claude Code on Amazon Bedrock and Google Cloud’s Agent Platform from switching to an older model when your account loses access to a session’s model mid-session; the refused request
env_disable_mounted_drive_rm_prompt CLAUDE_CODE_DISABLE_MOUNTED_DRIVE_RM_PROMPT official-doc-derived 官方环境变量:Set to 1 to turn off the mounted drive prompt for paths such as /Volumes/USB . Set it in the environment that launches Claude Code , because Claude Code ignores it in a settings env block . Requir
env_disable_mtls_reload_on_stale_connection CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTION official-doc-derived 官方环境变量:Set to 1 to stop Claude Code from re-reading the mTLS client certificate and key when an API request fails with a connection-level error, such as a connection reset or a TLS handshake erro
env_disable_notification_presence_check CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK official-doc-derived 官方环境变量:Set to 1 to send the PushNotification tool’s desktop notification even while you are typing in or focused on the terminal. By default the tool skips both the desktop notification and the mobil
env_disable_official_marketplace_autoinstall CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL official-doc-derived 官方环境变量:. Doesn’t affect gateway model discovery , which has its own opt-in CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK Set to 1 to disable the non-streaming fallback when a streaming request fails
env_disable_policy_skills CLAUDE_CODE_DISABLE_POLICY_SKILLS official-doc-derived 官方环境变量:Set to 1 to skip loading skills from the system-wide managed skills directory. Useful for container or CI sessions that should not load operator-provisioned skills CLAUDE_CODE_DISABLE_POWERSHELL_CMD_R
env_disable_powershell_cmd_rm_deny CLAUDE_CODE_DISABLE_POWERSHELL_CMD_RM_DENY official-doc-derived 官方环境变量:Set to 1 to turn off the PowerShell tool check that denies the cmd built-ins rd , rmdir , del , and erase on a system path , such as a drive root or your home directory. Claude Code ignores this va
env_disable_proxy_scheme_repair CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIR official-doc-derived 官方环境变量:Set to 1 to have Claude Code stop at startup on a plain host:port in HTTPS_PROXY or https_proxy even when it starts with no terminal. Claude Code ignores it in project and local settings. Requires Cla
env_disable_refusal_fallback CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK official-doc-derived 官方环境变量:Set to 1 to turn off the automatic model switch when a safety classifier flags a request , the behavior the switchModelsOnFlag setting controls CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION Set to 1 to req
env_disable_shell_head_start CLAUDE_CODE_DISABLE_SHELL_HEAD_START official-doc-derived 官方环境变量:Set to 1 to turn off the head start that can run your shell startup files while Claude writes the session’s first Bash command, before that command’s permission prompt. Requires Claude Code v2.1.327 o
env_disable_substitution_rm_prompt CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT official-doc-derived 官方环境变量:Set to 1 to turn off the critical-path check for a recursive rm whose target is entirely the output of a command substitution, such as rm -rf "$(pwd)" . The other critical-path checks keep running.
env_disable_thinking CLAUDE_CODE_DISABLE_THINKING official-doc-derived 官方环境变量:Set to 1 to omit the thinking parameter from the API requests for the main conversation’s turns, subagent turns, and the compaction summary. This is a compatibility option for proxies and gateways tha
env_disable_ultrathink CLAUDE_CODE_DISABLE_ULTRATHINK official-doc-derived 官方环境变量:Set to 1 to turn the ultrathink keyword off. Requires Claude Code v2.1.316 or later CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT Set to 1 to skip proactive auto-compaction when Claude Code doe
env_disable_unknown_model_window_enforcement CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT official-doc-derived 官方环境变量:Set to 1 to skip proactive auto-compaction when Claude Code doesn’t recognize the model ID, such as an LLM gateway alias. Without this variable, Claude Code compacts at the context window
env_disable_windows_shell_launcher CLAUDE_CODE_DISABLE_WINDOWS_SHELL_LAUNCHER official-doc-derived 官方环境变量:Set to 1 to start PowerShell tool commands on Windows directly instead of through the cmd.exe launcher. By default, the launcher lets a PowerShell command running in the background carry over to th
env_emit_session_state_events CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS official-doc-derived 官方环境变量:Set to 1 to add session_state_changed messages, which carry the session’s state, to the message stream. Requires either the Agent SDK or --print , --output-format stream-json , and --verbose CLAUDE_CO
env_enable_auto_mode CLAUDE_CODE_ENABLE_AUTO_MODE official-doc-derived 官方环境变量:Accepted for compatibility with older releases and has no effect. Auto mode is available by default on every provider, including Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, and s
env_enable_background_plugin_refresh CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH official-doc-derived 官方环境变量:Set to 1 to refresh plugin state at turn boundaries in non-interactive mode after a background install completes. Off by default because the refresh changes the system prompt mid-session, which i
env_enable_cfc CLAUDE_CODE_ENABLE_CFC official-doc-derived 官方环境变量:Set to 1 to start a CLI session with Chrome integration on, or 0 to start with it off. Takes precedence over the claudeInChromeDefaultEnabled setting. The --chrome and --no-chrome flags take precedenc
env_enable_feedback_survey_for_otel CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL official-doc-derived 官方环境变量:opts back in. To set a sample rate instead of disabling outright, use the feedbackSurveyRate setting. See Session quality surveys CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING Set to 1 to disable file ch
env_enable_fine_grained_tool_streaming CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING official-doc-derived 官方环境变量:Controls whether tool call inputs stream from the API as Claude generates them. With this off, a large tool input such as a long file write arrives only after Claude finishes generating it, whi
env_enable_share_bundle CLAUDE_CODE_ENABLE_SHARE_BUNDLE official-doc-derived 官方环境变量:Set to 1 to make /share save its report and the whole session transcript to a local archive under ~/.claude/feedback-bundles/ instead of sending the report to Anthropic. If your organization’s policy
env_even_more_dangerously_skip_permissions CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS official-doc-derived 官方环境变量:Set to 1 to run dangerous rm commands with no prompt in bypassPermissions mode, which removes a safety prompt for destructive deletes. The linked section lists where it has no effect. Set i
env_extra_body CLAUDE_CODE_EXTRA_BODY official-doc-derived 官方环境变量:JSON object to merge into the top level of model request bodies except on some requests outside the conversation, such as /model checks. Useful for passing provider-specific parameters that Claude Cod
env_force_session_persistence CLAUDE_CODE_FORCE_SESSION_PERSISTENCE official-doc-derived 官方环境变量:=1 to override this exclusion. Requires Claude Code v2.1.172 or later CLAUDE_CODE_CLIENT_CERT Path to client certificate file for mTLS authentication CLAUDE_CODE_CLIENT_KEY Path to client private key
env_gzip_request_bodies CLAUDE_CODE_GZIP_REQUEST_BODIES official-doc-derived 官方环境变量:Set to 0 to turn off gzip compression of Claude API, telemetry, and artifact publish request bodies sent to api.anthropic.com . By default, Claude Code compresses large request bodies on direct connec
env_ide_host_override CLAUDE_CODE_IDE_HOST_OVERRIDE official-doc-derived 官方环境变量:Override the host address used to connect to the IDE extension. By default Claude Code auto-detects the correct address, including WSL-to-Windows routing CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL Set to 1 to
env_ide_skip_valid_check CLAUDE_CODE_IDE_SKIP_VALID_CHECK official-doc-derived 官方环境变量:Set to 1 to skip validation of IDE lockfile entries during connection. Use when auto-connect fails to find your IDE despite it running CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS Context size, in tokens, at w
env_oauth_refresh_token CLAUDE_CODE_OAUTH_REFRESH_TOKEN official-doc-derived 官方环境变量:OAuth refresh token for claude.ai authentication. When set, claude auth login exchanges this token directly instead of opening a browser. Requires CLAUDE_CODE_OAUTH_SCOPES . A refresh token works once
env_oauth_scopes CLAUDE_CODE_OAUTH_SCOPES official-doc-derived 官方环境变量:. A refresh token works once, because the exchange replaces it. Ignored in project and local settings CLAUDE_CODE_OAUTH_SCOPES Space-separated OAuth scopes the refresh token was issued with, such as "
env_package_manager_auto_update CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE official-doc-derived 官方环境变量:Set to 1 to let Claude Code run your package manager’s upgrade command in the background when a new version is available. Applies to Homebrew and WinGet installations. Other package managers continue
env_plugin_prefer_https CLAUDE_CODE_PLUGIN_PREFER_HTTPS official-doc-derived 官方环境变量:Set to 1 to clone GitHub owner/repo shorthand sources over HTTPS instead of SSH. Applies to plugin install and update, and to /plugin marketplace add and update . Useful in CI runners, containers, or
env_propagate_traceparent CLAUDE_CODE_PROPAGATE_TRACEPARENT official-doc-derived 官方环境变量:Set to 1 to propagate W3C trace context when ANTHROPIC_BASE_URL points at a custom proxy. Propagation covers the traceparent header on model and HTTP MCP requests and the TRACEPARENT environment varia
env_restricted CLAUDE_CODE_RESTRICTED official-doc-derived 官方环境变量:Set to 1 to start the session in restricted mode, the same as passing --restricted . Claude Code ignores this variable in a settings file’s env block. Requires Claude Code v2.1.248 or later CLAUDE_COD
env_resume_prompt CLAUDE_CODE_RESUME_PROMPT official-doc-derived 官方环境变量:continuation message, and the session starts idle so you continue explicitly. Unset or 0 sets no bound, except that some turns resume only within six hours of their last message, such as one that ende
env_resume_shows_cut_off_calls CLAUDE_CODE_RESUME_SHOWS_CUT_OFF_CALLS official-doc-derived 官方环境变量:Set to 1 to keep interrupted tool calls , marked as cut off, in a turn that CLAUDE_CODE_RESUME_INTERRUPTED_TURN continues. When unset, those calls are dropped before the turn continues. Some calls sta
env_skip_anthropic_aws_auth CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH official-doc-derived 官方环境变量:Skip client-side authentication for Claude Platform on AWS , for gateways that sign requests themselves CLAUDE_CODE_SKIP_ANTHROPIC_GOOGLE_CLOUD_AUTH Skip Google Cloud authentication for Claude Models
env_skip_anthropic_google_cloud_auth CLAUDE_CODE_SKIP_ANTHROPIC_GOOGLE_CLOUD_AUTH official-doc-derived 官方环境变量:Skip Google Cloud authentication for Claude Models on Google Cloud (Anthropic managed) , for gateways that attach the credentials themselves CLAUDE_CODE_SKIP_AWS_CRED_CACHE Set to 1 to turn off t
env_skip_aws_cred_cache CLAUDE_CODE_SKIP_AWS_CRED_CACHE official-doc-derived 官方环境变量:Set to 1 to turn off the in-process cache of credentials resolved from the AWS default credential provider chain, so Claude Code resolves the chain on every API request. With the cache off, an SSO-bac
env_skip_bedrock_auth CLAUDE_CODE_SKIP_BEDROCK_AUTH official-doc-derived 官方环境变量:Skip AWS authentication for Amazon Bedrock (for example, when using an LLM gateway) CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS Set to 1 to treat a failed fast mode availability check as available, for
env_skip_fast_mode_network_errors CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS official-doc-derived 官方环境变量:Set to 1 to treat a failed fast mode availability check as available, for networks that block the check’s direct request to api.anthropic.com . Claude Code still honors a “disabled by your organizat
env_skip_foundry_auth CLAUDE_CODE_SKIP_FOUNDRY_AUTH official-doc-derived 官方环境变量:Skip Azure authentication for Microsoft Foundry, for a proxy or gateway that injects its own Authorization header. Claude Code sends requests without an Azure credential and preserves the Authorizatio
env_skip_mantle_auth CLAUDE_CODE_SKIP_MANTLE_AUTH official-doc-derived 官方环境变量:Skip AWS authentication for Amazon Bedrock Mantle (for example, when using an LLM gateway) CLAUDE_CODE_SKIP_MODEL_ACCESS_MEMORY The startup model checks on Amazon Bedrock and Google Cloud’s Agent Plat
env_skip_model_access_memory CLAUDE_CODE_SKIP_MODEL_ACCESS_MEMORY official-doc-derived 官方环境变量:The startup model checks on Amazon Bedrock and Google Cloud’s Agent Platform remember on this machine which models they found your account can’t invoke, for up to a day. Set to 1 to turn that memory o
env_skip_vertex_auth CLAUDE_CODE_SKIP_VERTEX_AUTH official-doc-derived 官方环境变量:Skip Google authentication for Google Cloud’s Agent Platform (for example, when using an LLM gateway) CLAUDE_CODE_STARTUP_FAILURE_RESULTS Set to 1 to have a session started with --output-format stream
env_startup_failure_results CLAUDE_CODE_STARTUP_FAILURE_RESULTS official-doc-derived 官方环境变量:Set to 1 to have a session started with --output-format stream-json write a result message naming why Claude Code refused to start for startup failures that otherwise end with stderr alone. Requires C
env_strict_inline_shell_rm_prompt CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT official-doc-derived 官方环境变量:Set to 1 to flag more of the -c scripts that Claude Code can’t check, including ones that name neither rm nor rmdir . Set it in the environment that launches Claude Code, not a settings env block. H
env_sync_plugin_install_timeout_ms CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS official-doc-derived 官方环境变量:to bound the wait CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS Timeout in milliseconds for synchronous plugin installation. When exceeded, Claude Code proceeds without plugins and logs an error. No d
env_sync_skills CLAUDE_CODE_SYNC_SKILLS official-doc-derived 官方环境变量:Set to 1 to make Claude Code download the skills enabled for your claude.ai account. In non-interactive mode with the -p flag, Claude Code also waits up to CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS for
env_sync_skills_install_timeout_ms CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MS official-doc-derived 官方环境变量:Timeout in milliseconds for the skills resync that runs mid-session when an app built on the Agent SDK reloads skills (default: 30000). When exceeded, the reload continues with whichever skills hav
env_sync_skills_wait_timeout_ms CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS official-doc-derived 官方环境变量:for the list of skills before it runs the first query. Requires claude.ai authentication. Terminal sessions where you sign in with your claude.ai account sync these skills without this variable. In an
env_worker_checkin_schedule CLAUDE_CODE_WORKER_CHECKIN_SCHEDULE official-doc-derived 官方环境变量:instead CLAUDE_CODE_AUTO_COMPACT_WINDOW Set the auto-compact window, which is how full the context gets before compaction, to a token count of 100000 or more. Suffixed values such as 200k require v2.1
env_you_should_know_debug CLAUDE_CODE_YOU_SHOULD_KNOW_DEBUG official-doc-derived 官方环境变量:Set to 1 to show, above the prompt, a line for each of the last three checks the You should know mod made in this session. Use it to confirm the mod is checking when no notes appear. Requires Claude C
cli_cmd_mcp claude mcp MCP 服务器配置命令(login/logout/add/list/remove 子命令分组) configuration-documentation 配置 Model Context Protocol 服务器;父命令分组各 MCP 管理子命令,具体 OAuth 登录与登出由子命令条目承载
doc_powershell_shell_selection_settings_hooks_skills PowerShell 选用位置:settings defaultShell、命令 Hook shell 与技能配置 official-doc-derived 官方 tools-reference:三处配置决定 PowerShell 的使用:settings.json 的 defaultShell: powershell 路由交互式 ! 命令(需先启用 PowerShell 工具);单个命令 Hook 的 shell: powershell 直接派生 PowerShell;技能内对应 shell 选择随技能配置生效。
skill_visibility_override_settings skillOverrides 设置在不编辑 SKILL.md 的前提下覆盖技能可见性;/skills 菜单写入该设置 official-public-documentation-entry skillOverrides 设置从配置层控制技能可见性,适用于不便修改的共享仓库内技能;/skills 菜单高亮选择后写入该覆盖项。
skill_unused_cost_report_skill_doctor 未使用技能成本报告:/skill-doctor 展示各技能上下文成本与使用频次,供决定关闭 official-public-documentation-entry 技能列表中每个技能每回合都占用上下文;/skill-doctor 报告各技能成本与使用频次,交互式会话中报告在界面打开,据此决定关闭哪些技能。
env_custom_model_option_name ANTHROPIC_CUSTOM_MODEL_OPTION_NAME:/model 选择器自定义模型条目的显示名称 configuration-documentation 官方 env-vars 文档:自定义模型选项在 /model 选择器条目的显示名称;未设置时按 Claude Code 识别到的模型 ID 回退为模型名,否则显示模型 ID。availableModels 白名单仍对该条目生效。
env_custom_model_option_description ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION:/model 选择器自定义模型条目的显示描述 configuration-documentation 官方 env-vars 文档:自定义模型选项在 /model 选择器条目的显示描述;未设置时描述默认为 Custom model ( )。
env_custom_model_option_capabilities ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES:自定义模型声明的能力列表 configuration-documentation 官方 env-vars 文档:逗号分隔的自定义模型支持能力列表(例如 effort,thinking),用于 /model 选择器展示与能力适配;仅记录公开配置入口,不推断模型内部实现。
env_claude_code_shell CLAUDE_CODE_SHELL:Bash 工具命令使用的 Shell 二进制路径 configuration-documentation 官方 env-vars 文档:设置 Claude Code 运行 Bash 工具命令所用的 Shell;接受 bash 或 zsh 二进制路径(例如 /opt/homebrew/bin/bash),fish 等其他 Shell 不受支持。值不是可用 bash/zsh 路径时被忽略并回退自动检测;自动检测优先 $SHELL(指向 bash/zsh 时),否则在 PATH 与标准安装位置依次查找 zsh、bash。
env_otel_metrics_headers OTEL_EXPORTER_OTLP_METRICS_HEADERS:metrics 信号专用 OTLP 请求头 configuration-documentation 官方监控/settings 文档:metrics 信号专用的 OTLP 导出请求头变量;Claude Code 将其与通用 OTEL_EXPORTER_OTLP_HEADERS 按信号合并。仅记录公开配置入口,请求头中的凭证值不在本体中存储。
env_scroll_speed CLAUDE_CODE_SCROLL_SPEED:全屏鼠标滚轮滚动倍率 configuration-documentation 官方 env-vars 文档:鼠标滚轮在全屏渲染中的滚动倍率;接受不超过 20 的任意正数(含小数)。
env_disable_mouse CLAUDE_CODE_DISABLE_MOUSE:关闭全屏鼠标跟踪 configuration-documentation 官方 env-vars 文档:置 1 关闭全屏渲染中的鼠标跟踪;PgUp/PgDn 键盘滚动仍可用,用于保持终端原生鼠标行为。
env_disable_mouse_clicks CLAUDE_CODE_DISABLE_MOUSE_CLICKS:关闭全屏点击、拖拽与悬停处理 configuration-documentation 官方 env-vars 文档:置 1 关闭全屏渲染中的点击、拖拽与悬停处理,同时保留鼠标滚轮滚动。
env_disable_virtual_scroll CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL:关闭全屏虚拟滚动 configuration-documentation 官方 env-vars 文档:置 1 关闭全屏虚拟滚动并渲染 transcript 中的每条消息;全屏滚动卡顿场景下使用。
env_native_cursor CLAUDE_CODE_NATIVE_CURSOR:输入光标使用终端原生光标 configuration-documentation 官方 env-vars 文档:置 1 在输入 caret 显示终端自身光标而非绘制方块;光标遵循终端的闪烁、形状与焦点设置;置 0 与未设置同义。
env_nonblocking_stdout CLAUDE_CODE_NONBLOCKING_STDOUT:经第二非阻塞描述符写出终端输出 configuration-documentation 官方 env-vars 文档:置 1 通过第二个非阻塞文件描述符写出终端输出;暂停的 tmux control-mode 面板或停滞 SSH 连接等停止读取的终端不会冻结 Claude Code。
env_syntax_highlight CLAUDE_CODE_SYNTAX_HIGHLIGHT:关闭 diff 输出语法着色 configuration-documentation 官方 env-vars 文档:置 false 关闭 diff 输出中的语法高亮;颜色干扰终端配色时使用。代码块与文件预览的高亮另由 syntaxHighlightingDisabled 设置键控制。
env_tmux_truecolor CLAUDE_CODE_TMUX_TRUECOLOR:tmux 内允许 24 位真彩色输出 configuration-documentation 官方 env-vars 文档:置任意非空值(如 1)允许 tmux 内 24 位真彩色;与多数开关变量不同,置 0 或 false 仍允许真彩色,需取消设置变量才恢复默认。
env_bs_as_ctrl_backspace CLAUDE_CODE_BS_AS_CTRL_BACKSPACE:0x08 字节读取为普通退格或 Ctrl+退格 configuration-documentation 官方 env-vars 文档:置 0 将 0x08(^H)字节读作普通 Backspace,置 1 读作 Ctrl+Backspace;任一取值覆盖平台默认。
env_alt_screen_full_repaint CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT:每帧全量重绘全屏界面 configuration-documentation 官方 env-vars 文档:置 1 在全屏渲染中每帧重绘整屏而非发送增量更新;全屏出现渲染残影时使用。
env_force_strikethrough CLAUDE_CODE_FORCE_STRIKETHROUGH:强制删除线渲染 configuration-documentation 官方 env-vars 文档:置 1 在终端支持但未自动检测到(例如 SSH 未转发 TERM_PROGRAM)时,强制渲染 Claude 回复中 ~~text~~ 的删除线。
env_force_sync_output CLAUDE_CODE_FORCE_SYNC_OUTPUT:强制启用 DEC 私有模式 2026 同步输出 configuration-documentation 官方 env-vars 文档:置 1 在终端支持但未自动检测到时,强制启用 DEC private mode 2026 synchronized output。
env_force_terminal_images CLAUDE_CODE_FORCE_TERMINAL_IMAGES:强制将 mod Image 元素绘为图片 configuration-documentation 官方 env-vars 文档:置 1 在终端以 kitty 图形协议 Unicode 占位符绘制图片时,将 mod Image 元素绘为图片。
env_mcp_max_output_tokens MAX_MCP_OUTPUT_TOKENS MCP 工具响应输出 token 上限环境变量 official-doc-derived 官方 env-vars/MCP 文档:限制 MCP 工具响应最大 token 数(默认 25000);输出超过 10000 token 时显示警告;声明 anthropic/maxResultSizeChars 的工具按其字符限额取值。只记录输出预算边界,不推断内部截断实现。
env_slash_command_tool_char_budget SLASH_COMMAND_TOOL_CHAR_BUDGET 技能元数据字符预算覆盖环境变量 official-doc-derived 官方 skills/env-vars 文档:覆盖展示给 Skill 工具的技能元数据字符预算;预算按上下文窗口 1% 动态缩放,回落值 8000 字符;旧名保留向后兼容。
env_claude_code_disable_alternate_screen CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN 关闭全屏渲染、回退经典主屏渲染器 official-doc-derived 官方 env-vars 文档:置 1 关闭全屏渲染并使用经典主屏渲染器,对话留在终端原生回滚缓冲区,便于 Cmd+F 与 tmux 复制;优先级高于 CLAUDE_CODE_NO_FLICKER 与 tui 设置;不适用于 agent view 打开的后台会话。
doc_powershell_persisted_variables_env_file PowerShell 命令经 CLAUDE_ENV_FILE 接收 Hook 持久化变量(v2.1.296+) official-public-docs-derived 官方 tools-reference PowerShell 小节:前台 PowerShell 命令经 CLAUDE_ENV_FILE 接收 Hook 持久化下来的环境变量;该变量交接要求 Claude Code v2.1.296 或更高版本。条目只记录公开变量交接边界,不推断内部进程环境实现。
doc_mcp_serve_background_output_path claude mcp serve 结果中的 backgroundOutputPath 后台命令输出路径 official-public-docs-derived 官方 MCP 文档:claude mcp serve 返回的 Bash/PowerShell 结果带 backgroundOutputPath 字段,表示命令在后台继续运行;客户端以 run_in_background: true 发起调用,前台命令达到时限后也可转入后台。条目记录结果字段与后台运行边界,不收录服务器内部进程结构。
env_anthropic_auth_token ANTHROPIC_AUTH_TOKEN 认证令牌环境变量 official-doc-derived 官方 MCP/技能文档:以 bearer token 形式提供的认证凭据;MCP 服务器名称或插件不得被写成把该凭据外发给被命名服务器;配置 Bearer ${ANTHROPIC_AUTH_TOKEN} 时占位符不带凭据,服务器收到空 bearer 通常 401。存在该令牌时技能自动同步被关闭。
env_anthropic_base_url ANTHROPIC_BASE_URL 网关接入基址环境变量 official-doc-derived 官方子代理/MCP 文档:LLM 网关接入的自定义 base URL;经该网关连接时子代理 Explore 模型按 opus 别名解析到网关可用 Opus;与官方 API 端点、Bedrock/Foundry 等平台入口分开标注。
env_disable_experimental_betas CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS 关闭实验性 beta 开关 official-doc-derived 官方 MCP 文档:置位后保持工具搜索(tool search)关闭;无法用自行设置 ENABLE_TOOL_SEARCH 覆盖;v2.1.227 及以后组织策略可在该变量下保留工具搜索开启。
env_skip_prompt_history CLAUDE_CODE_SKIP_PROMPT_HISTORY 关闭会话持久化开关 official-doc-derived 官方 MCP 文档:与 --no-session-persistence 同效,置位后不写图片会话文件,模型只收到内联副本;MCP 图片结果保存到文件需 v2.1.283 及以后。
env_disable_nonessential_traffic CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC 关闭非必要流量开关 official-doc-derived 官方工具/技能文档:关闭非必要后台流量;与 DISABLE_TELEMETRY、第三方平台(Bedrock、Google Agent Platform、Foundry、Claude Platform on AWS)同属 Monitor 工具运行前提;bare 模式或技能同步受其影响。
env_enable_tasks_legacy CLAUDE_CODE_ENABLE_TASKS 旧版任务跟踪工具开关 official-doc-derived 官方工具参考:旧版会话任务清单工具,默认禁用,由 TaskCreate/TaskGet/TaskList/TaskUpdate 取代;置 0 可在具备任务跟踪工具的会话中重新启用旧工具。
env_perforce_mode CLAUDE_CODE_PERFORCE_MODE Perforce 工作区只读文件保护开关 official-doc-derived 官方工具参考:置 1 后 Edit、Write、NotebookEdit 不覆盖 Perforce 工作区只读文件,拒绝修改并提示先运行 p4 edit;仅针对只读文件保护,不替代版本控制命令。
env_disable_feedback_command DISABLE_FEEDBACK_COMMAND 关闭反馈命令开关 official-doc-derived 官方工具参考:与 CLAUDE_CODE_SEND_FEEDBACK=0、关闭非必要流量、关闭 feature-flag 拉取同属反馈工具不可用条件;组织关闭产品反馈或零数据保留场景同样适用。
env_default_opus_model ANTHROPIC_DEFAULT_OPUS_MODEL 默认 Opus 模型别名环境变量 official-doc-derived 官方子代理文档:仅作用于非 Anthropic API 提供商上的 opus 别名;用于选择该提供商下解析到的 Opus 版本;与官方 API 默认模型、子代理强制模型变量分开标注。
env_anthropic_aws_workspace_id ANTHROPIC_AWS_WORKSPACE_ID Claude Platform on AWS 工作区 ID official-doc-derived 官方 env-vars:Claude Platform on AWS 必需;每个请求以 anthropic-workspace-id 头发送。边界:仅 AWS 平台部署,不替代 Bedrock / Vertex / Foundry 认证变量。
env_bedrock_mantle_base_url ANTHROPIC_BEDROCK_MANTLE_BASE_URL Bedrock Mantle 端点覆盖 official-doc-derived 官方 env-vars:覆盖 Amazon Bedrock Mantle 端点 URL;挂 Mantle 上游提供商分组。边界:仅覆盖 Mantle 端点,不改变凭证与区域解析。
env_foundry_resource ANTHROPIC_FOUNDRY_RESOURCE Microsoft Foundry 资源名 official-doc-derived 官方 env-vars:Microsoft Foundry 资源名(例如 my-resource);Claude Code 拒绝 URL 或主机名;未设 ANTHROPIC_FOUNDRY_BASE_URL 时必需。
env_gcp_managed_location ANTHROPIC_GOOGLE_CLOUD_LOCATION Google Cloud 位置 official-doc-derived 官方 env-vars:Claude Models on Google Cloud(Anthropic managed)请求 URL 中的 Google Cloud 位置;默认 global。
env_gcp_managed_project ANTHROPIC_GOOGLE_CLOUD_PROJECT Google Cloud 项目 ID official-doc-derived 官方 env-vars:Claude Models on Google Cloud(Anthropic managed)的 Google Cloud 项目 ID。
env_gcp_managed_workspace_id ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID Google Cloud 工作区 ID official-doc-derived 官方 env-vars:Claude Models on Google Cloud 工作区 ID;v2.1.307+ 且已设 ANTHROPIC_GOOGLE_CLOUD_BASE_URL 时可免。
env_vertex_project_id ANTHROPIC_VERTEX_PROJECT_ID Agent Platform GCP 项目 ID official-doc-derived 官方 env-vars:Google Cloud Agent Platform 请求寻址的 GCP 项目 ID;挂 Vertex / Agent Platform 认证分组。
env_disable_autoupdater DISABLE_AUTOUPDATER 关闭后台自动更新开关 official-doc-derived 官方 env-vars:置 1 关闭后台自动更新;手动 claude update 仍可用;要阻断整块更新使用 DISABLE_UPDATES。
env_disable_compact DISABLE_COMPACT 关闭全部压缩开关 official-doc-derived 官方 env-vars:置 1 关闭全部压缩,含 /compact 命令与 rewind 菜单的 summarize 选项。边界:关闭的是压缩行为,不删除既有会话记录。
env_disable_cost_warnings DISABLE_COST_WARNINGS 关闭费用警告开关 official-doc-derived 官方 env-vars:置 1 关闭费用警告消息。
env_disable_extra_usage_command DISABLE_EXTRA_USAGE_COMMAND 隐藏 /usage-credits 命令 official-doc-derived 官方 env-vars:置 1 隐藏 /usage-credits 命令(超出速率限制后购买额外用量的入口)。
env_disable_growthbook DISABLE_GROWTHBOOK 关闭 GrowthBook feature-flag 拉取(legacy 名称) official-doc-derived 官方 env-vars:置 1 关闭 feature-flag 拉取(v2.1.124+);已被 CLAUDE_CODE_DISABLE_FEATURE_FLAGS(v2.1.319+)取代;旧名在 v2.1.318 及更早机器上仍可读。
env_disable_installation_checks DISABLE_INSTALLATION_CHECKS 关闭安装警告检查 official-doc-derived 官方 env-vars:置 1 关闭安装警告;仅在手动管理安装位置时使用,可能掩盖标准安装问题。
env_disable_install_github_app_command DISABLE_INSTALL_GITHUB_APP_COMMAND 隐藏 /install-github-app 命令 official-doc-derived 官方 env-vars:置 1 隐藏 /install-github-app 命令;第三方提供商(Bedrock、Agent Platform、Foundry)下本就隐藏。
env_disable_interleaved_thinking DISABLE_INTERLEAVED_THINKING 关闭 interleaved-thinking beta 头 official-doc-derived 官方 env-vars:置 1 不发送 interleaved-thinking beta 头;用于不支持 interleaved thinking 的 LLM 网关或提供商。
env_disable_login_command DISABLE_LOGIN_COMMAND 隐藏 /login 命令 official-doc-derived 官方 env-vars:置 1 隐藏 /login;认证由 API key 或 apiKeyHelper 外部处理时使用。
env_disable_logout_command DISABLE_LOGOUT_COMMAND 隐藏 /logout 命令 official-doc-derived 官方 env-vars:置 1 隐藏 /logout 命令。
env_disable_prompt_caching_fable DISABLE_PROMPT_CACHING_FABLE 关闭 Fable 模型提示缓存 official-doc-derived 官方 env-vars:置 1 关闭 Fable 模型提示缓存;挂按模型别名关闭提示缓存的环境变量分组。
env_disable_prompt_caching_opus DISABLE_PROMPT_CACHING_OPUS 关闭默认 Opus 提示缓存 official-doc-derived 官方 env-vars:置 1 关闭默认 Opus 模型提示缓存。
env_disable_prompt_caching_sonnet DISABLE_PROMPT_CACHING_SONNET 关闭默认 Sonnet 提示缓存 official-doc-derived 官方 env-vars:置 1 关闭默认 Sonnet 模型提示缓存。
env_disable_updates DISABLE_UPDATES 阻断全部更新开关 official-doc-derived 官方 env-vars:置 1 阻断全部更新,含手动 claude update 与 claude install;比 DISABLE_AUTOUPDATER 更严格;自有渠道分发、用户不应自更新时使用。
env_disable_upgrade_command DISABLE_UPGRADE_COMMAND 隐藏 /upgrade 命令 official-doc-derived 官方 env-vars:置 1 隐藏 /upgrade 命令。
env_otel_attribute_value_length_limit OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT 系列 OTel 属性值长度上限 official-doc-derived 官方 env-vars:标准 OpenTelemetry SDK 属性值长度上限;Claude Code 内容型遥测属性取本变量与 CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH 的较小值;OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT、OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT 变体同读法,所有信号取已设最小值;v2.1.214+。
doc_rc_connection_status Check connection status:查看 Remote Control 会话连接状态 official-public-documentation-entry 官方 Remote Control 文档:提供连接状态查看入口,用于判断本机会话与已连接设备之间的链路是否在线;状态只反映遥控通道,不替代云会话运行状态。
doc_rc_default_spawn_mode_project Set the default spawn mode for a project:项目级默认派生模式 official-public-documentation-entry 官方 Remote Control 文档:可为项目设置默认会话派生(spawn)模式;该项目级默认与单会话选择、目录已保存模式及 fork 规则分开记录。
doc_computer_use_applies_scope When computer use applies:computer-use 适用场景范围 official-public-documentation-entry 官方 computer-use 文档:描述该能力在 CLI 中开启后可让 Claude 打开应用、点击、输入并查看屏幕;适用范围以文档列出的 GUI 自动化与原生应用调试场景为准,不推断未列出的操作系统或应用支持。
doc_checkpoint_common_use_cases Common use cases:检查点回溯的典型使用场景 official-public-documentation-entry 官方 Checkpointing 文档:列出检查点回溯与摘要的常见使用场景;场景只作为公开文档用途分类,不代表对应能力在所有平台或权限模式下可用。
env_byte_stream_idle_timeout_ms CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS:字节级流式空闲看门狗超时(毫秒) official-doc 官方环境变量:字节级流式空闲看门狗的超时毫秒数;设置后优先于 CLAUDE_STREAM_IDLE_TIMEOUT_MS 作用于该字节级看门狗,事件级看门狗不受影响。用于检测长静默流冻结,不约束工具执行超时。
env_client_presence_file CLAUDE_CLIENT_PRESENCE_FILE:屏幕锁定/解锁外部存在信号文件路径 official-doc 官方环境变量:外部工具(如锁屏监听程序)在解锁时创建、锁定时删除的文件路径;文件存在期间 Claude Code 跳过 Remote Control 移动端推送通知。属客户端存在状态边界,不记录内部锁屏判定规则。
env_enable_byte_watchdog CLAUDE_ENABLE_BYTE_WATCHDOG:字节级流式看门狗开关(含 Bedrock 变体) official-doc 官方环境变量:启用字节级流式看门狗;Amazon Bedrock 场景另需 CLAUDE_ENABLE_BYTE_WATCHDOG_BEDROCK=1。事件级流看门狗独立运行,即使此处置 0 仍会中止长时间静默暂停。条目只记录公开开关与适用范围。
env_remote_control_session_name_prefix CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX:Remote Control 自动会话名前缀 official-doc 官方环境变量(v2.1.214+):未显式命名时,Remote Control 自动生成会话名的前缀;默认取机器主机名。供脚本识别或定向通知父 Claude Code 进程,不记录内部进程标识生成规则。
cap_openai_vector_stores OpenAI Vector Stores(托管向量知识库与文件分块检索能力) official-hosted-api-tool Vector Stores 是平台托管的向量知识库:上传文件经分块与向量化后存入向量库,File Search 工具在运行时检索相关片段返回上下文;向量库文件管理经 vector-stores-files 等 API 操作。向量库依赖 Embedding 模型服务完成向量化,属平台托管知识层,不等于自建向量数据库。
env_stream_idle_timeout_ms CLAUDE_STREAM_IDLE_TIMEOUT_MS 环境变量 configuration-documentation 环境变量:事件级与字节级流式空闲看门狗关闭停滞连接前的空闲超时(毫秒);显式设置下限 300000(5 分钟),更低值被静默钳制,以吸收扩展思考停顿与代理缓冲。
env_retry_watchdog_usage_limit_recheck_ms CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS 环境变量 configuration-documentation 环境变量:CLAUDE_CODE_RETRY_WATCHDOG 等待用量限额重置期间,两次“限额是否已解除”检查之间的最小间隔(毫秒);检查到解除即立即发出请求。
env_bash_default_timeout_ms BASH_DEFAULT_TIMEOUT_MS 环境变量 configuration-documentation 环境变量:前台 Bash/PowerShell 工具命令默认超时(毫秒,默认 120000 / 2 分钟);非值守会话中高于后台默认时限的值会替换后台默认时限。
env_bash_max_timeout_ms BASH_MAX_TIMEOUT_MS 环境变量 configuration-documentation 环境变量:模型可为前台 Bash/PowerShell 工具命令设定的最大超时(毫秒,默认 600000 / 10 分钟);有效上限取该值与 BASH_DEFAULT_TIMEOUT_MS 的较大者。
env_glob_timeout_seconds CLAUDE_CODE_GLOB_TIMEOUT_SECONDS 环境变量 configuration-documentation 环境变量:Glob 与 Grep 工具搜索超时(秒);多数平台默认 20 秒,WSL 默认 60 秒。
env_glob_no_ignore CLAUDE_CODE_GLOB_NO_IGNORE 环境变量 configuration-documentation 环境变量:设为 false 使 Glob 工具尊重 .gitignore 规则;默认 Glob 返回全部匹配文件(含被 gitignore 的文件);不影响 @ 文件自动补全(另有 respectGitignore 设置)。
env_glob_hidden CLAUDE_CODE_GLOB_HIDDEN 环境变量 configuration-documentation 环境变量:设为 false 使 Glob 结果排除点文件;默认包含点文件;不影响 @ 文件自动补全、ls、Grep 或 Read。
mcp_env_connect_timeout_ms MCP_CONNECT_TIMEOUT_MS 环境变量 configuration-documentation 环境变量:阻塞式 MCP 启动在快照工具列表前等待连接批次的时长(毫秒,默认 5000);仅当 MCP_CONNECTION_NONBLOCKING=0 或服务器标记 alwaysLoad: true 时适用;超期服务器在后台继续连接。
mcp_env_server_connection_batch_size MCP_SERVER_CONNECTION_BATCH_SIZE 环境变量 configuration-documentation 环境变量:启动期并行连接的本地 MCP 服务器(stdio)最大数量(默认 3)。
mcp_env_remote_server_connection_batch_size MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE 环境变量 configuration-documentation 环境变量:启动期并行连接的远程 MCP 服务器(HTTP/SSE)最大数量(默认 20)。
mcp_env_discovery_cache MCP_DISCOVERY_CACHE 环境变量 configuration-documentation 环境变量:开关 MCP 发现缓存;开启后先前使用过的远程 HTTP/SSE 服务器可显示缓存状态,并在首次工具调用时而非启动时连接;默认关闭,除非灰度已为账号开启。
mcp_env_discovery_cache_ttl_s MCP_DISCOVERY_CACHE_TTL_S 环境变量 configuration-documentation 环境变量:未刷新即复用发现缓存条目的秒数(默认 900);启动时条目超龄仍可复用但后台刷新;超过 MCP_DISCOVERY_CACHE_MAX_STALE_S 后丢弃。
mcp_env_discovery_cache_max_stale_s MCP_DISCOVERY_CACHE_MAX_STALE_S 环境变量 configuration-documentation 环境变量:发现缓存条目最大年龄(秒,默认 14400 / 4 小时);超龄条目在启动时丢弃并像缓存关闭时一样在启动期连接;取值上限 7 天。
mcp_env_tool_timeout MCP_TOOL_TIMEOUT 环境变量 configuration-documentation 环境变量:MCP 工具执行超时(毫秒,默认 100000000,约 28 小时);HTTP/SSE/claude.ai 连接器服务器每个请求默认另有 60 秒超时,需把本变量或单服务器超时设到 60000 以上才能提高该请求限额。
mcp_env_protocol_negotiation MCP_PROTOCOL_NEGOTIATION 环境变量 configuration-documentation 环境变量:仅 v2 MCP 客户端运行时使用,控制是否探测服务器的 MCP 协议修订 2026-07-28;legacy 保持所有服务器旧握手,auto 探测支持该版本的服务器类型;未设置时探测但可能跳过部分类型。
mcp_env_sdk_generation MCP_SDK_GENERATION 环境变量 configuration-documentation 环境变量:固定本进程连接 MCP 服务器所使用的 MCP 客户端运行时代际:v1(基于 MCP TypeScript SDK 1.x)或 v2(基于 MCP TypeScript SDK 2.0);未设置时默认使用 v2。
otel_env_log_assistant_responses OTEL_LOG_ASSISTANT_RESPONSES 环境变量 configuration-documentation 环境变量:设为 1 在 assistant_response OpenTelemetry 日志事件中包含模型响应文本;未设置时沿用 OTEL_LOG_USER_PROMPTS 的取值;设为 0 即使开启用户提示日志也保留响应脱敏。
otel_env_log_tool_content OTEL_LOG_TOOL_CONTENT 环境变量 configuration-documentation 环境变量:设为 1 在 tool.output OpenTelemetry span 事件中包含工具内容;span 属性在各自闸门下携带工具内容;需要 tracing;默认关闭以保护敏感数据。
otel_env_log_tool_details OTEL_LOG_TOOL_DETAILS 环境变量 configuration-documentation 环境变量:设为 1 在 OpenTelemetry 中纳入工具输入参数、MCP 服务器名、用户编写的工作流名、工具失败原始错误串、api_refusal 事件的拒绝类别,以及成本与 token 指标上的真实代理/技能/插件/MCP 服务器名等细节。
otel_env_log_user_prompts OTEL_LOG_USER_PROMPTS 环境变量 configuration-documentation 环境变量:设为 1 在 OpenTelemetry 追踪与日志中包含用户提示文本;默认关闭(提示被脱敏);可在 shell、用户设置或托管设置中配置。
otel_env_metrics_include_repository OTEL_METRICS_INCLUDE_REPOSITORY 环境变量 configuration-documentation 环境变量:设为 true 用 vcs.* 属性为 OpenTelemetry 指标与事件标注会话仓库(默认排除);需 Claude Code v2.1.269 或更高版本。
otel_env_metrics_include_session_id OTEL_METRICS_INCLUDE_SESSION_ID 环境变量 configuration-documentation 环境变量:设为 false 将会话 ID 从指标与事件属性中排除(默认包含)。
otel_env_metrics_include_version OTEL_METRICS_INCLUDE_VERSION 环境变量 configuration-documentation 环境变量:设为 true 在指标与事件属性中包含 Claude Code 版本(默认排除)。
otel_env_resource_include_host OTEL_RESOURCE_INCLUDE_HOST 环境变量 configuration-documentation 环境变量:设为 1 将机器名与 ID 作为 host.name、host.id 加入 OpenTelemetry 资源属性(默认排除);需 Claude Code v2.1.326 或更高版本。
env_max_subagent_spawn_depth CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH 环境变量 configuration-documentation 环境变量:主对话之下允许的子代理层级数量(默认 3);默认时子代理可再派生自己的子代理,第三层子代理不能继续派生;设 1 关闭嵌套。
env_subagent_effort CLAUDE_CODE_SUBAGENT_EFFORT 环境变量 configuration-documentation 环境变量:子代理与工作流代理的默认 effort 级别:low、medium、high、xhigh 或 max;不适用于 fork、forked 技能或队友;需 Claude Code v2.1.315 或更高版本。
env_plugin_dirs CLAUDE_CODE_PLUGIN_DIRS 环境变量 configuration-documentation 环境变量:为本会话加载的插件目录,每个目录按 --plugin-dir 标志的方式加载;Unix 用 :、Windows 用 ; 分隔多个路径;须为绝对路径或以 ~ 开头,相对路径被跳过;需 Claude Code v2.1.28x 版本。
env_plugin_keep_marketplace_on_failure CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE 环境变量 configuration-documentation 环境变量:设为 1 在插件市场刷新无法连通或认证远程时,跳过重新克隆并继续使用既有市场检出;适用于离线或气调环境(重新克隆会同样失败)。
env_plugin_seed_dir CLAUDE_CODE_PLUGIN_SEED_DIR 环境变量 configuration-documentation 环境变量:一个或多个只读插件种子目录路径(Unix :、Windows ; 分隔);用于把预置插件目录打包进容器镜像;Claude Code 启动时从这些目录注册市场并使用预缓存插件。
env_disable_prompt_caching_haiku DISABLE_PROMPT_CACHING_HAIKU 环境变量 configuration-documentation 环境变量:设为 1 为默认 Haiku 模型(无论其在何处运行)关闭提示缓存。
env_disable_prompt_caching DISABLE_PROMPT_CACHING 环境变量 configuration-documentation 环境变量:设为 1 为所有模型关闭提示缓存;优先级高于按模型分别设置的开关。
doc_computeruse_native_build_validation Computer-use workflow: validate a native build official-public-documentation-entry Computer-use 官方公开典型工作流:在 macOS 上启动并验证原生桌面构建。边界:只记录场景用途,不收录内部 GUI 实现或截屏协议细节。
doc_computeruse_layout_bug_repro Computer-use workflow: reproduce a layout bug official-public-documentation-entry Computer-use 官方公开典型工作流:复现界面布局缺陷(layout bug),由代理查看屏幕状态。边界:场景级概念,不收录内部渲染机制。
doc_computeruse_simulator_flow_test Computer-use workflow: test a simulator flow official-public-documentation-entry Computer-use 官方公开典型工作流:在模拟器中测试一条交互流程。边界:仅记录官方适用场景,模拟器内部运行机制不入库。
env_tier_picker_model_name ANTHROPIC_DEFAULT_{HAIKU,OPUS,SONNET,FABLE}_MODEL_NAME:内置档位模型在 /model 选择器固定行的显示名称 official-public-documentation-entry 官方 env-vars 文档 Model configuration 小节:为 Haiku / Opus / Sonnet / Fable 四个内置档位的固定模型行设置选择器显示名称;未设置时,若 Claude Code 识别到固定模型 ID 则显示模型名,否则显示固定 ID。
env_tier_picker_model_description ANTHROPIC_DEFAULT_{HAIKU,OPUS,SONNET,FABLE}_MODEL_DESCRIPTION:内置档位模型在 /model 选择器固定行的显示描述 official-public-documentation-entry 官方 env-vars 文档 Model configuration 小节:设置四个内置档位固定模型行在选择器中的显示描述;未设置时回退为以 Custom Haiku model 等开头的默认描述。
env_tier_picker_model_capabilities ANTHROPIC_DEFAULT_{HAIKU,OPUS,SONNET,FABLE}_MODEL_SUPPORTED_CAPABILITIES:内置档位固定模型逗号分隔的能力清单 official-public-documentation-entry 官方 env-vars 文档 Model configuration 小节:以逗号分隔列出固定模型支持的能力(例如 effort、thinking);该清单描述模型档位能力,与 availableModels 白名单、自定义模型选项的描述字段分开标注。
doc_project_usage_limit_auto_continue_setting Project usage-limit auto-continue: thread or conversation resumes on quota reset by default; the project-wide General setting can disable it official-doc-derived 官方 Projects 文档:线程或项目对话触及五小时或周额度上限后等待,默认在额度重置后自动继续;Project settings > General 中的 Continue threads automatically when usage limits reset 可按整个项目关闭;关闭后需要在重置完成后向线程或对话发送消息才会继续。
doc_chrome_tab_group_close_lifecycle Chrome 标签组会话结束关闭生命周期(Tab group close lifecycle) official-public-docs-derived 本地会话中扩展把浏览器任务标签归入与会话绑定的标签组:执行 /clear 会关闭标签组及打开页面,除非仍有跨 clear 存活的任务在运行;/resume、退出会话,或有存活任务时执行 /clear,则仅关闭只剩空新标签页的组,用户仍在阅读的页面保留。
doc_chrome_install_prompt_choices Chrome 扩展安装提示三选项(Install extension / Not now / Don't ask again) official-public-docs-derived 交互会话未检测到扩展时弹出 “Claude wants to use your browser” 提示,每会话至多一次:Install extension 打开扩展安装页并引导设置,连接后在同会话启用浏览器工具;Not now 不带浏览器工具继续,后续会话可再问;Don't ask again 停止提示,仍可经 /chrome 设置。组织经 deniedMcpServers 阻断 claude-in-chrome,或 managed-mcp.json 未放行 Chrome 时,提示不出现。
doc_chrome_browser_compatibility Chrome 集成浏览器兼容范围(Chrome / Edge / 其他 Chromium) official-public-docs-derived 集成支持 Google Chrome 与 Microsoft Edge;也能检测扩展并在 Brave、Arc、Vivaldi、Opera 等其他 Chromium 系浏览器中建立连接;官方未列入兼容范围的浏览器不受支持。
cap_openai_structured_outputs OpenAI Structured Outputs(严格 JSON Schema 约束输出能力) official-hosted-api-tool Structured Outputs 通过 response_format 的 json_schema(strict 模式)约束解码过程,使模型返回的 JSON 符合所提供的 JSON Schema;Chat Completions 与 Responses API 均可使用。该能力保证输出语法与 Schema 结构一致,不保证内容事实正确,也不免除安全拒绝或业务校验。
doc_settings_precedence_single_value_highest_lists_merge 设置优先级合并规则:单值键取最高层级取值,列表键跨文件合并(如 permissions.allow) official-public-docs-derived 官方设置文档区分两类键在优先级栈中的合并行为:单值键(例如 model)取优先级最高层级的取值;列表键(例如 permissions.allow)跨各设置文件合并而非相互覆盖。层级自高向低包含托管设置、--settings 命令行参数、.claude/settings.local.json、.claude/settings.json 与 ~/.claude/settings.json;多数编辑对运行中会话生效。边界上 CLAUDE.md 属于模型解读的项目指引,settings.json 中的权限规则与 hook 由宿主强制执行。
doc_code_mode_subagent_repl_tool_requirement Code Mode 子代理需在 tools 列表加入 REPL 才能启用代码模式 official-public-docs-derived 子代理声明 tools 列表时须包含 REPL(例如 Read, Bash, REPL),该子代理才会使用 Code Mode;缺少 REPL 时不进入代码模式执行路径。
doc_desktop_scheduled_task_schedule_presets 桌面本地定时任务调度预设:Hourly/Daily/Weekdays/Weekly/Manual/Custom official-public-docs-derived 本地任务预设包含 Hourly、Daily、Weekdays、Weekly、Manual 与 Custom;Custom 为本地时间 cron 表达式,周日记为 0 而非 7,表单拒绝快于每小时一次的表达式。Manual 不排期,仅通过 Run now 触发;会话中 Claude 可设置未来单次运行或更短间隔。
doc_vscode_attach_selection_setting_context VS Code Attach Selection:选中文本自动进入上下文,可关闭或移除单项选择 official-doc-derived VS Code 面板默认把编辑器选中文本作为上下文;Attach Selection 设置可关闭该行为(需 Claude Code v2.1.300 或更高版本);要移除某一项选择,点击选择行数旁的 X。
doc_vscode_latex_math_panel_rendering VS Code 面板 LaTeX 数学渲染:独立行块公式与同行内联公式规则 official-doc-derived 展示型数学公式为独立成行的 $$ … $$ 或 [ … ] 块,或 math 语言围栏代码块;内联公式为在同一行内开闭的 $…$ 或 (…);面板不把行内公式误判为块级数学。
doc_otel_enduser_tenant_resource_attributes OTel end-user and tenant resource attributes for per-call tool and MCP attribution official-public-docs-derived Official Agent SDK observability docs: inject enduser.id and tenant.id as resource attributes on each query() call so tool calls and MCP activity can be attributed to the application end user; the CLI also attaches identity attributes from the credential used by the request. This entry records the public resource-attribute attribution boundary only; identity resolution, exporter transport and internal telemetry algorithms are not expanded.
cap_adk_multi_agent ADK Multi-Agent 层级组合与委派 official-documentation-capability ADK 支持多个专业化代理按层级组合,构建模块化、可扩展的多代理应用,并完成复杂协调与任务委派。
cap_adk_deployment_targets ADK 部署目标:本地、Vertex Agent Engine、Cloud Run、Docker、GKE official-documentation-capability ADK 代理可容器化后在本地运行,部署到 Vertex AI Agent Engine,或通过 Cloud Run、Docker、Google Kubernetes Engine(GKE)接入自定义基础设施。
doc_desktop_ios_duo_simulator_fold_pose_and_xcode_skill_export iPhone Duo simulator: fold poses, hinge angle and Xcode agent-skill export prompt official-public-documentation-entry 官方 iOS 模拟器文档:iPhone Duo 模拟器支持 closed、half open、open 三种折叠姿态以及 1–179 度铰链角度;需要 Claude Desktop 4.29+ 与 Xcode 27.1+ iOS 模拟器运行时。布局检查前 Claude 可能提示把 Xcode 自带 agent skills 导出到个人技能文件夹,这些技能随后会在其他项目中加载。
tmux_terminal_passthrough_extended_keys_config tmux allow-passthrough、focus-events 与 extended-keys 终端配置 official-doc-derived 官方 terminal-config 文档:Claude Code 运行在 tmux 内时,Shift+Enter 默认提交而非插入换行,桌面通知也无法到达外层终端。~/.tmux.conf 设置 allow-passthrough on、focus-events on、extended-keys on 以及 terminal-features xterm*:extkeys;需 detach/reattach 并重启 Claude Code 生效。allow-passthrough 还支持可见面板向 Ghostty、Kitty 或 iTerm2 转发通知;Mod Image 绘制额外需要 focus-events 及文档列出的 tmux 条件。
doc_custom_theme_json_file ~/.claude/themes/.json 自定义主题文件(name、base、overrides) official-doc-derived 官方 terminal-config 文档:/theme 的 New custom theme 交互式创建主题;文件名去掉 .json 即为主题 slug,主题偏好存储为 custom:。可选字段 name 为显示标签,base 为内置预设(dark、light、dark-daltonized、light-daltonized、dark-ansi、light-ansi),overrides 将颜色令牌名映射到颜色值;未列出的令牌回落到基础预设。颜色值接受 #rrggbb、#rgb、rgb(r,g,b)、ansi256(n) 或 ansi:<标准 ANSI 颜色名>;未知令牌与无效颜色值被忽略。Claude Code 不控制终端应用自身的配色方案。
cmd_debug_session_logging /debug [issue]: session debug logging and log-guided diagnosis official-doc-derived In-session /debug [issue] enables debug logging for the current session and prompts Claude to diagnose using the log output and settings paths. It complements /context, /status, /mcp and doctor-style setup checks; it is a diagnostic command and does not grant tool permission or bypass approval.
doc_cli_doctor_vs_session_checkup claude doctor read-only terminal diagnostics versus in-session /doctor fix-proposing checkup official-doc-derived claude doctor runs from the terminal and prints read-only installation and settings diagnostics without starting a session; the in-session /doctor command runs the fuller checkup, proposes fixes and asks before applying them. Checkup inputs cover invalid settings files, unused extensions, duplicate subagent names in the same directory and checked-in CLAUDE.md content derivable from the codebase.
doc_feature_availability_provider_subscription Feature availability by authentication provider and subscription tier official-doc-derived Authentication and provider determine which features Claude Code can reach. Core CLI/Agent SDK, VS Code and JetBrains extensions, subagents, hooks, commands, skills, CLAUDE.md memory, plugins, MCP servers, checkpoints, sandboxing, workflows, OpenTelemetry metrics and managed settings are available across providers; claude.ai-sourced MCP connectors, tool search, subagent backend choice, some commands and voice depend on provider or model. Cloud sessions, mobile, Desktop, cloud scheduled tasks, Ultrareview, Code Review, PR Steward, Approvals, Remote Control, Chrome extension, Computer use, artifacts and voice dictation require a claude.ai subscription or a specific plan. This matrix records availability only, not a provider capability ranking.
doc_managed_settings_delivery_mechanism_scope 托管设置投递机制与会话适用范围 official-public-docs-derived 官方托管设置文档列出四种投递机制:claude.ai 控制台或自托管网关下发的服务端托管设置、MDM/操作系统级策略、文件形式的 managed-settings.json、以及 Windows HKCU 注册表项。终端、IDE 扩展、桌面 Code 标签页与 Agent SDK 读取设备侧策略;托管云会话依赖服务端策略;Claude Tag 不接收服务端托管设置;Cowork 在本机读取设备上的 MDM/文件策略。
doc_aws_platform_model_alias_pin_deployment Claude Platform on AWS 团队部署显式钉选模型 ID official-public-docs-derived Claude Platform on AWS 的默认 fable、opus、sonnet、haiku 别名解析到内置默认版本,可能滞后最新发布;团队部署应设置 ANTHROPIC_DEFAULT_FABLE_MODEL、ANTHROPIC_DEFAULT_OPUS_MODEL、ANTHROPIC_DEFAULT_SONNET_MODEL 与 ANTHROPIC_DEFAULT_HAIKU_MODEL 为显式模型 ID,避免新版本一次性切换全体成员所用模型。
cap_adk_planner ADK Planner 规划器(BuiltInPlanner / PlanReActPlanner) official-documentation-capability 可选 BasePlanner 在执行前完成多步推理与规划:BuiltInPlanner 复用模型内置规划或思考能力;PlanReActPlanner 先输出计划再执行动作并逐步给出推理。
doc_setup_alpine_musl_runtime_dependency Alpine/musl 发行版安装前置依赖:bash、curl 与 bash/zsh Shell official-doc-derived Alpine 及其他 musl 基础发行版默认不带 bash 与 curl;安装命令需要 bash、curl,Claude Code 运行需要 bash 或 zsh;缺少依赖时安装命令报 not found。
doc_troubleshooting_fullscreen_scroll_speed_control 全屏渲染滚轮速度:/scroll-speed 与 CLAUDE_CODE_SCROLL_SPEED 控制每格滚动行数 official-doc-derived 全屏渲染由 Claude Code 自身滚动会话;/scroll-speed 调整每个滚轮 notch 对应的行数并保存,环境变量 CLAUDE_CODE_SCROLL_SPEED 提供对应配置;PgUp/PgDn 可半屏滚动,/tui default 切回经典渲染。
doc_troubleshooting_wsl_crossfs_search_performance_boundary WSL 跨文件系统搜索性能:盘读惩罚导致匹配偏少,doctor 仍显示 Search OK official-doc-derived 在 WSL 跨文件系统工作时,磁盘读取性能惩罚可能使搜索工具返回少于预期的匹配;这种情况下 claude doctor 仍可能把 Search 标记为 OK;可安装平台 ripgrep 并以 USE_BUILTIN_RIPGREP=0 使用系统二进制。
doc_troubleshooting_integrated_terminal_gpu_renderer_garbling 编辑器集成终端字符乱码:GPU 渲染器原因,/terminal-setup 关闭 gpuAcceleration official-doc-derived VS Code、Cursor 或 Devin Desktop 集成终端出现方框、涂抹或错误字形时,通常由终端 GPU 渲染器引起;在 Claude Code 内运行 /terminal-setup 将 terminal.integrated.gpuAcceleration 设为 off,也可手动设置该编辑器选项。
doc_troubleshooting_memory_usage_2_5gb_warning_restart_continue 高 CPU/内存排障:2.5GB 堆内存警告,重启后 --continue 恢复会话 official-doc-derived 大型代码库可能带来显著资源消耗;排障建议包括定期 /compact、在主要任务之间重启 Claude Code;会话堆内存超过 2.5GB 会出现关键内存用量警告,需重启进程并运行 claude --continue 在新进程恢复对话。
cap_openai_agents_results Agents SDK · Results(运行结果、回放项与中断状态) apache-2.0-verify-package-metadata Runner.run 与 run_sync 返回 RunResult,run_streamed 返回 RunResultStreaming;二者继承 RunResultBase,暴露 final_output、new_items、last_agent、raw_responses、to_state() 等共享表面,流式结果另提供 stream_events、current_agent、is_complete 与 cancel;new_items 携带代理、工具、移交与审批元数据,interruptions 保存待审批与可恢复快照。
capability_qwen_agent_planning_memory Qwen-Agent Planning and Memory Framework Capability open-source-agent-framework-verify-repository Qwen-Agent 基于 Qwen 的指令跟随、工具使用、规划与记忆能力开发 LLM 应用;本节点只记录框架级规划/记忆能力,与 Function Calling 工具调用能力节点并列,不推断持久记忆存储实现或未公开会话机制。
env_mcp_client_secret MCP_CLIENT_SECRET 预配置凭证 OAuth 客户端密钥环境变量 official-doc-derived 官方 env-vars 文档:为需要预配置凭证的 MCP 服务器提供 OAuth client secret;配合 --client-secret 可避免添加服务器时的交互式密钥提示。该变量仅承载接入凭证配置,不等同于服务器授权认证结果。
env_mcp_discovery_cache_strikes MCP_DISCOVERY_CACHE_STRIKES 发现缓存连续刷新失败丢弃阈值 official-doc-derived 官方 env-vars 文档:启动时若发现缓存条目老于 MCP_DISCOVERY_CACHE_TTL_S,Claude Code 在后台刷新;该变量设定连续刷新失败多少次后丢弃缓存条目,并在下一次启动直连服务器,默认 1。网络偶发断线时可调高,避免一次刷新失败即丢弃条目;要求 Claude Code v2.1.238 或更高版本。
env_mcp_oauth_callback_port MCP_OAUTH_CALLBACK_PORT OAuth 重定向回调固定端口环境变量 official-doc-derived 官方 env-vars 文档:为预配置凭证方式添加 MCP 服务器时,固定 OAuth 重定向回调端口;作为命令行 --callback-port 的环境变量替代方案。端口绑定与回调可达性属于本地客户端连接边界。
cap_chrome_native_host_computer_name_labeling Chrome 原生宿主上报计算机名,连接浏览器按计算机而非 Browser 1/Browser 2 标注 official-changelog-derived-entry Changelog 2.1.332:Claude in Chrome 的原生消息宿主上报计算机名称;已连接浏览器按计算机标注,而不是通用的 Browser 1 / Browser 2。该条目只记录浏览器识别标签行为,不涉及站点权限、认证或设备凭据。
cap_background_shell_command_time_limit 后台 Bash/PowerShell 命令时限:run_in_background timeout 默认 30 分钟、上限 2 小时;停止时通知 Claude official-changelog-derived-entry Changelog:后台 Bash 与 PowerShell 命令按 run_in_background 配置的 timeout 停止;默认 30 分钟,最大 2 小时;命令被停止时 Claude 会收到通知。该生命周期时限区别于内存压力回收机制,也不同于 MCP serve 的 backgroundOutputPath 输出路径。
doc_mcp_declared_elicitation_form_url_modes MCP 连接客户端声明的 elicitation 模式:2026-07-28 及旧版 stdio/SSE/HTTP/WebSocket 配置连接声明 form 与 url 两种模式;其他旧版连接仅声明裸 elicitation 与 form 模式 official-public-docs-derived 官方 MCP 文档:客户端连接时发送的 capabilities 告知服务器可请求哪些 elicitation 模式。协议版本 2026-07-28 的连接,以及 2025-11-25 及更早版本下用户配置中的 stdio、SSE、HTTP、WebSocket 服务器连接,声明 elicitation: {form: {}, url: {}},服务器可请求两种模式;该行为要求 Claude Code v2.1.287 或更新。其余旧版本连接(如 claude.ai 连接器)声明裸 elicitation: {},只允许 form 模式;Java MCP SDK 0.17.0 及更早版本可能拒绝同时含 form 与 url 的声明。
env_disable_error_reporting DISABLE_ERROR_REPORTING 错误报告退出开关 official-doc-derived 环境变量:任意非空值(包括 0 或 false)即退出错误报告;取消设置变量后才能恢复上报。该开关只控制错误报告,不等同于关闭 OpenTelemetry 导出;是否具备上报资格仍受订阅与提供方边界约束。
feat_plugin_validate_ts_hook_check_and_engine_create_nouns claude plugin validate 2.1.323:TypeScript hooks 模块类型检查与 engine.create $ 名词审计 official-public-changelog-entry 官方 2.1.323 changelog:claude plugin validate 对插件 TypeScript hooks 模块执行类型检查;每条发现为警告,--strict 模式下使校验失败。同一版本的校验输出纳入 Mod engine.create hook 添加、扣留或替换的 $ 名词。本条只记录公开审计表面,不收录插件内部源码结构、类型检查算法或未公开实现。
cap_adk_observability ADK OpenTelemetry metrics, logs and traces observability official-documentation-capability ADK 提供厂商中立的指标采集,实现 OpenTelemetry GenAI 语义约定并以 OTLP 格式导出;指标覆盖代理生命周期、工作流步骤与工具执行,可接入兼容 OTel 的监控后端。日志、追踪与指标在 ADK 文档中分别建模。
env_otel_exporter_prometheus_host_port OTEL_EXPORTER_PROMETHEUS_HOST / OTEL_EXPORTER_PROMETHEUS_PORT: Prometheus 指标抓取端点绑定变量 official-public-docs-derived Official settings-reference and monitoring documentation: these two variables bind the HTTP host and port used when the metrics exporter selects Prometheus. They are recorded as configuration variables only; Prometheus scrape implementation, network policy and collector deployment remain outside the ontology. The variables belong to the OpenTelemetry exporter destination group covered by the project/local settings precedence boundary.
cap_openai_multi_agent_orchestration Agents SDK · 多代理编排(Handoff 与管理器模式) open-source-sdk-documented-capability Agents SDK 区分代理间交接与管理器式编排:Handoffs 将对话和历史交给专项代理;管理器模式由主控代理或编排结构协调多个专项代理。该能力描述多代理协作组织方式,不等同于具体模型排名或代理能力强弱。
env_force_autoupdate_plugins FORCE_AUTOUPDATE_PLUGINS:主更新器关闭时强制插件自动更新 official-doc-derived FORCE_AUTOUPDATE_PLUGINS=1 在主自动更新器经 DISABLE_AUTOUPDATER 关闭时仍强制插件自动更新;边界只覆盖插件更新策略,不改变插件市场信任、安装来源或手动 claude plugin update。
env_ccr_force_bundle CCR_FORCE_BUNDLE:claude --cloud 强制打包上传本地仓库 official-doc-derived CCR_FORCE_BUNDLE=1 强制 claude --cloud 打包并上传本地仓库,而不是从远程仓库克隆;条目记录云会话仓库获取方式选择,不收录上传凭证、压缩内部结构或远端进程。
entry_2_1_332_default_1m_context_window_providers Opus 4.7+ 与 Fable 在 Bedrock/Vertex/Foundry/网关默认 1M 上下文窗口;CLAUDE_CODE_DISABLE_1M_CONTEXT=1 保留 200K official-document-derived-entry Opus 4.7+ 及 Fable 在 Bedrock、Vertex、Foundry 与 Claude 应用网关默认使用 1M 上下文窗口,不带 [1m] 后缀;设置 CLAUDE_CODE_DISABLE_1M_CONTEXT=1 可保留 200K。仅记录窗口默认值与开关边界,不推断模型服务内部配额。
entry_2_1_332_bedrock_vertex_unavailable_model_remembered_day Bedrock/Vertex 启动模型检查:账号不可用模型记忆约一天,不再每次启动复查 official-document-derived-entry Bedrock 与 Vertex 启动时检查到账号不可用的模型会被记住约一天,避免每次启动重复检查;仅记录缓存行为与时效边界,不收录凭据或内部模型目录。
env_otel_metric_export_interval_var OTEL_METRIC_EXPORT_INTERVAL: OpenTelemetry metrics 导出间隔环境变量 official-public-docs-derived 官方监控/可观测性文档列出的标准 OTel SDK 配置变量,控制指标信号导出间隔;从项目与本地设置生效。条目仅记录公开配置口径与边界,不收录导出器实现、采集后端或未公开采样算法。
cap_adk_human_input ADK human-in-the-loop input node official-documentation-capability ADK 图工作流可加入人类输入(HITL)节点:用于数据录入、决策核验或操作授权;节点暂停执行直到收到用户回复,回复再作为输入传递给下一节点。Python 使用 RequestInput 与提示词,TypeScript 中对应 RequestInput 产出。
cap_adk_retry_timeout ADK node retry policy and timeout official-documentation-capability ADK 可为图工作流节点附加重试策略与超时设置:节点失败时按重试策略再次执行,直至成功或达到最大尝试次数,之后失败才向上游传播;未配置重试策略的节点不自动重试。TypeScript、Java、Kotlin 依赖的工作流 API 属实验性,生产使用前需核对官方状态。
cap_adk_dynamic_workflow ADK dynamic programmatic workflow official-documentation-capability ADK 动态工作流以编程方式定义流程,作为静态图路径结构的灵活替代:开发语言可直接构建步骤与节点编排,配合节点注解生成运行时包装;适合需要按运行条件动态组织步骤的代理工作流。
entry_2_1_332_artifact_db_update_remove_single_field Artifact database update can remove a single field instead of rewriting the whole document official-changelog-derived Official 2.1.332 changelog improvement: an Artifact database update can now remove a single field instead of rewriting the whole document. This records the public write-capability boundary; internal database schema, storage layout and persistence implementation are excluded.
cap_openai_agents_as_tools Agents SDK · Agents as Tools(代理作为可调用工具) open-source-sdk-documented-capability 除完整 Handoff 外,SDK 可把另一个代理暴露为普通可调用工具,在不接管整段对话与历史的情况下被主代理调用;该模式与 Function Tool 工具目录及多代理编排衔接。
cap_openai_agents_model_provider Agents SDK · 模型提供方与模型形态选择(Responses / Chat Completions / 非 OpenAI 提供方) open-source-sdk-documented-capability SDK 内置 OpenAI 模型路径:OpenAIResponsesModel 走 Responses API(默认 HTTP,可切换 WebSocket 传输),OpenAIChatCompletionsModel 走 Chat Completions;模型可按 Agent、RunConfig 或默认提供方选择,并提供接入非 OpenAI 提供方的扩展点。
cap_adk_agent_routing ADK RoutedAgent runtime agent routing official-documentation-capability ADK RoutedAgent 提供运行时代理路由:路由函数接收可用代理映射与当前上下文,返回本次调用应执行的代理键;支持错误回退等路由策略。它区别于 Sequential/Parallel 等固定流水线工作流代理,也区别于 LLM 自主选择子代理的委派。
cap_adk_model_routing ADK RoutedLlm runtime model routing official-documentation-capability ADK RoutedLlm 为 LlmAgent 提供运行时模型选择:路由函数接收可用模型映射与当前 LlmRequest,返回本次调用使用的模型键;仅模型随路由变化时使用 RoutedLlm,若还需切换指令、工具或子代理则使用 RoutedAgent。所选模型在产出首个响应前失败时,路由函数按错误上下文再次参与回退选择。
cap_adk_service_registration ADK custom service registration for sessions, artifacts, memory and A2A stores official-documentation-capability ADK 服务注册机制允许接入自定义会话、制品、记忆与 Agent2Agent 任务存储后端;简单构造器服务可通过 services.yaml 声明,需要初始化或复杂逻辑的服务可通过 services.py 注册。本条目只记录公开文档描述的注册类别与配置方式,不收录内部存储密钥或实现常量。
cap_adk_a2a_reliability_extension ADK A2A extension for message and remote-agent reliability official-documentation-capability ADK 的 A2A 可靠性扩展更新 A2aAgentExecutor 执行实现,用于避免用户消息在任务历史中重复、防止远程代理输出被误分类为思考事件,并保留嵌套子代理树中的远程 ADK 输出;扩展说明代理间 A2A 通道与 MCP 工具连接通道分属不同建模边界。
cap_gemini_cli_authentication_methods Gemini CLI Google authentication entry methods official-documentation-capability Gemini CLI 通过 Google 服务完成认证;公开文档列出交互式 Google 登录、Gemini API 密钥、Vertex AI、无头(非交互)模式与 Google Cloud Shell 等认证入口。账号、凭证格式、区域可用性与配额仍以 Google 官方文档和对应云服务条款为准;本条目不记录密钥、令牌或凭证解析内部常量。
doc_scheduled_loop_detach_keeps_running 后台附着会话分离而不自停循环(detach without stopping a self-paced loop) official-doc-derived 官方定时任务文档:附着到后台会话且 Claude 空闲时,在空提示框按两次 Ctrl+C 分离会话;自节奏循环仍在等待下一次迭代并按计划触发。若希望停止循环,应在分离前按 Esc。固定间隔循环不随 Ctrl+C/Esc 停止,需显式取消。条目只记录公开的分离与停止边界,不收录后台进程调度、唤醒队列内部实现或凭证流程。
doc_scheduled_loop_cron_interval_conversion 会话内循环间隔到 cron 表达式的单位、取整与步进边界(interval to cron conversion) official-doc-derived 官方定时任务文档:提供间隔时,/loop 将提示词间隔转换为 cron 表达式、安排作业并确认节拍与作业 ID。支持单位 s、m、h、d;秒按 cron 一分钟粒度向上取整;无法对齐到干净 cron 步进的间隔(如 7m、90m)取整到最近的可用步进,Claude 会说明所选结果。条目只记录公开时间表达式转换规则,不收录调度器内部队列或后台作业持久化实现。
env_otel_metrics_temporality_preference OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: metrics temporality preference, default delta; cumulative for backends expecting cumulative official-public-docs-derived Official monitoring documentation: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE sets the metrics temporality preference. The default is delta; set cumulative when the backend expects cumulative temporality. The entry records this public SDK configuration boundary only, not exporter internals, collector deployment, or backend retention.
doc_cache_gateway_cache_control_marker_boundary Gateway cache_control marker propagation boundary official-public-docs-derived 官方 prompt-caching 参考:请求经过 LLM 网关时,cache_control 标记是否被原样保留决定系统块与对话缓存。网关原样转发标记时,系统块与对话按提供商端点规则缓存;若网关以 400 且错误名指向 cache_control 拒绝标记请求,Claude Code 会把标记从系统块移到最后一条对话消息并保留到退出,系统块按未缓存输入计费、对话仍可缓存;若网关成功响应但删除标记,整段对话历史每轮都按未缓存输入计费,把块形式系统内容转成纯字符串的网关也会同样丢掉标记。兼容不等于官方认证或相同服务条款。
fix_hook_tool_nontext_scalar_output_api400 工具/Hook 对象与标量非文本结果触发 API 400 的会话恢复修复 official-public-docs-derived 工具或 Hook 返回对象、数字、布尔值而非文本时,原先会导致 API 400;修复覆盖 resumed sessions,避免恢复会话沿旧路径再次把非文本结果变成请求错误。边界:只记录公开 changelog 的输出类型契约与修复范围,不推断内部序列化实现。
cap_adk_context_caching ADK Context Caching model-side context reuse official-public-docs-derived ADK Context Caching caches reusable long instructions or large datasets on a supporting generative model, including Gemini 2.0 and newer models, so the data need not be resent on every agent request. ContextCacheConfig is experimental and its API or behavior may change.
cap_adk_context_compaction ADK EventsCompactionConfig automatic context compression official-public-docs-derived ADK context compression is governed by EventsCompactionConfig rules. Token-based compaction is checked before a model call in SingleFlow by CompactionRequestProcessor and checked again in the Runner, reducing processing latency as session context grows.
cap_adk_ambient_agents ADK event-triggered ambient agents official-public-docs-derived Ambient ADK agents run in response to an event or newly available data rather than human input. Because they run without human interaction, their outputs must be routed to a notification channel; the /run endpoint can create sessions automatically and connect an external HTTP client.
cap_openai_agents_repl Agents SDK · REPL 交互终端演示循环 open-source-sdk-documented-capability run_demo_loop 提供终端内快速、交互式的代理行为测试:循环读取用户输入并在轮次之间保留对话历史;默认采用流式模式展示代理输出。
cap_openai_agents_testing Agents SDK · 与提供方无关的确定性测试工具集 open-source-sdk-documented-capability SDK 提供确定性、提供方无关的测试工具,覆盖代理工作流、沙箱会话、Realtime 会话与语音管线;工具在内存中运行,不发起模型、沙箱提供方或 Realtime API 请求,并记录 SDK 自身管理的规范化交互。示例配方在单次运行中关闭追踪,避免测试活动上传到默认追踪处理器。
cap_openai_agents_usage_metrics Agents SDK · Token 用量与成本计量 open-source-sdk-documented-capability 每次代理运行自动追踪 Token 用量,可从运行上下文读取,用于监控成本、强制限额或记录分析;记录包含 LLM API 调用次数、输入/输出/总 Token、逐请求用量条目,以及缓存命中与缓存写入 Token 等明细。
cap_openai_agents_configuration Agents SDK · SDK 级默认配置 open-source-sdk-documented-capability Configuration 集中管理应用启动时通常一次性设置的 SDK 默认项,包括默认 OpenAI 密钥与客户端、默认 OpenAI API 形态、追踪导出默认值与日志行为;这些默认项也作用于沙箱工作流,但沙箱工作区、沙箱客户端与会话复用另行配置,代理或单次运行的专属配置与本层级分开。
doc_scheduled_task_cron_expression_reference CronCreate 五字段 cron 表达式语法参考 configuration-documentation CronCreate 接受标准五字段表达式:minute hour day-of-month month day-of-week;各字段支持通配符 、单值、/step 步进、范围与逗号列表;周日使用 0 或 7;不支持 L、W、? 以及 MON/JAN 名称别名。day-of-month 与 day-of-week 同时受约束时,任一字段匹配即视为日期匹配,遵循 vixie-cron 语义。边界:本条只记录公开调度语法与支持范围,不收录内部调度器算法、抖动实现或任务持久化细节。
doc_desktop_scheduled_task_worktree_isolation 桌面定时任务 Worktree 隔离选项:独立 Git 工作树运行 official-public-docs-derived 本地定时任务默认对工作目录当前状态运行,包括未提交改动;在任务 Edit 表单选择 Worktree 后,每次运行使用独立隔离的 Git 工作树。该选项仅当任务文件夹属于 Git 仓库时可用。
doc_desktop_scheduled_task_detail_management 桌面定时任务详情页管理:Run now、启停、历史与允许权限 official-public-docs-derived 本地任务详情页支持 Run now 立即运行、Active/Paused 暂停恢复、Edit 修改提示/计划/文件夹等设置;History 列出过去运行与跳过原因,Always allowed 面板查看并撤销已保存的工具批准。删除任务会归档其创建的会话,而不是删除会话。
entry_2_1_288_prompt_draft_recovery_up_arrow Ctrl+C 清空提示词后的草稿恢复:空提示词按 ↑ 找回草稿(含粘贴文本与图片) official-public-changelog-entry Official 2.1.288 changelog: after a prompt is cleared with Ctrl+C, pressing Up on the empty prompt restores the draft, including pasted text and attached images. This covers terminal input draft recovery only; it does not restore sent session turns or filesystem files.
entry_2_1_326_mod_box_text_layout_props Mod Box/Text 布局属性:Box overflowX=scroll;Text maxLines 与 wrap=clip official-public-changelog-entry Official 2.1.326 changelog: a Mod Box accepts overflowX="scroll", and a Mod Text accepts maxLines and wrap="clip" for clipped wrapped text. These are Mod UI layout properties only; no internal renderer implementation, source structure, or model detail is recorded.
fix_explore_subagent_inherits_unrecognized_session_model Explore 子代理继承会话中未被识别的模型 ID,不再切换到 Opus official-public-changelog-entry Official changelog: when the session runs a model ID Claude Code does not recognize, such as a custom model behind a proxy, the Explore subagent now inherits that model instead of switching to Opus on the Claude API.
improve_monitor_final_output_exit_one_notification Monitor 脚本最终输出与退出码合并为一条通知 official-public-changelog-entry Official changelog: Monitor tool notifications now deliver a script's final output and its exit as one notification instead of two, saving a model turn.
cap_adk_managed_agents ADK Managed Agents hosted first-party agent runtime official-documentation-capability ADK ManagedAgent connects to Google-hosted first-party agents served through the Managed Agents API, available through the Gemini API and Agent Platform. ManagedAgent follows the same BaseAgent contract as other ADK agents and can run standalone or inside an ADK flow; reasoning, tools and the execution environment are operated by Google rather than the developer's own ADK process.
cap_adk_deferred_scheduling ADK Gemini model deferred scheduling for batch workloads official-documentation-capability Deferred scheduling queues non-interactive Gemini model calls such as summarization, bulk evaluation or document-processing pipelines for off-peak capacity. The RunConfig service_tier setting belongs to the run configuration rather than the model or agent; deferred scheduling requires a Gemini model configured through the Google Cloud Gemini Interactions API with use_interactions_api=True and ServiceTier.DEFERRED.
cap_adk_cancel_runs ADK graceful agent run cancellation via AbortController / AbortSignal official-documentation-capability ADK cancellation is non-destructive: events already committed to the session remain persisted. A controlled AbortSignal passed to runner.runAsync() propagates cancellation through agent execution, LLM generation, tool execution and plugin callbacks; components check abortSignal.aborted at critical lifecycle points and terminate early when cancellation is detected.
cap_adk_artifacts ADK Artifacts named versioned session- and user-scoped binary data official-documentation-capability ADK Artifacts manage named, versioned binary data associated with one interaction session or persisted for a user across sessions. An artifact is binary data identified by a filename string within a session or user scope; saving the same filename again creates a new version. Primitive method names vary by SDK language, so language-specific API documentation governs exact calls.
cap_openai_agents_lifecycle_hooks Agents SDK · Lifecycle Hooks(代理运行生命周期回调) open-source-sdk-documented-capability RunHooks / AgentHooks / RunHooksBase 在代理运行各阶段接收回调:on_llm_start、on_llm_end、on_agent_start、on_agent_end、on_handoff、on_tool_start、on_tool_end;开发者子类按需覆盖方法以观测代理循环或接入自定义处理。
cap_openai_agents_run_execution Agents SDK · Runner 执行编排(同步 / 异步 / 批量、取消与错误处理) open-source-sdk-documented-capability Runner 支持同步、异步与批量方式执行代理运行;运行可被取消,并配套错误处理与恢复路径;执行输出与回放项由 Results 对象承载。
cap_openai_agents_visualization Agents SDK · Agent Visualization(运行图生成与展示) open-source-sdk-documented-capability 基于追踪数据生成代理运行图,支持在 Notebook 与 Web 应用中展示、自定义图形并保存可视化结果;REPL 提供配套展示实用工具。
cap_openai_agents_handoff_filters Agents SDK · Handoff Filters(移交输入上下文过滤器) open-source-sdk-documented-capability 扩展层内置通用移交输入过滤器:default_handoff_history_mapper 将会话历史映射为移交输入,nest_handoff_history 嵌套保留移交历史,remove_all_tools 在移交时移除全部工具;供 Handoffs 委派前后裁剪代理上下文。
cap_openai_realtime_approvals Realtime Agent · 工具审批、中断与回放跟踪 open-source-sdk-documented-capability Realtime 代理运行内的工具审批流程,并记录中断事件与回放跟踪;与实时会话生命周期、移交和护栏并列管理。
doc_statusline_session_scoped_cache_for_slow_git Statusline git cache: session_id-scoped temp file and five-second staleness; process-id keys are invalid official-public-docs-derived Official statusline documentation: the statusline script runs frequently, and git status or git diff can be slow in large repositories. Cache Git information in a temporary file named with session_id from the stdin JSON: session_id is stable for the lifetime of one session and unique per session. Process-based identifiers such as shell PID, os.getpid() or process.pid change on every invocation and defeat the cache. Refresh only when the cache file is missing or older than five seconds. A slow script blocks the statusline update until it completes; an arriving update cancels the in-flight script. Boundary: this records public authoring guidance, not an internal cache implementation or isolation mechanism.
doc_output_style_frontmatter_optional_metadata_fields Output style YAML frontmatter: name, description, keep-coding-instructions, force-for-plugin; unknown fields ignored and parse failure falls back to filename official-public-docs-derived Official output-styles documentation: a style file may carry optional YAML frontmatter between --- markers; field names are lowercase words separated by hyphens. name appears in the /config picker and defaults to the file name; description appears in that picker; keep-coding-instructions set to true keeps the built-in software-engineering instruction section alongside the style, and defaults to false; force-for-plugin is plugin-only and set to true to apply the style automatically whenever the plugin is enabled, overriding the user outputStyle setting; when multiple enabled plugins set it, Claude Code uses the first one loaded. A misspelled field is ignored without an error. If the YAML does not parse, the style still loads under its file name with no fields set; claude --debug shows the parse error.
doc_screen_reader_review_cursor_follow_toggle Screen-reader review cursor: terminal cursor returns to prompt; NVDA+6 toggles following the earlier-output review position official-public-docs-derived Official accessibility documentation: while reading earlier output, a screen reader may follow the terminal cursor back to the prompt; Claude Code moves the terminal cursor back to the prompt after writing new text. To keep the reading place, stop the review cursor from following the terminal cursor: in NVDA press NVDA+6, and press it again to resume following. Boundary: this records the assistive-reader interaction behavior only; it does not alter turn markers, transcript ordering, approval flow or transcript content.
entry_2_1_332_settings_schema_lazy_construction 设置 schema 按需构造:仅构建当前设置文件用到的部分 official-public-changelog-entry 官方 changelog 2.1.332:启动时间与内存改进——只构建当前各设置文件实际使用的 settings schema 部分,而非全量加载;属启动性能优化,不改变设置项语义。
entry_2_1_332_plan_usage_shared_machine_read 本机编辑器窗口与非交互会话共享最近一分钟用量读取 official-public-changelog-entry 官方 changelog 2.1.332:同一台机器上的编辑器窗口与非交互会话共享最近一分钟内完成的一次 plan-usage 读取,避免各自重复调用用量端点;不跨机器共享用量数据。
doc_mcp_desktop_config_import_cli claude mcp add-from-claude-desktop:从 Claude Desktop 配置导入 MCP 服务器 official-doc-derived 官方 MCP Quickstart:CLI 提供 add-from-claude-desktop 入口,用于把 Claude Desktop 配置中的 MCP 服务器引入 Claude Code。该命令属于 CLI MCP 注册通道,与 claude.ai 账号连接器、项目级 .mcp.json 配置文件分属不同来源;条目不记录桌面配置中的服务器密钥或令牌。
doc_subagent_model_inherit_field model: inherit:子代理模型继承字段 official-doc-derived 官方子代理文档:子代理 model 字段取 inherit,或省略 model 字段时,跟随主会话模型;嵌套子代理则跟随派生它的子代理模型。该继承字段区别于显式模型别名、完整模型 ID 以及跨提供商家族别名解析;条目只记录公开字段语义与边界。
doc_setup_custom_launcher_version_retention 自定义启动器:版本脚本保留、全版本留存与 doctor 告警边界 official-doc-derived macOS/Linux 原生安装器把 ~/.local/bin/claude 管理为指向 ~/.local/share/claude/versions/ 的符号链接;用户替换为自有脚本后,该脚本在自动更新与 claude update 后仍保留。安装器无法判断启动器需要哪个版本,因此磁盘保留全部已安装版本;claude doctor 会报告启动器并非原生安装器创建。恢复托管启动器需替换为指向某个已安装版本的符号链接。条目只记录公开启动器生命周期,不记录内部二进制权限或源码实现。
entry_2_1_332_glob_windows_parallel_walk Glob parallel directory walk on Windows with >=6 CPUs; time-limited search keeps partial results official-changelog-derived-entry Changelog 2.1.332: large local folders on Windows machines with six or more CPUs are walked in parallel; a Glob search stopped at its time limit lists what it found so far. The entry records the documented performance behavior and partial-result boundary; it does not expose internal thread scheduling or directory-walk implementation.
doc_mod_test_mock_clock_timer Mod test mock.clock: controlled clock for timer-driven mod tests official-doc-derived Official Mod test documentation: mock.clock(on) returns a mock clock that starts at 0, or at a supplied milliseconds epoch, and advances only when the test advances it; a timer-driven mod test therefore does not wait for real elapsed time. This entry records the public test-kit control surface only, not production timer scheduling or internal clock implementation.
doc_mod_test_expect_matcher_api Mod test expect matcher: toBe, toEqual, toHaveLength and promise resolves/rejects assertions official-doc-derived Official Mod test documentation: test files import expect and test from the claude-code/testing module; expect exposes assertions such as toBe, toEqual and toHaveLength, negation through .not, and promise settlement checks through .resolves or .rejects. The entry records the public assertion API surface and excludes test runner internals.
doc_usage_component_share_attribution /usage component share attribution: skills, subagents, plugins and MCP servers as share of recent usage official-doc-derived Official measure-plugin documentation: on supported plans the /usage breakdown attributes recent usage to skills, subagents, plugins and MCP servers as a share of the total. The entry records this usage-decomposition dimension; it does not record billing amounts, private repository details, or internal attribution scoring.
doc_config_diagnostic_inspection_command_chain Configuration diagnosis inspection chain: /context, /memory, /skills, /hooks, /mcp, /permissions, /doctor, /debug and /status official-public-documentation-entry 调试配置加载问题的官方检查链:/context 展示已进入上下文的分类;/memory、/skills、/hooks、/mcp、/permissions 分别检查记忆文件、技能来源、活动 Hook、MCP 服务器状态与生效规则;/doctor 检查安装和设置健康度;/debug [issue] 启用会话调试日志;/status 报告当前生效的设置来源,包括托管策略是否生效。
cap_openai_agent_cloning Agents SDK · Agent Clone(代理浅拷贝与属性覆盖) open-source-sdk-documented-capability Agent.clone() 基于 dataclasses.replace 浅拷贝代理并可覆盖名称、指令、模型等属性;未覆盖的工具、移交、MCP 服务器与护栏列表仍与原代理共享同一列表容器,需传入新列表才能获得独立集合。
cap_openai_tool_use_behavior Agents SDK · Tool Use Behavior(工具结果回灌与停止策略) open-source-sdk-documented-capability tool_use_behavior 控制工具调用结果如何回到代理循环:默认 run_llm_again 由模型再次处理工具结果,stop_on_first_tool 采用首个工具输出作为最终响应,StopAtTools 在指定工具被调用时停止,自定义 ToolsToFinalOutputFunction 可决定结束运行或继续交给模型;框架在工具调用后自动重置 tool_choice 以避免循环。
cap_openai_prompt_templates Agents SDK · Prompt Templates(平台提示词模板与动态提示) open-source-sdk-documented-capability OpenAI 模型经由 Responses API 接入时,Agent 的 prompt 字段可引用平台提示词模板(模板 id、version 与 variables),也可通过运行时函数依据上下文动态返回模板配置;静态模板对象与动态生成函数两条路径并列。
cap_openai_sandbox_workspace_manifest Sandbox Agent · 工作区清单、权限与隔离能力 open-source-sdk-documented-capability SandboxAgent 在普通代理之上附带 default_manifest、base_instructions、capabilities 与 run_as;沙箱概念模型包含 Manifest、Permissions、SnapshotSpec、Workspace entries 以及 Filesystem、Shell、Memory、Skills、Compaction 等受限能力,配合 Unix 本地与 Docker 沙箱客户端隔离工作区运行。
doc_cloud_plugin_suggestion_account_scope Cloud plugin suggestion Add: account-scoped install persists after the session official-public-docs-derived Official claude-code-on-web: a conversation suggestion card offers plugins with an Add button. Adding the plugin turns it on for the claude.ai account and remains on after the session; Manage opens the plugin's claude.ai page where it can be removed. This entry records account install scope only, not plugin internals.
doc_cloud_diff_raw_git_blob_textconv_boundary Cloud diff view computes raw git blobs; diff drivers and textconv filters do not apply official-public-docs-derived Official cloud documentation: the Changes/diff view compares session changes with the base branch or another selected branch. Diffs come from raw git blob content, so repository diff drivers and textconv filters are not applied. A missing file may omit formatter or command changes before or after push; asking Claude to commit and push restores the missing change to the list.
doc_headless_stream_output_drain_cap Headless stream output drain cap: slow consumer waits for queued output before exit, capped at 30 seconds official-public-docs-derived stream-json 输出消费者读取较慢时,claude -p 退出前等待排队输出排空;等待时长随排队规模伸缩,上限 30 秒。边界:只约束退出前的本地输出排空,不等待服务端 MCP 后台任务,也不改变后台命令/子代理/Workflow/Monitor/loop 唤醒的退出等待规则。
doc_sdk_otel_enhanced_trace_beta_gate CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1: enhanced trace beta switch alongside OTEL_TRACES_EXPORTER official-public-docs-derived 官方 Agent SDK Observability 文档:traces 处于 beta;OTEL_TRACES_EXPORTER 选择 trace 导出器,CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1 同时作为增强 trace 的 beta 开关。metrics 与 log events 不需要该 beta 开关。边界:本条只记录公开环境变量及其与 traces 信号的关系,不收录 collector 实现、后端留存、鉴权或文档未列出的内部遥测结构。
doc_usage_metric_alerting_segmentation Usage metric alert signals and standard-attribute segmentation: cost spike, unusual token consumption, high per-user session volume official-public-docs-derived 官方 monitoring-usage 文档:常见告警信号为成本突增、异常 token 消耗、特定用户会话量偏高;所有指标可按标准属性分组,model 属性覆盖 token.usage、cost.usage 与 lines_of_code.count;提交按模型拆分只能近似,需在 session.id 上连接 token 或成本指标并过滤 query_source=main,避免辅助与子代理请求分摊提交归属。
env_node_extra_ca_certs NODE_EXTRA_CA_CERTS 自定义 CA 证书 PEM 路径环境变量 official-public-documentation-entry 官方企业网络配置:NODE_EXTRA_CA_CERTS 指向自定义 CA 证书 PEM 文件,用于补充 TLS 信任链;它与 CLAUDE_CODE_CERT_STORE 分工不同,后者只选择系统证书库或内置 CA 的信任来源。边界:不绕过证书校验,不收录证书内部结构、私钥或签名材料。
doc_stream_first_byte_deadline_mechanism 首字节截止定时器:无响应头到达即中止,按提供商通道限定覆盖范围 official-doc-derived 官方网络配置文档:first-byte deadline 在请求发出后未收到任何响应头时中止请求;覆盖直连 Anthropic API 与 Claude Platform on AWS(含经 HTTPS 代理),当 ANTHROPIC_BASE_URL 或 ANTHROPIC_AWS_BASE_URL 将路由交给网关时不运行;Bedrock 需显式开关,Google Cloud Agent Platform 与 Microsoft Foundry 不运行。该定时器触发时响应尚未开始,不保留部分输出。条目只记录公开覆盖矩阵与边界,不收录内部重试调度算法。
doc_stream_event_level_watchdog 事件级看门狗:无可解析响应事件即中止,所有提供商适用 official-doc-derived 官方网络配置文档:event-level watchdog 在响应事件无法解析时中止流;适用于每一个提供商。非 Bedrock 通道上,到达字节(含 keep-alive ping)会在有限窗口内重置该看门狗:字节约每 10 秒到达时约 5 分钟,网关 15 秒 ping 下约 7.5 分钟;Bedrock 上到达字节不会重置事件级看门狗。条目只记录公开重置规则与适用范围,不收录流解析内部实现。
doc_stream_byte_level_watchdog 字节级看门狗:线路无字节(含 SSE ping)即中止,Bedrock 上替换体空闲超时 official-doc-derived 官方网络配置文档:byte-level watchdog 在线路上无任何字节到达(包括 SSE keep-alive ping)时中止流;覆盖直连 Anthropic API、Claude Platform on AWS 与网关连接(含自定义 ANTHROPIC_BASE_URL),Bedrock 需显式开关;Google Cloud Agent Platform 与 Microsoft Foundry 不运行。在 Bedrock 上字节级看门狗替换体空闲超时,而非与之并行运行。条目只记录公开覆盖与替换关系,不收录底层连接状态机细节。
doc_stream_body_idle_timeout 响应体空闲超时:计入等待响应头,与看门狗阈值相互独立 official-doc-derived 官方网络配置文档:body idle timeout 在无字节到达(含等待响应头期间)时触发;适用于直连 API、Platform 与 Bedrock 显式开关之外的提供商通道,除非 API_FORCE_IDLE_TIMEOUT 改变其行为。体空闲超时与各看门狗独立运行:要延长流停顿窗口,必须分别调高或关闭看门狗阈值,不能只调整其中一处。条目只记录公开超时归属与独立性边界。
doc_fast_mode_availability_check_direct_egress Fast mode 可用性检查直连 api.anthropic.com,经配置代理而非 LLM 网关 official-doc-derived 官方网络配置文档:当会话经由 ANTHROPIC_BASE_URL 设置的 LLM 网关访问时,fast mode 可用性检查仍发往 api.anthropic.com,并走已配置的任意 HTTP 代理,不发往网关。组织代理/防火墙清单需为此保留该主机可达;条目只记录公开路由边界,不收录检查请求内部鉴权或灰度判定字段。
env_disable_terminal_title CLAUDE_CODE_DISABLE_TERMINAL_TITLE 关闭对话上下文驱动的终端标题自动更新 official-doc-derived 官方 settings-reference 与 env-vars:置 1 后停止基于会话上下文自动更新终端标题;同时跳过后台小/快模型生成会话标题的请求,并关闭发往终端的会话状态报告。该变量作用于终端标题与状态报告行为,不改变会话重命名后的终端标签标题开关。条目只记录公开行为边界,不收录标题生成内部模型调度细节。
entry_2_1_270_focus_view_spinner_tip /focus 精简视图 spinner 提示 official-document-derived-entry Spinner 轮换提示可建议 /focus,提供只显示当前提示、一行工作摘要与响应的精简视图;提示内容受 spinner 提示开关控制。
entry_2_1_332_artifact_page_read_capabilities_database_rules Artifact 页面读取说明制品服务能力与数据库规则 official-document-derived-entry Artifact 工具读取页面时,向可发布者说明制品服务对该页面持有的能力与数据库规则;该条目只记录公开提示口径,不收录内部数据库结构。
entry_2_1_332_cloud_github_error_cause_ip_allowlist_suspended_saml 云会话 GitHub 错误显示 IP 白名单、应用停用或 SAML 阻断原因 official-document-derived-entry 云会话 GitHub 集成在 IP 允许列表、应用安装被停用或 SAML 单点登录阻断时,错误信息展示具体原因,而非泛化的安装提示。
entry_2_1_332_mcp_signin_expired_mid_session_reauth_hint MCP 服务器登录中途过期提示 /mcp 重新认证 official-document-derived-entry MCP 服务器登录状态在会话中途过期时,错误提示说明如何重新认证,并指向 /mcp;不收录令牌、刷新密钥或内部认证流程。
doc_sdk_tool_search_core_tools_exempt_threshold_count 工具搜索阈值不计入 Bash、Read、Edit 等前置加载核心内置工具;Mod 延迟或前置加载会改变计数 official-doc-derived 官方工具搜索文档:Bash、Read、Edit 等核心内置工具前置加载,不计入可延迟工具定义的阈值计数;插件中的 mod 可以延迟某个工具或改为前置加载,从而改变被计数的定义集合。本条只记录阈值计数边界与工具来源范围,不推断工具发现评分、schema 加载顺序或内部排序。
doc_sdk_hosting_deployment_failure_modes_cli_path_launch_exit Agent SDK deployment troubleshooting: CLI not found at service start, CLI present but unable to launch, and Claude Code process exits mid-run official-public-documentation-entry Official hosting troubleshooting maps deployed failures to three modes: CLI not found at service start can result from a service-manager PATH different from the shell, skipped optional TypeScript dependencies, or a missing pathToClaudeCodeExecutable; a CLI present in the image can fail to launch on a container architecture/libc mismatch or lost execute permission; a mid-run process exit depends on SDK language and whether the CLI reported an error result first. This entry records public failure modes and pointers only, not internal binary structure.
doc_plugin_eval_case_fixture_context_block Plugin eval fixture context block: case.yaml scaffold_script, history_file transcript and add_dirs seed repeatable case files and conversation state official-public-docs-derived Official plugin-evals documentation: when a case needs more than a prompt, a case.yaml beside prompt.md carries a context block. scaffold_script names a Bash fixture script that runs as the user outside the agent sandbox and only when --scaffold is passed; history_file points to a .jsonl transcript continued as the next user turn; add_dirs lists fixture directories readable during the run. case.yaml also requires schema_version and name. Fixture setup keeps runs repeatable; project configuration written by the scaffold script is not loaded because runs are isolated.
doc_plugin_eval_mock_expect_error_agent_type_input_assertion Eval MCP mock controls: expect guards input, error:true returns a tool error, type:agent answers through the judge model under a four-times-max-turns shared budget official-public-docs-derived Official plugin-evals documentation: a mock file's expect block guards the call input; a violating call aborts the run with score 0 and records why. error:true returns the body as a tool error instead of a normal answer. type:agent makes the judge model answer as the server from the body instructions. Agent mocks share one per-run budget of four times the case's max_turns; a call past that budget aborts the run with score 0. Mock files may substitute call input fields and referenced fixture file contents.
doc_plugin_eval_real_mcp_server_flags_allow_real_servers_mocks_off Eval real MCP server flags: --allow-real-servers starts un-mocked real processes while mocked tools still answer; --mocks off ignores mocks and starts every declared server official-public-docs-derived Official plugin-evals documentation: --allow-real-servers starts the real process for each server that has no mock, keeping mocked tools answering from their files. --mocks off ignores the mocks/ directory entirely and starts every server the plugin declares. Either way real MCP processes run as the user outside the run sandbox, and their tools need a named --allow-tools grant; mocked MCP tools need no grant. Real-server selection is a test-isolation control, not a production deployment description.
cap_openai_agents_model_input_filter Agents SDK · Model Input Filter(模型调用前输入过滤回调) open-source-sdk-documented-capability RunConfig.call_model_input_filter 在模型调用前编辑准备好的模型输入;回调接收当前代理、上下文与合并后的输入项(存在会话历史时已并入本轮),返回必填 input 为输入项列表的 ModelInputData;Runner 传入输入列表副本,回调可裁剪、替换或重排而不就地改动原始列表。使用会话时回调在历史加载并合并之后运行;使用服务端对话状态时,回调作用于下一次 Responses API 调用的准备载荷;典型用途为脱敏、裁剪过长历史或追加系统指引。
cap_openai_agents_error_handlers Agents SDK · Run Error Handlers(运行错误处理器) open-source-sdk-documented-capability Runner 各入口接受 error_handlers 字典,按错误类别注册处理器;受支持键为 max_turns、model_refusal 与 invalid_final_output;对应错误触发时可返回受控最终输出,而不是让运行以该错误直接结束。
setting_voice_auto_submit voice.autoSubmit hold 模式松开按键即提交提示词开关 official-doc-derived 官方 settings-reference:voice 设置对象的 autoSubmit 为布尔值,仅在 hold 模式下生效;松开口述按键时提交提示词。tap 模式由单独的按键启停流程处理;语音口述需要 claude.ai 账户。条目只记录模式适用范围与提交行为,不收录语音识别内部模型或音频处理细节。
setting_marketplace_path_pattern_allowlist pathPattern 文件系统市场来源正则白名单条目 official-doc-derived 官方 settings-reference:插件市场白名单中的 pathPattern 来源类型要求必填 pathPattern 正则;该正则在 file 与 directory 来源的 path 中任意位置匹配,以 ^ 开头可锁定路径前缀。它与面向网络来源的 hostPattern 互补,用于放行本地文件系统市场目录。条目记录来源匹配规则,不收录仓库私有路径或安装凭证。
doc_code_mode_background_code_duration_boundary Code Mode background code continues up to two hours; foreground waiting code stops after ten minutes and permission-prompt wait time is excluded in Manual/acceptEdits official-public-document 官方 Code Mode 运行时长边界:长时间构建或测试代码可由 Claude 等待或转入后台运行;后台代码最多可持续两小时。前台等待的代码十分钟后停止;在 Manual 与 acceptEdits 模式下,停留在工具权限提示上的时间不计入这十分钟上限(v2.1.328 之前会计入)。条目区分前台等待与后台代码的时长约束,并挂接到既有 Code Mode 限制与 REPL 工具节点。
cap_adk_resumable_runs ADK resumable workflow runs after interruption official-documentation-capability ADK Resume records completed workflow tasks through Events and Event Actions. When a Sequential, Loop or Parallel workflow is interrupted, it restores saved sub-agent state and continues only unfinished work; successful tool results are reinstated. Tools are guaranteed to run at least once and may run again on resume, so non-idempotent tools need explicit caution. A stopped workflow must not be modified before resume; resume can use the workflow Invocation ID from event history with the API server, or the Runner async method. ADK Web UI and CLI resume are not currently supported, and Custom Agents require code changes to support resume.
cap_adk_live_voice_agents ADK Live and Voice Agents browser runtime official-documentation-capability ADK Live and Voice Agents run a conversational agent in the adk web browser client, which captures the microphone, plays the agent replies and renders the transcript without separate client application code. The selected model must support a two-way streaming connection. Official quickstarts cover Python and Java; adjacent documented steps cover voice/transcription/turn detection configuration, mid-conversation tools, sessions and events, evaluation, and a custom-server deployment path. This framework runtime is kept separate from the hosted Gemini Live API model family.
cap_adk_runtime_config ADK RunConfig runtime behavior configuration official-documentation-capability ADK RunConfig is passed to runner.run_async() or runner.run_live() to override defaults at runtime. It controls streaming mode, speech settings, LLM call limits and live-agent options; for long-running sessions it also controls loaded history and context-window compression. Bidirectional streaming of voice input and output requires additional configuration beyond a simple agent.
cap_openai_agents_agent_definition Agents SDK · Agent 定义配置(指令、工具、模型与运行属性) open-source-sdk-documented-capability Agent 是携带指令、工具与可选运行行为的 LLM 配置单元;基础属性包括 name、instructions/prompt、handoff_description、handoffs、model、model_settings、temperature/top_p、tool_choice、tools、mcp_servers/mcp_config、input/output guardrails、output_type、hooks 与 tool_use_behavior;设置 output_type 时模型按结构化输出返回。SandboxAgent 在同一套概念之上增加 default_manifest、base_instructions、capabilities 与 run_as,用于工作区范围内的运行。
cap_openai_agents_run_config Agents SDK · RunConfig 单次运行配置 open-source-sdk-documented-capability RunConfig 承载单次代理运行的配置:model、model_provider、model_settings、移交输入过滤器与历史映射、输入/输出护栏、追踪开关与追踪元数据、会话输入回调、模型输入过滤器、工具错误格式化器、会话设置、沙箱与工具执行配置,以及工具未找到与工具重名策略;RunOptions 另携带 context、max_turns、hooks 与 run_config。
cap_openai_agents_tool_context Agents SDK · ToolContext 工具调用上下文 open-source-sdk-documented-capability 函数工具调用接收 ToolContext,承载 run_config、tool_name、tool_arguments、tool_call_id、tool_call、tool_namespace、agent、qualified_tool_name、context、usage 与 tool_input;对象提供工具审批、拒绝辅助方法以及审批状态查询。该上下文用于向工具函数、回调与钩子传递依赖和运行信息,不作为模型可见输入。
cap_openai_agents_model_settings Agents SDK · ModelSettings 模型调用参数 open-source-sdk-documented-capability ModelSettings 保存调用 LLM 时的可选模型参数,例如 temperature、top_p、惩罚项与截断设置;并非所有模型或提供方都支持全部参数,使用前需对照具体模型 API 文档。模型选择与提供方路径可由 Agent、RunConfig 或默认模型提供方决定。
doc_slack_routing_mode_code_only_code_chat Slack Routing Mode: Code only and Code + Chat mention routing official-public-docs-derived Official Slack page Routing Mode: Code only routes every @mention to a Claude Code session; Code + Chat analyzes each message and routes coding tasks to Claude Code while other requests go to Claude Chat. If Chat answered but a coding session was intended, the Switch to code repo… action selects a repository and starts a Claude Code session with the original message. The entry records documented routing behavior, not Slack app internals, repository permissions, or approval policy.
cap_gemini_thinking Gemini model thinking process and thought-step reasoning capability official-documentation-capability Gemini 模型在回答前先进行内部推理;Interactions API 将推理表示为 steps 数组中的专用 thought 步骤,包含加密签名与可选 summary。thinking_level 控制推理强度;无状态模式必须原样保留历史 thought 块与签名,以维持跨轮推理连续性。
cap_adk_evaluation_criteria ADK evaluation criteria and metrics official-documentation-capability ADK 评估标准覆盖工具轨迹、响应匹配、Vertex 连贯性、LLM 语义评判、rubric 质量、幻觉与安全性、多轮任务成功度、轨迹与工具使用质量,并补充工具调用次数、模型调用次数、Token 用量与调用时长等运行指标。
cap_adk_live_voice_architectures ADK Live voice architecture: speech-to-speech and cascade official-documentation-capability ADK Live 提供两种语音架构:Speech-to-speech 由单一原生音频模型经 Gemini Live API 端到端处理语音输入、推理与输出;Cascade 顺序串联 STT、文本推理 LLM 与 TTS,便于在合成前检查或修改文本。两种架构复用同一 ADK 运行时的会话循环、请求队列、事件流、工具、回调与工作流。
cap_qwen_code_channel_session_scope Qwen Code 频道会话作用域 official-documentation-capability sessionScope 控制频道会话边界:user 为每个用户一个会话,chat_thread 为每个聊天话题或线程共享会话,single 为所有用户共享一个会话;旧版 thread 仅兼容既有配置。该作用域与频道独立工作目录、模型、指令和多会话命名任务配置分开。
cap_adk_visual_builder ADK Visual Builder graphical agent and workflow authoring environment official-documentation-capability The ADK Visual Builder is an experimental feature of the ADK web interface that provides a drag-and-drop environment for designing, building and testing agents, with an AI-powered development assistant. It generates Agent Config YAML files and Python files for custom tools; its local write endpoints are registered only when the web UI is served, and are not exposed in headless or API-only deployments.
cap_headless_mcp_config_validation_errors Headless stream-json init mcp_server_errors: skipped invalid --mcp-config entries official-public-docs-derived Official changelog adds mcp_server_errors to the headless stream-json init event, listing --mcp-config entries skipped by configuration validation; terminal runs print a startup warning. The entry records the startup diagnostic boundary and does not encode server credentials or internal connection state.
doc_gateway_optional_login_notice_config Gateway optional login_notice sign-in notice configuration section official-public-docs-derived The optional login_notice string appears to developers when they sign in to the self-hosted Claude apps gateway. Anyone who can reach the gateway can read it; it is a sign-in notice or presentation setting, not an authentication or authorization rule.
doc_gateway_pricing_upstream_model_rate_overrides Gateway pricing overrides apply per-upstream and per-model contracted USD rates official-public-docs-derived The optional pricing.overrides list maps an upstream and model to contracted input, output, cache_read, and cache_write USD rates. These supplements to the multiplier remain spend-meter estimates rather than invoices. The block requires an admin block or, in v2.1.268 and later, a managed policy with at least one policy; it does not set provider list prices or a billing ledger.
doc_gateway_upstream_ordered_failover_conditions Gateway ordered upstreams fail over on selected upstream and transport errors official-public-docs-derived The gateway upstreams list is ordered: inference forwards to the first upstream that resolves the requested model, skipping upstreams whose group list excludes the developer. It fails over on 5xx, 429, 401, 403, 404, or timeout; other 4xx responses do not fail over. When an upstream sets forward_user_identity: true, a 429 for a request that carried the developer email does not trigger failover.
cap_gemini_function_calling Gemini Function Calling(工具调用能力) official-documentation-capability Function Calling 将自定义函数声明通过 tools 传入 Gemini API;模型在 Interaction 步骤中返回 function_call、函数名与 JSON 参数,应用侧执行工具并把结果回传,再由模型生成最终响应。函数声明包含 type、name、description 与 parameters;可用模型、参数类型与工具结果格式以官方文档为准。
cap_gemini_structured_outputs Gemini Structured Outputs(JSON Schema 结构化响应) official-documentation-capability Structured outputs 按 JSON Schema 约束 Gemini 返回可预测、类型安全的 JSON 对象或数组;REST API 与 Google GenAI SDK 可使用 JSON Schema,Python SDK 支持 Pydantic,JavaScript SDK 支持 Zod。模式覆盖 string、number、integer、boolean、object、array、null 等类型子集;超大或深层嵌套 schema 可能因状态空间或分支过多被服务端拒绝。
cap_gemini_document_understanding Gemini Document Understanding(PDF 多模态文档理解) official-documentation-capability Document Understanding 使用原生视觉理解 PDF 中的文本、图片、图表、表格与版式,支持信息抽取、分类、问答、摘要和版式转写。单请求可处理多份 PDF,组合大小与页数仍受模型上下文窗口约束;PDF 文件上限为 50MB 或 1000 页,每页约折算 258 tokens。较大文件或多轮复用建议经 Files API 上传,上传文件保存 48 小时。
doc_gateway_admin_pooled_budget_order 网关管理员合并预算组的限额顺序与冲突规则 official-public-docs-derived 官方网关配置:合并预算是整组共享的月度限额。开发者属于多个预算组时,请求先计入第一个尚未超限的预算;全部预算用尽后才拒绝。pooled_conflict_rule 可取 default_order(限额最大者优先,同限额按组名升序)或 priority_list(按 pooled_priority_order 列出的组顺序,其余组再按组名排列)。只列组而未声明 priority_list 时,网关忽略该列表并在启动时告警;旧版本网关遇到这两个键会拒绝启动,需先升级全部副本、回滚前移除键。
doc_gateway_models_catalog_upstream_mapping 网关 models 管理员模型目录与上游模型 ID 映射 official-public-docs-derived 可选 models 块是管理员维护的模型目录,服务于 /v1/models,并按上游翻译模型 ID;非美国 Bedrock 区域、Bedrock provisioned-throughput ARN 与 Microsoft Foundry 部署场景需要该目录。auto_include_builtin_models: false 时只暴露目录下列出的模型。每个 upstream_model 键必须匹配已配置上游的名称;匹配不到上游的键会导致网关启动失败,未使用的提供商行应省略。
doc_mcp_env_var_expansion Environment variable expansion in .mcp.json server entries official-public-documentation-entry Official MCP documentation: Claude Code expands environment variables in .mcp.json command, args, env, url, and headers values using ${VAR} and ${VAR:-default}; the entry records expansion scope, unset/default and empty-string handling boundary, and excludes credential values or secrets. Team-shared configuration remains subject to project approval.
doc_mcp_dynamic_auth_headers_helper MCP dynamic headers helper (headersHelper) custom authentication official-public-documentation-entry Official MCP documentation: a headersHelper command can supply dynamic request headers for MCP server authentication; the entry records helper execution context, readable-variable and folder-trust boundary, and separation from static Authorization headers. It does not record helper source code, token material, or internal credential rotation.
doc_mcp_tool_result_size_override Per-MCP-tool result size override (_meta anthropic/maxResultSizeChars) official-public-documentation-entry Official MCP documentation: an MCP server can allow an individual tool to return results larger than the default 50,000-character persist-to-disk threshold by setting _meta["anthropic/maxResultSizeChars"] in the tools/list response entry. The entry records the per-tool metadata boundary and leaves server-side result content out of scope.
doc_mcp_idempotent_readonly_tool_annotations MCP idempotentHint and readOnlyHint tool annotations official-public-documentation-entry Official MCP documentation: a tools/list entry can mark idempotentHint true for a state-changing tool safe to repeat with the same arguments, and readOnlyHint true for a tool that changes nothing; read-only calls may run in parallel. The entry records annotation semantics and approval/repeat boundary, not server implementation internals.
doc_gateway_spend_limit_client_usage_warnings Gateway spend-limit client warnings: 75%/95% notice, /usage bar and status-line cap input official-documentation-entry The gateway reports approaching caps to Claude Code after utilization passes 75% and again past 95% of the most-consumed cap. The /usage bar and status-line input expose the cap, period, reset time and estimated spend; the gateway strips upstream provider shared-quota headers and forwards only the developer's own cap headers. Displayed spend is the gateway estimate used for enforcement, not a provider invoice; dollar amounts are fetched through a separate gateway request even when nonessential traffic is disabled.
doc_gateway_spend_limit_effective_audit_admin_endpoints Gateway spend-limit /effective and /audit admin endpoints with principal, trail and pagination views official-documentation-entry GET /v1/organizations/spend_limits/effective returns the resolved cap, period-to-date spend and actor for each principal and period; its groups array is a gateway extension showing last-seen IdP groups. GET /v1/organizations/spend_limits/audit returns the newest-first mutation trail with before/after snapshots. List and effective views use limit, after_id/before_id or opaque next_page cursors; /audit pages by after_id. These endpoints expose administrative cap state and change history, not inference authorization.
doc_desktop_scheduled_task_local_runtime_conditions Desktop local scheduled task runtime conditions: version, minute check, fresh session and deterministic stagger official-public-docs-derived Official Desktop scheduled-tasks documentation: local scheduled tasks require Claude Desktop 1.1.5368 or later. While the app is open, Desktop checks the schedule every minute and starts a fresh session for a due task; that run is independent of any manual session already open. Each task receives a small delay of a few minutes after the scheduled time to stagger API traffic; the delay is deterministic, so the same task always starts at the same offset. Tasks run only while the Desktop app is running and the computer is awake; sleep through a scheduled time is handled by the documented missed-run catch-up boundary. This entry records runtime conditions and scheduling cadence only, not cloud-task or CLI /loop semantics.
cmd_insights_usage_pattern_report /insights usage-pattern HTML report official-document-derived-entry /insights analyzes up to 200 previously unseen local sessions and writes an HTML report covering projects, friction points and effective Claude Code usage suggestions. The latest report is saved to ~/.claude/usage-data/report.html with timestamped copies; retention follows cleanupPeriodDays, default 30 days. Analysis uses the same provider and account as regular sessions and counts against plan or API usage.
doc_mcp_missing_server_skills_troubleshooting_checklist MCP missing-server-skills troubleshooting checklist official-public-documentation 官方 MCP 文档的服务器技能缺失排查清单:先核对受支持配置与审批状态,再查看 claude --debug=mcp 日志;随后分别处理 /status 功能变量、未知命令、组织连接器限制、技能扫描结果、连接器是否向 Claude 提供技能、已连接服务器协议行,以及启动过慢的 stdio 服务器。条目只记录公开排查流程与边界,不收录内部传输或连接器实现。
runner_exec_path_wrapper_config SELF_HOSTED_RUNNER_EXEC_PATH / --exec-path runner wrapper executable path configuration-documentation Official self-hosted runner configuration: --exec-path or SELF_HOSTED_RUNNER_EXEC_PATH selects the wrapper executable started in place of the Claude Code binary. The wrapper should exec $CLAUDE_RUNNER_CLAUDE_BIN so signals and exit codes propagate. Boundary: public runner configuration contract; internal runner filesystem layout and secrets are excluded.
runner_hooks_dir_config SELF_HOSTED_RUNNER_HOOKS_DIR / --hooks-dir runner lifecycle hook directory configuration-documentation Official runner configuration: --hooks-dir or SELF_HOSTED_RUNNER_HOOKS_DIR points the runner to executable lifecycle hook scripts. A missing hook falls through to built-in behavior. Hooks run with runner privileges, so the hook directory should be mounted read-only or baked into the deployment image.

安全与许可边界

ID 名称 许可证状态 摘要
boundary_license 许可证与商用条款边界 boundary-or-capability-derived 区分 CLI 专有、SDK 包装层开源、模型服务专有;商用前核对 Commercial/Consumer Terms。
boundary_permission_sandbox 权限与沙箱边界 boundary-or-capability-derived 权限模式、审批闸门、Bash 沙箱、文件系统与网络隔离、工作目录边界。
boundary_network 网络与外部服务边界 boundary-or-capability-derived 模型 API、云厂商通道、MCP Server、CI Runner 之间的网络调用与身份授权。
boundary_trademark 商标与品牌边界 boundary-or-capability-derived 自有产品不得命名为 Claude Code;使用官方允许的 Powered by Claude 表述。
community_leak_event 社区泄露源码事件背景(2026-03 npm source map) unverified-community-source 社区报道:npm source map 曾暴露未混淆 TS 源码;本体仅记录事件与公开主题,不收录内部源码文件、密钥或未公开算法;来源未经官方确认
closed_attestation 第三方客户端限制与请求校验(社区逆向观察) unverified-community-source 社区报道:官方对非官方客户端存在连接限制与完整性校验;本体只登记边界主题,不收录签名算法、常量、绕过方法
checkpoint_limits 检查点追踪边界:Bash/子代理/外部改动不完整还原 capability-derived 仅追踪当前会话文件编辑工具改动;Bash 单独改动的文件、多数子代理编辑、会话外手动改动、并发会话改动、符号/硬链接路径不被检查点回滚;检查点不能替代版本控制
ci_secrets_boundary CI 凭证保密边界(GitHub Secrets) proprietary-all-rights-reserved API key/OAuth token 不得提交仓库代码,一律存 GitHub Secrets 由 workflow 引用;工作流仅授予所需权限,合并前复核 Claude 改动
perm_protected_paths 受保护路径(.git / .claude 目录)写入限制 capability-derived bypassPermissions 模式跳过审批提示,但受保护路径仍属隔离范围;规则由客户端强制而非模型指令,CLAUDE.md 提示不能改变允许范围
plugin_tier 市场分层:官方 / 社区 / 第三方 configuration-documentation 官方与社区名称仅限 github.com/anthropics/ 仓库来源;其余均为第三方;插件以用户权限运行,安装前需审查信任与安全
feat_gateway_allow_cidrs 网关访问控制 allow_cidrs 与公网地址告警 configuration-documentation 2.1.268:网关 access_control.allow_cidrs 为空时启动告警;首个来自公网地址的请求一次性告警
feat_gateway_internal_networks gatewayInternalNetworks 托管设置放行组织公网 IPv4 段 configuration-documentation 2.1.268:管理员经该托管设置允许 /login 接入组织自有公网 IPv4 地址段的 Claude apps 网关
feat_workload_identity_federation 工作负载身份联邦 profile 共享 jti 复用 401 修复 configuration-documentation 2.1.268:共享同一 profile 的进程不再因 jti reused 在运行中途失败 401(GitHub Action 工作负载身份联邦场景)
feat_managed_hook_urls_default_deny 托管 Hook URL / 环境变量 / 渠道插件不可读时默认拒绝 configuration-documentation 2.1.267 修复:allowedHttpHookUrls、httpHookAllowedEnvVars、allowedChannelPlugins 在不可读时准入为空集而非全部放行
fix_plugin_managed_mcp_signin_description_guard 用户插件不得改写组织托管 MCP 服务器登录工具描述守卫 changelog-derived 2.1.289 修复:阻止用户安装插件改写组织托管 MCP 服务器 sign-in 工具的描述;边界:托管配置与第三方插件内容隔离,修复不披露或复制任何凭证。
fix_oauth_revoked_login_401_message 已撤销 claude.ai 登录返回 OAuth 令牌撤销而非通用 401 提示 changelog-derived 2.1.289 修复:被撤销的 claude.ai 登录不再显示通用 API Error: 401;非交互 -p 模式错误以 Failed to authenticate 开头并指明 OAuth token revoked。边界:改善认证失败诊断,不绕过令牌校验或恢复已撤销会话。
fix_skip_auth_custom_authorization_header 跳过鉴权可用性检查保持自定义 Authorization 头部一致 changelog-derived changelog 修复:Bedrock、Vertex、Mantle 等第三方提供商在跳过鉴权的可用性检查中,不再因 ANTHROPIC_CUSTOM_HEADERS 重复设置 Authorization 而发送与真实请求不同的头部。边界:属于请求头部一致性与鉴权边界事实,不收录凭证值、令牌格式或认证算法。
fix_mcp_tool_proto_permission_ceiling proto 命名 MCP 工具:组织级每工具权限上限不再被静默丢弃 changelog-derived 修复名为 proto 的 MCP 工具导致组织托管的每工具权限上限被静默丢弃的问题;该边界作用于 MCP 工具规则与托管权限策略。
fix_managed_settings_unreadable_start_warning 托管设置文件不可读时告警并启动边界 proprietary-all-rights-reserved 操作系统拒绝读取托管设置文件时,启动告警并跳过该文件策略;其他读取错误或不可解析文件仍会阻断每个会话。
fix_mcp_connector_oauth_registration MCP OAuth 客户端注册并发与同意边界修复 open-standard-reference 修复 MCP OAuth 客户端注册:拒绝同意不再强制重新注册;不混用其他 redirect URI 的注册;并发写入不删除有效注册或保留错配注册。
fix_plugin_org_managed_mcp_signin_tools 用户插件改写组织托管 MCP 登录工具描述边界 proprietary-all-rights-reserved 用户安装的插件不得改写组织托管 MCP 服务器登录工具的描述;该边界限制插件对托管 MCP 工具元数据的修改。
fix_plugin_preapproved_tools_managed_rule_boundary 托管 allowManagedPermissionRulesOnly 下插件预批准工具边界 proprietary-all-rights-reserved 托管 allowManagedPermissionRulesOnly 时,市场、claude.ai 和 npm 插件不得经 allowed-tools 自行预批准工具;仅官方 Anthropic 来源或托管设置担保来源保留预批准。
fix_gateway_missing_available_models_policy 应用网关 availableModels 空或遗漏启动模型告警边界 proprietary-all-rights-reserved 托管策略 availableModels 为空,或未包含 Claude Code 启动模型且未设置 model/enforceAvailableModels 时,网关启动给出警告。
fix_mcp_add_managed_plugin_only_refusal 托管仅插件 MCP 策略下 claude mcp add 拒绝规则 proprietary-all-rights-reserved 托管设置将 MCP 服务器限制为插件来源时,claude mcp add 不再报成功;它拒绝保存并说明应改用插件注册路径。
fix_external_rules_symlink_approval 外部符号链接规则目录的导入审批边界 proprietary-all-rights-reserved .claude/rules 外部符号链接规则与外部 .claude 目录符号链接需经过外部导入审批;未审批不得静默跳过加载。
fix_user_plugin_rewrite_managed_mcp_signin_desc 用户插件改写组织托管 MCP 登录工具描述边界修复 official-public-changelog 防止用户插件改写组织托管 MCP 服务器登录工具的描述;托管 MCP 元数据受组织策略保护。
fix_mcp_error_credential_value_bearer_basic MCP 错误信息不泄露 Bearer/Basic 凭证值 official-public-changelog MCP 错误信息中 Bearer 或 Basic 前缀后的凭证值不再被显示;错误通道保持凭证脱敏。
fix_percent_encoded_bearer_token_partial_mask 百分号编码 Bearer 令牌部分掩码修复 official-public-changelog 百分号编码 Bearer 令牌在错误与日志中不再只被部分掩码;编码形式同样纳入脱敏规则。
fix_secret_zero_width_space_key_redaction 键名含不可见字符的密钥日志转录泄露修复 official-public-changelog 键名含零宽空格等不可见字符的密钥在日志和转录中不再泄露;密钥脱敏按规范化键名处理。
fix_url_password_punctuation_redaction URL 密码标点/括号/方括号主机泄露修复 official-public-changelog URL 密码含标点、括号、引号、第二 @ 或方括号主机时,不再部分泄露密码;URL 凭据完整脱敏。
fix_remote_control_policy_disconnect_notice Remote Control 策略关闭后会话断开提示修复 official-public-changelog 组织策略关闭 Remote Control 后,相关会话断开并给出提示;策略关闭覆盖已建立连接。
fix_ssh_passphrase_new_host_prompt_worktree_teleport worktree/teleport SSH 口令新主机提示快速失败 official-public-changelog worktree 与 /teleport 抓取中的 SSH 口令或新主机提示不再抢占终端;缺少交互时快速失败,不等待人工输入。
team_no_nested_teams_boundary 团队层级边界:仅主会话可派生队友,禁止嵌套团队 official-public-document-entry 一个会话只对应一个团队,团队不可跨会话共享;队友不能嵌套派生团队;Lead 固定为主会话,不能转交领导权。
checkpoint_symlink_hardlink_skip 检查点还原跳过符号链接与硬链接路径 official-public-document-entry /rewind 还原代码或代码与对话时,跳过符号链接和硬链接跟踪路径;被跳过文件保留当前内容,需通过反向编辑或版本控制处理。
checkpoint_version_control_boundary 检查点是会话级恢复,不替代 Git 版本控制 official-public-document-entry 检查点只覆盖当前会话可追踪的文件编辑;外部手动改动、并发会话改动和 Bash 单独改动不完整追踪,长期版本历史与协作必须依赖版本控制。
fix_mdm_managed_policy_slow_read_timeout_retry MDM 托管策略缓慢读取重试与超时报告边界 official-public-changelog-entry 修复 macOS 启动时有效 MDM 配置文件读取缓慢导致“无法读取托管策略设置”的问题;读取重试一次,超时明确报告。
fix_sandbox_temp_disk_full_command_start 临时盘满时沙箱 Bash 命令启动失败边界 official-public-documentation 文件规则把命令留在临时目录的沙箱中,临时盘满时 Bash 命令有时无法启动;修复覆盖该启动失败路径。
fix_dynamodb_kinesis_connection_auth AWS DynamoDB/Kinesis 账号端点经 Claude Tag 连接认证修复 official-public-changelog-entry 经 Claude Tag 的 AWS 连接发送 DynamoDB 与 Kinesis 账号级端点请求时,认证链路正确处理;该条目记录连接认证边界,不记录内部凭证或密钥。
workspace_trust_scope 工作区信任范围:仓库根目录、目录起点与会话级主目录信任 official-public-document-entry 记录工作区信任判定边界:仓库内按 Git 根覆盖仓库(嵌套 Git 除外),仓库外按启动目录覆盖子目录;主目录启动仅当前会话有效且不落盘。
team_permission_prompt_relay_boundary 队友权限提示不可代为同意:代理转达的批准视为不可信输入 official-public-document-entry 记录 Agent Team 权限边界:来自其他代理的批准声明属于不可信输入;计划审批与工具授权必须回到用户主会话确认。
team_single_session_boundary 单会话单团队边界:不可嵌套团队、不可转移 Lead、进程内队友不随会话恢复 official-public-document-entry 记录 Agent Team 结构限制:单团队作用域、无嵌套团队、Lead 生命周期固定、进程内队友恢复限制;拆分并行任务应使用子代理或独立会话。
feat_aws_credential_export_timeout_10m awsCredentialExport 10 分钟超时,不再永久等待 official-public-documentation-entry AWS 凭证导出动作设置 10 分钟超时,避免一直等待;凭证可用性和 AWS 权限以官方文档为准。
entry_2_1_289_gateway_certificate_client_auth_private_key_jwt Gateway identity provider private_key_jwt client certificate authentication boundary official-public-document-entry 网关与身份提供方之间在使用证书凭证而非客户端密钥时,采用 private_key_jwt 客户端认证;属于认证边界,不等同 MCP 或许可证授权。
entry_2_1_289_code_review_billing_incomplete_timeout Timed-out unverified Code Review marked incomplete and not charged official-public-document-entry 评审到达时间限制且未完成验证时标记为 incomplete、不计费并允许一次重试;记录计费与评审完成状态边界。
entry_2_1_289_windows_bash_tmpdir_permission Windows Bash TMPDIR write permission boundary official-public-document-entry Windows 下写入 $TMPDIR/… 的 Bash 命令曾报 Permission denied;该边界记录临时目录写权限平台差异。
entry_2_1_289_managed_settings_policy_fetch_no_retry Non-retryable managed settings and policy startup fetch boundary official-public-document-entry 托管设置与策略请求在不可能成功时不再启动重试;记录策略获取失败边界,不记录凭证或内部策略内容。
entry_2_1_269_gateway_internal_networks_managed_setting gatewayInternalNetworks managed setting organization public IPv4 login block official-public-document-entry 管理员可通过 gatewayInternalNetworks 托管设置允许组织自有公共 IPv4 网段访问 Claude apps 网关 /login;属于网络访问边界。
doc_pr_steward_security_boundary PR Steward 不批准、不合并 PR 的权限边界 official-public-documentation-entry PR Steward 可在受关注 PR 上推送提交并回复评论;审批与合并必须由 GitHub 分支保护、人工审批和组织规则控制,不能由 Steward 代理代替完成。
doc_monitor_websocket_host_deny_boundary Monitor WebSocket 私有/链路本地/云元数据地址与被拒主机访问边界 official-public-documentation-entry WebSocket 监听拒绝指向私有、链路本地或云元数据地址的 URL,包括本机解析到这些地址的主机名;代理后的地址由代理侧阻断,Claude Code 不检查代理解析结果;被拒绝域名还包括 sandbox.network.deniedDomains 及托管策略主机范围。
sdk_third_party_login_terms_boundary Agent SDK 第三方 claude.ai 登录与商用条款边界 official-document-derived-entry 未经预先批准,第三方开发者不得在其产品(含 Agent SDK 构建的代理)中提供 claude.ai 登录或速率限制;应使用 Quickstart 的 API key 认证;SDK 受 Anthropic Commercial Terms 约束,特定组件另有 LICENSE 时以组件许可证为准。
sdk_third_party_claude_login_terms_boundary Agent SDK 第三方产品不得默认提供 claude.ai 登录或速率限制条款 official-public-documentation-entry 官方 Agent SDK 概览:除非先前获批,第三方开发者不得在自己产品(包括基于 Claude Agent SDK 构建的代理)中提供 claude.ai 登录或速率限制;应使用 Quickstart 描述的 API key 认证方式。该条目记录商用条款边界,不记录未公开认证实现。
sdk_claude_branding_allowed_terms Agent SDK 集成方 Claude 品牌用语允许范围与禁用 Claude Code 标识 official-public-documentation-entry 官方 Agent SDK 品牌指南:下拉菜单优先用 Claude Agent;菜单已标 Agents 时可用 Claude;可使用 {YourAgentName} Powered by Claude。禁止使用 Claude Code、Claude Code Agent,以及模仿 Claude Code 的 ASCII 艺术或视觉元素;产品须保留自有品牌,不得呈现为 Claude Code 或 Anthropic 产品。
doc_lsp_plugin_server_install_boundary LSP 语言服务器插件与二进制安装边界 official-public-documentation LSP 工具从插件读取语言服务器配置;服务器二进制由使用者自行安装;云端会话不启动插件语言服务器,无法启动服务器的 LSP 调用返回错误。
doc_perm_bash_rule_command_text_not_program_boundary Bash 规则只匹配生成命令文本,不构成程序级安全边界 official-public-documentation-entry 同一程序用绝对路径、shell -c 或 git -C 等不同形式调用时,文本规则不会自动覆盖;跨形式的文件系统与网络强制需依赖沙箱,PreToolUse Hook 可检查完整命令文本。
doc_tool_memory_limit_linux_wsl Linux/WSL 工具命令内存上限 cgroup 与共享配额边界 official-public-documentation-entry CLAUDE_CODE_TOOL_MEMORY_LIMIT 限制 Bash、PowerShell、Monitor 命令内存;同一会话这些命令计入同一配额,不按进程单独计;通过 cgroup 生效,设置失败则无限制;首次开启/关闭后需重启会话生效,内核杀进程结果不点名配额。
doc_mcp_proxy_auth_header_boundary MCP OAuth behind authenticating proxy: required header and Authorization separation proprietary-all-rights-reserved 当 MCP Server 位于检查自定义头的代理或网关之后,缺少代理头会导致 OAuth 登录失败;Claude Code 区分静态 headers 凭证、helper 输出凭证与 OAuth 流程,不把三者自动互相回退。
doc_cloud_session_settings_application 云端会话项目线程设置应用边界 proprietary-all-rights-reserved 云端会话运行在仓库新鲜克隆的云环境中,设置可达来源改变;项目线程不等同本地项目设置文件自动继承,权限规则、Hook 与环境变量需按云端会话边界核对。
doc_network_egress_default_deny 自托管部署默认拒绝出站网络访问 official-public-documentation-entry 官方部署文档:加固后的自托管环境采用 default-deny egress,只放行显式允许的域名、代理或服务;未列入规则的外部连接不能假设可访问。
doc_network_proxy_authorization_source 出站代理授权来源:命令或文件,禁止持久化明文凭证 official-public-documentation-entry 官方部署文档:Runner 通过 proxy-authorization-command 或 proxy-authorization-file 获取代理授权;凭证由部署环境提供,条目只记录授权来源边界,不收录令牌值。
tool_monitor_ws_binary_frame_boundary Monitor WebSocket:二进制帧不透传,仅占位提示 capability-derived WebSocket 文本消息逐行成为事件;二进制消息不透传,Claude 收到类似 [binary frame, 512 bytes] 的占位行;超过 1 MiB 的消息结束监控,socket 关闭时监控结束并收到关闭码。
doc_non_utf8_edit_write_encoding_guard Non-UTF-8 Edit/Write encoding refusal and U+FFFD guard proprietary-all-rights-reserved Edit/NotebookEdit 拒绝非 UTF-8 文件(UTF-16 BOM 除外);Write 可替换文件但新内容不得含 U+FFFD;保留原编码需走 Shell 命令。
doc_computer_use_hidden_apps 工作期间隐藏应用边界(Apps are hidden while Claude works) official-public-docs-derived computer use 操作期间其他应用界面被隐藏,以减少无关屏幕内容进入代理可见范围。
doc_local_app_data_cleanup 本地应用数据清理边界(Local application data cleanup) official-public-docs-derived 官方目录文档区分自动清理、保留至删除和明文存储的数据;清理边界约束 transcript、凭据、后台状态与记忆目录的保留策略。
fix_sandbox_excluded_commands_each_part_must_match sandbox.excludedCommands 复合 Bash 命令必须每一部分匹配才能整体豁免 changelog-derived sandbox.excludedCommands 的 glob 原先可能让整个复合 Bash 命令在仅一部分匹配时退出沙箱;修复后复合命令的每个部分都必须匹配才能豁免。
doc_legal_hipaa_baa_configuration HIPAA 配置:BAA 覆盖的 Claude Code CLI / Desktop Code 本地模式边界 official-doc-derived 组织与 Anthropic 签署 BAA 且启用 HIPAA 后,Claude Code CLI 或 Claude Desktop Code 标签页在本地模式下适用 HIPAA 配置;云会话、Remote Control、移动端及第三方云提供商或网关路由不在该覆盖范围内。
doc_legal_zdr_organization_configuration Zero Data Retention (ZDR) 组织级配置覆盖边界 official-doc-derived 为相关组织启用 ZDR 的 Claude Code 会话适用零数据保留配置;ZDR 并非对所有组织开放,覆盖范围与未覆盖路由需按官方实施指南逐项核对。
doc_legal_authentication_oauth_api_key_purpose OAuth 令牌与 API Key 认证用途区分边界 official-doc-derived Claude Code 通过 OAuth 令牌或 API Key 向 Anthropic 服务器认证;OAuth 面向 Free、Pro、Max、Ultra、Team、Enterprise 订阅购买者及普通原生应用使用,API Key 用于另一类凭证用途,二者不得混同。
chan_inbound_sender_gate 频道入站发送者白名单门禁(sender allowlist gate) configuration-documentation 未门禁的频道是提示注入入口;频道应在发出通知前按发送者身份而非房间身份校验白名单,阻止外部端点把文本直接注入会话。
doc_remote_trusted_devices Remote Control Trusted Devices 受信设备登记边界 official-public-docs-derived Remote Control 的 Trusted Devices 机制管理已登记设备;团队或组织可启用该策略,成员可见范围与设备登记管理按官方文档边界执行。
doc_sdk_secure_deployment Agent SDK Securely deploying AI agents 部署安全边界 official-public-docs-derived 官方 Agent SDK Deployment 分组下的安全部署条目:面向生产 AI 代理应用的部署安全约束;权限、Hook、会话与工具边界仍需在宿主应用内按 SDK 能力配置。
doc_mod_interrupt_queue_drop_boundary Mod post-interruption queued prompt/command drop boundary mixed-source-verify-license Esc 或 Stop 中断运行回合后,新会话工作在下次用户输入前被拒绝;排队中的 prompt 返回 drop 原因,排队命令被拒绝并报错;例外接口按版本规则处理。
doc_checkpoint_symlink_hardlink_skipped_on_restore 检查点恢复:符号链接与硬链接路径跳过 official-public-docs-derived 官方 checkpointing 文档:/rewind 恢复代码时,检查点跳过符号链接或硬链接路径,并显示跳过文件数警告;这些文件保留当前内容。边界:链接目标本身的外部改动不受检查点管理。
doc_checkpoint_not_replacement_for_version_control 检查点不是版本控制替代品 official-public-docs-derived 官方 checkpointing 文档:检查点面向会话内快速恢复;永久版本历史、协作、提交、分支与长期历史仍应使用 Git 等版本控制。条目区分会话恢复状态与仓库版本历史。
entry_2_1_328_deferred_tool_resume_disable_env CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME:阻止宿主恢复 Hook 延迟的工具调用 official-document-derived-entry 该环境变量允许宿主停止 claude -p --resume 与 --continue 继续执行被 Hook 延迟的工具调用;用于控制恢复会话中挂起工具动作的续跑边界。
doc_hook_disable_all_hooks_managed_hierarchy disableAllHooks 与托管 Hook 层级:用户设置不能关闭组织托管 Hook official-public-docs-derived disableAllHooks 开关受托管设置层级约束;非托管用户设置不能禁用组织策略下发的托管 Hook。该边界区分个人 Hook 关闭权限与组织策略强制 Hook。
doc_mcp_remove_server_local_oauth_boundary MCP remove deletes local OAuth tokens and client registration; server-side revocation is separate official-public-documentation-entry Removing a remote server deletes locally stored OAuth tokens and client registration, but does not revoke tokens at the issuing authorization server. Server-side revocation requires logout before remove when supported.
doc_sdk_session_store_mirror_best_effort SessionStore mirror append retry, timeout and mirror_error failure boundary official-doc-derived Official session-storage reference: rejected append batches retry up to two more times, three attempts total; timeouts are not retried because the original call may still land. Failed batches are logged as mirror_error and dropped without stopping the query; adapter implementations should dedupe by entry uuid.
doc_sdk_session_store_adapter_retention_boundary SessionStore retention is adapter-managed; SDK does not delete external transcripts official-doc-derived Official session-storage reference: the SDK never deletes records from an external store on its own; expiry, lifecycle, access controls and compliance retention belong to the adapter/backend. Local transcripts under CLAUDE_CONFIG_DIR are independently swept by cleanupPeriodDays.
entry_2_1_332_selfhosted_oauth_prefix_oat02 Self-hosted runner OAuth token accepts oat02- prefix alongside oat01- official-doc-derived Changelog 2.1.332: CLAUDE_CODE_OAUTH_TOKEN may now use a prefix ending oat02- in addition to oat01-; proxy rules and log scrubbers matching oat01- should be updated and the full value masked. Entry records public token-format boundary only, not token contents or validation internals.
doc_setting_disable_agent_view disableAgentView: background agents and agent-view availability boundary official-public-docs-derived Official settings reference: disabling this key turns off claude agents, --bg, /background, and the on-demand supervisor; managed settings can enforce it organization-wide. The environment variable and setting cannot re-enable each other after either disables the view.
doc_setting_worktree_background_isolation worktree.bgIsolation: background session worktree or direct working-copy edit mode official-public-docs-derived Official worktree settings: worktree blocks Edit and Write in the main checkout until a background session calls EnterWorktree; none lets background jobs edit the working copy directly. A session moved to the background with ← or /background edits in place regardless of this key.
doc_sandbox_filesystem_isolation Sandbox filesystem isolation: write/read paths and per-user temp directory official-public-docs-derived Official sandboxing docs: sandboxed Bash/PowerShell/Monitor commands write to the working directory, added directories, and the per-user temp directory; default reads are broad except denied paths, while permissions.blockReadsOutsideWorkingDirectories narrows reads. filesystem.disabled turns the filesystem layer off but network isolation can remain.
doc_sandbox_protected_paths Sandbox protected paths: settings, hooks, MCP config, Git metadata and credential store official-public-docs-derived Official sandboxing docs: within writable directories, the sandbox denies writes to loaded configuration/code paths such as .claude settings/skills/agents/commands/hooks, .mcp.json, workflows, scheduled tasks, shell startup files, .git hooks/config, bare-repository HEAD/objects/refs, and ~/.claude credential store. Permission rules protect before execution; this list applies to a running command.
doc_sandbox_network_isolation Sandbox network isolation: local proxy, domain allow/deny, non-TCP and proxy-ignore boundaries official-public-docs-derived Official sandboxing docs: sandboxed commands have no direct network route; Linux/WSL2 use a separate network namespace and macOS Seatbelt allows only the local sandbox proxy. The proxy checks requested hosts against allowed and denied domains; tools that ignore proxy variables, UDP/QUIC/HTTP3, and ICMP such as ping cannot leave the sandbox.
doc_sandbox_os_enforcement Sandbox OS-level enforcement: macOS Seatbelt and Linux/WSL2 bubblewrap isolation primitives official-public-docs-derived Official sandboxing docs: enforcement uses operating-system security primitives: macOS Seatbelt; Linux and WSL2 bubblewrap. The same boundary applies to Bash, PowerShell, Monitor commands and child processes; it complements permission rules rather than replacing them.
doc_sandbox_mask_credentials Sandbox credential masking: sentinel placeholder, TLS termination, inject hosts and trusted settings scope official-public-docs-derived Official sandboxing docs: mask entries expose a per-session sentinel to the command; the sandbox proxy substitutes the real credential on approved outbound requests. Masking requires TLS termination, an allowed destination/injectHosts, and trusted user/managed/--settings scope; deny takes precedence over mask, and file masking behavior differs on macOS versus Linux/WSL2.
doc_env_subprocess_scrub CLAUDE_CODE_SUBPROCESS_ENV_SCRUB: credential removal, retained GitHub tokens/proxy settings and Linux PID namespace official-public-docs-derived Official env-vars docs: the scrub removes recognized credential variables/values from Bash, hook and stdio MCP subprocess environments to reduce prompt-injection exposure; the Claude Code process retains credentials for its own API calls. It removes ANTHROPIC_API_KEY/AWS secret, name-shaped secrets such as NPM_TOKEN/DB_PASSWORD, and password-shaped DATABASE_URL; retains GitHub tokens and HTTP(S)_PROXY settings. On Linux it also runs Bash subprocesses in an isolated PID namespace so /proc cannot read host process environments.
entry_2_1_332_env_empty_string_unset_boundary Settings env empty string treated as unset; subprocess still inherits empty value official-document-derived-entry Env-vars documentation: an empty settings-file env value is treated as unset for provider selection; subprocesses still inherit the empty value. Distinguishes selection-time unset semantics from process-environment inheritance.
entry_env_settings_absolute_path_shorthand_boundary Settings env values copied as written; shell shorthand remains literal, paths need absolute form official-document-derived-entry Env-vars documentation: settings-file env values are copied into the process environment as written and are not shell-processed; shorthand such as ~ or $HOME stays typed, so path variables must use an absolute path.
doc_voice_dictation_audio_server_transcription_boundary Voice dictation audio streams to Anthropic servers for transcription; audio is not processed locally official-document-derived-entry Official voice dictation documentation: recorded audio is streamed to Anthropic servers for transcription and is not processed locally. Eligibility also depends on a Claude.ai account and supported local session/platform conditions; this entry records the public data-handling boundary only and excludes any speech model or internal recognition implementation.
doc_perm_workspace_trust_home_session_only_no_disk 主目录启动的工作区信任仅当前会话有效且不落盘 official-document-derived-entry 工作区信任范围:仓库内按 Git 根覆盖仓库(嵌套 Git 除外),仓库外按启动目录覆盖子目录;从主目录启动时信任只保持当前会话,不写入磁盘。非交互 -p 与 SDK 会话不弹信任对话框。
glossary_project_trust Project trust: directory approval before repository configuration loads official-doc-derived Official glossary: a directory is accepted before Claude Code loads its configuration; acceptance is saved per project directory except the home directory, where trust lasts only the current session. Untrusted project allow rules and marketplaces are withheld.
glossary_prompt_injection Prompt injection: hostile instructions embedded in files, web pages or tool results official-doc-derived Official glossary: injected instructions attempt to redirect Claude toward actions not requested by the user. Defenses documented publicly include the permission system, command-injection detection, trust verification and, in auto mode, a server-side probe/classifier over tool results.
glossary_sandboxing Sandboxing: OS-level filesystem and network isolation for the Bash tool official-doc-derived Official glossary: commands run inside an upfront-defined boundary; sandboxing is a separate layer from permission rules. Existing sandbox records break out filesystem isolation, protected paths, network isolation, OS enforcement, credential masking, excluded commands and unavailable-fail behavior.
doc_workflow_deterministic_timestamps_randomness_boundary Workflow deterministic replay: Date.now, Math.random and no-arg Date throw official-public-docs-derived Official workflows documentation: Date.now(), Math.random(), and a no-argument new Date() throw inside the workflow script so a relaunched run repeats the same agent() calls. Pass any required timestamp or random value through args instead of reading nondeterministic runtime APIs in the script.
doc_workflow_save_symlink_guard Workflow save symlink guard for project and personal locations official-public-docs-derived Official workflows documentation: before writing a saved workflow, Claude Code checks symlinks and shows an error rather than writing through one. In the project location it refuses if .claude, .claude/workflows, or the target file is a symlink; in the personal home location it refuses only when the target file itself is a symlink, leaving a dotfiles-managed ~/.claude directory usable.
doc_sdk_custom_tool_error_is_error_raw_exception Custom tool error: caught isError result versus uncaught raw exception continuation official-document-derived-entry Agent SDK custom-tools documentation: the in-process MCP server catches an uncaught handler exception and returns the raw exception message as an error result; the agent loop continues. A handler that catches the failure and returns isError: true composes the message Claude reads, allowing added context. The error report determines wording, not whether the query fails.
doc_sdk_session_store_optional_delete_cascade SessionStore delete: main-key cascade to subkeys and summary; omission is append-only no-op official-document-derived-entry Session-storage documentation: the optional delete method removes the main key, all subkeys for that session, and the summary entry so a deleted session disappears from listSessionSummaries. If delete is omitted, deletion is a no-op, which suits append-only backends; retention remains adapter-managed.
entry_2_1_332_retired_model_step_down_warning Retired Foundry models stop step-downs above them; pinned retired model warns official-changelog-derived-entry Changelog 2.1.332: Microsoft Foundry treats Claude Sonnet 4, Opus 4 and Opus 4.1 as retired, so model step-downs stop above those versions and a pin to a retired model warns. The entry records retirement status and selection boundary; it does not expose deployment credentials or internal model identifiers beyond public release names.
env_workload_identity_federation Workload Identity Federation 联邦身份环境变量 proprietary-all-rights-reserved ANTHROPIC_FEDERATION_RULE_ID 与 ANTHROPIC_ORGANIZATION_ID 配对用于 Workload Identity Federation;ANTHROPIC_WORKSPACE_ID 在联邦规则覆盖多个工作区时指定目标工作区。
setting_sandbox_enabled sandbox.enabled Bash 命令沙箱总开关 official-public-docs-derived 开启后 Claude Code 对 Bash 命令执行沙箱隔离;/sandbox 面板选择模式时会把该键写入项目本地设置,用户级设置可覆盖所有项目。
setting_sandbox_auto_allow_bash sandbox.autoAllowBashIfSandboxed 沙箱内 Bash 免提示 official-public-docs-derived 沙箱内 Bash 命令可跳过权限提示;无法在沙箱内运行的命令仍走常规权限流,deny 规则与内容范围 ask 规则继续适用。
setting_sandbox_allow_unsandboxed_retry sandbox.allowUnsandboxedCommands 沙箱外重试开关 official-public-docs-derived 为 true 时被沙箱阻断的命令可携带 dangerouslyDisableSandbox 参数在沙箱外重试;false 时忽略该参数,形成严格沙箱模式。
setting_sandbox_fs_allow_write sandbox.filesystem.allowWrite 沙箱允许写路径 official-public-docs-derived 在工作目录、用户临时目录与已添加目录之外,追加沙箱命令可写路径,用于构建工具或 kubectl 等子进程写项目外位置。
setting_sandbox_fs_deny_write sandbox.filesystem.denyWrite 沙箱禁止写路径 official-public-docs-derived 阻断沙箱命令对指定路径的写入,包括可写目录内部的路径;常用于保护系统配置或安装二进制位置。
setting_sandbox_fs_deny_read sandbox.filesystem.denyRead 沙箱禁止读路径 official-public-docs-derived 阻断沙箱命令读取默认读取策略可能暴露的指定路径;凭据类文件且需要经代理使用时应优先查看 sandbox.credentials 边界。
setting_sandbox_fs_allow_read sandbox.filesystem.allowRead 受限区域内允许读路径 official-public-docs-derived 在 denyRead 阻断的区域内重新开放特定路径读取,用于构建仅限工作区的读取访问;精确或通配 denyRead 仍优先于更宽 allowRead。
setting_sandbox_fs_disabled sandbox.filesystem.disabled 仅保留网络隔离的文件系统豁免 official-public-docs-derived 开启后跳过文件系统隔离、保留网络隔离;沙箱命令可 unrestricted 读写主机文件系统,出站网络仍受允许域约束。
setting_sandbox_network_strict_allowlist sandbox.network.strictAllowlist 网络严格白名单 official-public-docs-derived 白名单之外主机直接拒绝,而不是按权限模式提示;白名单由 allowedDomains 与 WebFetch domain allow 规则组成,托管模式下仅采用托管条目。
setting_sandbox_network_allowed_domains sandbox.network.allowedDomains 预允许出站域名 official-public-docs-derived 预允许沙箱命令出站访问的域名、通配符、IP 字面量与可选端口后缀;未配置时新主机由权限模式决定。
setting_sandbox_network_denied_domains sandbox.network.deniedDomains 阻断出站域名 official-public-docs-derived 使用与 allowedDomains 相同的通配符、端口和 IPv6 语法阻断域名;即使同时匹配允许条目,被拒绝域名仍保持阻断。
setting_sandbox_ignore_violations sandbox.ignoreViolations: suppress expected denied-path violation reports without removing the block official-document-derived-entry Official settings-reference: ignoreViolations maps command substrings to violation substrings, usually paths, so expected probes such as a tool checking /etc/hosts do not appear as violations. The sandbox still blocks the access; only the report is suppressed. Project and local settings have limits under an admin-required sandbox.
setting_sandbox_weaker_nested_sandbox sandbox.enableWeakerNestedSandbox: reuse container /proc instead of mounting a fresh one official-document-derived-entry Official settings-reference: inside an unprivileged Docker container, bubblewrap cannot mount a fresh /proc. enableWeakerNestedSandbox=true bind-mounts the container's existing /proc, exposing process information a fresh mount would hide. The official boundary states this reduces security and should be used only when the outer container already provides isolation; Linux and WSL2 only.
setting_sandbox_weaker_network_isolation sandbox.enableWeakerNetworkIsolation: macOS trustd access for Go CLI TLS verification behind a MITM proxy official-document-derived-entry Official settings-reference: enableWeakerNetworkIsolation lets macOS sandboxed commands reach com.apple.trustd.agent so Go tools such as gh, gcloud and terraform can verify TLS when network.httpProxyPort is used with a MITM proxy and custom CA. The documentation states this opens a potential data-exfiltration path through the trust service; without a MITM proxy, excludedCommands is the recommended alternative.
setting_sandbox_allow_apple_events sandbox.allowAppleEvents: permit macOS Apple Events from sandboxed commands official-document-derived-entry Official settings-reference: allowAppleEvents lets open, osascript and URL-opening tools send Apple Events on macOS; without it they fail with error -600. The documentation states this removes code-execution isolation: sandboxed commands can launch other unsandboxed applications and send AppleScript to running apps, subject to macOS TCC automation consent. Use excludedCommands for a single trusted tool when isolation must be kept.
setting_sandbox_allow_nested_user_namespaces sandbox.allowNestedUserNamespaces: permit Linux/WSL2 user-namespace creation with explicit loss of boundary reliance official-document-derived-entry Official settings-reference: allowNestedUserNamespaces lets Chromium/Electron sandboxes, nested bubblewrap and unshare create namespaces on Linux and WSL2. Enabling it turns off a security boundary: sandboxed code can end up outside the sandbox, and protected paths or credential-files entries must not be relied on to stop a malicious command. Project/local true values are ignored; a subprocess env-scrub setting also ignores true from every source.
setting_sandbox_credentials_plaintext_inject sandbox.credentials.allowPlaintextInject: allow masked-credential injection on plain HTTP official-document-derived-entry Official settings-reference: allowPlaintextInject permits mask substitution on plain HTTP as well as TLS-terminated HTTPS. On plain HTTP the upstream identity is unverified and the credential travels in cleartext, so the official guidance leaves it off outside trusted test networks. The setting honors only user, managed and --settings sources for mask behavior.
setting_sandbox_credentials_aws_pairs sandbox.credentials.awsPairs: group custom-named masked variables into one AWS SigV4 credential official-document-derived-entry Official settings-reference: awsPairs links accessKeyIdVar, secretAccessKeyVar and optional sessionTokenVar entries for non-standard AWS variable names; the conventional AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN trio pairs automatically. Each named variable must be a whole-value mask envVars entry without extract or decode, and fills one slot across all pairs. The proxy re-signs only on hosts named in the access key entry's injectHosts.
setting_sandbox_credentials_sigv4 sandbox.credentials.sigv4: deny or passthrough policy for non-resignable AWS request forms official-document-derived-entry Official settings-reference: sigv4 chooses what the proxy does with streaming aws-chunked uploads, presigned URLs and SigV4A asymmetric signatures that it cannot re-sign. Each form can be deny, which fails the request, or passthrough, which forwards the request signed with the masked placeholder so AWS rejects it. This applies only to requests signed with a masked pair's placeholder access key ID; unset defaults to deny for every form.
setting_sandbox_network_all_unix_sockets sandbox.network.allowAllUnixSockets: allow every sandboxed Unix/VM socket connection official-document-derived-entry Official settings-reference: allowAllUnixSockets=true permits sandboxed commands to connect to every Unix socket; on Linux and WSL2 it also permits AF_VSOCK VM sockets. The Linux/WSL2 seccomp filter otherwise blocks AF_UNIX calls when present; on macOS only paths listed in allowUnixSockets are permitted. On WSL2, true also reopens the interop socket used to launch Windows binaries such as cmd.exe and powershell.exe.
setting_sandbox_network_allow_local_binding sandbox.network.allowLocalBinding: macOS sandboxed port listening and localhost connections official-document-derived-entry Official settings-reference: allowLocalBinding lets macOS sandboxed commands listen on network ports, for example to start a dev server, and connect to any localhost port. A command listening on a non-loopback address can accept connections from other machines. The key has no effect on Linux and WSL2, where each sandboxed command has its own loopback interface.
setting_sandbox_network_allow_mach_lookup sandbox.network.allowMachLookup: list permitted macOS XPC/Mach service names official-document-derived-entry Official settings-reference: allowMachLookup lists additional XPC and Mach service names the macOS sandbox may look up, such as services used by the iOS Simulator or Playwright. A trailing single wildcard matches a prefix; a standalone wildcard matches every service. Listed services reachable from the sandbox are not confined by the sandbox as to what those services do for the command.
setting_sandbox_network_allow_managed_domains_only sandbox.network.allowManagedDomainsOnly: lock domain allowlist to managed settings official-document-derived-entry Official settings-reference: when allowManagedDomainsOnly is true, the sandbox honors only allowedDomains and WebFetch(domain:...) rules from managed settings, ignores domains from user, project, local and --settings files, and blocks non-allowed domains automatically instead of prompting. Denied domains still merge from every loaded source. While true, the sandbox is admin-required and only managed settings can set a proxy port.
setting_sandbox_network_tls_terminate sandbox.network.tlsTerminate: sandbox proxy TLS termination for HTTPS inspection and masked credentials official-document-derived-entry Official settings-reference: tlsTerminate makes the sandbox proxy terminate TLS so it can read HTTPS request contents. The feature is experimental; mask credential substitution requires it. An empty object generates an ephemeral session certificate authority, or caCertPath and caKeyPath select an own CA. A repository cannot enable it or supply a CA; among honored sources the highest-precedence value wins: managed settings, --settings, then user settings.
doc_cross_session_inbox_token_boundary Cross-session inbox socket token and per-user socket ownership boundary official-public-docs-derived Each messaging-enabled session exports CLAUDE_CODE_MESSAGING_SOCKET and a per-session CLAUDE_CODE_MESSAGING_TOKEN. macOS/Linux restrict the socket to the OS user; native Windows requires connection authentication with a user-readable key; unsafe directories are rejected in favor of a private per-user directory.
entry_2_1_332_helper_command_timeout_hang Helper command such as an API key helper running past its time limit no longer causes a rare hang official-public-docs-derived Official changelog fix: a rare hang occurred when a helper command, such as an API key helper, ran past its time limit. The entry records helper subprocess timeout boundary; credential values, helper script source and key material are excluded.
doc_sdk_structured_output_format_annotation_not_enforced JSON Schema format keyword accepted as annotation and not enforced by the SDK validator official-public-docs-derived Official schema boundary: standard JSON Schema basic types, enum, const, required, nested objects and $ref definitions are supported; the format keyword such as email is accepted as an annotation and the SDK validator does not enforce it. This records validation scope, not the validator's internal schema parser.
doc_tool_search_catalog_size_limit Tool search catalog maximum: 10,000 tools; default search returns up to five relevant results official-public-docs-derived Official tool-search limits: the tool catalog supports a maximum of 10,000 tools, and each search returns up to the five most relevant tools by default. This entry records public catalog-size and result-count boundaries, not ranking model internals.
doc_team_one_team_per_session_boundary Agent Teams one-team-per-session boundary: no extra named teams and no cross-session sharing official-public-docs-derived Official Agent Teams limitation: a session contains exactly one team, scoped to that session. A teammate definition cannot create additional named teams, and an existing team cannot be shared across sessions. This entry records the public session scope only; internal team-state storage is not modeled.
doc_team_no_nested_teammates_boundary Agent Teams no nested teammates: only the lead manages teammates and teammates cannot spawn teammates official-public-docs-derived Official Agent Teams architecture limitation: teammates cannot spawn their own teammates; only the lead manages the team. This prevents nested team hierarchies. The entry records the public delegation boundary and does not expose internal spawn state.
doc_team_lead_fixed_boundary Agent Teams fixed lead: main session remains lead for its lifetime; no teammate promotion or leadership transfer official-public-docs-derived Official Agent Teams limitation: the main session is the lead for its lifetime. A teammate cannot be promoted to lead, and leadership cannot be transferred to another session. This entry records the public role-stability boundary.
doc_team_inprocess_subagents_foreground_boundary In-process teammate subagents run in foreground: teammate background work cannot outlive the lead process official-public-docs-derived Official Agent Teams limitation: an in-process teammate's own subagents run in the foreground because a teammate's background work cannot outlive the lead process. The boundary separates in-process teammates from ordinary main-conversation background subagent defaults.
doc_action_oidc_id_token_write_permission Claude Action OIDC federation requires workflow id-token: write permission official-public-docs-derived Official GitHub Actions documentation: Workload Identity Federation exchanges the workflow GitHub OIDC token for Claude API access through a Claude Console service account. The workflow must grant id-token: write for the federation exchange, even when a custom github_token input is passed. This entry records the documented permission boundary only.
doc_action_scheduled_workflow_default_branch_activity_boundary Scheduled Action workflow runs from the default branch; public schedules stop after 60 days without repository activity official-public-docs-derived Official GitHub Actions scheduling boundary: GitHub runs scheduled workflows only from the default branch. In public repositories, GitHub disables the schedule after 60 days without repository activity. This entry records the documented platform availability rule for scheduled Action runs.
doc_artifact_compliance_activity_feed_boundary Enterprise Artifact activity audit via Compliance API Activity Feed official-public-docs-derived Official Artifacts documentation: Enterprise plans can query the Compliance API Activity Feed for who published, shared or deleted an artifact; activity types containing artifact in the Activity Feed reference identify the relevant filters. This records the audit boundary, not credentials, API payloads or retained artifact contents.
doc_artifact_viewer_allowlist_sandbox_origin Artifact viewer sandboxed claudeusercontent.com origin allowlist boundary official-public-docs-derived Official Artifacts documentation: the claude.ai viewer loads each artifact from a sandboxed *.claudeusercontent.com origin; organizations restricting outbound network access must allowlist that domain alongside claude.ai. External typefaces and viewer-side dependencies may impose additional network requirements.
doc_worktree_agent_git_lock_lifecycle Agent-created git worktree lock protects the first run; sweep releases process-exited locks but never manual locks official-public-docs-derived Official worktree documentation: Claude Code takes git worktree lock on a worktree created for an agent so concurrent cleanup cannot remove it before resume; a backgrounded-session worktree keeps the same lock while the session runs. The sweep releases locks set for exited sessions, preventing a killed background session from leaving a permanent lock, but never releases a lock the user set manually. Cleanup may require git worktree unlock before --force removal.
doc_agent_view_state_storage_files Supervisor roster, daemon log, session state.json, scratch tmp directory and CLAUDE_JOB_DIR storage boundary official-public-docs-derived Official agent-view documentation: session state lives under the Claude Code config directory. daemon.log records the supervisor log; daemon/roster.json lists running background sessions for reconnect after restart; jobs//state.json holds the per-session state shown in agent view; jobs//tmp is the per-session scratch directory and is removed when the session is deleted. Each session exports CLAUDE_JOB_DIR to its jobs/ directory. These files are not a stable external interface; programmatic readers should use claude agents --json.
doc_agent_view_launch_flags_carryover MCP, settings, setting sources, add-dir, plugin dir, fallback model and session-added directories carried into background official-public-docs-derived Official agent-view documentation: original launch configuration flags carry through to the backgrounded session, so its MCP servers, settings and fallback model remain in effect. Carried flags include --mcp-config, --strict-mcp-config, --settings, --setting-sources, --add-dir, --plugin-dir, --fallback-model and --allow-dangerously-skip-permissions; directories added during the session with /add-dir also carry through. Keeping --allow-dangerously-skip-permissions only preserves bypassPermissions reachability; it does not grant a new permission mode, and bypass disclaimer acceptance still has to be on record.
setting_sandbox_fs_allow_managed_read_only sandbox.filesystem.allowManagedReadPathsOnly: honor managed allowRead entries only official-doc-derived Official settings-reference: when true, only allowRead entries from managed settings reopen paths; denyRead entries still merge across every settings scope. This managed-only lock prevents developers from widening read access that an organization blocked.
setting_sandbox_credentials_files sandbox.credentials.files: deny or mask credential files for sandboxed commands official-doc-derived Official settings-reference: each entry names a file or directory path with deny or mask. deny blocks sandboxed reads like filesystem.denyRead; mask gives Linux/WSL2 commands a sentinel copy and the proxy substitutes the real value only on requests to the entry's injectHosts, while macOS exposes the file as unreadable. Project and local settings drop mask entries.
setting_sandbox_credentials_env_vars sandbox.credentials.envVars: remove or mask credential environment variables official-doc-derived Official settings-reference: deny removes the variable from the sandboxed command environment; mask exposes a per-session sentinel, and the sandbox proxy substitutes the real value on outbound requests to the entry's injectHosts so tools such as gh and npm can authenticate without holding the real credential. Project and local settings drop mask entries; variable names must match the documented letter, underscore, digit grammar.
setting_sandbox_network_allowed_unix_sockets sandbox.network.allowUnixSockets: listed macOS Unix socket paths for sandboxed commands official-doc-derived Official settings-reference: this array names Unix socket paths sandboxed commands may connect to on macOS. Claude Code ignores the list on Linux and WSL2, where the seccomp filter cannot inspect socket paths; allowAllUnixSockets is the platform-wide alternative there.
env_api_force_idle_timeout API_FORCE_IDLE_TIMEOUT:流式响应空闲体超时覆盖 official-doc-derived Override the five-minute body idle timeout that aborts a streaming model response when no bytes arrive; 0 disables it, 1 keeps it active for every provider, unset leaves the default provider-specific behavior.
env_process_wrapper_corporate_launcher CLAUDE_CODE_PROCESS_WRAPPER:子进程企业启动器前缀 official-doc-derived Launches Claude Code-spawned processes, including the background service hosting agent-view sessions, through a corporate argv-prefix launcher. Set in user or managed settings env; project/local settings cannot set it and detached background services must inherit it.
env_tmpdir_internal_temp_override CLAUDE_CODE_TMPDIR:内部临时目录覆盖与沙箱短路径边界 official-doc-derived Overrides the temp directory used for internal files; Claude Code appends /claude-{uid}/ on Unix or /claude/ on Windows. Sandboxed macOS/Linux Bash subprocesses receive a short fallback TMPDIR under the system default when the override path is too long.
doc_setting_api_key_helper_command apiKeyHelper runs a shell command to produce rotating model-request credentials official-doc-derived Official settings-reference: apiKeyHelper names a command run through the system shell (/bin/sh on macOS/Linux, cmd on Windows); its output is sent as both X-Api-Key and Authorization: Bearer for model requests. It targets dynamic or rotating credentials such as short-lived vault tokens. Credential values themselves are not stored as ontology facts.
doc_setting_otel_headers_helper_command otelHeadersHelper generates rotating OpenTelemetry export headers from a command official-doc-derived Official settings-reference: otelHeadersHelper names an executable path or shell command that supplies headers for OpenTelemetry exports, intended for backends whose tokens rotate. Claude Code runs it at startup and periodically afterward; stdout must be a JSON object of string header values. The helper is separate from the model API key helper.
setting_strict_plugin_only_customization strictPluginOnlyCustomization: lock skills, agents, hooks and MCP servers to non-user/project sources official-doc-derived Official settings-reference: strictPluginOnlyCustomization blocks skills, agents, hooks and MCP servers supplied by user and project sources. The value is true to lock all surfaces, or an array naming skills, agents, hooks or mcp to lock. Any locked surface also stops loading skills-directory plugins that users keep locally; combine it with strictKnownMarketplaces to restrict install marketplaces.
setting_http_hook_allowed_env_vars httpHookAllowedEnvVars lists environment variables an HTTP hook may expose official-doc-derived Official settings reference: an HTTP hook can place an environment variable value in a request header only when both the hook's own allowedEnvVars and this setting's merged list name it. Arrays merge across settings files; managed settings can cover organization-deployed hooks. This records the credential/header exposure boundary, not hook internals.
setting_http_hook_allowed_urls allowedHttpHookUrls restricts HTTP hook target URL patterns official-doc-derived Official settings reference: this setting limits which URLs HTTP hooks can target. A covered hook runs only when its URL matches a wildcard pattern in the list merged across settings files; unset means no URL restriction. It constrains outbound hook destinations rather than hook script execution details.
setting_webfetch_skip_preflight skipWebFetchPreflight skips the per-hostname WebFetch domain safety check official-doc-derived Official settings reference: the WebFetch domain safety check normally sends each requested hostname to api.anthropic.com before fetching. This Boolean skips that check in environments that block traffic to Anthropic, such as restrictive-egress Bedrock, Agent Platform, or Foundry deployments. False or unset runs the check before the first fetch to each hostname in a session, and again after a blocked or failed earlier check.
setting_deep_link_registration_disabled disableDeepLinkRegistration suppresses the claude-cli:// OS protocol handler official-doc-derived Official settings reference: this string value stops Claude Code from registering the claude-cli:// protocol handler with the operating system. Deep links let external tools open a Claude Code session with a pre-filled prompt; the setting suits environments where handler registration is restricted or managed separately. Unset means Claude Code registers the handler.
setting_desktop_remote_preview_scripts_disabled disableRemotePreviewScripts keeps SSH/WSL HTML preview scripts from running official-doc-derived Official settings reference: this Managed Boolean keeps scripts from running when people preview an HTML file in the desktop Browser pane from an SSH or WSL session. External browsing in that pane is unaffected. The desktop app does not read the key from the remote machine or WSL distribution; earlier Desktop versions ignore it, and there disableBrowserExternalNavigation also disables external browsing.
doc_sdk_session_store_adapter_retention_lifecycle_boundary SessionStore external retention is adapter- or backend-managed, not SDK-deleted official-doc-derived Official session-storage documentation: the SDK never deletes transcripts from an external store on its own. Retention belongs to the adapter and its backend through expiry, lifecycle rules, or scheduled cleanup chosen for compliance. Local transcripts under CLAUDE_CONFIG_DIR are swept independently by cleanupPeriodDays; a store-resumed run leaves no local transcript, so its store retention is the only retention on that path.
doc_sdk_custom_tool_python_binary_resource_drop_boundary Custom-tool binary resource blob: TypeScript supports blob; Python drops it with a warning official-doc-derived Official custom-tools documentation: a resource block identifies content by URI and carries either inline text or binary blob content, not both. TypeScript SDK can pass the base64 binary resource blob; the Python SDK drops binary resources from the tool result and logs a warning. Text resources remain the portable cross-language path when binary payload support differs.
doc_worktree_partial_clone_object_fetch_boundary Worktree creation in a partial clone requires the starting commit objects to be available official-doc-derived Official worktrees documentation: an error naming a partial clone means Claude Code could not fetch every Git object needed for the worktree's starting commit. Follow the repository fetch step named in the message, then retry claude --worktree or start Claude in that worktree. This is a Git object-availability boundary, not a permission grant for an existing checkout.
doc_large_codebase_settings_not_inherited_from_parent Monorepo project settings do not inherit from parent directories unlike CLAUDE.md loading official-doc-derived Official large-codebase documentation: where Claude is launched determines which files it can read or edit without an extra grant, which CLAUDE.md files load at startup, and which project settings apply. Project settings in .claude/settings.json are not inherited from parent directories the way CLAUDE.md files are. Each package .claude/settings.json in the monorepo layout must therefore be self-contained rather than layered on a root file.
doc_artifact_source_type_location_rendered_size_constraint Artifact source file type, source location and 16 MiB rendered-size publish constraints official-doc-derived Official artifacts page constraints: the published source file must be .html, .htm, or .md and decode as UTF-8, or little-endian UTF-16 with its byte-order mark; a file containing the replacement character U+FFFD is refused with the line and column to fix. A source path naming a network host is refused without being read, with the mapped Windows drive exception documented separately. The rendered page must be 16 MiB or smaller; large embedded images are the usual size-cause on publish failure.
doc_artifact_csp_public_cdn_fonts_boundary Artifact CSP: Google Fonts and five public script CDN hosts; other external images, scripts, stylesheets and fonts blocked proprietary-all-rights-reserved 制品页面被封装在 HTML shell 中并受严格 CSP:可加载 Google Fonts 以及 cdnjs、unpkg、Tailwind CDN、jQuery CDN、jsDelivr 选定路径;其他外部图片、脚本、样式表与字体被阻断,页面内其他 CSS/JS 需内联,图片以 data URI 嵌入。
doc_artifact_viewer_sandbox_origin_allowlist Artifact viewer sandboxed *.claudeusercontent.com origin and outbound allowlist boundary proprietary-all-rights-reserved 查看器在沙箱化 *.claudeusercontent.com 来源加载制品;组织出站网络限制时需将该域名加入允许清单,字体请求可选访问 fonts.googleapis.com 与 fonts.gstatic.com。
doc_artifact_download_capability_declaration_boundary Artifact file download requires declared downloads capability; page scripts cannot self-start data: or blob: downloads proprietary-all-rights-reserved 制品生成的 CSV、PNG 等文件下载是 claude.ai 按账号启用的运行时能力;发布时随制品声明下载能力。查看器阻断页面自行启动的普通下载链接与脚本下载,包括 data: 或 blob: URL。
doc_channel_inbound_sender_identity_gate Channel inbound message gating checks sender identity, not chat or room identity official-doc-derived 官方 Channels reference:未加门禁的频道是提示注入向量;发出 mcp.notification 前必须按发送者允许列表检查。群聊应使用 message.from.id,而不是 message.chat.id;允许房间身份不能让群内其他人注入消息。
doc_statusline_local_script_no_api_tokens Status line runs locally with JSON on stdin and does not consume API tokens official-doc-derived 官方 statusline 文档:状态行脚本在本地运行,从 stdin 接收会话 JSON 并显示 stdout 输出;该本地展示环节不消耗 API 令牌。脚本在帮助菜单、权限提示等部分 UI 交互期间临时隐藏。
doc_remote_control_local_vs_cloud_session_runtime_boundary Remote Control runs the local machine session; cloud sessions run Anthropic-managed cloud infrastructure official-doc-derived 官方 Remote Control 文档:Remote Control 与云会话共享 claude.ai/code 界面,区别在运行位置:Remote Control 在用户机器上执行,本地 MCP 服务器、工具和项目配置保持可用;云会话在云基础设施执行,默认由 Anthropic 托管。本地机器须保持开机且 claude 进程持续运行。
doc_sdk_stream_cutoff_missing_delta_boundary Cut-off SDK stream may omit content_block_stop and message_delta before message_stop official-public-docs-derived After an interrupted turn, dropped connection, or fallback to non-streaming, message_stop can arrive without content_block_stop or message_delta. An open tool-call block must then be treated as incomplete; do not block on the missing delta.
doc_sdk_stream_event_subagent_exclusion_boundary StreamEvent token deltas exclude subagents; complete messages retain parent_tool_use_id official-public-docs-derived Partial stream events are emitted for the main session only; token-level deltas from subagents are not forwarded. To attribute output to a subagent, use complete messages carrying parent_tool_use_id.
doc_sdk_cost_usd_client_estimate_boundary total_cost_usd / costUSD are client-side estimates, not authoritative billing data official-public-docs-derived The SDK computes USD cost locally from a build-time price table, or from an active modelPricing table. Pricing changes, an unrecognized model, or billing rules the client cannot model can drift from actual charges; do not bill end users or make financial decisions from these fields.
doc_cloud_github_proxy_credential_vm_boundary Cloud GitHub credentials stay encrypted server-side and are not placed in the session VM official-public-docs-derived In Anthropic-hosted environments, GitHub credentials are encrypted on Anthropic servers and never enter a session VM. VM-side GitHub operations go through a GitHub proxy that attaches the credential on the server side.
doc_analytics_zdr_contribution_metrics_boundary Zero Data Retention organizations see usage metrics only; contribution metrics are unavailable official-public-docs-derived Contribution metrics are not available when an organization has Zero Data Retention enabled. The analytics dashboard still shows usage metrics; this boundary separates retained usage reporting from GitHub-assisted contribution attribution.
setting_strict_plugin_only_customization_skills strictPluginOnlyCustomization.skills: lock the skills customization surface official-doc-derived Official settings reference: locking the skills surface stops loading skills from ~/.claude/skills/ and .claude/skills/, custom commands from the matching user and project commands directories, skills and commands under --add-dir directories, and skills synced from the claude.ai account. Bundled skills, managed-policy skills, and non-skills-directory plugin skills remain allowed.
setting_strict_plugin_only_customization_agents strictPluginOnlyCustomization.agents: lock the agents customization surface official-doc-derived Official settings reference: locking the agents surface stops loading agents from ~/.claude/agents/, .claude/agents/, and --add-dir directories. Built-in agents, agents in the managed policy directory, and agents from plugins other than skills-directory plugins remain allowed.
setting_strict_plugin_only_customization_hooks strictPluginOnlyCustomization.hooks: lock the hooks customization surface official-doc-derived Official settings reference: locking the hooks surface stops hooks from user, project, and local settings.json files and frontmatter hooks in skills, custom commands, and agents that the matching skills or agents lock would block. Managed-setting hooks and hooks from non-skills-directory plugins remain allowed.
setting_strict_plugin_only_customization_mcp strictPluginOnlyCustomization.mcp: lock the MCP customization surface official-doc-derived Official settings reference: locking the MCP surface stops loading MCP servers from ~/.claude.json and .mcp.json. Managed-mcp.json servers, servers listed in managedMcpServers, and MCP servers from non-skills-directory plugins remain allowed.
doc_advisor_provider_gateway_main_model_requirements Advisor availability depends on supported provider, gateway forwarding and supported main model official-public-docs-derived Official advisor documentation: the advisor requires the Anthropic API, Claude Platform on AWS, or Anthropic-managed Claude Models on Google Cloud; it is unavailable on Amazon Bedrock, Google Cloud Agent Platform, or Microsoft Foundry. AWS and Google Cloud managed paths require Claude Code v2.1.300 or later. Through an LLM gateway, availability depends on intact forwarding; an unsupported main model limits advisor use.
doc_channel_plugin_marketplace_allowlist_boundary Channel plugins shareable via marketplace remain outside the approved channel allowlist official-public-docs-derived Official Channels reference: a channel can be wrapped as a plugin and installed through /plugin install, enabled per session with --channels plugin:@. A self-published marketplace channel still needs the development-channel flag because it is not on the approved allowlist; the community marketplace is not allowlisted, and Team/Enterprise admins may add a plugin through allowedChannelPlugins.
doc_agent_view_preview_local_quota_worktree_limits Agent-view preview limits: subscription quota is shared; local sessions stop on shutdown; created worktrees delete with the session official-public-docs-derived Official agent-view documentation: agent view remains research preview. Background sessions consume subscription usage like interactive sessions, so ten parallel agents use quota roughly ten times as fast as one. Sessions run locally, survive sleep but stop when the machine shuts down; Claude-created worktrees are deleted with the session in agent view, so commit changes before deleting such a session.
doc_plugin_relevance_marketplace_managed_source_allowlist Plugin suggestions remain hidden until managed settings allowlist the registered marketplace source official-doc-derived 官方推荐文档:即使 marketplace.json 声明了 relevance,终端用户在管理员通过托管设置允许该市场前看不到建议;市场还必须在 extraKnownMarketplaces 或 strictKnownMarketplaces 中注册来源。来源检查阻止无关市场以被允许的名称注册后跨组织推荐插件。
doc_marketplace_host_size_timeout_redirect_security_boundary Hosted marketplace download limits: marketplace.json size/time, archive size/time, HTTPS redirect host restrictions official-doc-derived 官方托管文档:URL 市场的 marketplace.json 上限 5 MiB、服务器 10 秒内响应;archive 插件 zip 上限 256 MiB、120 秒响应、最多五次重定向。重定向必须使用 HTTPS,不能指向 loopback、link-local 或云元数据主机。
doc_deep_link_os_handler_registration_platform_terminal Deep link OS handler registers after interactive session or trusted agent-view launch; user-level platform locations and terminal selection official-doc-derived 官方深链文档:macOS、Linux、Windows 上,只有在交互式 claude 会话发送消息、或在受信任目录以 agent view 启动后才注册 claude-cli:// 处理程序。注册写入用户级位置;启动后由检测到的终端模拟器承载。disableDeepLinkRegistration 只覆盖 claude-cli:// 链接,不删除已注册处理程序。
doc_shared_session_recipient_visible_content_nonrealtime_boundary Shared session recipients see messages, tool results, credentials, repository, connector and web content; view is not realtime official-doc-derived 官方共享会话文档:接收者可见当前会话对话、Claude 工具调用及结果,包括提示词与图片、附加文件名、回复与思考、读写编辑的文件内容、命令输出、消息/文件/输出中出现的密钥或令牌、其他仓库搜索结果、连接器返回、网页内容与截图,以及连接器、skills 和插件名称描述。接收者视图不会实时更新;重载或重开链接后才能看到共享之后新增的消息。
doc_sandbox_approach_scope_docker_effort_comparison Sandbox approach comparison: Bash/Monitor child processes, runtime, dev container, custom container, VM and cloud session isolation scope official-doc-derived 官方沙箱环境文档:内置 Bash 工具隔离 Bash、PowerShell 与 Monitor 命令及其子进程;沙箱运行时、开发容器、自定义容器与 VM 把整个 Claude Code 进程纳入边界,文件工具、MCP 服务器和 hooks 也受约束;云会话默认在 Anthropic 托管 VM 中运行。各方案按隔离对象、是否需要 Docker与配置 effort 比较;沙箱只降低突破影响,不消除网络外泄或可写目录修改风险。
doc_sandbox_runtime_denied_config_paths_launch_scan_boundary Sandbox runtime denies configuration paths; denyWrite precedes allowWrite; Linux/WSL2 launch-time deny list does not cover later-created nested copies official-doc-derived 官方运行时文档:运行时默认拒绝高风险配置写入;denyWrite 优先于 allowWrite。项目根目录拒绝 .git/hooks、.git/config(除非 filesystem.allowGitConfig 开启)、.mcp.json、.claude/commands、.claude/agents 与 shell 启动文件。Linux/WSL2 的拒绝列表在启动时构建,可靠覆盖项目根,尽力扫描当时存在的嵌套副本,不覆盖会话之后新建的 git init、clone 或脚手架副本。
doc_process_wrapper_covered_processes_excluded_windows_boundary Process wrapper covers background service, agent-view, respawns, Remote Control and teammate panes; excluded processes and Windows unwrapped boundary official-doc-derived 官方企业启动器文档:CLAUDE_CODE_PROCESS_WRAPPER 包裹后台服务、agent view 会话与热备会话、更新或崩溃后的重启、更新完成的自重启、Remote Control 会话以及 Agent Teams 的 tmux/iTerm2 队友分屏。用户自行在终端启动的会话、claude-cli:// 深链会话、--worktree 配合 --tmux 的重启、Chrome native-messaging host 不经过包装器。Windows 因缺少 exec 契约忽略该变量,进程保持未包装。
doc_data_training_policy_consumer_commercial_optin_boundary Model training policy: Consumer plan opt-in choice; Commercial code/prompts not trained unless explicit partner opt-in official-doc-derived 官方数据使用文档:Free、Pro、Max、Ultra 消费者账户可选择是否允许数据用于改进未来 Claude 模型;Team、Enterprise、API、第三方平台与 Claude Gov 等商业条款下,除非客户选择向模型改进计划提供数据,否则 Anthropic 不用 Claude Code 发送的代码或提示训练生成模型。Development Partner Program 仅适用 Anthropic 一方 API,不适用 Bedrock 或 Google Cloud Agent Platform 用户。
doc_data_retention_consumer_commercial_local_transcript_boundary Data retention: Consumer allowed/declined periods, Commercial standard 30 days, ZDR eligibility and local plaintext transcript cleanup official-doc-derived 官方数据保留文档:允许模型改进的消费者保留 5 年;不允许的消费者保留 30 天。商业 Team、Enterprise、API 标准保留 30 天;符合资格的企业组织可启用 ZDR。客户端默认在 ~/.claude/projects/ 明文保存会话 transcript 以恢复会话,默认 30 天,周期由 cleanupPeriodDays 调整;Desktop 或 Cowork 启动或最近继续的 transcript 默认豁免该限制。
doc_webfetch_preflight_hostname_only_cache_provider_independent_boundary WebFetch preflight sends hostname only, caches passing host five minutes; check runs independent of model provider and nonessential traffic official-doc-derived 官方数据文档:抓取 URL 前,WebFetch 只把请求主机名发送给 api.anthropic.com 对照 Anthropic 维护的安全阻断清单,不发送完整 URL、路径或页面内容。通过检查的主机名缓存五分钟;被阻断或失败的主机名下次请求重新检查。该检查与模型提供商无关,也不受 CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC 影响;网络阻断 api.anthropic.com 时需允许域名或设置 skipWebFetchPreflight。
doc_otel_content_logging_optin_gates_truncation_boundary OTel content logging gates: prompts, assistant responses, tool details, tool content and raw API bodies are opt-in with truncation limits official-doc-derived 官方监控文档:用户提示、助手回复、工具参数与输入、工具内容、完整 Messages API 请求响应体分别有独立默认关闭的日志开关。启用原始 API body 意味着接受前述内容门会暴露的全部信息;内容受配置最大长度截断,默认 60 KB;SDK 属性长度限制更小时按更短限制截断。
review_zdr_hipaa_baa_unavailable_boundary Code Review unavailable with ZDR, HIPAA configuration, or outside BAA coverage official-public-docs-derived Official availability documentation: Code Review is unavailable to organizations with Zero Data Retention enabled or the HIPAA configuration applied, and is not covered under Anthropic's Business Associate Agreement (BAA).
review_cmek_unavailable_boundary Code Review not yet available for organizations using customer-managed encryption keys official-public-docs-derived Official availability documentation: Code Review is not yet available for organizations that use customer-managed encryption keys (CMEK).
env_safe_mode_troubleshooting_scope CLAUDE_CODE_SAFE_MODE: troubleshooting mode that skips non-managed customization surfaces official-doc-derived Official env-vars documentation: safe mode starts without loading CLAUDE.md, skills, plugins, hooks, MCP servers, custom commands and agents, output styles, workflows, custom themes, keybindings, status line, file-suggestion commands, LSP servers, and auto memory, to troubleshoot a broken configuration. Managed policy still applies, including policy-configured hooks, status line, file suggestions, managed plugins, managed skills, managed CLAUDE.md, and policy-configured MCP servers. It matches --safe-mode, and directly spawned child processes inherit the variable.
env_simple_minimal_tools_and_prompt CLAUDE_CODE_SIMPLE: minimal system prompt with Bash, file read, and file edit tools official-doc-derived Official env-vars and headless documentation: set this to 1 to run with a minimal system prompt and only Bash, file read, and file edit tools. MCP tools supplied by --mcp-config remain available. OAuth tokens and keychain credentials are not read; for the Anthropic API, set ANTHROPIC_API_KEY or an apiKeyHelper in --settings. It matches the --bare headless mode.
doc_self_hosted_session_access_token_jwt_identity_boundary Self-hosted session JWT identifies session/environment/creator; does not identify presenting process official-doc-derived Official self-hosted identity documentation: CLAUDE_CODE_SESSION_ACCESS_TOKEN is an Anthropic-signed JWT proving a specific session and environment and its creator identity. It does not prove which runner-host process presents it; derived service credentials must be scoped to one coding session rather than the full creator permission set.
doc_self_hosted_session_token_verification_audience_role_expiry Session token verification checks prefix, ES256 signature, issuer, audience, session_worker role and expiry official-doc-derived Official verification checklist: reject non-sk-ant-cc- prefixes, verify ES256 signature with published JWKS, require issuer ccr, audience containing the environment ccpool ID, ccr:role session_worker, and unexpired exp. Other self-hosted environment tokens carry different roles and must not be accepted as session tokens.
doc_mtls_client_cert_key_reload_on_stale_connection_boundary mTLS certificate/key reload happens on qualifying connection failure or settings apply, not by file watching official-doc-derived Official network configuration: Claude Code reads client certificate, private key and optional passphrase at startup, and re-reads on qualifying connection-level failures or the next settings application. It does not watch files; half-written rotated pairs retain the previous pair until the next failure. OTLP exporters keep the certificate loaded at first use and require restart for rotation; the reload can be disabled with the documented environment switch.
doc_shared_session_unshareable_uploaded_non_github_code_boundary Uploaded or non-GitHub-code sessions cannot be shared; share links may stop after policy, access or plan changes official-doc-derived Official sharing restrictions: uploaded local code and non-GitHub-hosted repositories cannot be shared because recipient access cannot be checked. A share link can stop opening because the session becomes Private, the recipient is signed out or outside the organization, repository access is missing, the link is invalid, organization sharing is disabled, or the plan changed after a Public link was created. Deleted or unshareable sessions cannot have the prior link restored.
doc_sdk_hosting_hybrid_sessionstore_required_spin_down Agent SDK hybrid hosting requires SessionStore; idle container spin-down without store loses transcript official-doc-derived 官方 hosting 文档:混合模式临时容器启动时从 SessionStore 恢复、更新写回,适合多次交互且空闲等待的会话;空闲期容器缩容、用户返回时重启。未配置 SessionStore 直接关闭容器会丢失转录,因此该存储对混合模式是必需而非可选;模式以会话 ID 配合共享存储 resume 恢复。
doc_deployment_security_boundary_credential_proxy_outside_agent Secure deployment security boundary: sensitive credentials sit outside the agent trust boundary; proxy injects them official-doc-derived 官方 secure-deployment 文档:安全边界分隔不同信任级别组件;高安全部署可把凭证等敏感资源放在代理所在边界之外。代理环境出问题时边界外资源仍受保护。可在代理环境外运行代理注入请求凭证;代理能调用 API,但不直接看到凭证本身,适用于多租户或处理不可信内容。
doc_deployment_defense_in_depth_layered_controls_proxy_validation Secure deployment defense in depth: combine container isolation, network, filesystem controls and proxy request validation official-doc-derived 官方 secure-deployment 文档:高安全环境分层叠加多重控制;可选容器隔离、网络限制、文件系统控制与代理处请求验证。组合取决于威胁模型与运维要求;纵深防御不能替代边界隔离、最小权限或模型自身评估。
doc_deployment_sandbox_runtime_shared_host_kernel_isolation_boundary Sandbox runtime shares host kernel with processes; kernel-level isolation requires gVisor or a separate VM official-doc-derived 官方 secure-deployment 文档:与 VM 不同,沙箱运行时进程共享宿主内核;内核漏洞理论上可能导致逃逸。若威胁模型需要内核级隔离,应使用 gVisor 或独立 VM。sandbox-runtime 在 OS 层强制文件系统与网络限制;网络连接绕过内置代理时失败。
doc_deployment_gvisor_userspace_syscall_intercept_kernel_attack_surface gVisor intercepts syscalls in userspace to reduce host-kernel attack surface; VMs remain another isolation tier official-doc-derived 官方 secure-deployment 文档:标准容器内系统调用直达宿主内核;gVisor 在用户空间拦截系统调用并实现兼容层,多数 syscall 不触及真实内核。代理运行恶意代码时需先突破 gVisor 用户空间实现,真实内核访问受限。文档同时列出 CPU、简单 syscall、文件 I/O 开销差异;Firecracker/QEMU VM 为更强隔离方案。
doc_deployment_multi_tenant_setting_sources_memory_config_dir_cwd_egress Shared-container tenant isolation: setting sources, auto memory, per-tenant config directory, cwd and egress rules official-doc-derived 官方 hosting 多租户隔离文档:共享容器默认从文件系统读取设置与 CLAUDE.md,可能把一个租户上下文泄漏到另一租户会话。隔离可清空 settingSources/setting_sources、禁用 Auto Memory、把 CLAUDE_CONFIG_DIR 指向租户目录、使用每次 query 的独立 cwd,并在代理施加按租户出站规则。受代理 compromise 后不能借其他租户出站策略外泄数据。
entry_gateway_store_postgres_connect_timeout Claude apps gateway store.connect_timeout_seconds bounds Postgres connection timeout; unreachable DB boot error points to configured URL and timeout official-doc-derived 官方 changelog 2.1.285:store.connect_timeout_seconds 用于延长网关配置中 Postgres 连接超时,默认 5 秒;数据库不可达时启动错误指向 store.postgres_url 与配置的超时时间。条目记录公开部署配置边界与排障提示,不收录数据库凭证、内部连接串密钥或表结构。
doc_approvals_builtin_protected_file_list Approvals built-in protected files: policy/classifier files, REVIEW.md, Git metadata, CODEOWNERS official-public-document A protected file controls how pull requests are reviewed, so editing it can weaken later review. Built-in protected files cover policy and classifier files, everything under .claude/classifiers/, root REVIEW.md, .gitmodules, .gitattributes, symlinks, submodule pointers and any CODEOWNERS file. Other important files must be protected by an explicit rule; do not rely on other files being built in.
doc_fast_mode_opus_48_deprecation_removal_boundary Opus 4.8 fast-mode deprecation: support ended 2026-10-30 and API removal scheduled 2026-11-30 official-public-docs-derived Official fast-mode documentation: fast mode for Opus 4.8 was deprecated on October 30, 2026 and will be removed on November 30, 2026. After that date, requests are rejected if Opus 4.8 remains selected with fast mode on; the documented recovery is switching to Opus 5.5 or turning fast mode off.
doc_tui_screen_reader_classic_renderer_boundary Screen-reader sessions stay on the classic renderer; fullscreen remains allowed in attached background sessions official-public-docs-derived Official fullscreen documentation: in screen-reader mode, Claude Code always uses the classic renderer except attached background sessions, which still render fullscreen. Running /tui fullscreen in any other screen-reader session prints an explanation and does not change the saved tui setting.
doc_analytics_attribution_excluded_generated_files Attribution excluded generated files: lockfiles, generated code, build directories, fixtures and very long lines are excluded official-public-docs-derived Contribution attribution excludes auto-generated or non-source files: package-lock/yarn/Cargo-style lockfiles, Protobuf outputs, build artifacts and minified files, dist/build/node_modules/target directories, snapshots, cassettes and mock data, and lines over 1,000 characters likely to be minified or generated. This boundary keeps generated noise out of assisted-line attribution; it does not assert file authorship.
doc_data_partner_program_org_admin_firstparty_only Development Partner Program: explicit org-admin opt-in; first-party API only, Bedrock and Agent Platform excluded official-public-docs-derived Official data-usage documentation: an organization admin expressly opts an organization into Development Partner Program materials. The program applies only to Anthropic first-party API; Amazon Bedrock and Google Cloud Agent Platform users are excluded from this program.
doc_data_feedback_bug_share_transcript_five_year_retention /feedback, /bug and /share shared transcript reports are retained five years; drafted report follows the same path only after the user sends it official-public-docs-derived Official data-usage documentation: feedback submitted through /feedback, and reports that share the same path from /bug or /share, retain transcripts for five years. A Claude-drafted report stays queued locally and sends nothing until the user chooses to send it; once sent it follows the same submission path and retention.
doc_data_metrics_exclude_code_prompts_paths Operational metrics record latency, reliability and usage patterns; code, prompts and file paths are excluded official-public-docs-derived Official data-usage documentation: usage metrics are operational reliability and usage-pattern signals sent over TLS. Metrics do not include source code, user prompts, or file paths; this boundary separates aggregate metrics from feedback transcripts and error reports.
doc_data_third_party_provider_feedback_local_archive_boundary Bedrock, Agent Platform, Foundry and signed-in gateway feedback writes a local archive; known API key and token patterns are redacted before archiving official-public-docs-derived Official data-usage documentation: with Amazon Bedrock, Google Cloud Agent Platform, Microsoft Foundry, or a signed-in Claude apps gateway session, /feedback writes a report to a local feedback-bundle archive instead of uploading to Anthropic. Known API-key and token patterns are redacted before the archive is written; nothing leaves the machine until the user forwards it.
doc_data_host_managed_provider_metrics_default_boundary Provider-managed host makes third-party-provider metrics default-on with DISABLE_TELEMETRY opt-out; error reports and /feedback remain off official-public-docs-derived Official data-usage documentation: when CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST is set, Google Agent Platform, Amazon Bedrock, Microsoft Foundry and Claude Platform on AWS metrics default on and follow the standard DISABLE_TELEMETRY opt-out. Error reporting and /feedback reports remain off by default on those providers.
doc_legal_customer_offering_unmodified_binary_enduser_credential_boundary Hosted or preinstalled Claude Code must run the unmodified Anthropic binary; each end user authenticates with their own credential and usage is not resold or intermediated official-public-docs-derived Official legal-and-compliance documentation: offering Claude Code inside a product or hosted sandbox requires the Commercial Terms. The binary must be installed and run as published; customers may not remove, disable, or restrict built-in authentication. Each end user must authenticate with their own Anthropic API key, subscription credential, or supported third-party inference credential; usage cannot be paid for, resold, or intermediated on the end user's behalf.
doc_legal_security_vulnerability_reporting_hackerone_boundary Anthropic security vulnerabilities are reported through the official HackerOne program; this records the reporting channel, not internal vulnerability details official-public-docs-derived Official legal-and-compliance documentation: Anthropic manages its security program through HackerOne and uses the embedded submission form for vulnerability reports. This ontology entry records only the public reporting channel and trust-center boundary; it does not store exploit details, internal source structure, undisclosed algorithms, or secret constants.
doc_pr_steward_refused_github_app_requests PR Steward Anthropic-hosted service refuses approval, branch protection/ruleset/status/check-run writes, branch deletion and tags official-public-docs-derived 官方 PR Steward security 文档:Anthropic 托管环境会拒绝 Steward 以 GitHub App 身份发出的审批、修改分支保护/规则集/状态或写 check run、删除分支、推送标签请求;其余请求留给 GitHub 分支规则控制。条目记录公开服务拒绝边界,不收录令牌或内部调用签名。
doc_self_hosted_ci_session_oauth_refresh_boundary CI self-hosted session calls use claude.ai OAuth; API keys are rejected and refresh grant expires after 30 days official-public-document Both claude -p --environment and --cloud session calls authenticate with a claude.ai OAuth token; API keys such as sk-ant-... are not accepted. A long-lived CI host stores the token and refreshes the short-lived access token automatically, but the refresh-token grant is capped at 30 days from initial login. Ephemeral runners have no long-lived CI token; the session-control scope is capped server-side at 30 days.
doc_self_hosted_dedicated_test_environment_admin_token Dedicated CI test environment creation uses fresh Owner-scoped admin token and masked pool secret official-public-document Programmatic create/delete lets each CI run register its runner into a clean environment. The admin token belongs to an Owner account, should be read fresh each run because the CLI rotates access tokens, and passes via stdin so it does not appear in a curl argument list or build log. The returned pool_secret is a long-lived runner-registration credential and must be stored only as a masked CI secret; its value and token material are not modeled as public facts.
doc_watch_relied_on_file_change_boundary Watch stops when Git settings, local permission settings or a relied-on runner file changes official-public-document A watch ends when gh, git or /steward relies on a file that changes. Documented examples include Git settings changed by push -u, branch -u, remote add or an editor writing .git/config, and .claude/settings.local.json written when a permission prompt is answered with do-not-ask-again. On Linux/WSL2, a sandboxed command starting or ending during the watch can be another cause; review the change before restarting through the reported command.
doc_managed_settings_fetch_cache_expiry_and_withheld_env Server-managed settings cache expires 24 hours after successful fetch; startup proxy, routing and credential env values remain withheld until confirmed official-public-document Settings fetch at startup and poll hourly in active sessions. A cached policy applies immediately except explicitly withheld categories: cached model pricing, managed MCP servers, guarded plugin-list changes, startup-withheld proxy/TLS, provider routing, authentication credentials, configuration-directory selectors, workload-identity and profile/directory selectors. The cached settings expire 24 hours after the last successful fetch; startup failures before expiry warn that cached policy applies, while expired or absent cache starts without server policy unless fail-closed refresh is enforced. The hardening applies only to the server-fetched cache, not endpoint-managed MDM or managed-settings.json deployment.
doc_managed_invalid_payload_salvage_boundary Invalid delivered managed settings: valid keys survive validation; empty failed payload leaves cache unchanged and stripped entries skip approval official-public-document When part of a payload fails schema validation, Claude Code surfaces the error and applies every remaining valid setting. Cache replay preserves previously dropped invalid entries and stricter fail-closed fallback values; an invalid retention-period value stays in cache and is never applied. If every setting fails, none falls back to a stricter value, and the payload has another key, the client applies nothing and leaves the cache unchanged. The security approval dialog evaluates only the salvaged payload, so a stripped invalid entry is neither approved nor executed.
doc_mod_troubleshoot_load_hook_skip_denial_debug_log Mod troubleshooting: load-stage check, skipped hook, unloaded mod, tool denial and debug log source official-public-documentation-entry Mod 排错文档区分 Mod 未加载、钩子跳过、Mod 卸载、工具调用被拒绝;调试日志来源区分交互式 --plugin-dir 会话、市场安装会话与 claude -p --plugin-dir 的 stderr。
doc_plugin_relevance_managed_suggestions_enable_policy Plugin relevance suggestions: marketplace operator entry fields, admin managed-setting enable policy and user preview official-public-documentation-entry 插件推荐文档区分市场维护者填写相关性条目、管理员在托管设置中启用建议、用户预览建议;建议仍受市场来源可见性与既有托管策略约束。
doc_gateway_subscription_separate_configuration_boundary Gateway vs claude.ai subscription: gateway credentials, subscription limits and configuration separation official-public-documentation-entry 网关文档区分网关与 claude.ai 订阅:订阅关系、可用额度和网关配置分别管理;网关路径下凭证与上游提供方规则由部署拓扑决定。
doc_llm_gateway_provider_key_server_side_developer_credentials Other LLM gateway: provider key stays server-side; developers hold gateway credentials; usage attribution and cost controls centralized official-public-documentation-entry 其他 LLM 网关公开边界:提供方密钥留在服务端,开发者持网关凭证;用量按开发者或团队归属,并可集中预算与速率限制;不把网关等同官方 Claude 模型服务。
doc_share_session_recipient_content_credential_redaction_boundary Shared cloud/Remote Control session: recipients see prompts, attachments, replies, thinking, code/commands; credentials appearing in content are a documented boundary risk official-public-documentation-entry 会话分享文档列示接收方可见内容:提示词、图片、附件名、Claude 回复与思考、读写代码和命令及输出;消息/文件/输出中出现的密钥或令牌属于需注意的凭证边界。
doc_terminal_tmux_passthrough_focus_events tmux allow-passthrough, focus-events and extended-keys configuration preserves newline and outer-terminal notifications official-public-document Inside tmux, Shift+Enter submits by default and desktop notifications do not reach the outer terminal until ~/.tmux.conf enables allow-passthrough and focus-events, adds extended keys to terminal features, and the user detaches, reattaches and restarts Claude Code. The allow-passthrough line also lets a visible pane notify Ghostty, Kitty or iTerm2; an inactive pane sends none. Older tmux or pre-v2.1.326 fallback uses the documented notification-channel terminal selectors.
doc_sdk_hosting_auth_secrets_api_key_inbound_outbound_proxy Agent SDK hosting auth and secrets: API key in subprocess env, gateway authenticates inbound requests; outbound tool credentials are injected by proxy official-public-documentation-entry Official hosting documentation distinguishes three auth concerns: the subprocess reads ANTHROPIC_API_KEY from its environment or receives model calls through a proxy that injects the key; inbound requests should be authenticated at a gateway in front of the agent container; outbound tool credentials stay outside the agent environment and are added by a proxy after the request leaves the container.
doc_ultrareview_diff_size_empty_first_commit_no_merge_base_fallback UltraReview diff limits: size, empty diff, first commit and no-merge-base fallback official-public-docs-derived 审查前先检查 diff:默认分支审查约 500 个变更文件、8,000 行;空 diff 拒绝;首次提交经确认后全量审查;无共同历史时回退到跟踪文件全量审查并受完整克隆与尺寸限制。
doc_auto_mode_trusted_infrastructure_boundary_slots autoMode.environment trusted infrastructure slots define the classifier's internal/external boundary official-public-docs-derived 可信仓库、源码控制、内部域名、云桶、内部服务与包仓库等信任槽告诉分类器哪些目的地属于内部边界;未列入目的地视为潜在外泄目标。仓库私有性只约束机密材料,不清除密钥或敏感数据。
doc_marketplace_reserved_names_and_spelling_boundary Reserved marketplace names, placeholder source names and claudeai- prefix guard impersonation official-public-docs-derived 官方/社区市场保留名、目录名、inline/builtin/skills-dir/synced 等来源占位名受保留规则约束;仅标点差异的近似拼写同样被拒绝,claudeai- 前缀留给 claude.ai 托管市场。
doc_self_hosted_act_delegation_chain_identity Self-hosted session token act chain records creator, runner, environment and secret-creator delegation official-public-docs-derived act claim 记录从创建会话的用户或服务身份到环境及注册 Runner 所用环境密钥创建者的委托路径;外层 actor 的 act.sub 直接标识创建者,服务身份创建的会话使用 agent: 主体。
doc_stream_cut_missing_delta_and_stop_boundary Cut-off streaming response may omit final deltas and content-block stop before message stop official-public-docs-derived 连接截断的流式响应可能缺少增量与结束标记;读取流式 UI 不能假定 message_stop 前所有内容块停止和消息增量都完整到达,需把截断作为协议边界处理。
doc_self_hosted_confine_repo_settings_guard_modes Self-hosted runner --confine-repo-settings guard: warn, enforce, off modes official-public-docs-derived Guard detects repository committed settings that try to grant workspace read/write outside the session, set environment variables, or override operator sandbox/hook posture such as sandbox.enabled: false or disableAllHooks. warn logs and starts the session; enforce refuses the session; off disables the scan.
doc_security_review_independence_nonblocking_defense_boundary Security reviewer uses fresh independent context; no layer blocks writes or commits official-public-docs-derived The writing Claude instance does not grade itself: the per-edit check is a deterministic match, while end-of-turn and commit reviews use a separate Claude call with fresh context and a security-focused prompt. No layer blocks writes or commits; findings reach the writing Claude as instructions, the review model can miss issues, and the plugin is one defense-in-depth layer rather than a complete security solution.
doc_voice_dictation_cancel_transcript_discard_prompt_restore Esc/Ctrl+C cancels dictation: microphone stops, transcript discarded, prior prompt restored official-public-docs-derived With no panel, question, or permission prompt open, Esc or Ctrl+C cancels a dictation instead of finalizing it: the microphone stops, transcript is discarded, and prompt content returns to what it held before recording. The same keys can cancel while a finished transcript processes; the cancel press does not interrupt Claude's response, clear the prompt, or count as the two-press exit.
doc_cloud_setup_script_network_access_level_boundary Cloud environment network access level governs session internet access; configured setup script installs dependencies at session preparation official-public-docs-derived Official cloud quickstart and cloud-environment documentation: internet access during a cloud session follows the configured environment network access level. When a setup script is configured it runs during repository preparation; package registries available to that level, Ubuntu invocation differences, long retry sleeps and background SessionStart hook moves are documented operational boundaries rather than code facts.
doc_routine_personal_account_not_shared_boundary 定时任务归属个人 claude.ai 账号,不与队友共享 proprietary-all-rights-reserved 官方文档:定时任务属于个人 claude.ai 账号,不与队友共享;运行计入账号用量与限额。通过已连接 GitHub 身份或连接器执行的动作归属该账号,提交和 PR 携带该 GitHub 用户,Slack、Linear 等连接器消息使用其关联账户。
doc_sdk_session_store_append_uuid_deduplication SessionStore append must deduplicate by entry.uuid; entries without a uuid are retained because retries can redeliver a batch official-public-documentation-entry Official SessionStore documentation warns an append() retry can redeliver entries that already landed. Adapter implementations should deduplicate by entry.uuid, while keeping every entry that has no uuid. The best-effort mirror also emits mirror_error after retries fail and drops the batch without interrupting the agent.
doc_sdk_session_store_retention_adapter_responsibility SessionStore never deletes entries itself; retention expiry, lifecycle cleanup and compliance policy are the adapter's responsibility official-public-documentation-entry Official SessionStore documentation states the SDK never deletes from the store on its own. The adapter must apply its backend expiry, lifecycle mechanism, or scheduled cleanup according to compliance requirements. A run resumed from the store leaves no local transcript, so for those runs the store's retention is the only retention.
doc_sdk_store_mirror_conflicting_persist_checkpoint_options SessionStore mirror conflicts with persistSession: false and file checkpointing; the SDK throws at startup if combined official-public-documentation-entry Official SessionStore documentation records two incompatible options: TypeScript persistSession: false turns off the local writes the mirror is built from, and Python has no equivalent; enableFileCheckpointing writes file backups directly to local disk and the SDK does not mirror them. Combining either with a store causes the SDK to throw at startup.
doc_deployment_vm_isolation_strength_performance_complexity_tradeoff VM isolation tier: Firecracker/QEMU VMs provide excellent isolation with high overhead and medium-to-high operational complexity official-public-documentation-entry Official secure-deployment documentation compares isolation technologies: sandbox runtime has very low overhead and low complexity, Docker containers are setup-dependent with low overhead, gVisor adds medium/high overhead, while VMs such as Firecracker or QEMU offer excellent isolation when correctly configured but have high overhead and medium-to-high complexity. Claude Code or the Agent SDK application runs inside whichever isolation boundary is selected.
doc_deployment_container_readonly_code_host_sensitive_mount_boundary Hardened container mounts code read-only; sensitive host directories such as ~/.ssh, ~/.aws and ~/.config must not be mounted official-public-documentation-entry Official secure-deployment documentation shows a workspace code mount with :ro so the agent can analyze but not modify code, and warns against mounting sensitive host directories such as ~/.ssh, ~/.aws, or ~/.config. This complements the existing dropped-capabilities, seccomp, root-filesystem, network, memory, CPU and PID limit entries.
doc_legal_credential_oauth_subscription_vs_api_key_developer_boundary OAuth tokens are for subscription purchasers; developers building products use API-key authentication, with separate third-party provider credential management official-public-documentation-entry Official legal-and-compliance documentation: OAuth authentication is intended exclusively for Free, Pro, Max, Ultra, Team and Enterprise subscription purchasers and ordinary subscription use. Developers building products or services that interact with Claude capabilities, including Agent SDK applications, authenticate with API keys. Customers may still provision and manage their own API keys or third-party inference-provider credentials; Anthropic may enforce restrictions without prior notice.
doc_sdk_config_env_option_language_merge_boundary SDK env 选项:TypeScript 替换子进程环境,Python 在继承环境上合并覆盖 proprietary-all-rights-reserved 官方配置文档:env 选项为运行会话的 Claude Code 进程设置环境变量。TypeScript 的 env 替换子进程环境;Python SDK 将传入值合并到继承环境并覆盖同名继承变量。TypeScript 需显式展开 process.env 才能保留 PATH、HOME 与 ANTHROPIC_API_KEY 等继承变量。
doc_sdk_migration_system_prompt_explicit_preset_boundary Agent SDK v0.1.0 起默认使用最小系统提示;Claude Code 预设需显式请求 proprietary-all-rights-reserved 官方迁移指南:SDK 不再默认使用 Claude Code 系统提示;v0.1.0 后默认最小系统提示。要恢复旧行为需在 options 中显式请求 claude_code 预设,或传入自定义系统提示。
doc_error_image_resize_failure_decode_boundary 图片缩放失败边界:处理不可用、文件头尺寸不可读、CMYK/动画 WebP/损坏像素解码失败 proprietary-all-rights-reserved 官方错误参考:Claude Code 通常自动缩放大图;Unable to resize image 表示图片无法解码或缩放到 API 限制内。失败类别包括图像处理不可用、无法从文件头读取尺寸、像素解码失败、CMYK JPEG、首帧无法解码的动画 WebP,或可能损坏的文件。恢复方式是转换为 PNG/JPEG/GIF/WebP、手动缩小像素,或按消息建议重存格式。
doc_error_beta_field_gateway_header_schema_mismatch Beta-only 字段被拒:网关丢弃 beta 头或转发到不兼容上游 schema 时的 Extra inputs 边界 proprietary-all-rights-reserved 官方错误参考:context_management、defer_loading、tool_reference 等 beta-only 字段随 anthropic-beta 头发送;网关若只转发请求体而丢弃该头,API 会识别为未知字段;若把 Anthropic 格式请求体转发到 schema 不同的上游,也会拒绝这些字段。新版本可在被拒后去掉对应字段重试;网关应转发 beta 头,必要时用 CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 关闭预发布能力。
doc_zdr_third_party_external_integration_exclusion ZDR 不覆盖第三方工具、MCP 服务器与外部集成处理的数据 proprietary-all-rights-reserved 官方 ZDR 文档:启用 ZDR 的组织中,第三方工具、MCP 服务器或其他外部集成处理的数据不在 ZDR 覆盖范围内;本条只记录排除边界,不推断外部服务的存储或训练行为。
doc_zdr_backend_disabled_feature_list_boundary ZDR 后端禁用云会话、Claude Tag、Artifacts、Remote Control 等需存储提示或完成内容的特性 proprietary-all-rights-reserved 官方 ZDR 文档:需要服务端保存会话历史、渠道记忆、制品页面内容或跨设备转录的特性在后端被禁用;包括云会话、Claude Tag、Artifacts、Claude Docs、反馈提交与 Remote Control。客户端显示不能绕过后端阻断。
entry_2_1_332_auth_login_unsaved_credentials_exit_1 claude auth login exits 1 when a claude.ai login cannot be saved configuration-documentation 登录命令曾在 claude.ai 凭据无法保存时误报 Login successful;修复后退出码为 1,并提示检查残留锁文件或磁盘已满。条目只记录公开认证命令退出状态与检查线索,不收录凭证内容或内部令牌格式。
doc_troubleshooting_sandbox_clipboard_command_boundary Sandboxed Bash clipboard command boundary official-public-documentation-entry Official troubleshooting documentation: clipboard utilities such as pbcopy, xclip and wl-copy may fail to reach the system clipboard from inside a sandboxed Bash command. excludedCommands alone does not remove this sandbox boundary; /copy writes from the Claude Code process itself and provides a file-path fallback.
doc_channel_security_boundary Channel security: sender identity gating, connector permissions and message boundary official-public-docs-derived Inbound channel security checks sender identity and runs channel/plugin permissions; a chat or room identifier alone does not authorize a message, and channel input remains constrained by the session boundary.
doc_auth_api_key_helper_timing_boundary apiKeyHelper slow-helper 10-second notice and three-attempt failure boundary official-public-documentation-entry Official authentication reference: if apiKeyHelper takes longer than 10 seconds to return a key, Claude Code shows a warning notice in the prompt bar with the elapsed time. When the script exits with an error, times out, or prints nothing, requests fail with the helper-failing message within three attempts. The entry records this documented timing and retry boundary; helper credential contents and vault internals are not modeled.
doc_security_patch_manual_apply_boundary Security plugin patches are never applied automatically: F.patch in the report patches/ folder; an independent agent reviews; the user asks Claude to apply or applies from the shell official-public-documentation-entry Official Claude Security reference: patches are never applied automatically. Reviewed patches are written to the report's patches/ folder, one F.patch per patched finding with an F.md note explaining the change and the exact command such as git -C top-level apply CLAUDE-SECURITY-/patches/F1.patch. Before delivery, an agent independent of the patch author reviews it: it runs project tests when it can and reads the diff on its own terms for anything new it might introduce. The user asks Claude to apply one and open a pull request, or applies it from the shell at the repository root. The entry records this documented manual-apply and independent-review boundary.
doc_marketplace_untrusted_source_archive_digest Plugin marketplace trust: untrusted source outside github.com/anthropics/ stops loading; archive source sha256 digest mismatch refuses install; digest pin separate from catalog commit SHA official-public-documentation-entry Official marketplace reference: reserved official and community marketplace names are restricted unless the marketplace comes from a github or git source under github.com/anthropics/; a name impersonating an official Anthropic/Claude marketplace, or containing a control or bidirectional-formatting character, is refused, and a registered marketplace under such a name stops loading along with its plugins. An archive plugin source carries url and sha256; the digest is 64 hex characters, upper or lower case, and Claude Code refuses a download that does not match. The archive digest pin is independent of a community catalog commit SHA. The entry records the documented source-namespace and digest verification boundary; it does not infer source trust beyond what the public docs state.
doc_admin_builtin_guard_sec_default Built-in guard sec-default@builtin (listed as cc-plugin-sec-default): policy Mod loaded ahead of every user Mod; fail-closed official-public-docs-derived Official Manage-mods admin documentation: Claude Code loads a built-in Mod named sec-default@builtin ahead of every Mod a user installs; users cannot turn it off, and /plugin plus the debug log list it as cc-plugin-sec-default. It loads when the machine has managed settings or a managed-mcp.json file, or the session runs on Team/Enterprise /login credentials; API-key, Bedrock, Vertex and Foundry sessions load it only on a machine with managed settings or managed-mcp.json, and a long-lived CLAUDE_CODE_OAUTH_TOKEN session does not count as that login. The guard fails closed: if it cannot read managed settings it refuses every user Mod at load; if it cannot check deny rules for a call a user Mod approved, it refuses the call. Records the documented load-trigger and fail-closed boundary only; the guard source is public in the mods/sec-default directory of the Claude Code repository.
doc_mod_refused_call_result_shapes_per_method Refused Mod call result shapes: { drop }, reject, { deny }, { isDelivered: false, reason } official-public-docs-derived 中断或限额后被拒调用的返回形态按方法区分:$.prompt.submit 返回 { drop: '<reason>' };$.command.run reject(消息以 reason 结尾);$.agent.spawn 返回 { deny: '<reason>' };$.session.send 返回 { isDelivered: false, reason };后台类工具(Bash run_in_background、Monitor、CronCreate)经 $.tool.call 返回 { deny: ... }。拒绝原因四类:达到 --max-turns、超过 --max-budget-usd、host 结束输入、会话停止后无新输入。
doc_mod_interrupt_background_work_fate_table Post-interruption background work fate: queued work dropped; cron/monitor/subagent notice wait for next input official-public-docs-derived 用户停止回合后,Mod 已启动的后台工作命运:排队中的 prompt/command 被丢弃;CronCreate 一次性任务到点不起回合、待下次输入后运行;循环任务丢失该次运行但保留调度;monitor 在运行期间抛出的事件被丢弃;已 spawn 子代理的完成通知等待下次输入后到达;前台命令若在超时前被 Stop,按超时停止而非转入后台。
doc_gateway_developer_credential_per_dev Gateway developer credential: per-developer gateway-issued credential for authentication and usage attribution official-public-docs-derived Official gateway documentation: each developer holds their own credential issued by the gateway. It authenticates the developer to the gateway and identifies them in usage tracking. The entry records the per-developer developer-credential role alongside the shared provider credential; gateway forwarding, budget and audit rules themselves remain existing gateway entries.
doc_gateway_provider_credential_shared_org Gateway provider credential: one organization-held provider credential shared by all forwarded traffic official-public-docs-derived Official gateway documentation: the gateway holds one credential for the organization's provider account, shared by all forwarded traffic. Developers do not hold this provider credential. The entry records this shared organization provider-credential boundary and its separation from the per-developer credential.
doc_gateway_no_non_claude_model_route Other-gateway boundary: Anthropic does not support routing Claude Code to non-Claude models through any gateway official-public-docs-derived Official gateway documentation: Anthropic does not endorse, maintain, or audit third-party gateway products, and does not support routing Claude Code to non-Claude models through any gateway. The entry records this documented unsupported-route boundary; a separate existing entry covers provider-key server-side placement on other LLM gateways.
doc_ship_watch_outside_sandbox_hookspath_push /ship commit/push and watch git writes run outside the sandbox; watch pushes form git -c core.hooksPath=/dev/null push official-public-docs-derived Official /ship documentation: Claude Code runs /ship's own commit, push, and pull request commands itself, outside the sandbox. During a watch, its git fetches, merges, commits and pushes are written as git -c core.hooksPath=/dev/null push. Repository git hooks run on /ship's own commands but do not run for Claude's watch fetches, merges, commits and pushes on those turns. The entry records this documented sandbox-exclusion and hook-path boundary.
doc_ship_host_api_readonly_get_boundary Watch host API reads: git-supplied sign-in sent to GitLab, Bitbucket or Azure DevOps API in GET requests; read-only before the first read; SSH remote or denied-domain setting prevents it official-public-docs-derived Official /ship documentation: in a terminal session Claude Code can read merge request or pull request details, checks and comments, asking git for the sign-in kept for the remote; that sign-in goes to the gitlab.com, bitbucket.org or dev.azure.com API in GET requests, without asking first. Such reads repeat until the watch ends. They occur only when the fetch line of the pushed-to remote shows an HTTPS address on one of those hosts. Switching the remote to SSH or adding the host to sandbox.network.deniedDomains prevents the git sign-in lookup and API call; the sandbox-on watch git commands still contact the host with git's sign-in. The entry records this documented read-only host-API boundary and its prevention options.
entry_2_1_332_gateway_431_header_256kib_groups_fix Claude apps gateway accepts request headers up to 256 KiB; fixes 431 for IdP listing many groups official-document-derived-entry 身份提供方列出大量用户组时,登录请求此前被网关以 431 Request Header Fields Too Large 拒绝;现接受最大 256 KiB 的请求头。
doc_channel_notification_silent_drop_policy Channel notification silent-drop boundary: no acknowledgement; unloaded or policy-blocked events dropped without server-side error official-public-docs-derived 通道通知没有处理回执:mcp.notification() 的 await 在消息写入传输层时即 resolve,不等 Claude 处理。会话未加载该服务器作为通道、或组织策略阻断时,事件被静默丢弃且不向服务器返回错误;需要投递确认时须由服务器自行跟踪事件状态并暴露回复工具上报。
doc_cloud_environment_network_secret Cloud network secret: API key/token stored on a cloud environment; agent proxy attaches it to listed-host requests after leaving the session VM; absent on self-hosted; GitHub requests authenticated by the GitHub proxy; values not viewable after save official-public-docs-derived 网络密钥是存于云环境的 API key 或 token,Claude 可在该环境任意会话调用对应 API 而看不到密钥;agent 代理在请求离开会话 VM 后为所列主机附加密钥,密钥本身留在 VM 外。仅 Anthropic 托管云环境可用,自托管环境无网络密钥;客户托管加密密钥时无法保存;GitHub 请求由 GitHub 代理认证,Anthropic API、公共包注册表、setup script 请求与遥测导出请求从不附加密钥;保存后不可再查看密钥值。
entry_2_1_332_mcp_oauth_client_registration_consent_fix MCP OAuth 客户端注册:拒绝同意不再强制新建注册,并发写不再误删有效注册 official-public-changelog-entry 官方 changelog:修复 MCP OAuth 客户端注册处理——拒绝同意会强制新建、另一重定向 URI 的注册被复用、并发写可能删除有效注册或保留错配注册。
entry_2_1_332_remote_control_unavailable_when_telemetry_off 关闭遥测(DISABLE_TELEMETRY / DO_NOT_TRACK)时付费计划上 Remote Control 不可用的修复 official-public-changelog-entry 官方 changelog:修复付费计划在关闭遥测时 Remote Control 仍不可用的问题;本条记录该可用性与遥测开关的关联边界。
entry_2_1_332_memory_invisible_markup_neutralized Auto-memory loading neutralizes invisible characters and tags imitating Claude Code markup in MEMORY.md and recalled notes before they reach the model official-public-docs-derived Official changelog: improved auto-memory loading neutralizes invisible characters and tags that imitate Claude Code's own markup in MEMORY.md and recalled memory notes before they reach the model. The entry hangs off the existing automatic-memory anchor and records this anti-impersonation boundary.
entry_2_1_332_self_hosted_runner_oat02_token_prefix Self-hosted runner OAuth token prefix also accepts oat02- alongside oat01-; proxy rules and scrubbers must match both official-public-docs-derived 2.1.332: CLAUDE_CODE_OAUTH_TOKEN prefix can end in oat02- as well as oat01-; proxy rules and log scrubbers matching only oat01- must be updated, and the whole value masked.
entry_2_1_332_dictation_stop_on_edit_panel_loss Dictation stops and reports reason on edit, panel cover, or audio/recorder loss official-document-derived-entry 当提示被编辑、面板被遮挡、连接中断或独立录音程序丢失时,语音口述停止并说明原因;VS Code 侧同样在麦克风停止送音频或面板隐藏时停止。
doc_security_trust_center_compliance_reports 安全基础与 Anthropic Trust Center:SOC 2 Type 2 报告、ISO 27001 证书等合规材料入口 official-public-docs-derived 官方安全文档:Claude Code 在 Anthropic 综合安全项目下按安全优先原则构建;SOC 2 Type 2 报告、ISO 27001 证书等合规材料经 Anthropic Trust Center 获取。条目只标注公开材料入口与边界,不替代合规承诺条款。
entry_2_1_331_windows_fat32_exfat_plugin_write_permission 2.1.331 FAT32/exFAT drive plugin writes no longer ask permission on every session official-changelog-entry Windows: fixed file writes on FAT32 and exFAT drives asking for permission every time in some plugin sessions.
boundary_codex_local_execution_data_policy Codex CLI 本地执行与外发数据边界 official-documentation-policy-boundary Codex CLI 的文件读取、写入与命令执行在本地环境完成;仅提示词、高层上下文与可选 diff 摘要发送给模型。Full Auto 在目录范围内、禁用网络的沙箱中自主执行;Suggest 与 Auto Edit 模式下改动或命令仍需相应审批。
entry_2_1_331_proposed_diff_non_ascii_encoding_garble 2.1.331 Proposed diffs no longer show or save garbled non-ASCII text when files.encoding is not UTF-8 official-changelog-derived-entry Official changelog 2.1.331: proposed diffs previously showed and saved garbled non-ASCII text when files.encoding was not UTF-8; the fix preserves encoding on display and save. Records encoding boundary; no editor codec internals.
entry_2_1_331_rtl_marks_saved_as_escape_in_approved_edit_write 2.1.331 Approved edits/writes save right-to-left marks as real characters, not literal U+200F escapes on Hebrew/Arabic/Persian lines official-changelog-derived-entry Official changelog 2.1.331: on lines with Hebrew, Arabic or Persian text, approved edits and writes previously saved right-to-left marks as literal ‏ escapes; the fix writes the actual character. Records text encoding boundary; no locale engine internals.
entry_2_1_332_vscode_ntfs_memory_project_output_styles_fork VS Code NTFS fork, memory save and project output style fix (2.1.332) proprietary-all-rights-reserved NTFS 驱动器上 VS Code 1.101/1.102 的会话分叉、记忆打开保存与项目输出样式创建不再失败。
entry_2_1_331_windows_registry_non_ascii_managed_settings_start_refuse Windows registry non-ASCII managed settings startup refusal fix (2.1.331) proprietary-all-rights-reserved 注册表托管设置含日文等非 ASCII 字符时,Windows 上 Claude Code 不再拒绝启动。
entry_2_1_331_sandbox_bash_full_temp_disk_start_failure Sandboxed Bash command start failure on full temp disk (2.1.331) proprietary-all-rights-reserved 沙箱文件规则把命令排除在临时目录之外时,临时磁盘已满的沙箱 Bash 命令不再偶尔无法启动。
entry_2_1_330_denied_mcp_servers_name_scope_url_scope deniedMcpServers name entry hides only named claude.ai connector (2.1.330) proprietary-all-rights-reserved deniedMcpServers 的名称条目只隐藏同名 claude.ai 连接器,不再屏蔽同 URL 的其他连接器;屏蔽全部需拒绝精确 URL。
entry_2_1_281_web_file_links_outside_working_dir_disabled 云会话记录中指向工作目录之外的文件链接不再加载空白文件卡片,改为禁用并说明原因 official-public-document-entry File links in a cloud session transcript pointing outside the working directory open a non-loading card; they are now disabled and say why.
fix_background_session_nul_env_var_blocks_helper_programs Background sessions (claude --bg, claude agents) run git, hooks and plugins despite an environment variable containing a NUL character official-public-changelog-entry A NUL character in an environment variable handed to a background session no longer prevents git, hooks, plugins and other helper programs from running.
fix_artifact_policy_not_loadable_proxy_blocked_not_silent The Artifact tool no longer disappears when the organization policy cannot be loaded behind a web proxy; Claude is told what blocks it official-public-changelog-entry When the organization policy cannot be loaded, for example behind a web proxy, the Artifact tool reports the blocking reason instead of silently disappearing.
fix_managed_sandbox_nested_invalid_value_fails_closed Managed sandbox settings no longer ignore an entire block when one nested value is invalid; the invalid value fails closed and the rest applies official-public-changelog-entry A nested invalid value in managed sandbox settings fails closed; the remaining block still applies, instead of the whole block being ignored.
fix_auto_memory_edits_blocked_as_sensitive_subdirectory Claude's edits to its own auto-memory notes are no longer blocked as sensitive-file writes when Claude Code starts in a git repository subdirectory official-public-changelog-entry Edits to auto-memory notes from a subdirectory start are not treated as sensitive-file writes.
fix_artifact_database_view_level_as_level_boundary Artifact database writes distinguish a viewer's private data/users/ subtree; an added view level exists on as_level official-public-changelog-entry Artifact database write results do not claim every viewer sees a write; a view level on as_level separates viewer-private data/users/ subtree writes.
fix_bedrock_vertex_foundry_401_403_names_credential_refresh 401/403 errors on Bedrock, Vertex, Foundry and gateway 403s name the credential to refresh or point to the gateway administrator instead of telling the user to run /login official-public-changelog-entry Auth failures name the credential that needs refreshing, or direct to the gateway administrator, rather than a generic /login suggestion.
fix_runner_auth_failed_token_rotated_long_overload Self-hosted runner sessions do not fail authentication after a long overload during which the access token was rotated official-public-changelog-entry After a long overload that rotated the access token, runner sessions re-authenticate instead of failing as Authentication failed.
fix_powershell_tool_refuses_drive_root_home_delete The PowerShell tool blocks cmd /c rd, rmdir, del or erase that would delete drive roots or the home folder, which Remove-Item refuses official-public-changelog-entry PowerShell commands targeting drive roots or the home folder are blocked, matching Remove-Item's own refusal.
entry_2_1_325_sandbox_refuse_claude_dir_writes_added_dirs 沙箱拒绝向附加目录的 .claude 设置/技能/代理/命令/Hook 写入(与启动目录一致) official-document-derived-entry 沙箱对附加目录中的 .claude 设置、技能、agents、命令与 hooks 写入执行拒绝,规则与启动目录一致;防止只读或受保护配置目录被改写。
entry_2_1_325_worktree_isolation_refuse_git_maintenance_commands 隔离工作树会话/代理拒绝 git bisect run、git maintenance register|start 与 scalar 初始化命令 official-document-derived-entry 隔离 worktree 会话或代理被拒绝运行 git bisect run、git maintenance register|start 及 scalar 初始化命令;提示仍可用的操作,保持工作树隔离边界。
entry_2_1_325_enterworktree_refuse_symlink_worktree_hook_path EnterWorktree 拒绝经项目内符号链接的 WorktreeCreate Hook 路径;Hook 需输出真实路径 official-document-derived-entry EnterWorktree 拒绝穿过项目内符号链接的 WorktreeCreate Hook 路径;要求 Hook 输出真实路径,避免链接逃逸导致的工作树边界问题。
entry_2_1_325_sandbox_helper_programs_run_without_tokens_env 沙箱自启动程序(如网络桥)运行时不带登录令牌与 API 密钥环境变量 official-document-derived-entry Claude Code 沙箱为自身用途启动的程序(如网络桥)在运行环境中不携带登录令牌与 API 密钥;隔离敏感凭证环境变量。
entry_2_1_325_sandbox_helpers_without_mtls_passphrase_env ripgrep、本地 git 命令与沙箱运行时辅助程序运行时不带 mTLS 客户端密钥口令 official-document-derived-entry ripgrep、本地 git 命令及沙箱运行时自身辅助程序运行环境中不含 mTLS 客户端密钥口令,避免口令被子进程读取。
entry_2_1_325_cloud_session_connection_settings_request_refused 云/自托管会话连接上的设置、权限规则、Hook 或状态请求减少返回或被拒绝;会话内适用规则不变 official-document-derived-entry 经云或自托管会话连接发起的设置、权限规则、hooks 或状态请求,返回内容减少或被拒绝;会话内实际适用的规则不受该传输层限制影响。
entry_2_1_325_self_hosted_runner_refuse_symlink_session_path 自托管 Runner 拒绝会话文件夹或仓库路径为符号链接的会话(checkout Hook 的 checkout 除外) official-document-derived-entry 自托管 Runner 拒绝会话文件夹或仓库路径为符号链接的会话;checkout Hook 的 checkout 目录为例外;防止链接路径逃逸。
entry_2_1_325_account_email_refused_as_client_identity_scripts_fetch_mcp 账户邮箱检查拒绝把自身邮箱作为脚本命令、文件写入、Web Fetch 与 MCP 调用中的客户端身份 official-document-derived-entry 账户邮箱检查同时拒绝在命令脚本、文件写入、web fetch 与 MCP 调用中把用户邮箱作为客户端身份外发;限制邮箱作为身份标识泄露。
entry_2_1_317_web_shell_tool_call_email_send_check Web 或 Shell 工具调用向网络发送账户邮箱前先询问的检查 official-document-derived-entry 在 web 或 shell 工具调用把账户邮箱地址发送到网络之前,有一道先询问的检查;限制邮箱随工具调用外发。
entry_2_1_317_gateway_developer_idp_group_daily_record_retention 网关每日记录各开发者 IdP 组(admin: 权限集),按 admin.identity_retention_days 保留,供成本报告分组 official-document-derived-entry 带 admin: 权限集的网关每日记录各开发者所属 IdP 组;保留期由 admin.identity_retention_days 控制,成本报告按该组分组。
entry_2_1_317_foundry_azure_credential_error_cloud_credential_error Microsoft Foundry Azure 凭证无法加载时提示检查/刷新,错误归类为 cloud_credential_error official-document-derived-entry Microsoft Foundry 上 Azure 凭证无法加载时,错误提示检查或刷新凭证,并归类为 cloud_credential_error;属凭证加载失败边界。
fix_bedrock_guardrail_midresponse_thinking Bedrock Guardrails block arriving mid-response no longer ends the turn with an API error when the reply began with thinking official-public-docs-derived Official changelog: Amazon Bedrock Guardrails blocks that arrive mid-response previously ended the turn with an API error instead of the guardrail's message when the reply began with thinking; the guardrail message path is preserved. Boundary: provider-side guardrail enforcement; model weights and classifier internals excluded.
fix_mcp_oauth_registration_consent_redirect_uri MCP OAuth mishandling fixed: denied consent no longer forces a new registration; redirect-URI reuse and concurrent write no longer delete a valid registration or keep a mismatched one official-public-docs-derived Official changelog: MCP OAuth client registrations no longer mishandle consent: denying consent no longer forces a new registration, a registration for another redirect URI is not reused, and a concurrent write cannot delete a valid registration or keep a mismatched one. Boundary: OAuth registration state; tokens and credentials excluded.
fix_managed_mcp_toggle_settings_ignored allowManagedMcpServersOnly, deniedMcpServers and disableClaudeAiConnectors set via MDM or managed-settings.json are no longer ignored when server-managed settings are also present official-public-docs-derived Official changelog: allowManagedMcpServersOnly, deniedMcpServers and disableClaudeAiConnectors set via MDM or managed-settings.json are no longer ignored when server-managed settings are also present. Boundary: managed MCP policy precedence; connector credentials excluded.
entry_2_1_310_sandbox_apparmor_user_namespace_warning_linux Linux /sandbox warning names Ubuntu AppArmor restriction on user namespaces and how to lift it when it blocks bubblewrap official-public-docs-derived Official changelog improvement: the Linux /sandbox startup warning names the Ubuntu AppArmor restriction on user namespaces and describes how to lift it when the restriction keeps bubblewrap from starting the sandbox. Records a sandbox enforcement diagnostic boundary; OS-level enforcement details remain official sandbox documentation.
entry_2_1_329_gateway_access_control_cidr_startup_notice gateway startup notice that access_control.allow_cidrs empty must not be publicly exposed changelog-derived 官方 changelog 2.1.329:网关在 access_control.allow_cidrs 为空时,启动警告改为每次启动以文本日志框内提示呈现:禁止将网关暴露到公网。
entry_2_1_327_gateway_managed_settings_checksum_header gateway hint header x-claude-code-managed-settings-checksum when managed settings enable hint headers changelog-derived 官方 changelog 2.1.327:在托管设置设置 CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 时,网关提示头携带 x-claude-code-managed-settings-checksum;仅记录公开头名与触发条件。
entry_2_1_327_permission_prompt_arrow_no_wrap permission prompt arrow keys stop at No instead of wrapping around changelog-derived 官方 changelog 2.1.327:多数权限提示的方向键在 No 处停止而不循环;超过最后一个答案的数字移动到 No。
entry_2_1_327_block_reads_outside_working_dir_bash_scope blockReadsOutsideWorkingDirectories asks or denies more Bash commands outside working directories changelog-derived 官方 changelog 2.1.327:permissions.blockReadsOutsideWorkingDirectories 在 bypass 与 auto 模式下对更多工作目录外 Bash 命令询问,并在 auto 模式拒绝部分命令;命中 Read/Edit deny 规则路径的命令更多被拒绝。
entry_2_1_332_permission_rule_wildcard_long_command_freeze 含多通配符的权限规则或 Hook 条件匹配长命令时不再冻结 changelog-derived 官方 changelog 2.1.332:权限规则或 Hook 条件带多个通配符、被检查命令很长时的冻结已修复。边界:匹配性能与冻结边界,不收录规则求值内部算法。
entry_2_1_330_exit_worktree_dialog_other_session_use ExitWorktree 与退出对话框不再删除其他会话正在使用的工作树 changelog-derived 官方 changelog 2.1.330:ExitWorktree 及工作树退出对话框曾删除另一个运行中的 Claude Code 会话正在使用的工作树;修复跨会话占用保护。边界:工作树删除保护,不收录 Git 内部布局。
entry_2_1_330_settings_concurrent_save_changes_lost 多个进程同时保存用户设置时改动不再丢失 changelog-derived 官方 changelog 2.1.330:多个 Claude Code 进程同时保存用户设置时,设置改动曾丢失;修复并发保存场景。边界:设置文件并发写入行为,不收录配置存储内部结构。
entry_2_1_330_backup_claude_json_disk_full_displaced_good 磁盘满时 ~/.claude.json 不完整备份不再挤占良好备份 changelog-derived 官方 changelog 2.1.330:磁盘满时不完整的 ~/.claude.json 备份曾被保留并替换良好备份;修复备份保留顺序。边界:配置备份与磁盘容量边界,不收录备份压缩内部结构。
selfhost_environment_secret Environment secret (environment key) shared runner credential official-document-derived-entry Single shared credential runners use to authenticate and register with the Environment; shown once at Environment creation and labeled environment key in the admin UI. Boundary: credential itself is not recorded.
env_cert_store_trust CLAUDE_CODE_CERT_STORE 证书信任来源(系统库 / 内置 CA) configuration-documentation 官方 changelog 2.1.329:默认信任操作系统 CA 证书库,使企业 TLS 代理无需额外配置;设为 bundled 仅使用内置 CA。VS Code 听写在 TLS 检查代理下也遵循该变量,不再只读取 settings.json 中的 NODE_EXTRA_CA_CERTS。边界:只约束证书信任来源,不绕过代理认证、不收录证书内部结构。
env_gateway_proxy_is_egress_boundary CLAUDE_GATEWAY_PROXY_IS_EGRESS_BOUNDARY 网关前向代理作为唯一出口边界 configuration-documentation 官方 changelog:置 1 用于仅以前向代理为出口的 Claude apps 网关;所有出站请求经代理转交。边界:声明网络出口边界,不等同于鉴权或访问控制策略。
doc_action_troubleshooting_auth_errors Action 认证错误排查与密钥配置边界 unlicensed-documentation 官方排障项:认证错误时核对 anthropic_api_key 或 claude_code_oauth_token 已存入仓库 secrets;密钥不得提交进仓库代码。记录凭证配置与排查边界,不收录密钥值或绕过步骤。
doc_action_best_practice_credentials Action 凭证保护最佳实践:禁止提交 API 密钥 unlicensed-documentation 官方最佳实践:绝不把 API key、OAuth token 或云凭证提交进仓库代码;凭证通过仓库 secrets 注入 workflow。与 Action 认证排障条目分开建模,属仓库使用规范边界。
doc_workspace_trust_key_scoping 工作区信任键定位:仓库根 / 启动目录 / 家目录会话级 official-doc-derived 信任按位置键存:仓库内以 git 仓库根为键(worktree 用主检出根,嵌套子模块仓库除外);仓库外以启动目录及其子目录为键;在家目录启动时信任仅保留当前会话、不落盘。项目 allow 规则与 additionalDirectories 须在信任对话框接受后才生效,deny/ask 规则不受影响。
doc_hook_command_runs_full_user_permissions_disclaimer Command hook 以完整用户权限执行 shell 命令;可修改/删除/访问账号可访问的任何文件,添加前须审查并测试 official-public-documentation-entry 官方 hooks 文档安全提示:command 钩子以当前用户完整权限执行 shell 命令,能够修改、删除或访问用户账号可访问的任何文件;在把钩子命令加入配置之前必须审查并测试。该条目记录官方公开的执行权限边界与免责要求,不等同于钩子被沙箱隔离;钩子是否阻断工具调用另由退出码、onFailure 与事件类型决定。
env_enable_claudeai_mcp_servers ENABLE_CLAUDEAI_MCP_SERVERS claude.ai MCP 服务器拉取开关 official-doc-derived 官方 MCP/settings 文档:登录用户默认拉取 claude.ai MCP 服务器;置 false 可停止。按项目或组织禁用应使用 disableClaudeAiConnectors 等托管设置;开关与连接器授权边界分开标注。
doc_rc_trusted_devices_team_enterprise Enable Trusted Devices for a Team or Enterprise organization:组织级受信设备启用 official-public-documentation-entry 官方 Remote Control 文档:Team / Enterprise 组织可在管理侧启用 Trusted Devices 受信设备登记;组织策略、成员可见内容与设备管理操作分别建模,凭据与设备标识本身不收录。
doc_rc_trusted_devices_manage_enrolled Manage enrolled devices:受信设备登记管理 official-public-documentation-entry 官方 Remote Control 文档:组织或用户侧可查看与管理已登记的受信设备;该条目只记录管理操作边界,不收录设备令牌、设备指纹或登记清单明细。
doc_computer_use_stop_any_time Stop at any time:computer-use 可随时停止 official-public-documentation-entry 官方 computer-use 文档:computer-use 会话可在任意时刻停止;停止边界与 Esc 快捷键行为、权限审批边界分开记录。
doc_computer_use_safety_trust_boundary Safety and the trust boundary:computer-use 安全与信任边界 official-public-documentation-entry 官方 computer-use 文档安全小节:记录 computer-use 在应用控制、可见屏幕与权限审批上的信任边界;安全规则更新、应用分类控制级别与辅助功能/屏幕录制权限由既有条目分别覆盖。
doc_data_provider_default_telemetry_matrix Provider-default telemetry matrix: metrics, error reports and /feedback on for Claude API; off for Vertex/Bedrock/Foundry/AWS; surveys and WebFetch preflight run on every provider official-doc-derived 官方数据使用文档的提供商默认口径:Claude API 默认开启用量指标;错误报告仅在 Pro/Max/Ultra 登录、v2.1.198+、直连 Claude API 且无 ZDR/HIPAA 协议时开启;/feedback 报告默认开启。Google Cloud Agent Platform、Amazon Bedrock、Microsoft Foundry 与 Claude Platform on AWS 默认关闭上述三项,需对应 USE_VERTEX / USE_BEDROCK / USE_FOUNDRY / USE_ANTHROPIC_AWS 开关。会话质量调查与 WebFetch 域名安全检查不受提供商影响,在各提供商下均运行;Claude apps 网关凭证在 Anthropic 侧关闭用量分析、错误报告与调查评分。
doc_project_enforced_thread_daily_cap Projects enforced daily thread cap: 500 new threads per day across projects; a conversational thread-count request is a preference, not a hard cap official-doc-derived 官方 Projects 文档:跨所有项目每天强制上限为 500 个新线程;在对话里要求的并发线程数只是偏好、不是硬上限。运行中的线程、项目对话读取线程报告所耗 token、以及监听 PR 的空闲线程在 CI 失败或收到评审评论被唤醒时,都会继续计入套餐用量;无运行线程、无监听 PR 且无新消息的项目与归档项目空闲时不消耗套餐。
doc_project_plan_surface_provider_boundary Projects plan, surface and provider boundary: Pro/Max/Ultra beta; claude.ai/code, desktop and mobile; unavailable in CLI, VS Code, JetBrains, Bedrock, Vertex and Foundry official-doc-derived 官方 Projects 文档:公开 beta 面向 Pro、Max、Ultra 计划,尚未提供 Team/Enterprise;可用表面为 claude.ai/code、桌面应用 Code 标签页与移动应用,终端 CLI、VS Code 扩展与 JetBrains 插件不提供;线程通常为云会话,需要本机资源时经 Remote Control 在本机运行,两种情形模型提供方均为 Anthropic;不支持 Amazon Bedrock、Google Cloud Agent Platform(Vertex)与 Microsoft Foundry。
doc_project_single_user_thread_ownership_boundary Projects single-user ownership: project cannot be shared; thread fixed to its origin project; projects cannot merge; local started session cannot be added directly official-doc-derived 官方 Projects 文档:项目归属单一用户,beta 期没有组织级管控,不能与他人共享;线程只能属于创建它的那个项目,不能在项目间移动或复制,也不能迁出成为独立会话;两个项目不能合并。本机自行启动的会话不能直接加入项目,只能把其工作带入项目;项目触达本机的方式是经 Remote Control 在本机运行线程。
doc_jetbrains_ide_mcp_server_transport_auth 内置 IDE MCP 服务器(ide):本地临时端口、ws 明文与锁文件随机令牌鉴权 official-doc-derived 插件激活时本地运行名为 ide 的内置 MCP 服务器,对 /mcp 隐藏且无需配置;监听操作系统分配的临时、不可配置端口,传输为未加密 ws://;每次 IDE 启动生成随机鉴权令牌写入 ~/.claude/ide/.lock(设置 CLAUDE_CONFIG_DIR 时改写至其 ide/ 子目录),CLI 以 X-Claude-Code-Ide-Authorization 请求头呈现;loopback 下本地攻击者可同时读取流量与锁文件,TLS 在该场景不额外提供防护。
doc_jetbrains_ide_server_network_interface_bind IDE MCP 端口监听网卡绑定:默认 loopback;开放所有网卡时会话流量与令牌经 ws 明文跨局域网 official-doc-derived 服务器绑定网卡由插件 Networking(Advanced)的 Accept connections from all network interfaces 控制;关闭时仅监听 127.0.0.1,其他主机不可达;开启后端口可被局域网访问,连接仍需锁文件令牌,但因传输为明文 ws://,会话流量与令牌在网络上明文传输;仅在 loopback 不通(如 WSL2 NAT 或远程 IDE)时开启,WSL2 优先使用 mirrored networking 以保持 loopback。
doc_desktop_linux_supported_distro_arch_boundary Desktop Linux beta 支持范围:Debian 系 Ubuntu 22.04+/Debian 12+,x86_64 或 arm64;非 Debian 发行版改用 CLI official-public-docs-derived 官方 Desktop Linux beta 要求 Debian 系发行版:Ubuntu 22.04 或更高,或 Debian 12 或更高;架构为 x86_64 或 arm64。满足要求的其他 Debian 系发行版可能运行但未经官方测试;Fedora、Arch 等非 Debian 发行版不在支持范围,应改用 CLI。Windows WSL2 场景安装 Windows 桌面应用,在发行版内部运行会话。该边界只记录官方支持面与不支持面,不代表发行版许可条款等价。
doc_desktop_linux_keyring_signin_persistence_boundary Linux 桌面登录态保存在解锁的桌面密钥环;密钥环缺失、锁定或冲突时每次启动需重新登录 official-public-docs-derived Linux 桌面应用把登录态存入桌面密钥环(GNOME Keyring 或 KDE Wallet),密钥环须处于解锁状态。非 KDE Plasma 且未安装密钥环(--no-install-recommends 或精简镜像)时需安装 gnome-keyring;KDE Plasma 与 GNOME Keyring 同时安装会造成两套密钥环冲突,应移除多余的 GNOME Keyring;密钥环已安装但处于锁定状态时先解锁。不满足条件时登录态不持久保存,每次启动应用都要重新登录。
doc_desktop_linux_beta_excluded_features_boundary Linux beta 暂缺功能边界:无 Computer Use、无语音 Dictation;原生 Wayland 全局快捷键依赖 GlobalShortcuts 门户;Fedora/RHEL 不支持 official-public-docs-derived 官方列出的 Linux beta 尚未提供范围:Computer Use 应用与屏幕控制不可用;语音输入 Dictation 不在 Linux 桌面应用提供,应改用 CLI 语音听写;Quick Entry 全局快捷键在 X11 可用,原生 Wayland 上需要桌面环境的 GlobalShortcuts 门户;Fedora 与 RHEL 不在支持范围内,当前仅支持 Debian 系。未覆盖场景由 CLI 承担:CLI 运行同一 Claude Code 引擎并支持更广泛的 Linux 发行版。
doc_chrome_file_upload_boundary Chrome 文件上传边界(大小 / 硬链接 / 凭证文件名) official-public-docs-derived 浏览器动作上传本地文件须会话允许读取该文件,拒绝 Read 的权限规则同时阻断上传;单次上传合计不超过 10 MB;拒绝含多个硬链接的文件(常见于 node_modules 等包管理器存储),需复制副本再上传;拒绝名称或目录属于凭证存放位置的文件(.env、.pem、.key、.ssh 等);该凭证文件名拒绝规则需 Claude Code v2.1.293 或更高版本。
doc_channels_preview_provider_auth_runtime_boundary Channels 预览状态、提供方排除、认证与插件运行时边界(research preview availability boundary) official-public-docs-derived Channels 处于 research preview:须经 claude.ai 登录或 Console API key 的 Anthropic 认证;Amazon Bedrock、Google Cloud Agent Platform、Microsoft Foundry 上不可用;Team 与 Enterprise 组织须管理员在组织层显式启用。每个频道以插件形式安装并自带凭证,预览内置 Telegram、Discord、iMessage,插件运行依赖 Bun。事件仅在会话打开期间到达;双向回复在终端只显示工具调用与发送确认,回复文本出现在对方平台。
doc_ghes_marketplace_credential_surface_boundary GHES 托管插件市场凭据按接入面分流(CLI/本机 git 凭据、组织 GitHub App、用户个人连接、云沙箱不可靠) official-public-docs-derived GHES 托管插件市场的凭据随接入面分流:Claude Code CLI/桌面端与托管设置 extraKnownMarketplaces 复用本机现有 git 凭据克隆仓库;claude.ai 组织插件设置由 Owner 选择 GHES 实例,后端用组织 GitHub App 拉取同步,用户侧无需各自连接(添加时 Owner 本人仍须已连接自己的 GHES 账号做访问检查,App 须已安装到市场仓库);claude.ai 用户设置由提交用户本人的 GHES 账号连接拉取;云会话沙箱仅在会话仓库与市场处于同一实例时可达 GHES,不同主机不可达、同实例安装也可能失败,不建议用于 GHES 市场。组织管理员接入不替个人用户建立账号连接;用户设置添加的市场要求本人先连接 GHES。owner/repo 简写恒指向 github.com,GHES 市场必须使用完整 git URL,官方推荐 HTTPS。
doc_self_hosted_session_token_claims_reference 自托管会话令牌 claims 参考:ccr:* 声明、act 链与向后兼容重复账号声明 official-doc-derived 官方 self-hosted identity 文档:身份从 ccr:* 命名空间与 act 链读取;扁平的 account_email、organization_uuid、account_uuid 声明是可能被移除的向后兼容重复项。用户创建会话的邮箱声明为可选;身份判断应以 act.sub 或 ccr:account_id 为准,而不是邮箱。组织服务身份创建的会话在 act.sub 携带 agent: 主体,并省略 act.email、ccr:account_id、account_email 与 account_uuid。相关令牌声明包括 iss、sub、aud、exp、iat、jti、ccr:role、ccr:session_id、ccr:pool_id、ccr:org_id、ccr:account_id 与 act;未识别声明应忽略。
doc_hipaa_local_session_data_offboarding_boundary HIPAA local-mode session data: Code/Cowork local storage, purge lifecycle and developer offboarding responsibility official-public-docs-derived Official HIPAA setup documentation: local-mode Claude Code and Cowork store session data on each developer's computer; securing and deleting that data is the organization's responsibility. Local data spans Claude Code project transcripts and auto memory, Desktop Code tab transcript and data-folder storage, and Cowork local-mode data. The documented purge command removes project transcripts, auto memory, tasks/, debug/, file-history/, history.jsonl and project entries in ~/.claude.json; removing a seat or account deletes nothing on the computer, and /logout does not delete session data, so device-management wiping is the documented offboarding path. This entry records the local data lifecycle boundary only; it does not expand BAA coverage or describe model-service retention.
doc_hipaa_anthropic_credential_subprocess_boundary HIPAA local-mode Anthropic credential removal from shell commands, hooks and MCP servers; external cloud/GitHub credentials retained official-public-docs-derived Official HIPAA setup documentation: when the HIPAA configuration applies, Claude Code removes the credentials it uses to reach Anthropic, such as ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN, from the environment of shell commands, hooks, and MCP servers it starts. Cloud-provider and GitHub credentials are not removed, so a command pushing to GitHub or calling another service still works with that developer's access; the Anthropic BAA does not cover data sent to those external services. This entry separates the HIPAA-scoped credential boundary from the general subprocess environment scrub.
doc_troubleshooting_ssh_osc52_clipboard_delivery_boundary SSH 远程剪贴板 OSC 52 投递边界:终端决定接收,/copy 不确认送达 official-doc-derived SSH 远程会话无法在本机运行剪贴板工具;非 tmux 的全屏选择或 /copy 改为通过 OSC 52 转义序列发送,终端是否接收取决于配置:iTerm2 需开启剪贴板访问,macOS Terminal.app 不支持;/copy 消息与字符通知都不证明文本已到达本地剪贴板。
doc_action_default_github_token_commit_trigger_boundary Default GITHUB_TOKEN does not trigger workflows on Claude-made commits; custom github_token required official-public-docs-derived GitHub does not start workflows for commits authored with the default GITHUB_TOKEN. If the Action passes github_token: ${{ secrets.GITHUB_TOKEN }}, pushes or commits produced by Claude may not trigger the expected CI workflow. Boundary: this is a workflow delivery and trigger-token configuration constraint; it does not alter repository write permissions, tool execution approval, or model access.
doc_action_uninstall_workflow_secret_app_removal_sequence Action removal sequence: delete workflow files, remove Action secrets, then uninstall the GitHub App official-public-docs-derived To remove the Claude Code GitHub Action, delete workflows that use anthropics/claude-code-action from .github/workflows; remove ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN from repository-level and shared organization-level Actions secrets; uninstall the Claude GitHub App unless it remains required for another Claude Code integration. Boundary: decommission order and credential cleanup only; no internal secret value or token material is recorded.
doc_legal_acceptable_use_policy_boundary Acceptable use(Anthropic Usage Policy)使用政策边界 official-doc-derived 官方 legal-and-compliance 文档说明 Claude Code 使用受 Anthropic Usage Policy (Acceptable use)约束;Pro、Max、Ultra 套餐对外标注的用量限额,以普通、个人使用 Claude Code 与 Agent SDK 为前提。本条目只记录政策适用范围与限额前提,不收录政策条文、内部执行机制或未公开审核规则。
boundary_adk_guardrails ADK agent safety and guardrail boundary official-doc-derived ADK/Google Cloud Agent Platform 安全边界覆盖身份与授权、输入输出护栏、工具内防御性上下文约束、回调与插件校验、沙箱化代码执行,以及评估和追踪;本条目只记录官方文档列出的边界类别,不收录内部策略常量、未公开审核规则或密钥。
env_git_config_passthrough GIT_CONFIG_COUNT / GIT_CONFIG_KEY_<n> / GIT_CONFIG_VALUE_<n>: retained Git configuration subprocess variables official-public-docs-derived Official env-vars scrub table: the indexed Git configuration variables are left in place for sandboxed commands regardless of the value they hold. Recorded as a subprocess environment passthrough boundary only; Git configuration contents, repository credentials, and repository access rights remain outside the ontology.
env_registry_url_credential_strip PIP_INDEX_URL / NPM_CONFIG_REGISTRY: registry URL retained while embedded username and password are cut official-public-docs-derived Official env-vars scrub table: a package registry URL containing a password keeps the URL but its embedded username and password are removed. Recorded as a credential-stripping boundary only; registry index contents, authentication details, package source policy and package material remain outside the ontology.
entry_2_1_332_ultrareview_symbolic_ref_excluded_local_checkout UltraReview 上传本地 checkout 排除符号引用;当前分支为符号引用时拒绝并说明 official-document-derived-entry macOS 与 Linux 上 UltraReview 上传本地 checkout 时不带符号引用;当前分支为符号引用的 checkout 会被拒绝并给出说明。仅记录上传范围与拒绝条件,不收录 Git 内部对象结构。
doc_sdk_checkpoint_tool_result_uuid_not_restore_point 检查点恢复点边界:携带工具结果的用户消息 UUID 不是可回退检查点 official-public-docs-derived 官方文档区分回合起始用户消息与工具结果消息:携带 tool result 的用户消息虽有 UUID,但该 UUID 不能作为文件恢复点;应捕获首个开启回合的用户消息 UUID。检查点数据缺失时,先核对是否误用了工具结果消息的 UUID。
entry_2_1_332_account_signin_claudeai_plugins_access_scope Claude account sign-in also requests access to claude.ai plugins official-changelog-derived Official 2.1.332 changelog: signing in with a Claude account now also requests access to claude.ai plugins. Records the account consent/access-scope boundary only; plugin internals, OAuth token storage and credential material are not modeled.
doc_cloud_session_delete_permanent_data_boundary Cloud session delete boundary: permanent session/data removal with confirmation; irreversible official-public-documentation Deleting a session permanently removes the session and its data and cannot be undone. The action is available from the sidebar, session menu, or Archived tab after archiving. The boundary distinguishes permanent deletion from archiving; it does not describe recovery, backups, or retained audit copies.
doc_cli_cloud_session_handoff_one_way_boundary CLI cloud session handoff boundary: --teleport pulls cloud session to terminal; existing terminal session cannot be pushed to cloud official-public-documentation From the CLI, session handoff is one-way: --teleport pulls a cloud session into the terminal, while an existing terminal session cannot be pushed to the cloud. The --cloud flag with a task description creates a new cloud session for the current repository. The boundary does not model model access, approval rules, or runner isolation.
fix_virtual_drive_inode_zero_custom_agent_command_style_load 虚拟盘 inode 0 上首个之后的自定义代理、斜杠命令与输出风格加载修复 official-changelog-derived 官方 2.1.332 changelog 修复:在报告 inode 为 0 的虚拟盘(例如挂载为 Windows 驱动器的加密保险库)上,首个之后的自定义代理、斜杠命令与输出风格原先无法加载;修复后可正常加载。边界:仅记录公开文件系统兼容性与加载修复;不收录挂载驱动、虚拟盘枚举、内部存储或插件打包实现。
doc_legal_commercial_agreement_baseline_boundary Claude Code 商业协议适用基线:直接 API、Bedrock 与 Vertex 通道沿用既有协议 official-public-docs-derived 官方 legal-and-compliance 文档:直接使用 Claude API(1P),或经 Amazon Bedrock、Google Cloud Agent Platform(3P)访问时,既有商业协议均适用于 Claude Code 使用;除双方另有约定外,不另设默认商业条款。Claude Code 无论通过何种平台访问,仍受 Anthropic 标准条款约束。本条目只记录协议适用基线与接入通道,不收录费率、订阅承诺或合同条文。
doc_legal_claude_code_name_logo_trademark_boundary Claude Code / Anthropic 名称与商标使用边界:纯文本说明可用,标识与暗示背书受限 official-public-docs-derived 官方 legal-and-compliance 文档:集成商可以准确地用纯文本说明自己的产品预装或运行 Claude Code;不得将 Claude Code 或 Anthropic 的名称、标志用于自有产品、功能或公司名称,不得用于自有 logo,也不得以暗示 Anthropic 开发、背书或与产品合作的方式使用。其他名称或标志使用须遵循 Anthropic Trademark Guidelines 并取得书面许可。本条目只记录公开品牌使用边界,不收录商标执法内部规则。
boundary_openai_api_data_policy OpenAI API 与商业工作区默认不用于基础模型训练边界 official-doc-derived 默认情况下,API 以及 ChatGPT Business、Enterprise、Edu 工作区的输入与输出不用于改进基础模型;组织所有者可在项目或组织级数据控制中开启自愿共享反馈、评估、微调与 API 输入输出数据。另一小部分未开启定制保留且非销售托管的 API 客户,其 API 内容可用于安全分类器训练与安全评估,该用途独立于基础模型训练且无需模型训练同意。Free、Plus、Pro 等个体套餐口径不同,可在数据控制设置中退出;商业协议与个体条款不互相推导。
doc_mod_hooks_worker_crash_unload_boundary Mod hooks-worker crash unloading boundary(hooks worker 崩溃卸载规则) official-public-docs-derived Official Mod troubleshooting documentation: installed Mods share one hooks worker thread. When a crash or non-responsive stop can be traced to a single Mod, Claude Code unloads that Mod only. When the worker stops three times and the stops cannot be attributed to one Mod, every non-built-in Mod (including organization-deployed Mods) is unloaded for the session; built-in Mods keep running. Reload with /reload-plugins or start a new session. This boundary covers worker-lifecycle unloading, not the permissions or policy decisions made by the built-in guard.
boundary_otel_logrecord_attribute_count_limit_drop_order OpenTelemetry log-record attribute count limit: tool_decision attributes are dropped last-set-first when the SDK limit is lowered official-public-docs-derived Official monitoring documentation: if OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT is set below the number of attributes on a tool_decision event, the OpenTelemetry SDK drops the attributes Claude Code set last. Documented drop order is parent_agent_id, agent_id, request_id, permission_mode, classifier_category, then classifier_verdict, skipping attributes the event does not carry. parent_agent_id, agent_id and request_id require v2.1.310 or later; permission_mode, classifier_category and classifier_verdict use this order on v2.1.302 or later.
doc_pr_steward_session_environment_boundary PR Steward 托管会话环境隔离:App token 在沙箱外、云端自动模式拒绝权限提示 official-public-docs-derived 官方 PR Steward security 文档:Anthropic 托管 PR Steward 运行在云端会话;GitHub Enterprise Server 上使用组织自建应用,自托管环境另行说明。GitHub App 令牌保留在会话沙箱之外,会话内 gh 与 git 请求经 Anthropic 服务附加令牌后发出。会话以 auto mode 启动,遇到权限请求直接拒绝;收到的评论与评审来自 PR 作者、仓库写权限用户和机器人,会话直接读取时也可能看到其他人留言;指令文件从默认分支读取。本条目只记录公开环境隔离边界,不收录令牌内容、内部调用签名或仓库私密数据。
fix_macos_leftover_credentials_json_stale_login_state macOS 遗留 credentials.json 造成跨窗口登录过期误报修复 official-public-docs-derived macOS 会话在另一个窗口 /login 成功后,若存在遗留 ~/.claude/.credentials.json,仍可能显示未登录或登录过期;修复排除该残留文件导致的陈旧登录状态判断。边界:文件路径为公开 changelog 事实;不记录凭证内容、密钥或刷新算法。
doc_install_network_storage_executable_lifecycle_boundary Network-storage executable lifecycle: keep a readable binary until every shared-machine session ends official-doc-derived A running session reads parts of the Claude Code executable from disk after startup; if the file becomes truncated, deleted or unreadable on shared network storage, the session crashes (Linux reports a Bus error). On NFS or shared home directories, install per machine or retain each version directory until no remote machine can still run it. The native installer normally retains the launcher-pointed version, the current running version, and the two newest others. DISABLE_UPDATES blocks Claude Code's own update paths; DISABLE_AUTOUPDATER alone leaves manual claude update and claude install available.
doc_release_manifest_code_signing_boundary Release manifest SHA256 and platform code-signature integrity boundary official-doc-derived Each release manifest.json carries a SHA256 checksum for every platform binary and an Anthropic GPG detached manifest signature; verifying the manifest signature transitively verifies the binaries it lists. Platform-native signatures apply where supported: macOS binaries are signed by Anthropic PBC and Apple-notarized; Windows binaries carry an Authenticode signature; Linux binaries are not individually code-signed, so use the manifest signature or the package manager's repository-key verification. Detached manifest signatures are available from 2.1.89 onward; earlier manifests publish checksums without a detached signature.
doc_ghes_network_reachability_boundary GHES 实例网络可达性与会话克隆边界 official-public-docs-derived Anthropic 托管会话要求 GHES 实例可从 Anthropic 基础设施访问,以便克隆仓库并发布评审评论;实例位于防火墙后时须放行 Anthropic 出站 IP。自托管环境会话从内网克隆,除非 runner 选择 Anthropic git 代理;会话前预取流程(如仓库选择器)在 Anthropic 侧运行,即使会话本身运行在自托管环境,也需要后端可达 GHES;SCM 连接器不可用,仅内部路由可达的 GHES 主机无法被这些流程访问。
entry_2_1_332_linux_sandbox_bash_start_read_denied_dir Linux 沙箱 Bash 启动失败边界:写拒绝目录内含读拒绝子目录 official-public-changelog-entry 官方 changelog 2.1.332:Linux 上工作目录被禁止写入且其中包含被禁止读取的目录时,沙箱 Bash 命令无法启动;记录该文件系统启动条件边界,区别于命令执行期的路径拒绝。
doc_devcontainer_host_secret_skip_permissions_boundary Dev Container trusted-repository boundary: skip permissions does not seal mounted host secrets or in-container credentials official-public-documentation-entry Dev Container 只能降低风险,不能消除全部攻击面;使用 --dangerously-skip-permissions 时,恶意项目可能访问容器内可触及的内容,包括 ~/.claude 中的凭证。只应在受信任仓库中使用;不要挂载主机 ~/.ssh 或云凭证,优先使用仓库作用域或短期凭证。
doc_mod_network_policy_fetch_and_process_gap Mod 网络策略覆盖缺口:$.http.fetch 与 $.process.run 出站通道(Mod network policy fetch and process gap) official-doc-derived 官方 Mod 组织管理文档:既有网络策略并不覆盖每条 Mod 通道:组织 WebFetch 策略、WebFetch deny 规则或 CLAUDE_CODE_DISABLE_WEB_FETCH 不会阻止 Mod 的 $.http.fetch;CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC 只停止内置 Mod 以及携带会话 Anthropic 凭证的 $.http.fetch 请求,不阻止用户安装 Mod 的其他请求;经 $.process.run 启动的程序以用户自身访问权限联网。要关闭这些通道,应阻止用户 Mod 加载,或在组织策略 Mod 中处理 $.http.fetch。条目仅记录公开策略覆盖边界,不建模沙箱隔离、凭证格式或进程网络栈细节。
sec_cloud_self_hosted_isolation_responsibility_split Cloud isolation responsibility: Anthropic-managed VM versus organization self-hosted deployment official-public-docs-derived Official cloud documentation: a cloud session runs shell commands and file edits in an isolated Anthropic-managed VM by default. Sessions routed to an organization self-hosted environment run on that own infrastructure, where isolation is the deployment's responsibility. Network egress, credentials and network secrets have separate documented boundaries; this entry records only the responsibility split.
doc_rc_trusted_device_per_client_credential Trusted Devices:每个客户端独立登记凭据,登记绑定近期完整登录 official-public-docs-derived 官方 Remote Control 文档:成员使用 Remote Control 的每个浏览器、手机或桌面应用为自身登记一份凭据;登记入口只在完成完整登录后不久出现,设备作为真实认证流程的一部分加入受信名单。条目仅记录机制与边界,不收录设备令牌、指纹或登记清单明细。
doc_rc_remote_session_one_per_process_server_mode_boundary Remote Control 并发与本地进程存续边界:非服务器模式每进程一个远程会话,服务器模式可并发多会话 official-public-docs-derived 服务器模式之外,每个 Claude Code 实例同时只支持一个远程会话;服务器模式可在单进程内运行多个并发会话。Remote Control 作为本地进程运行:终端、桌面应用或承载会话的 VS Code 退出,或 claude 进程停止后,会话离线;在远程机器上运行的 claude 应置于 SSH 断开后仍存活的 tmux 或 screen 会话中。
doc_network_proxy_exclusion_socks_basicauth_boundary 代理排除清单格式、SOCKS 不支持与代理 URL 基本认证凭证边界 official-public-documentation-entry 官方网络配置:NO_PROXY 以空格或逗号分隔主机条目,* 表示所有请求绕过代理;Claude Code 不支持 SOCKS 代理。代理要求基本认证时可把用户名和密码放入代理 URL,但官方警告不要在脚本中硬编码密码,应改用环境变量或安全凭证存储。边界:只记录配置口径与凭证保护要求,不提供密码、密钥或绕过认证的步骤。
doc_network_required_outbound_hosts_policy 企业出站主机允许清单:必需 API、认证、插件与桥接主机,及可选 Artifact 字体和前端 CDN official-public-documentation-entry 官方网络访问要求:受限网络应放行 api.anthropic.com、claude.ai、claude.com、platform.claude.com、sso.claude.com、mcp-proxy.anthropic.com、downloads.claude.ai、storage.googleapis.com、registry.npmjs.org、bridge.claudeusercontent.com、.frame.claudeusercontent.com、GitHub 仓库主机与 raw.githubusercontent.com、-review.googlesource.com,以及遥测/Datadog、Homebrew 更新与文档查找主机。Artifact 字体 fonts.googleapis.com、fonts.gstatic.com 与 JavaScript 库 CDN(cdnjs、jsDelivr、Tailwind、jQuery、unpkg)为可选;阻断 JS 库依赖没有回退,应快速拒绝而非静默丢弃。浏览器 MCP App 部件需放行 *.claudemcpcontent.com。bridge 主机须与 claude.ai、api.anthropic.com 走同一代理出口,或加入仅归属该组织的专属出口 IP;GitHub Enterprise Cloud 需为 GitHub App 启用 IP 允许列表继承并放行 Anthropic 出站 IP;GHES 主机对外可达性仅适用于 Anthropic 托管会话、托管前预置流程以及选择 Anthropic Git 代理的自托管运行器。
boundary_host_identity_vars_ignored_in_config_files 宿主拥有或由 Claude Code 导出的身份变量在各类配置文件中被忽略 official-doc-derived 官方 settings-reference:宿主环境拥有的 CLAUDE_CODE_REMOTE、CLAUDE_CODE_ACCOUNT_UUID,以及 Claude Code 自行导出的 CLAUDE_CODE_MESSAGING_SOCKET、CLAUDE_CODE_MESSAGING_TOKEN,不能由配置文件覆盖;这些身份变量在每一类设置文件中都被忽略。忽略 socket 变量要求 v2.1.224 或更高版本,忽略 token 变量要求 v2.1.228 或更高版本。条目只记录配置来源排除边界与版本下限,不收录变量内部取值或连接鉴权算法。
boundary_sdk_messages_sampling_params_not_options_fields Messages API 的 temperature、top_p、max_tokens 不在 Agent SDK options 对象中暴露 official-doc-derived 官方 Agent SDK 配置文档:Messages API 请求参数 temperature、top_p 与 max_tokens 在 TypeScript 与 Python 的 options 对象上都没有对应字段;SDK 侧应改用 effort level 或支出上限,需要这些采样参数时直接调用 Messages API。本条只记录公开选项缺失边界与替代入口,不推断 SDK 请求组装或参数内部传递。
doc_sdk_loop_budget_headroom_response_and_subagent_overshoot Agent SDK budget headroom: the cap is checked after a response arrives; that response still completes, and spend can exceed the cap by its cost plus running subagent spend official-public-docs-derived The official agent-loop documentation states max_budget_usd / maxBudgetUsd is compared after model responses arrive because each response's cost comes from API-returned token usage. The response that reaches the cap still completes and counts toward total_cost_usd. Spend can therefore pass the cap by up to that one response's cost, plus spend by subagents still running before they stop; operators should leave headroom rather than assume the cap prevents every overshoot.
doc_sdk_hosting_known_limits_timeout_memory_fanout_subagent_deadline Agent SDK hosting known limits: no top-level session timeout, long-session memory growth, parallel-subagent fanout rate limits, and no per-subagent wall-clock deadline official-public-docs-derived Official hosting documentation records four deployment limits: a session has no top-level timeout, so bound it with maxTurns / max_turns; long sessions grow memory, so cap session length or recycle subprocesses; large parallel-subagent fanouts can hit rate limits, so break work into smaller batches; and there is no per-subagent wall-clock deadline. A subagent must be capped with maxTurns in its AgentDefinition; the stall watchdog fires when output stops and is not a total runtime deadline.
doc_sdk_hosting_inbound_port_app_subprocess_no_network_listen Hosting network boundary: the host application exposes the HTTP/WebSocket inbound port; the agent subprocess itself does not listen on the network official-public-docs-derived Inbound traffic reaches an HTTP or WebSocket port on the container; the application handles client requests and calls the SDK internally. The supervised claude CLI subprocess does not listen on the network. Outbound HTTPS goes to api.anthropic.com or the regional Bedrock / Agent Platform endpoint, and also to MCP servers and external tool endpoints; production egress should route through a proxy that enforces domain allowlists, injects credentials and logs requests.
doc_sdk_hosting_token_cost_dominates_container_infrastructure Hosting cost boundary: Anthropic token cost typically dominates container infrastructure cost; a minimal container starts around $0.05 per hour while a long session can spend dollars in tokens official-public-docs-derived The official hosting documentation states token cost usually exceeds container infrastructure cost by an order of magnitude or more. A minimally provisioned container runs roughly $0.05 per hour, while one long agent session can spend dollars in tokens. Per-session token accounting belongs to cost tracking; this entry separates infrastructure sizing from authoritative billing, which remains covered by the client-side estimate boundary.
doc_self_hosted_session_token_decode_token_session_wrapper Self-hosted session token: in-session wrapper decode-token checks signature and expiry only; issuer, audience and role must be compared explicitly official-public-docs-derived Official self-hosted identity documentation: a wrapper script running inside the session can use the runner binary's self-hosted-runner decode-token subcommand instead of a JWT library. The subcommand reads the token from a positional argument, CLAUDE_CODE_SESSION_ACCESS_TOKEN, or piped stdin, strips the sk-ant-cc- prefix, verifies the signature against the published JWKS, checks expiry, and prints claims as JSON. It performs signature and expiry checks only; it does not check iss, aud, or ccr:role, so those claims must be read from the printed JSON and compared explicitly when the wrapper makes an authorization decision.
doc_auto_mode_classifier_config_scope_files Auto mode classifier reads autoMode from personal settings, managed settings, or --settings/SDK inline JSON; project settings files are excluded official-public-docs-derived Official auto-mode configuration documentation: the classifier reads autoMode from ~/.claude/settings.json for one developer, organization-wide managed settings for trusted infrastructure distributed to all developers, and inline JSON supplied through the --settings flag or Agent SDK for per-invocation automation. It does not read autoMode from project .claude/settings.json or .claude/settings.local.json, because a checked-in repository or build step could otherwise inject allow rules. Entries from each scope combine; a developer can extend environment, allow, soft_deny and hard_deny but cannot remove entries supplied by managed settings. A developer-added allow entry can override an organization soft_deny entry, so this combination is additive rather than a hard policy boundary.
doc_auto_mode_ask_checkpoint_rule_order_before_classifier Auto mode human checkpoint: permissions.ask prompts before the classifier, permissions.deny blocks before the classifier, and a conversation-only boundary can be lost after compaction official-public-docs-derived Official auto-mode configuration documentation: permissions.ask rules such as Bash(git push *) and Bash(gh pr create *) are evaluated before the classifier, so a matching command prompts for a human checkpoint and the classifier cannot auto-approve it. permissions.deny blocks before the classifier is consulted; neither the classifier nor user intent can override it. A one-off boundary stated only in conversation can be blocked by the classifier while reviewed, but it may be lost if context compaction removes the message that stated it; an ask or deny rule should be used when the boundary must persist.
boundary_openai_trace_sensitive_data Agents SDK · 追踪敏感数据包含边界(trace_include_sensitive_data) official-doc-derived RunConfig.trace_include_sensitive_data 配置追踪中是否纳入潜在敏感数据,例如 LLM 与工具调用的输入和输出;是否包含由该运行配置开关决定,与追踪导出目标、workflow 名称和 trace id 等其他追踪配置项分开。
doc_settings_sandbox_path_prefix_resolution Sandbox filesystem rule path prefixes: / absolute, ~/ home, ./ project-root for project settings or ~/.claude for user settings official-public-docs-derived Official settings-reference: paths in allowWrite, denyWrite, denyRead, allowRead and credentials.files resolve by prefix. A leading / denotes an absolute filesystem-root path; ~/ resolves relative to the home directory; ./ or no prefix resolves relative to the project root for project settings, or to ~/.claude for user settings. The prefix decides how a rule path matches a sandboxed command's filesystem access before any allow/deny decision.
doc_footer_badge_link_constraints Footer badge link constraints: locked template origin, 2048-char drop, scheme allowlist, 28-column label truncation, max five badges official-public-docs-derived Official settings-reference: each footerLinksRegexes entry's URL, label and badge count are bounded. Captured values are URL-encoded and the constructed URL must share the template's literal origin; a capture may fill a path segment or query value but cannot change where the link points. Constructed URLs longer than 2048 characters are dropped. The scheme must be https, http, or a recognized editor/workspace deep-link scheme. The label defaults to the matched text and is truncated to 28 display columns; at most five badges render, and the oldest badge is displaced by newer matches.
doc_sandbox_mask_entry_extract_decode_fields Mask entry fields: extract regex group-1 capture, decode, mutually exclusive; whole-content sentinel by default; macOS isolation denies before extract/decode official-public-docs-derived Official settings-reference: a sandbox mask entry accepts optional extract and decode fields. Without extract or decode, Claude Code replaces the entire file content or environment value with one sentinel. extract is a regular expression with at least one capturing group and masks only the text captured by group 1 of each match, leaving the rest parseable; extract and decode cannot be combined on the same entry. On macOS with filesystem isolation on, Claude Code applies a mask entry as a deny rule before extract or decode runs.
doc_plugin_marketplace_name_tier_classification Plugin marketplace tiers: official, community and third-party classified by marketplace name and anthropics repository source official-public-docs-derived Official plugins overview: a marketplace name places it in one of three tiers. Official marketplaces carry Anthropic official marketplace names such as claude-plugins-official and claude-code-plugins; community marketplaces carry Anthropic community names such as claude-community. Claude Code accepts the official and community names only for marketplaces sourced from github.com/anthropics/ repositories; every other marketplace, including one published by a coworker or organization, is third-party. The tier records naming and source classification; it does not by itself grant installation trust, and an installed plugin still runs with the user's privileges and must be reviewed against plugin security guidance.
doc_claude_marketplace_website_vs_addable_catalog claude.com/marketplace browsing website is distinct from a plugin catalog added through /plugin marketplace add official-public-docs-derived Official plugins overview: Claude Marketplace at claude.com/marketplace is the website where users browse plugins, connectors, partner products and service partners. It is not a plugin catalog that can be added with /plugin marketplace add. A Claude Code addable catalog is a repository or directory carrying .claude-plugin/marketplace.json that lists plugins and where to fetch each one; the website browse surface and the on-disk/registered catalog are separate surfaces. This entry records the surface distinction and does not model partner commercial terms, licensing or certification.
doc_server_managed_settings_approval_memory Server-managed settings approval memory persists by credential type; non-interactive runs apply approval-needed settings only for that run official-public-document 官方服务端托管设置文档:审批记录保存在配置目录,并按获取设置所用凭证类型区分——claude.ai 登录为每个组织记录一次审批且由最近批准账号持有;网关登录为每个网关记录一次;其他凭证(API key、OAuth token 等)把审批与缓存设置副本一起保存。设置变更、登出、切换网关或不同账号会再次触发对话框。非交互运行(claude -p、Agent SDK、IDE 或桌面面板)无法显示对话框:需要审批的下发设置仅在本次运行生效,不记为已批准,也不写入本地缓存;下一次可交互会话重新提示。sandbox.credentials 或 sandbox.network.tlsTerminate 的审批同时覆盖同一批下发设置中的 sandbox.network.allowedDomains 条目。条目只记录审批持久化范围与运行边界,不记录凭证值或内部批准队列。
doc_server_managed_policy_client_side_control_boundary Server-managed settings are centralized client-side policy, not a hardware/OS security boundary; unmanaged device, modified binary or third-party provider can bypass official-public-document 官方服务端托管设置安全说明:集中下发的策略属于客户端控制,不是硬件或操作系统级安全边界。在未受管设备上,用户无需管理员或 sudo 权限即可绕过;运行被修改的客户端二进制可绕过任何客户端控制;早于该功能的旧版本不会获取或应用服务端策略。API 不可用时未过期缓存按例外规则生效;外部托管组织之外的账号不接收设置。切换到第三方模型提供商(Bedrock、Mantle、Vertex、Foundry、Anthropic AWS 或非默认 ANTHROPIC_BASE_URL)会绕过服务端托管设置;网络流量被拦截或重定向也可能改变客户端收到的策略载荷。更强保证需要 MDM 注册设备上的端点托管设置。条目记录可公开支持的绕过条件与加固建议,不收录内部策略校验算法或凭证常量。
doc_server_managed_configchange_hook_nonblocking_boundary ConfigChange hooks log local settings edits only; they do not fire on server-managed refresh, MDM profile or registry policy changes, and cannot block a policy_settings change official-public-document 官方托管设置安全说明:ConfigChange 钩子用于记录本地设置文件(含 managed-settings.json)的编辑。服务端托管设置到达或刷新、MDM 配置描述文件或注册表策略变化时,Claude Code 不运行这些钩子;钩子也不能阻断 policy_settings 变更。条目记录钩子触发来源与非阻断边界;policy_settings 的 exit 2 阻止例外已由既有 ConfigChange 事件边界覆盖。
doc_channel_bot_token_local_env_storage_boundary Discord/Telegram channel bot tokens are saved per channel to local ~/.claude/channels//.env or supplied through shell environment; token stays outside plugin manifest and transcript official-public-document 官方 Channels 文档:Discord 与 Telegram 频道插件通过各自 configure 命令配置机器人令牌,令牌保存到本地 ~/.claude/channels//.env;也可在启动 Claude Code 前把对应令牌放入 shell 环境变量。条目记录令牌的本地配置位置与替代入口;令牌值不写入插件清单、会话记录或本体摘要,频道入站仍受发送者身份与会话边界约束。
doc_desktop_linux_apt_missing_package_diagnosis apt 报 Unable to locate package claude-desktop 的仓库注册、更新、架构与网络诊断边界 official-public-docs-derived 官方 Desktop Linux 文档:E: Unable to locate package claude-desktop 表示 apt 未找到已添加仓库。诊断顺序:添加仓库后须先 sudo apt update;检查 /etc/apt/sources.list.d/claude-desktop.list 是否写入 deb 行;dpkg --print-architecture 须为 amd64 或 arm64,仓库不为其他架构发布包;再次 apt update 查看 downloads.claude.ai 相关网络或密钥错误。本边界只列官方诊断顺序,不绕过签名校验或私有仓库配置。
doc_desktop_linux_unmet_dependencies_diagnosis apt 未满足依赖诊断:libc6 版本过旧对应发行版过旧;架构后缀不符对应错架构 .deb official-public-docs-derived 官方 Desktop Linux 文档:报 unmet dependencies / unsatisfied dependencies 时按命名依赖判断:libc6 (>=2.34) 表示发行版旧于包支持范围(Ubuntu 20.04 为 libc6 2.31),应升级到 Ubuntu 22.04+ 或 Debian 12+;缺失依赖以 :amd64 / :arm64 后缀显示不可安装,说明下载了与本机架构不符的 .deb,应按 dpkg --print-architecture 取匹配包,或改用 apt 仓库由其选择架构。
doc_desktop_linux_root_launch_sandbox_boundary Linux 桌面应用禁止 root 启动:无 --no-sandbox 时退出,须以普通用户运行 official-public-docs-derived 官方 Desktop Linux 文档:若 claude-desktop 以 root 启动并退出 “Running as root without --no-sandbox is not supported”,应改用普通用户登录后启动应用;官方路径不支持以 root 运行桌面应用。本边界记录运行身份要求,不提供关闭沙箱或以 root 绕过的步骤。
security_gitlab_token_family_secret_redaction GitLab token 家族日志/转录脱敏与 glab CLI 配置凭据路径保护 official-public-changelog Official Claude Code changelog 2.1.232 (2026-08-13): GitLab token families are redacted, routable glpat-/gldt- tokens are fully redacted, and the glab CLI config store receives the same sandbox and credential-path protection as gh. The entry records this log/transcript and local credential-path boundary only; it does not describe token issuance, GitLab permissions, glab source internals, or any bypass procedure.
doc_plugin_marketplace_missing_manifest_file Marketplace clone/download missing .claude-plugin/marketplace.json; add fails until owner places the manifest or publisher exposes the exact source official-public-document 官方插件市场排障文档:Claude Code 克隆或下载市场后,若预期路径内没有 .claude-plugin/marketplace.json,添加命令会报告 Marketplace file not found。默认位置为仓库根目录 .claude-plugin/marketplace.json;市场所有者需把清单放到预期位置后重新添加,外部使用者则应向发布者索取实际发布的来源。条目记录清单缺失位置与排障边界,不收录私有仓库内容。
doc_plugin_marketplace_ssh_host_key_unknown SSH marketplace clone uses StrictHostKeyChecking=yes: unknown host key is refused; changed key needs removal, or public repos can use an HTTPS URL official-public-document 官方插件市场排障文档:经 SSH 添加市场时,未连接过的主机因主机密钥未接受而克隆失败;主机密钥变更时错误指向需要移除旧密钥。Claude Code 以 StrictHostKeyChecking=yes 克隆,不会自动接受指纹;先在终端连接接受指纹后重试,公开仓库也可改用 HTTPS URL 避开 SSH。条目记录主机密钥确认边界,不记录私钥、已知主机文件内容或绕过主机校验的步骤。
doc_plugin_root_windows_git_bash_path_separator Windows Git Bash plugin hooks receive ${CLAUDE_PLUGIN_ROOT} with forward slashes; scripts needing backslashes must use exec form or PowerShell shell official-public-document 官方插件排障文档:Windows 上经 Git Bash 运行的 shell-form Hook 收到的 ${CLAUDE_PLUGIN_ROOT} 为 C:/Users/... 形式,而不是反斜杠路径;这样传递是为了避免 Bash 把反斜杠识别为转义。Bash 内建命令、MSYS 工具和原生 Windows 二进制均可接受斜杠形式;需要反斜杠的脚本应改为直接传 args 数组的 exec-form Hook,或使用 PowerShell shell 配置。条目记录跨 Windows/Git Bash 路径分隔符边界,不修改插件路径本身。
doc_plugin_url_marketplace_relative_source_refused URL-based marketplace downloads only marketplace.json; plugin relative source paths are not fetched and are refused as outside the marketplace directory official-public-document 官方插件市场排障文档:用户通过 https://example.com/marketplace.json URL 添加市场时,Claude Code 只下载 marketplace.json,不会再从该服务器按相对路径拉取插件文件;./plugins/my-plugin 这类相对 source 会报市场条目路径未留在市场目录内,已安装插件也可能以 Plugin source path refused 无法加载。市场条目应提供可独立获取的来源,例如 GitHub 仓库;若使用相对路径,市场需托管在 Git 仓库并以仓库 URL 添加。条目记录来源获取边界,不推断未公开的服务器目录。
security_gateway_device_user_code_brute_force_resistance Gateway device-grant user-code brute-force resistance: code entropy, expiry and per-IP sign-in rate limit official-public-docs-derived Official Claude apps gateway deployment documentation: the RFC 8628 device-grant user code is an 8-character code from a 20-character alphabet (20^8 combinations) and expires after 10 minutes. The gateway applies per-IP rate limits to device-grant endpoints; the limits cover the sign-in flow only, not inference. This entry records the public brute-force resistance boundary alongside the existing gateway service and PostgreSQL device-grant/rate-limit store.
boundary_qwen_code_channel_pairing Qwen Code 频道配对与白名单边界 boundary-or-capability-derived senderPolicy 为 pairing 时,未知发送者收到 8 位大写配对码;管理员通过 CLI 批准后,用户 ID 写入按工作区作用域保存的白名单。配对码使用排除 0/O/1/I 的无歧义字母表,1 小时过期;每个频道最多 3 个待处理请求,每个发送者最多 1 个;私聊与群组配对共享同一队列。白名单用户跳过配对,白名单文件按工作区存储并视为敏感文件。
boundary_cloud_bundle_sensitive_file_uncommitted_exclusion 云会话打包上传敏感文件未提交改动排除边界 official-doc-derived macOS、Linux 与 WSL 下,打包上传云会话时,凭证或密钥命名文件的未提交改动(.env、Terraform .tfvars、id_rsa、.pem)以及 Git 过滤器(如 Git LFS)管理的文件不进入上传包;提示会列出被排除文件,会话从已提交版本开始,或在无提交版本时省略该文件。原生 Windows 会按原样上传已跟踪文件的未提交改动,启动云会话前需暂存或还原不希望上传的编辑;CCR_FORCE_BUNDLE=1 会在原本应从远程克隆时强制打包本地仓库。
doc_gateway_client_tls_fingerprint_pin CLI 网关 TLS 叶子证书指纹与主机名钉扎边界 official-public-docs-derived CLI 首次连接网关时读取 TLS 叶子证书指纹,并按主机名钉扎;登录、静默会话刷新和托管设置获取时会再次校验该钉扎,推理请求本身使用标准 TLS 校验而不使用该钉扎。经 HTTPS 代理路由的请求会跳过钉扎检查;官方建议把网关主机加入 NO_PROXY 以保持直连。管理员可在网关 URL 旁公布预期 SHA-256 指纹供开发者核对。
doc_gateway_org_telemetry_content_nonstorage_boundary 网关组织遥测:提示词与补全内容不落库边界 official-public-docs-derived 网关使用遥测向组织采集器发送开发者身份、token 计数、模型与延迟;网关不记录或存储提示词或补全内容。更丰富的日志和追踪可能包含命令与文件路径,是否采集属于组织按目的地作出的选择。该边界挂到网关遥测目的地配置之后,区分聚合遥测与内容留存。
doc_gateway_ci_unattended_no_service_token_boundary 网关无人值守流水线:无服务令牌、浏览器设备流边界 official-public-docs-derived 网关不为无人值守流水线提供服务令牌流程;网关登录始终运行浏览器设备流,因此没有开发者批准登录的 CI 作业无法通过网关认证。此类作业应直接面向模型提供商配置;forceLoginMethod 与 forceLoginGatewayUrl 部署到开发者机器,不要留在 CI Runner 上。
boundary_qwenpaw_security_controls QwenPaw Agent Sandbox, Tool, File, Skill and Access-Policy Boundary boundary-or-capability-derived QwenPaw 在代理执行命令、访问文件、激活技能和应用访问策略前提供本地防护:Tool Guard 与内核沙箱约束工具执行,File Guard 约束文件访问,Skill Scanner 在技能激活前扫描风险,Access Policy 控制准入;边界仅记录官方公开文档列明的本地防护范围。
doc_gateway_optional_admin_api_keys_and_group_jwt_boundary Gateway optional admin block authenticates Admin API static keys or group JWT membership official-public-docs-derived The optional gateway admin block authenticates the Admin API spend-limit endpoints. Static write_keys and read_keys send x-api-key; each key id appears in the audit log as admin-key:. IdP groups can instead receive full admin through the normal gateway JWT without an API key. This bounds admin authentication and attribution; it does not define spend caps, enforcement failure mode, developer gateway login, or upstream model routing.
doc_gateway_jwt_secret_staged_rotation 网关会话 JWT 签名密钥分阶段轮换边界 official-public-docs-derived 会话签名密钥需分阶段轮换:先生成新密钥并前置到 session.jwt_secret 数组,再滚动部署;新令牌用新密钥签名,旧令牌仍可验证。超过 ttl_hours 加缓冲期后移除旧密钥并再次滚动部署。Bearer 令牌在本地按 JWT 密钥验证,没有逐会话撤销;这也是在令牌到期前强制会话退出的唯一途径。直接整体替换密钥而不在数组中保留旧密钥,会使旧会话失效。
doc_gateway_plugin_marketplace_client_direct_boundary 插件市场由开发者机器直连、不经网关的网络边界 official-public-docs-derived Claude Code 从每台开发者机器直接拉取插件市场,不经过网关转发。首次启动交互式终端会话时会注册官方市场;目录先从 downloads.claude.ai 下载,失败再从 GitHub 克隆。关闭非必要流量不会阻止首次注册;可通过 strictKnownMarketplaces 白名单、blockedMarketplaces 阻断列表或托管环境变量关闭官方市场自动安装。首次注册可能发生在网关登录和策略到达之前,因此需要在客户端侧托管设置中预置该选择。
doc_auth_login_expiry_renewal_boundary Stored claude.ai login expiry warning, /login renewal, and expired-credential fallback boundary official-public-docs-derived Official authentication reference: when the active credential is a claude.ai login, Claude Code warns at startup that the login expires in three days and directs the user to run /login to renew. After a stored login expires and cannot be refreshed, requests fail when no other credential is saved; another saved credential, such as an Anthropic profile or federation credential, may be used instead and billed to its organization. /status shows the expired Login row. Unattended Remote Control sessions disconnect until sign-in; a background Agent-view session stops progressing without another saved credential. This entry records the documented public lifecycle and fallback boundary only, not internal token refresh or encryption.
doc_gateway_spend_limit_identity_retention_pii_boundary Gateway spend-limit retention: counters, caps, audit trail and principal PII lifecycle official-documentation-entry The gateway retains per-principal period counters in spend, configured caps in spend_limits, before/after mutations in admin_audit, and last-seen email, display name and IdP groups in principal_emails. Retention follows admin.spend_retention_months (default 13), admin.audit_retention_days (default 365) and admin.identity_retention_days since last activity (default 90). principal_emails is the PII table and can be deleted directly for offboarding or a data-subject request; spend and audit rows reference only the pseudonymous OIDC sub and age out on their own windows. This gateway-side lifecycle does not replace provider billing records or external deletion obligations.
doc_chrome_hipaa_zdr_availability_boundary Claude in Chrome 在 HIPAA 与 ZDR 组织中的可用性边界 official-public-docs-derived 官方 Chrome 文档:Enterprise 组织启用 HIPAA 时,Claude in Chrome 默认关闭,Owner 可在 Organization settings > Claude in Chrome 开启;Anthropic BAA 不覆盖经 Claude in Chrome 发送到第三方站点的数据。组织启用 ZDR 后,Claude in Chrome 在 Claude Code 内不可用;即使 Owner 已在组织设置开启或传入 --chrome,它仍保持关闭,/chrome 会报告 Claude in Chrome 被组织策略禁用;组织允许时,浏览器扩展仍可在 Claude Code 之外使用。
doc_ship_agent_turnoff_order_boundary Claude Ship agent turn-off order: disable Approvals before Code Review; /ship and /steward commands remain unless separately disabled official-public-docs-derived Official Claude Ship documentation: Approvals must be turned off before Code Review because an Approvals policy can start billed reviews in a situation where Code Review is otherwise off. The documented order is Approvals, then PR Steward, then Code Review. These agent disablement steps leave the local /ship and /steward commands in place; the commands are removed or disabled only through the separately documented command/skill disablement mechanism. This entry records the administrative order and command-scope boundary only, not billing amounts or internal service topology.
boundary_gemini_computer_use_runtime_sandbox Gemini Computer Use runtime isolation, action handler and safety policy boundary official-doc-derived Computer Use 代理必须运行在隔离的沙箱 VM、容器或受限权限专用浏览器配置中;客户端运行时负责接收截图、坐标、鼠标点击与键盘输入并执行。官方安全策略提供类别与覆盖项,可选开启截图提示注入扫描;本条目只记录公开边界类别,不收录内部策略常量、审核规则或密钥。
boundary_antigravity_local_execution_policy Antigravity local execution safe defaults, proxying and approval-gate policy boundary official-doc-derived Antigravity 共享代理底座以安全默认值、本地代理和细粒度工具审批门保障本地执行;Python SDK 提供声明式工具访问策略、inspect/decide/transform 生命周期钩子与交互式人工审批。边界只记录公开策略表面,不记录未公开内部规则或凭证。
doc_security_cli_shell_scan_runtime_boundary claude-security shell scan: current-folder report, plugin sandbox and login/provider credential boundary official-doc-derived Official Claude Security docs: the shell claude-security command scans the current folder and writes the same report there; the scan runs inside the plugin sandbox and signs in with the active Claude Code login or provider environment variables. This records the runtime and credential boundary, not internal scanner implementation.
doc_sandbox_jest_watchman_incompatibility_boundary Jest/Watchman sandbox incompatibility: use jest --no-watchman official-doc-derived Official sandbox troubleshooting: Watchman is incompatible with the sandbox, so Jest may hang or fail; run jest --no-watchman as the documented workaround. This records the command workaround boundary and does not change filesystem or network isolation.
boundary_openai_fence OpenAI Fence GitHub Actions Runner 出站过滤与锁定边界 mit-verify-repository-license openai/fence 是官方 GitHub Action,作为 GitHub 托管 Linux x64 作业的第一步执行 runner 出站过滤与锁定:默认阻断非必要出站连接,仅放行 runner 必需连接与工作流 allowlist;关闭免密 sudo 与 Docker 访问,并在作业摘要和日志中报告网络活动。Audit 模式只报告预计阻断项而不改变网络、sudo 与 Docker 访问。README 明确 Fence 不是完整沙箱;仓库同时记录威胁模型、兼容性与 runner 服务检查边界。

模型与托管服务

ID 名称 许可证状态 摘要
model_service_claude Claude Model / Managed Model Channel proprietary-model-weights-not-published Claude 模型及 API / Bedrock / Vertex / Foundry 等模型调用通道;权重不公开。
feat_gateway_bedrock_role 网关 Bedrock assume_role 跨账号 IAM 角色 capability-derived Claude apps gateway Bedrock 上游经 STS 假定 IAM 角色调用 Bedrock,可跨 AWS 账号;可选每开发者一个会话
feat_gateway_guardrail 网关 Bedrock 上游 guardrail {id,version} 绑定 capability-derived 对每条经上游发出的请求套用 Amazon Bedrock guardrail;须对所有 Bedrock 上游统一设置或全部不设
provider_mantle Mantle 上游提供商(Amazon Bedrock Mantle 端点) proprietary-model-weights-not-published Claude apps 网关新增的 mantle 上游提供商,对应 Amazon Bedrock 的 Mantle 端点;2.1.283 新增
provider_opus55 Claude Opus 5.5(claude-opus-5-5,默认 Opus 模型) proprietary-model-weights-not-published 2.1.282 新增并成为默认 Opus 模型;1M 上下文;模型权重未公开,经 API 或合规模型通道调用
feat_sonnet_5_5_model Claude Sonnet 5.5(claude-sonnet-5-5)默认模型条目 proprietary-model-weights-not-published 2.1.285 起成为 Anthropic API 默认 Sonnet 模型;1M 上下文;模型权重未公开,属专有模型服务
fix_mid_session_model_limits 会话中途切换模型后输出限额与压缩窗口沿用修复 capability-derived set_model/setModel 切换模型后,新模型此前沿用内置输出 token 限额与自动压缩窗口直到重启;修复为按新模型服务端配置生效
model_1m_context_default 默认 1M 上下文窗口与关闭开关 proprietary-model-weights-not-published Opus 4.7+ 与 Fable 在 Bedrock、Vertex、Foundry 和 Claude apps 网关默认使用 1M 上下文窗口,不带 [1m] 后缀;CLAUDE_CODE_DISABLE_1M_CONTEXT=1 可保留 200K。
feat_classifier_model_pin_ignore 自动模式分类器忽略 5.5 模型钉选并回退 Sonnet 5 changelog-derived 2.1.288 变更:客户端自动模式分类器忽略 ANTHROPIC_DEFAULT_SONNET_MODEL 中名为 Claude Sonnet 5.5 或 Opus 5.5 的钉选,改用 Claude Sonnet 5。边界:仅影响分类器辅助模型选择,不改变主会话模型授权。
fix_gateway_bedrock_rejected_model_id_message 网关拒绝 Bedrock 模型 ID 时错误信息命名不可用模型修复 changelog-derived 2.1.289 改进:Amazon Bedrock 拒绝模型 ID 时,开发者可见哪个模型不可用;网关日志同时记录实际发送的模型 ID。边界:改善模型选择诊断,不改变 Bedrock 权限、区域可用性或模型授权。
improve_model_switch_preserve_effort 标记消息后的自动模型切换保留当前 effort 级别 changelog-derived 2.1.289 改进:消息被标记后自动切换模型时,沿用当前 effort level,而不是采用新模型的默认档位。边界:保留推理强度偏好,不绕过模型可用性、托管模型锁定或用量限制。
fix_fallback_model_standard_speed 回退模型无法快速运行时采用标准速度并给出一次性提示 changelog-derived changelog 修复:被拒绝后重试或 --fallback-model 回退到的模型不能运行快速模式时,按标准速度运行;交互式会话给出一次性提示。边界:回退仍受模型可用性、托管锁定和额度限制约束,不绕过提供商策略。
model_openai_gpt_codex OpenAI GPT / Codex Model Service proprietary-cloud-model-service OpenAI 模型服务为 ChatGPT、Codex 和开发者 API 提供推理后端;公开材料覆盖代理循环中的 prompt、inference、工具调用、工具结果回灌和最终 assistant message。
model_gemini_series Google Gemini Model Service proprietary-cloud-model-service Gemini 模型服务支持提示词、应用与代理构建、复杂编程和多步任务、长上下文、结构化输出、函数调用、Live API、语音/视频及生成能力;CLI 与 Code Assist 可调用 Gemini 模型。
model_kimi_series Kimi Model Service proprietary-cloud-model-service Kimi 模型服务面向编程代理、知识工作和深度推理;公开文档列出旗舰长上下文、视觉理解、对话补全、Responses、Anthropic Messages 兼容、工具调用、联网搜索与网页抓取入口。
model_qwen_series Qwen Model Service on DashScope / Model Studio mixed-open-or-commercial-model-service-verify-source Qwen 模型系列经 DashScope / Model Studio 调用;公开覆盖语言模型、Qwen-VL、Qwen-Coder、Qwen-Audio、数学模型、深度思考、长上下文与深度研究模型及对应消息格式。
model_deepseek_series DeepSeek Model Service proprietary-cloud-model-service DeepSeek API 提供 V4-Pro、Flash 等模型接入;支持 OpenAI 与 Anthropic 兼容格式、思考/非思考模式、JSON 输出、工具调用、Responses API 和前缀补全,并可作为编程代理后端模型。
model_glm_series GLM Model Service on Zhipu Open Platform proprietary-cloud-model-service GLM 模型系列通过智谱开放平台提供对话补全、思考模式、流式响应、Agent 对话、托管 Agent、工具、Skills、Subagent 和外部工具/MCP 接入能力。
model_hunyuan_series Tencent Hunyuan Model Service proprietary-cloud-model-service 混元模型服务提供中文创作、语境推理和任务执行能力;公开文档列出现行 Hy3/Hy4 系列的 Agent、代码、长程任务、视觉理解、上下文规模,以及 OpenAI / Responses / Anthropic Messages 兼容说明。
model_minimax_series MiniMax M-Series Model Service proprietary-cloud-model-service MiniMax M 系列模型面向 Agent 推理、工具调用、代码和长上下文任务;可通过 HTTP、Anthropic SDK 或 OpenAI SDK 接入,并对接主流编程工具与 Mini Agent。
model_doubao_series Doubao Model Service on Volcengine Ark proprietary-cloud-model-service 豆包模型经火山方舟 Ark 平台调用;公开文档覆盖 Responses API、Chat API、深度思考、工具调用、文件/视频/文档理解、多语言 SDK 与 OpenAI SDK 兼容入口。
model_meta_llama Meta Llama Model Service organization-public-ecosystem-entry Meta Llama 公开模型服务与开发者通道;候选事实仅记录公开模型服务形态,不推断未公开训练数据或内部实现。
model_mistral Mistral AI Model Service organization-public-ecosystem-entry Mistral AI 公开模型推理服务与开发者接入通道。
model_xai_grok xAI Grok Model Service organization-public-ecosystem-entry xAI Grok 公开模型推理服务与 API 接入通道。
model_cohere Cohere Model Service organization-public-ecosystem-entry Cohere 公开模型推理服务与开发者接入通道。
model_aws_bedrock_nova Amazon Bedrock / Nova Model Service organization-public-ecosystem-entry Amazon Bedrock 托管基础模型推理服务,包含 Amazon Nova 模型及第三方提供商模型;本体只记录公开托管模型服务形态、推理通道与边界,不推断未公开训练数据或内部实现。
entry_2_1_332_foundry_vertex_model_alias_region_mapping Foundry and Vertex Sonnet/Opus alias and region model mapping official-document-derived-entry Microsoft Foundry 与 Google Cloud Agent Platform 的 Sonnet/Opus 别名、默认模型和 Vertex 区域环境变量映射在该版本调整;Bedrock Sonnet 别名保持原有版本。
entry_2_1_332_retired_platform_models_step_down_boundary Retired Foundry platform models excluded from step-down official-document-derived-entry Microsoft Foundry 的 Sonnet 4、Opus 4、Opus 4.1 标记为退役;模型回退停止在这些版本之上,固定到退役模型时给出警告。
entry_2_1_332_unavailable_default_model_fallback_older 默认模型不可用时回退到旧模型 official-public-changelog-entry Claude Code 2.1.332:--model default 与 Default 选择在目标模型不可用时改为回退到旧模型,而不是停止并报错;auto 模式仅回退到自动模式接受的模型。边界:回退不绕过提供商策略或模型访问限制。
entry_2_1_332_gateway_builtin_model_list_sonnet_55 网关内置模型列表 Sonnet 5.5 替换 Sonnet 4.5 official-public-changelog-entry Claude Code 2.1.332:Claude apps 网关内置模型列表中 Sonnet 5.5 取代 Sonnet 4.5 成为第二模型;在策略允许且无 Opus 4.6 可用时,Claude Desktop 从该模型启动。边界:该条目描述列表与默认选择行为,不公开模型权重或服务端实现。
doc_subagent_model_alias_family_resolution Subagent model alias family and unknown-family resolution proprietary-all-rights-reserved 家族别名在同家族或无法识别父模型家族时跟随父会话模型;其他提供商需显式完整模型 ID 或环境变量选择版本。
doc_prompt_cache_location 提示缓存位置(Where the cache lives) official-public-docs-derived 缓存位置随部署通道而定:API/订阅在 Anthropic 基础设施,Bedrock/Google Cloud 在供应商服务基础设施,网关则位于请求转发处。
change_api_request_retry_budget_per_model_call 模型调用共享一次重试预算,默认最多发出 14 个请求 changelog-derived 失败 API 请求的重试原先可能在流式与非流式回退之间重复获得预算;改动后整个模型调用共享同一预算,默认重试设置下失败调用最多发送 14 个请求。
improve_bedrock_vertex_switch_older_available_model_same_tier Bedrock 与 Vertex 在默认模型被管理员移除时回退到同档可用旧模型 changelog-derived 管理员移除默认模型访问权限时,Bedrock 与 Vertex AI 会话原先会失败;改进后切换到同档位仍可用的旧模型,会话标题与摘要随该回退一起回退。
improve_gateway_available_models_empty_or_missing_warning 托管策略 availableModels 为空或漏掉启动模型且未设置 model/enforce 时给出网关启动警告 changelog-derived 当托管策略的 availableModels 为空,或遗漏 Claude Code 启动所用模型,且未设置 model 或 enforceAvailableModels 时,Claude 应用网关在启动时给出警告。
entry_2_1_332_model_default_stepdown_unavailable Default model selection steps to an available older model instead of stopping on error official-doc-derived Changelog 2.1.332: --model default and a Default pick move to an older model when the requested model is unavailable; in auto mode, step-downs are limited to models auto mode accepts. This records public selection fallback behavior, not an unlisted model route.
doc_workflow_agent_model_selection_and_allowlist_substitution Workflow agent model selection order and allowlist substitution official-public-docs-derived Official workflows documentation: a workflow agent chooses its model in the same order as subagents; a model named by the script stage counts as the per-invocation model, and otherwise the agent runs on the session model. When an availableModels allowlist blocks the requested script-stage model, the agent runs on a substituted model following the same substitution rules as subagents.
entry_2_1_332_unavailable_model_fallback_selection_rule Unavailable requested model falls back to an older available model; auto mode accepts only accepted models official-changelog-derived-entry Changelog 2.1.332: --model default and a Default pick move to an older model when the requested model is unavailable instead of stopping with an error. In auto mode the fallback must remain within the model set auto mode accepts; the rule concerns selection, not authentication or deployment inventory.
doc_deployment_aws_bedrock_platform Claude Platform on AWS / Amazon Bedrock: AWS-native deployment with AWS credentials, Cost Explorer and IAM/CloudTrail controls official-public-docs-derived Official deployment comparison row: the AWS-native deployment runs on Amazon Bedrock / Claude Platform on AWS and can be billed through AWS. Public authentication uses an API key or AWS credentials; cost tracking uses AWS Cost Explorer. The recorded enterprise controls are IAM policies, CloudTrail, IAM policies and CloudTrail IAM roles. This entry keeps AWS provider management separate from the model-service channel and does not claim AWS-native audit details beyond the documented comparison row.
doc_deployment_gcp_agent_platform Google Cloud Agent Platform (formerly Vertex AI): GCP-native deployment with GCP credentials, GCP Billing and Cloud Audit Logs official-public-docs-derived Official deployment comparison row: Google Cloud's Agent Platform, formerly Vertex AI, is the GCP-native deployment option. Public authentication uses GCP credentials; cost tracking uses GCP Billing. The recorded enterprise control for this row is Cloud Audit Logs alongside IAM policies. This entry distinguishes the GCP Agent Platform deployment channel from Anthropic-managed Google Cloud model offerings already tracked elsewhere; it does not add unverified audit-log retention or policy details.
doc_deployment_microsoft_foundry_azure Microsoft Foundry: Azure-native deployment with Microsoft Entra ID, Azure Cost Management, RBAC and Azure Monitor official-public-docs-derived Official deployment comparison row: Microsoft Foundry is the Azure-native deployment option. Public authentication uses an API key or Microsoft Entra ID; cost tracking uses Azure Cost Management. Documented enterprise controls are RBAC policies and Azure Monitor. The entry records this Azure deployment boundary against the existing Foundry provider anchor; it does not model Entra group mappings, RBAC role internals or Monitor retention settings that the public comparison does not disclose.
cmd_setup_bedrock_wizard /setup-bedrock: interactive Amazon Bedrock authentication, region and model-pin wizard official-public-docs-derived Official commands documentation: /setup-bedrock configures Amazon Bedrock authentication, region and model pins through an interactive wizard. The command is hidden from the command menu until CLAUDE_CODE_USE_BEDROCK=1 is set and must be typed in full; first-time Bedrock users can also open the wizard from the login screen.
cmd_setup_vertex_wizard /setup-vertex: interactive Google Cloud Agent Platform auth, project, region and model-pin wizard official-public-docs-derived Official commands documentation: /setup-vertex configures Google Cloud's Agent Platform authentication, project, region and model pins through an interactive wizard. It is hidden from the command menu until CLAUDE_CODE_USE_VERTEX=1 is set and typed in full; first-time users can also reach it from the login screen.
entry_2_1_332_fallback_model_family_name_dropped_available_list Family name in --fallback-model retained when availableModels allows only an older version official-public-docs-derived Official changelog fix: a family name such as sonnet in --fallback-model was dropped when availableModels allowed only an older version of that family. This records fallback model alias and allow-list resolution boundary; hosted deployment topology remains outside the entry.
entry_2_1_332_enforced_older_model_list_platform_step_down Enforced older-model list on Agent Platform and Foundry steps down to next listed family model when first is refused official-public-docs-derived Official changelog fix: an enforced list of older models failed on Google Cloud Agent Platform and Foundry when the first model was refused; it now steps down to the next model in that family when listed newest first. This records provider-side allow-list step-down order boundary.
entry_2_1_332_upgrade_offer_omitted_model_admin_available_list Bedrock and Vertex startup model upgrade offer no longer names a model omitted by the availableModels list official-public-docs-derived Official changelog fix: the start-up model upgrade offer on Bedrock and Google Cloud Agent Platform named a model left out by the account's availableModels list. This records advertised-model availability boundary against the administrator list.
entry_2_1_332_bedrock_subagent_model_profile_parent_region Bedrock sub-agents use the model's own profile outside the parent region when account lists no parent-region profile official-public-docs-derived Official changelog fix: Bedrock sub-agents failed when the account listed no profile for their model in the parent's region; they now use the model's own profile, which can be outside that region. The entry records sub-agent credential/region profile fallback boundary, not AWS IAM internals.
entry_2_1_332_foundry_blocked_alias_version_newest_allowed Foundry session uses newest allowed version under built-in or mapped name when admin list blocks the version sonnet, opus or haiku points to official-public-docs-derived Official changelog fix: Foundry sessions could leave a model family when an administrator's list blocked the version to which the sonnet, opus or haiku alias points; they now use its newest allowed version under a built-in or mapped name. This records alias-to-allowed-version resolution boundary.
entry_2_1_332_bedrock_mantle_sonnet_alias_not_haiku Bedrock Mantle sonnet alias resolves to Sonnet 5, not Haiku 4.5; account without Sonnet 5 gets an explicit enablement error official-public-docs-derived Official changelog fix: the sonnet alias on Bedrock Mantle resolved to Haiku 4.5; it now means Sonnet 5 rather than Sonnet 5.5, and an account without Sonnet 5 receives an error so the model can be enabled first. This records provider alias mapping and missing-model error boundary.
review_third_party_provider_requires_claude_org Bedrock, Agent Platform, or Foundry use still requires a Claude organization on an eligible plan official-public-docs-derived Official availability documentation: developers may use Claude Code through Amazon Bedrock, Google Cloud Agent Platform, or Microsoft Foundry, but the organization still needs a Claude organization on one of the eligible plans.
doc_team_teammate_token_usage_cache_boundary Agent Teams teammate token usage scales with active teammates; in-process cache TTL boundary official-public-docs-derived 团队总 token 用量随活跃队友数增长;进程内队友请求落在主对话缓存 TTL 桶之外,缓存默认保留五分钟;常规重复性任务需权衡额外成本。
doc_mantle_custom_model_id_picker_specific_entry_boundary availableModels anthropic. entries become Mantle custom picker options; specific ID disables family wildcard official-public-docs-derived availableModels entries beginning with anthropic. are added to the /model picker as custom options, an exception to third-party deployment alias matching. With Bedrock Mantle enabled, matching Mantle-format entries route to that endpoint. The setting still restricts the picker; a Mantle ID embeds a family name and counts as a specific entry, disabling that family wildcard unless other version prefixes or full IDs are listed.
entry_2_1_332_foundry_default_sonnet_5_5_deploy_or_env_override Microsoft Foundry default model is Sonnet 5.5; deploy claude-sonnet-5-5 or set ANTHROPIC_DEFAULT_SONNET_MODEL to a deployed model official-public-documentation-entry Official 2.1.332 changelog states Microsoft Foundry's default model changed to Sonnet 5.5. Operators deploy claude-sonnet-5-5, or set ANTHROPIC_DEFAULT_SONNET_MODEL to a model they have deployed. This complements the separate Foundry sonnet/opus alias mapping entry.
doc_sdk_config_fallback_model_chain fallbackModel / fallback_model:主模型过载或不可用时的备份模型链 proprietary-model-weights-not-published 官方配置文档:设置 fallbackModel(TypeScript)或 fallback_model(Python)命名备份模型;主模型过载或不可用时会话切换到备份,每个用户回合开始重试主模型,恢复后回到主模型。该选项接受单个模型或以逗号分隔的备份列表。
doc_cloud_provider_default_model_pin_env_vars 云提供商模型版本钉选环境变量:Fable、Opus、Sonnet、Haiku 默认模型覆盖 proprietary-all-rights-reserved 官方企业部署文档:Bedrock、Google Agent Platform、Foundry 或 AWS Platform 部署可用 ANTHROPIC_DEFAULT_FABLE_MODEL、ANTHROPIC_DEFAULT_OPUS_MODEL、ANTHROPIC_DEFAULT_SONNET_MODEL、ANTHROPIC_DEFAULT_HAIKU_MODEL 钉选具体模型版本;不钉选时别名解析到提供商内置默认,可能滞后于最新发布。
entry_2_1_332_vscode_model_picker_tab_completion_switch_guard VS Code /model Tab completion does not switch model; picker closes without active run official-document-derived-entry Official 2.1.332 changelog fix: completing /model with Tab no longer switches the model, and closing the picker immediately does not act when nothing is running.
entry_2_1_332_opus_gateway_refused_model_step_down opus steps down to an answering older model behind a gateway that refuses a model in its own words configuration-documentation 网关以自有措辞拒绝某模型时,opus 会回退到可应答的旧模型;条目记录模型家族回退边界,不建模网关私有错误策略、未发布模型或服务端路由实现。
entry_2_1_332_gateway_model_list_desktop_default_policy Gateway built-in model list updates Sonnet 5.5 as second model; Desktop default follows policy proprietary-model-weights-not-published Official changelog 2.1.332: the Claude apps gateway built-in model list replaces Sonnet 4.5 with Sonnet 5.5 as the second model; Claude Desktop starts on it where policy allows and Opus 4.6 is unavailable. This entry records the visible list/default boundary only, not model weights or server-side selection internals.
entry_2_1_332_foundry_sonnet_opus_alias_mapping_bedrock_sonnet_stays Foundry and Google Cloud Agent Platform Sonnet/Opus aliases map to Sonnet 5.5 and Opus 5.5; Bedrock Sonnet stays Sonnet 4.5 proprietary-model-weights-not-published Official changelog 2.1.332: the sonnet alias on Google Cloud Agent Platform and Microsoft Foundry changes to Sonnet 5.5, and the Foundry opus alias to Opus 5.5; sonnet on Amazon Bedrock stays at Sonnet 4.5. The entry separates public alias mapping from deployed model access.
doc_project_model_context_management Project model and context management: model choice delegated with context budget handling official-public-docs-derived Project documentation covers model selection and letting Claude manage context; model choice and context budget do not grant repository, network or filesystem permissions beyond the host policy.
doc_foundry_bearer_token_third_auth_mode Microsoft Foundry third authentication mode: ANTHROPIC_FOUNDRY_AUTH_TOKEN Bearer token above API key and Azure default credential chain official-public-documentation-entry Official Foundry reference: Foundry supports API key (ANTHROPIC_FOUNDRY_API_KEY), Entra ID through the Azure SDK default credential chain, and a Bearer token passed as ANTHROPIC_FOUNDRY_AUTH_TOKEN on every Authorization header. The Bearer token takes precedence over the API key and the default credential chain. Under Foundry, the /logout command is unavailable because authentication is handled through Azure credentials. The entry records the three documented modes and their precedence against the existing Foundry anchor.
doc_vertex_aiplatform_user_iam_role Google Cloud Agent Platform IAM role roles/aiplatform.user includes aiplatform.endpoints.predict for invocation and token counting official-public-documentation-entry Official Vertex reference: assign the roles/aiplatform.user role to a caller; it includes aiplatform.endpoints.predict, the permission required for model invocation and token counting. Custom roles are permitted, and a dedicated GCP project is recommended. The entry records the documented standard role and required permission only; it does not model service-account impersonation or VPC-SC configuration.
doc_model_opusplan_setting opusplan 模型别名:计划模式用 Opus,执行阶段切 Sonnet official-doc-derived 官方模型配置文档:opusplan 别名提供自动化混合策略——计划模式用 opus 做复杂推理与架构决策,执行模式自动切换到 sonnet 生成代码与实现;可用 opusplan[1m] 请求 1M 上下文窗口(/model 设置需 v2.1.265+,更早版本用 --model 标志或 model 设置)。availableModels 排除最新 Opus 但允许旧版本时,opusplan 用最新被允许的 Opus 做计划;所有 Opus 被排除时才停留在 Sonnet。
entry_2_1_332_foundry_sonnet_opus_alias_mapping_change Changed sonnet alias on Google Cloud Agent Platform and Foundry to Sonnet 5.5; Foundry opus alias to Opus 5.5; Bedrock sonnet stays Sonnet 4.5 official-public-docs-derived 2.1.332 changelog: the sonnet model alias on Google Cloud's Agent Platform and Microsoft Foundry changed to Sonnet 5.5, and the Foundry opus alias to Opus 5.5; sonnet on Amazon Bedrock stays at Sonnet 4.5.
entry_2_1_332_foundry_default_sonnet_5_5_model Microsoft Foundry default model changed to Sonnet 5.5: deploy claude-sonnet-5-5 or set ANTHROPIC_DEFAULT_SONNET_MODEL official-public-docs-derived 2.1.332 changelog: the default model on Microsoft Foundry changed to Sonnet 5.5; deploy claude-sonnet-5-5, or set ANTHROPIC_DEFAULT_SONNET_MODEL to a deployed model.
entry_2_1_332_gateway_builtin_model_list_sonnet_55_second Gateway built-in model list: Sonnet 5.5 replaces Sonnet 4.5 as second model; Desktop starts on it where policy allows no Opus 4.6 official-public-docs-derived 2.1.332 changelog: the Claude apps gateway built-in model list updates Sonnet 5.5 to replace Sonnet 4.5 as its second model, and Claude Desktop starts on it where a policy allows no Opus 4.6.
model_openai_realtime_models OpenAI Realtime 语音模型系列(GPT-Realtime / GPT-Live-1) proprietary-cloud-model-service Realtime 语音模型在单一模型内处理与生成音频,支持自然对话、中断检测、上下文管理与工具调用委派;GPT-Live-1 支持全双工对话、语调节奏风格控制与长会话可靠性,可把深层推理与工具调用委派给后端文本模型。
model_qwen3_open_weights Qwen3 Open-Weight Model Series open-weight-apache-2.0 Qwen3 开源权重系列含 6 个 dense 模型(0.6B/1.7B/4B/8B/14B/32B)与 2 个 MoE 模型(30B-A3B、235B-A22B),混合思考/非思考模式,支持工具调用、MCP 与编码/智能体任务;与 DashScope 托管 API 服务分开建模。
model_qwen_vl_family Qwen-VL Multimodal Model Family mixed-open-or-commercial-model-service-verify-source Qwen-VL 家族处理图像、视频等多模态输入;Model Studio 多模态对话端点(multimodal-generation/generation)提供 qwen3-vl-plus 等托管模型调用,开源版本权重在官方模型平台分发。
entry_2_1_332_changed_sonnet_and_background_requests_on_google_cloud_s_agent_platfor Changed sonnet and background requests on Google Cloud’s Agent Platform to read VERTEX_REGION_CLAUDE_5_5_SONNET; with only the 4_5 variable set they go to CLOUD_ML_REGION or us-east5 official-public-changelog-entry Changed sonnet and background requests on Google Cloud’s Agent Platform to read VERTEX_REGION_CLAUDE_5_5_SONNET; with only the 4_5 variable set they go to CLOUD_ML_REGION or us-east5
entry_2_1_332_fixed_opus_failing_on_bedrock_google_cloud_s_agent_platform_and_foundr Fixed opus failing on Bedrock, Google Cloud’s Agent Platform and Foundry behind a gateway that refuses a model in its own words: it now steps down to an older model that answers official-public-changelog-entry Fixed opus failing on Bedrock, Google Cloud’s Agent Platform and Foundry behind a gateway that refuses a model in its own words: it now steps down to an older model that answers
entry_2_1_332_fixed_the_start_up_model_upgrade_offer_on_bedrock_and_google_cloud_s_a Fixed the start-up model upgrade offer on Bedrock and Google Cloud’s Agent Platform naming a model that your availableModels list leaves out official-public-changelog-entry Fixed the start-up model upgrade offer on Bedrock and Google Cloud’s Agent Platform naming a model that your availableModels list leaves out
entry_2_1_332_fixed_foundry_sessions_leaving_a_model_family_when_an_admin_s_list_blo Fixed Foundry sessions leaving a model family when an admin’s list blocks the version sonnet, opus or haiku points to: they now use its newest allowed version under a built-in or mapped name official-public-changelog-entry Fixed Foundry sessions leaving a model family when an admin’s list blocks the version sonnet, opus or haiku points to: they now use its newest allowed version under a built-in or mapped name
entry_2_1_332_fixed_the_sonnet_alias_on_bedrock_mantle_resolving_to_haiku_4_5_it_now Fixed the sonnet alias on Bedrock Mantle resolving to Haiku 4.5: it now means Sonnet 5, not Sonnet 5.5, and an account without Sonnet 5 gets an error, so enable it first official-public-changelog-entry Fixed the sonnet alias on Bedrock Mantle resolving to Haiku 4.5: it now means Sonnet 5, not Sonnet 5.5, and an account without Sonnet 5 gets an error, so enable it first
model_gemini_nano_banana Nano Banana image generation/editing family proprietary-cloud-model-service Nano Banana 系列图像生成与编辑模型(Nano Banana、2、2 Lite、2.1、Pro),用于情境化原生图像创作;具体模型可用性与配额以 Gemini API 文档为准。
model_gemini_embedding Gemini Embedding model family proprietary-cloud-model-service Gemini Embedding 与 Embedding 2 嵌入模型,将文本、图片、视频、音频、PDF 映射到统一嵌入空间,用于语义搜索与 RAG。
model_gemini_robotics Gemini Robotics ER embodied reasoning model proprietary-cloud-model-service Gemini Robotics ER 系列具身推理模型,提供视频理解、空间推理、多步工具调度与多机器人协作;已停用型号不纳入新工程。
agent_gemini_deep_research Gemini Deep Research agentic model proprietary-cloud-model-service Gemini Deep Research 与 Deep Research Max 自主代理模型:规划并执行多步研究,跨数百来源生成带引用的交互式报告。
agent_antigravity_managed Antigravity managed agent model proprietary-cloud-model-service Antigravity Agent 通用托管代理模型,在安全隔离的 Linux 沙箱内自主规划、推理、运行代码、管理文件并浏览网页。
model_gemini_live Gemini Live API audio model family proprietary-cloud-model-service Gemini Live API 实时双向语音/对话模型家族(如 2.5 Flash Live、3.8 Live、Live Extended Thinking、3.5 Live Translate),支持低延迟原生音频流式交互。
model_gemini_tts Gemini TTS text-to-speech model family proprietary-cloud-model-service Gemini TTS 文本转语音模型家族(如 2.5 Flash/Pro TTS、3.8 Flash / Flash-Lite TTS),提供风格与语速可控的语音合成。
model_openai_gpt5_series OpenAI GPT-5 Model Series proprietary-cloud-model-service GPT-5 系列在 API 提供 gpt-5、gpt-5-mini、gpt-5-nano 等档位;支持 reasoning_effort 与 verbosity 参数、并行工具调用、内置工具、流式与结构化输出;ChatGPT 内非推理版本以 gpt-5-chat-latest 上架。
model_openai_embedding OpenAI Embedding Model Service proprietary-cloud-model-service OpenAI Embedding 服务把输入文本转换为向量表示,供语义检索、分类与 RAG 使用;API 通过 /v1/embeddings 提交模型 ID 与输入文本或 token 数组。
model_openai_image_generation OpenAI Image Generation Model Service (DALL·E family) proprietary-cloud-model-service OpenAI 图像生成服务覆盖文生图、原图编辑与图像变体;平台 images 接口接受提示词与可选输入图像,返回 URL 或 base64 JSON。
model_qwen_embedding_family Qwen Embedding & Rerank Model Family (DashScope / Model Studio) proprietary-cloud-model-service 百炼托管的文本/图文向量模型与重排序模型:qwen3.7-text-embedding、qwen3.7-text-embedding-flash、qwen3-vl-embedding、text-embedding-v4、tongyi-embedding-vision-plus 与 qwen3-rerank,用于语义检索、RAG 与检索结果排序。
model_qwen_audio_family Qwen-Audio Speech Model Family (ASR / TTS / Realtime Speech-to-Speech) proprietary-cloud-model-service 百炼托管的语音模型家族:ASR 语音识别(qwen-audio-3.1-asr-flash 系列)、TTS 语音合成(qwen-audio-3.1-tts-plus / flash / next)与语音转语音实时对话(qwen-audio-3.1-realtime-plus / flash、qwen-audio-3.1-live),支持音频转写、合成与端到端实时语音会话。
model_qwen_omni_family Qwen Omni Multimodal Model Family (Text / Image / Audio / Video) proprietary-cloud-model-service 融合文本、图像、音频、视频理解与生成的全模态模型:qwen3.8-omni-flash 通过 Chat Completions 或 Responses 处理音视频分析与文本生成;qwen3.8-omni-flash-realtime 用于实时音视频对话;qwen3.5-omni-plus 用于非实时语音输出。
entry_2_1_332_foundry_default_model_sonnet_55 Microsoft Foundry 默认模型改为 Sonnet 5.5(2.1.332) official-changelog-documented Foundry 默认模型切换为 Sonnet 5.5;可部署 claude-sonnet-5-5,或用 ANTHROPIC_DEFAULT_SONNET_MODEL 指定已部署模型。
entry_2_1_332_aws_credential_export_timeout_10m awsCredentialExport times out after 10 minutes instead of waiting forever official-documentation-entry 2.1.332: awsCredentialExport times out after 10 minutes instead of waiting forever.
model_gemini_25_pro Gemini 2.5 Pro model family proprietary-cloud-model-service Gemini 2.5 Pro: Google's most advanced 2.5-series model for complex tasks, deep reasoning and coding; access per official model availability policy.
model_gemini_25_flash Gemini 2.5 Flash model family proprietary-cloud-model-service Gemini 2.5 Flash: cost-effective multimodal model for low-latency, high-volume tasks requiring reasoning.
model_gemini_25_flash_lite Gemini 2.5 Flash-Lite model family proprietary-cloud-model-service Gemini 2.5 Flash-Lite: fastest and most economical multimodal model in the 2.5 series.
entry_2_1_332_foundry_blocked_alias_uses_newest_allowed_version Foundry sessions blocked from an admin-listed model version fall back to the newest allowed version under a built-in or mapped name official-public-docs-derived Official changelog fix: when an admin list blocks the version that a sonnet, opus or haiku alias points to, Foundry sessions previously left the model family; they now use the newest allowed version under a built-in or mapped name. The entry records the hosted-platform alias allow-list resolution boundary, not Foundry IAM internals.
entry_2_1_332_bedrock_mantle_sonnet_alias_resolution_fix Bedrock Mantle sonnet alias resolves to Sonnet 5 rather than Haiku 4.5; missing Sonnet 5 surfaces an enablement error official-public-docs-derived Official changelog fix: the sonnet alias on Bedrock Mantle resolved to Haiku 4.5; it now means Sonnet 5, and an account without Sonnet 5 returns an error so the model can be enabled first. The entry records the platform alias-to-model family resolution boundary.
model_openai_o3_series OpenAI o3 Reasoning Model Series proprietary-cloud-model-service o3 系列是 OpenAI o 系列长思考推理模型,面向编码、数学、科学与视觉感知的复杂任务;o3-pro 在 o3 基础上延长思考以提升可靠性,可使用网页搜索、文件分析、视觉推理、Python 与记忆等工具。
model_openai_o4_mini OpenAI o4-mini Reasoning Model proprietary-cloud-model-service o4-mini 是 o 系列中面向高吞吐、低成本的小型推理模型,在数学、编码与视觉任务上优化效率,支持更高使用额度与工具调用。
model_openai_gpt_oss OpenAI gpt-oss Open-Weight Reasoning Models apache-2.0-open-weight-model-with-usage-policy gpt-oss-120b 与 gpt-oss-20b 是开放权重 MoE 推理模型,兼容 Responses API,支持指令跟随、函数调用、网页搜索/Python 工具、可调节推理强度、完整 CoT 与结构化输出;可在 vLLM、Ollama、llama.cpp 等开放推理栈或自管 GPU 环境运行。
doc_gcp_anthropic_managed_model_service Claude Models on Google Cloud(Anthropic managed):经 Google Cloud 项目访问的托管 Claude API,ADC/服务账号、roles/claude.user、workspace ID 与 Marketplace 计费 official-documentation-entry 该服务是 Anthropic 运行、经用户 Google Cloud 项目访问的 Claude API;区别于 Google 管理的 Agent Platform(原 Vertex AI)。前置:账号设置完成的 Google Cloud 项目;运行 Claude Code 的每个 Google 账号或服务账号获 roles/claude.user;项目 ID 与以 wrkspc_ 开头的 workspace ID;账号登录可用 gcloud CLI。
entry_2_1_330_skill_model_setting_leaves_subagent_fork_compaction_session_model Model-setting skills keep subagents, forks and compaction on session model (2.1.330) proprietary-all-rights-reserved 带 model 设置的技能(context: fork 除外)不再把子代理、分叉、压缩与 /recap 带到技能模型。
entry_2_1_332_foundry_default_sonnet_55_deploy_or_env_model Microsoft Foundry default model moved to Sonnet 5.5; deploy claude-sonnet-5-5 or set ANTHROPIC_DEFAULT_SONNET_MODEL (2.1.332) official-public-changelog-entry Foundry 默认模型改为 Sonnet 5.5;需部署 claude-sonnet-5-5,或用 ANTHROPIC_DEFAULT_SONNET_MODEL 指定已部署模型。
entry_2_1_332_unavailable_model_default_stepdown_auto_only_available --model default and Default pick step to older unavailable model; auto mode steps only to an available model (2.1.332) official-public-changelog-entry --model 默认值与 Default 选择在模型不可用时回退到旧模型;auto mode 仅回退到可用模型。
entry_2_1_331_bedrock_vertex_mantle_custom_headers_auth_repeat Bedrock/Vertex/Mantle availability checks under skip auth send same Authorization header as real requests with repeated ANTHROPIC_CUSTOM_HEADERS (2.1.331) official-public-changelog-entry 跳过鉴权下的可用性检查在 ANTHROPIC_CUSTOM_HEADERS 重复 Authorization 时,与真实请求发送相同 Authorization 头。
entry_2_1_331_gateway_bedrock_rejected_model_id_named_in_error Claude apps gateway error names unavailable model ID rejected by Bedrock; gateway log records sent ID (2.1.331) official-public-changelog-entry 网关在 Bedrock 拒绝模型 ID 时的错误指出不可用模型;网关日志记录所发送 ID。
model_gemini_3_flash Gemini 3 Flash model family proprietary-cloud-model-service Gemini 3 Flash 是 3 系列 Flash 档位模型,定位以接近 Flash 的成本提供对标更大模型的性能;当前状态与可用性以官方模型页为准。
model_gemini_31_pro Gemini 3.1 Pro model family proprietary-cloud-model-service Gemini 3.1 Pro 面向复杂任务、广泛世界知识与跨模态高级推理;属于 Gemini 3 系列 Pro 档位。
model_qwen3_coder_open_weights Qwen3-Coder Open-Weight Code Model Series (QwenLM) open-weight-code-model-series-verify-license-per-model-card Qwen3-Coder 是 QwenLM 面向编程代理与本地开发发布的代码专用开源权重模型系列;Qwen Code CLI 针对该系列优化解析器与工具支持。模型权重发布、本地推理与云端托管调用边界分开记录,不收录未公开训练细节或内部算法。
model_gemini_35_flash Gemini 3.5 Flash model family proprietary-cloud-model-service Gemini 3.5 Flash 模型家族:Google 面向代理功能与多模态工作的高效 Flash 模型;经 Gemini API / Interactions API 调用,属 Gemini 模型服务家族。
model_gemini_35_flash_lite Gemini 3.5 Flash-Lite model family proprietary-cloud-model-service Gemini 3.5 Flash-Lite 模型家族:3.5 系列中面向高吞吐、低成本任务的轻量 Flash-Lite 模型;经 Gemini API 调用,属 Gemini 模型服务家族。
entry_2_1_325_vertex_fast_mode_regional_fallback Vertex fast mode:global/us/eu 区域快速模式,被 Vertex 拒绝时回退标准速度 official-document-derived-entry 2.1.322/325 起 Google Cloud Vertex 上提供 fast mode;global、us、eu 区域可用,Vertex 拒绝快速模式时回退标准速度,不强制失败。
entry_2_1_322_vertex_fast_mode_global_us_eu_fallback Vertex fast mode:global、us、eu 区域快速模式,Vertex 拒绝时回退标准速度 official-document-derived-entry 2.1.322 在 Vertex 上提供 global、us、eu 区域 fast mode;Vertex 拒绝快速模式时回退标准速度。
entry_2_1_314_gateway_upstream_idp_group_filter Claude apps gateway upstream optional IdP groups list: only listed developers are routed to that upstream, including on failover official-public-docs-derived Official changelog addition: gateway upstreams accept an optional groups list; developers outside the listed IdP groups are not sent to the upstream, and the same filter applies during failover. Records the gateway upstream routing boundary; group claims and IdP integration remain official-documentation scope.
entry_2_1_314_gateway_bedrock_guardrail_trace_no_matched_text Gateway Bedrock upstream guardrail_trace logs which guardrail filter fired, without the matched text official-public-docs-derived Official changelog addition: guardrail_trace on Claude apps gateway Bedrock upstreams records which Amazon Bedrock guardrail filter fired on a request; the matched prompt or text is not logged. Records the audit-trace boundary between filter identity and retained content.
entry_2_1_301_smaller_context_model_summary_by_previous_model Switching to a smaller-context model: a conversation too long for the new model is summarized by the previous model first official-public-docs-derived Official changelog improvement: when switching to a model with a smaller context window, a conversation that does not fit the new model is summarized by the previous model first. Records the model-switch compaction boundary; model fallback and effort retention follow official model selection documentation.
entry_2_1_330_system_prompt_earlier_model_instructions_after_switch_context System prompt keeps the earlier model's instructions when the model changes after /context but before the first message changelog-derived 官方 changelog 2.1.330:模型在 /context 之后、首条消息之前切换时,系统提示保留前一模型指令。条目记录模型切换与系统提示衔接边界,不记录提示词内部内容。
entry_2_1_330_bedrock_mantle_pinned_opus_model_respected Bedrock Mantle 未选模型启动时尊重固定 Opus 模型并不再调用不可用默认模型 changelog-derived 官方 changelog 2.1.330:Amazon Bedrock (Mantle) 启动时未选择模型的会话曾忽略固定的 Opus 模型,并在宣布回退后仍调用不可用默认模型;修复模型选择路径。边界:模型选择与回退行为,不收录模型网关内部。
entry_2_1_330_model_change_system_prompt_earlier_instructions 模型切换后系统提示不再保留上一模型指令 changelog-derived 官方 changelog 2.1.330:模型在 /context 之后、首条消息之前被切换时,系统提示曾保留更早模型的指令;修复模型切换后的提示衔接。边界:系统提示与模型选择行为,不收录模型请求内部结构。
model_qwen3_2507_instruct_thinking Qwen3-2507 Instruct / Thinking Open-Weight Model Split open-weight-model-apache-2.0-verify-model-card Qwen3-2507 在混合思考模式之外恢复独立的 Instruct-only 与 Thinking-only 两类开放权重模型:Instruct 面向指令跟随、多语言长尾知识与偏好对齐;Thinking 面向逻辑推理、数学、代码与学术基准;二者均支持 256K 上下文、可扩展至 1M,归入 Qwen3 开放权重家族。
env_enable_gateway_model_discovery CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY 网关模型发现开关 configuration-documentation 官方 changelog 2.1.329:/model 选择器的网关 /v1/models 发现为 opt-in;开启后支持网关在发现条目上提供 description,缺描述的条目仍显示 “From gateway”。边界:只控制模型列表发现与展示,不改变模型可用性、认证或提供商策略。
env_skip_fast_mode_org_check CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK 跳过 Fast Mode 组织检查 configuration-documentation 官方 changelog 2.1.329:修复带该变量启动的会话在 API 拒绝 Fast Mode 后每回合重复重发快速请求;拒绝结果保留并展示原因。边界:只记录 Fast Mode 拒绝后的行为,不改变组织策略、模型访问或回退速度。
env_use_gateway_regression CLAUDE_CODE_USE_GATEWAY 网关环境变量回归修复 configuration-documentation 官方 changelog 2.1.329:修复 2.1.265 起影响 LLM 网关与代理部署的回归——该未公开环境变量此前仅在同时设置 ANTHROPIC_BASE_URL 与 ANTHROPIC_AUTH_TOKEN 时生效,修复后恢复既有网关判定。边界:记录网关配置行为回归,不收录内部网关路由实现;变量本身为未公开配置。
entry_2_1_332_sonnet_alias_bedrock_mantle_haiku Bedrock Mantle 上 sonnet 别名解析为 Sonnet 5 而非 Haiku 4.5 official-document-derived-entry 修复 Bedrock Mantle 的 sonnet 别名误解析为 Haiku 4.5;现在指向 Sonnet 5,账号无 Sonnet 5 时报错提示先启用。
entry_2_1_332_bedrock_subagent_profile_region Bedrock 子代理父区域无模型配置时使用模型自身区域配置 official-document-derived-entry 账号在父代理区域未列出子代理模型配置时,子代理改用模型自身配置(可位于其他区域)。
entry_2_1_332_foundry_admin_blocked_version_newest_allowed Foundry 管理员列表阻断版本时使用内置/映射名下最新允许版本 official-document-derived-entry 管理员列表阻断 sonnet/opus/haiku 指向版本时,Foundry 会话改用其名下最新允许版本。
entry_2_1_332_google_foundry_model_stepdown_enforced 强制模型列表在 Google Cloud Agent Platform/Foundry 被拒时按族降级 official-document-derived-entry 强制旧模型列表在 Google Cloud Agent Platform 与 Foundry 首个模型被拒时,按最新在前顺序降级到同族下一个。
entry_2_1_332_startup_upgrade_offer_unavailable_model Bedrock/Google Cloud 启动模型升级提示不再点名不可用模型 official-document-derived-entry Bedrock 与 Google Cloud Agent Platform 的启动模型升级推荐不再命名 availableModels 列表排除的模型。
entry_2_1_332_fallback_model_family_name_dropped --fallback-model 族名在 availableModels 仅允许旧版本时不再丢失 official-document-derived-entry availableModels 只允许某族旧版本时,--fallback-model 中的 sonnet 等族名不再被丢弃。
entry_2_1_332_gateway_refused_opus_stepdown 网关以自身措辞拒绝模型时 opus 在 Bedrock/Google/Foundry 降级到可应答旧版 official-document-derived-entry 网关拒绝某模型时,opus 在 Bedrock、Google Cloud Agent Platform 与 Foundry 上降级到可应答的旧版本。
entry_2_1_332_cloud_refused_default_model_available_list 云端拒绝默认模型且 availableModels 未强制时会话不再失败 official-document-derived-entry 云端拒绝默认模型、且 availableModels 列表未强制约束时,会话不再因列表未命名该模型或同族旧版而失败。
model_openai_o1_series OpenAI o1 Reasoning Model Series(o1 / o1-pro 推理模型) proprietary-cloud-model-service o1 系列是 OpenAI 训练为回答前先思考(reinforcement learning 推理)的模型,面向科学、编码与数学等复杂多步任务;API 侧提供 o1、o1-pro 等档位,支持 function calling、结构化输出、视觉输入与 reasoning_effort 参数;o1-pro 仅在 Responses API 提供。早期 o1-preview / o1-mini 已从 API 退役。模型权重未公开,属托管 API 模型服务。
model_openai_audio_transcription OpenAI Speech-to-Text Transcription Models(gpt-4o-transcribe / gpt-4o-mini-transcribe / whisper-1) proprietary-cloud-model-service 语音转文本模型族:新一代 gpt-4o-transcribe 与 gpt-4o-mini-transcribe 在词错率、语言识别与口音/噪声鲁棒性上优于原 Whisper;legacy whisper-1 经 transcriptions 与 translations 端点调用,不支持流式转写;持续输入音频流转写由 Realtime 转写模型承担。模型服务与开放分发的 Whisper 开源代码仓库分开标注。
model_openai_audio_tts OpenAI Text-to-Speech Model(gpt-4o-mini-tts) proprietary-cloud-model-service 文本转语音模型 gpt-4o-mini-tts,经 speech(/v1/audio/speech)端点合成语音;开发者可通过指令控制说话方式(语气、风格),输出仅限人工预设音色并受平台监控。属托管音频模型服务,与 Realtime API 实时语音模型族区分。
env_anthropic_small_fast_model ANTHROPIC_SMALL_FAST_MODEL 已弃用的后台小模型名称环境变量 official-doc-derived 官方 env-vars 文档:[DEPRECATED] 指定后台任务所用 Haiku 级模型名称;与 ANTHROPIC_DEFAULT_HAIKU_MODEL 体系区分,弃用状态按官方标注,不推断替代内部路由。
env_anthropic_small_fast_model_aws_region ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION Haiku 级模型 AWS 区域覆盖变量 official-doc-derived 官方 env-vars 文档:在 Amazon Bedrock 或 Bedrock Mantle 上覆盖 Haiku 级模型的 AWS 区域;仅当 ANTHROPIC_DEFAULT_HAIKU_MODEL 或已弃用的 ANTHROPIC_SMALL_FAST_MODEL 同时设置时生效,否则 Bedrock 使用自身区域解析。
model_gemini_transcribe Gemini Transcribe speech-to-text model family proprietary-cloud-model-service Gemini 3.5 Transcribe 低延迟语音转文本模型,支持按语句的语言检测、说话人分离、词级时间戳与自定义词汇偏置;归属 Gemini API Audio 模型族。
model_gemini_live_translate Gemini Live Translate real-time speech-to-speech translation model proprietary-cloud-model-service Gemini 3.5 Live Translate 低延迟实时语音到语音翻译模型,支持 70 余种语言;属 Live API 语音模型方向,与文本 TTS、语音转文本条目分开建模。
model_gemini_omni_flash Gemini Omni Flash video generation and editing model proprietary-cloud-model-service Gemini Omni Flash 快速视频生成与编辑模型,支持关键帧插值、画面延展并附带原生音频;归属 Gemini API Generative media 模型族,与 Nano Banana 图像模型分开建模。
model_gemini_deep_research_max Gemini Deep Research Max research synthesis model proprietary-cloud-model-service Gemini Deep Research Max 在自动上下文收集与综合上追求最大覆盖度,跨数百个来源汇总研究材料;是基础 Deep Research 的更高覆盖度档位,与 agent_gemini_deep_research 同属研究代理模型族。
model_gemini_4_argon Gemini 4 Argon flagship reasoning model proprietary-cloud-model-service Gemini 4 Argon 旗舰推理模型,统一 1M 上下文窗口,支持最长至 1M token 的长解码;属 Gemini 4 代旗舰推理家族,与既有 2.5 / 3.x 系列条目并列。
doc_project_coordinator_model_separate Projects coordinator model: model for the project conversation, separate from per-thread model and effort settings official-doc-derived 官方 Projects 文档:Threads 设置决定新线程使用的模型与 effort;Coordinator 设置决定项目对话(统筹各线程的 Claude)所用模型。单个任务可在提示中要求使用其他模型,运行中的线程可通过其模型选择器切换;模型选择不授予仓库、网络或文件系统之外的额外权限。
model_gemini_38_flash Gemini 3.8 Flash model family proprietary-cloud-model-service Gemini 3.8 Flash 稳定档模型:Google 最智能的 Flash 模型,面向长程软件工程、自主代理与复杂企业工作流设计;归属 Gemini 模型服务家族,经 Gemini API / Interactions API 调用。
model_gemini_36_flash Gemini 3.6 Flash model family proprietary-cloud-model-service Gemini 3.6 Flash 上一代稳定 Flash 模型,在速度与多模态能力之间取得平衡,覆盖通用代理与日常任务;归属 Gemini 模型服务家族,经 Gemini API / Interactions API 调用。
model_qwq32b_open_weights QwQ-32B Open-Weight Reasoning Model (Qwen) open-weight-apache-2.0-verify-per-model-card QwQ-32B 是 Qwen 系列的中型开放权重推理模型,基于 Qwen2.5 架构,在困难任务上通过思考与推理提升表现;模型卡记录约 32.5B 参数、131,072 token 上下文。开放权重条目与百炼托管调用服务分开建模。
model_qwen_image_family Qwen Image Generation Family on Model Studio proprietary-cloud-model-service 阿里云百炼 Model Studio 托管的 Qwen 图像生成与编辑模型家族,官方模型列表覆盖 qwen-image-3.0-pro 等图像生成条目;文本或参考图像生成图像,并支持编辑与高分辨率输出。
model_qwen38_open_weights Qwen3.5 / Qwen3.6 / Qwen3.8 Open-Weight Model Series (QwenLM) open-weight-apache-2.0 QwenLM/Qwen3.8 仓库聚合 Qwen3.5、Qwen3.6 与最新 Qwen3.8 开放模型系列;Qwen3.8 是首个面向开放发布的 Qwen-Max 级别模型,覆盖编程、专业工作、研究与长程智能体任务。支持通过 reasoning_effort 调节推理深度,并通过 preserve_thinking 保留历史消息中的推理上下文;权重经 Hugging Face 与 ModelScope 分发。
doc_team_teammate_model_allowlist_substitution Agent Teams 队友模型可用清单拦截与替代(availableModels allowlist substitution) official-public-document-entry 官方 Agent Teams 文档:队友候选模型先对照 availableModels 允许清单;家族别名(如 opus)在 Anthropic API 与 AWS Claude Platform 上可替代为清单允许的最新家族版本;提供厂商专属模型 ID 的通道不支持别名替代;被拦截的别名或无许可版本的家族回退到 lead 当前模型;若设置 CLAUDE_CODE_SUBAGENT_MODEL,先按同一规则尝试该模型。
model_qwen3guard Qwen3Guard Multilingual Guardrail Model Series (QwenLM / Alibaba Cloud) open-weight-apache-2.0 Qwen3Guard 是 Qwen 家族的多语言安全护栏模型系列,基于 Qwen3 微调;包含 Gen(离线安全分类、标注与奖励场景)与 Stream(响应生成过程中的实时流式 token 级检测)两个变体,覆盖 0.6B、4B、8B 规模,用于提示与响应的安全分类。本体仅记录官方公开系列定位、变体与分发边界,不收录未公开训练数据细节、内部判定规则或密钥常量。
model_gemini_lyria Lyria music generation model family proprietary-cloud-model-service Google Lyria 音乐生成模型家族,经 Gemini API / Interactions API 调用。Lyria 3 Clip(lyria-3-clip-preview)面向 30 秒短片、循环与预览;Lyria 3.5(lyria-3.5)生成含主歌、副歌、桥段的完整歌曲;支持文本与图片输入,输出 44.1 kHz 高保真立体声,默认 MP3,可请求 WAV 音频响应。
model_qwen38_flash_next_open_weights Qwen3.8-Flash-Next Open-Weight Multimodal MoE Model open-weight-model-verify-license-per-model-card Qwen3.8-Flash-Next 是 QwenLM 开放权重的多模态 MoE 模型,作为 Qwen4 架构的早期预览;官方材料记录其 125B 主模型、51B N-gram 嵌入与每 token 6B 激活参数,采用 GDN + QSA 混合注意力、门控残差、N-gram 嵌入与 Muon 优化器相关设计。本体只记录公开模型定位、参数结构与分发边界,不收录未公开训练数据或内部实现细节。
model_qwen_agentworld_open_weights Qwen-AgentWorld-35B-A3B Open-Weight Agent World Model open-weight-apache-2.0 Qwen-AgentWorld-35B-A3B 是 QwenLM 开放权重的 MoE 语言世界模型,官方记录为 35B 总参数、3B 激活、256K 上下文;同一发布包含 AgentWorldBench 评测基准。本体仅记录模型权重条目与官方仓库,不把评测数据集或榜单排名建模为业务关系。
model_qwen_deep_research Qwen-Deep-Research Hosted Research Model (Model Studio / DashScope) proprietary-cloud-model-service Model Studio / DashScope 托管的 Qwen-Deep-Research 闭源研究模型:先澄清研究方向,再完成规划、多轮网页检索与结构化报告生成;主线版本持续更新,2025-12-15 快照版额外支持 MCP 工具调用。官方文档标注其仅面向中国大陆(北京)区域、当前仅支持 DashScope SDK 调用,不支持 Java DashScope SDK 或 OpenAI 兼容 API;本条目只建模托管商业 API 服务,不等同于 Qwen 开源权重模型或开源许可证。
model_openai_sora_video OpenAI Sora 2 Video Generation Model Service(sora-2 / sora-2-pro,已停用) proprietary-cloud-model-service Sora 2 视频生成模型族覆盖提示词生视频、参考图引导、视频续接与定向编辑;公开模型变体为 sora-2 与 sora-2-pro。官方帮助中心记录 Sora Web/App 体验于 2026-04-26 停用,Sora API 于 2026-09-24 停用;该条目作为已停用历史生态记录,不代表当前可调用服务。
model_piccolo_decision_family AgentScope Piccolo Open-Weight Decision Model Family (4B / 9B / 27B and VL checkpoints) open-weight-apache-2.0-verify-per-model-card Piccolo is the AgentScope open-weight decision model family. Given a state, question and candidate options, the model returns structured decisions and candidate probabilities for tool review, context retention, data workflows and interactive environments. Foundation and VL checkpoints cover 4B, 9B and 27B sizes; README cards identify Qwen3.5 base models and Apache-2.0 distribution on Hugging Face and ModelScope.

仓库/分发制品

ID 名称 许可证状态 摘要
repo_claude_code anthropics/claude-code public repository public-repo-proprietary-license 公开仓库承载 README、更新记录、插件/示例、脚本、devcontainer 和 Issue Tracker;不是完整 CLI 源码分发。
npm_claude_code @anthropic-ai/claude-code npm package proprietary-package-license-file 官方 npm 分发包;许可证指向仓库 LICENSE,非 MIT/Apache/GPL。
install_native_script 原生安装脚本(install.sh / install.ps1 / install.cmd) proprietary-all-rights-reserved 官方推荐安装渠道;macOS/Linux/WSL 用 curl 脚本,Windows PowerShell 与 CMD 分别提供脚本;安装完成后 claude --version 校验
install_homebrew Homebrew 安装渠道(claude-code / claude-code@latest cask) third-party-package-manager macOS 包管理器渠道;Homebrew 安装不自动更新,需 brew upgrade 手动升级;两个 cask 分别跟踪稳定与最新通道
install_winget WinGet 安装渠道(Anthropic.ClaudeCode) third-party-package-manager Windows 包管理器渠道;WinGet 安装不自动更新,需 winget upgrade 定期获取功能与安全修复
fix_npm_updater_native_binary_placeholder_stub npm 自动更新器原生二进制下载失败占位桩误报成功修复 changelog-derived 2.1.288 修复:平台原生二进制下载失败、仅安装占位 claude stub 时,npm 自动更新器不再报告成功;区分包装脚本与可执行二进制。
fix_git_subdir_plugin_old_git_cache 旧 Git 版本 git-subdir 插件安装与缓存不完整修复 changelog-derived Git 早于 2.39(如 Ubuntu 22.04 的 2.34)上 git-subdir 插件安装失败或缓存不完整的问题修复。
install_linux_pkg_manager Linux 包管理器安装渠道(apt / dnf / apk 签名仓库) third-party-package-manager Debian/Ubuntu 用 apt、Fedora/RHEL 用 dnf、Alpine 用 apk 接入官方签名仓库;stable 与 latest 两个通道;包管理器安装不自动更新,升级需走系统包管理器流程。
fix_plugin_ssh_git_ssh_command 插件市场安装更新遵循 GIT_SSH 与 core.sshCommand proprietary-all-rights-reserved 插件和市场经 SSH 安装、更新时使用 GIT_SSH 环境变量或 Git 配置 core.sshCommand 指定的 SSH 程序。
team_inbox_file 队友收件箱 ~/.claude/teams/{team-name}/inboxes/{agent-name}.json official-public-document-entry Agent Team 队友间消息与任务状态的本地收件箱文件;团队配置目录在会话结束后自动清理。
doc_claude_approvals_policy_file .claude/approvals.yml 审批策略文件 official-public-documentation-entry 仓库内 .claude/approvals.yml 按路径规则定义审批座位数、Claude 可否审批以及是否咨询 Code Review;策略文件是 Approvals 检查读取的可追溯配置制品。
doc_claude_dir_file_reference .claude 目录文件参考(File reference) official-public-docs-derived 官方 .claude 目录参考列明 CLAUDE.md、settings、hooks、skills、commands、subagents、workflows 与记忆文件的位置和职责。
doc_sandbox_runtime_package @anthropic-ai/sandbox-runtime standalone package used to wrap the Claude Code process official-public-docs-derived Official sandboxing docs: Claude Code builds the built-in sandbox on the open-source @anthropic-ai/sandbox-runtime package; the package can also run on its own to wrap the Claude Code process. Public reference does not establish that Claude Code CLI source or model weights are open.
doc_sdk_session_store_object_store_adapter SessionStore object-store reference adapter model official-public-docs-derived Object-store reference adapters store one part file per append(); load lists, sorts and concatenates parts; SDK examples cover S3 in TypeScript and Python.
doc_sdk_session_store_key_value_adapter SessionStore key-value store reference adapter model official-public-docs-derived Key-value reference adapters keep one transcript list per session plus a sorted session index; append pushes entries and load reads a range; Redis examples are provided.
doc_sdk_session_store_relational_document_adapter SessionStore relational/document database reference adapter model official-public-docs-derived Relational or document-store reference adapters persist one JSON entry per row or document, ordered by an insert-assigned key; Postgres examples are provided.
doc_sdk_session_store_reference_example_locations SessionStore reference adapters live in TypeScript and Python SDK examples/session-stores directories official-public-docs-derived Official SessionStore reference boundary: runnable adapters are checked in the SDK repositories under TypeScript examples/session-stores and Python examples/session_stores. Each storage-type adapter shows how append and load map onto that backend; the examples are not published as standalone packages, and consumers copy the closest adapter, install the backend client, and adapt it. This records source-artifact location and reuse boundary only.
doc_directory_project_files_committed_shared_home_files_personal Project .claude files are committed to Git and shared; ~/.claude home-directory files remain personal configuration across projects official-public-docs-derived Official .claude directory documentation: project-level configuration lives in the repository and is committed to Git to share with teammates. Files under the home-directory ~/.claude path are personal configuration applied across all projects; CLAUDE_CONFIG_DIR changes the effective home-configuration root, and the boundary records file location/ownership, not source code or an open-source license.
doc_sdk_migration_typescript_package_name Claude Agent SDK TypeScript/JS 包 @anthropic-ai/claude-agent-sdk(旧 @anthropic-ai/claude-code) mixed-source-verify-license 官方迁移指南:TypeScript/JavaScript 项目从旧包 @anthropic-ai/claude-code 迁移到 @anthropic-ai/claude-agent-sdk;卸载旧包、安装新包、更新导入语句,并同步替换 package.json 中的包名与版本范围。
doc_sdk_migration_python_package_name Claude Agent SDK Python 包 claude-agent-sdk(旧 claude-code-sdk) mixed-source-verify-license 官方迁移指南:Python 项目从 claude-code-sdk 迁移到 claude-agent-sdk;卸载旧包、安装新包,将 claude_code_sdk 导入替换为 claude_agent_sdk,并更新 requirements.txt 或 pyproject.toml。
doc_sdk_examples_minimal_demo_repository Agent SDK example entrypoints: Hello World minimal TypeScript project, claude-agent-sdk-demos applications and Claude Cookbook Python recipes official-public-docs-derived Official SDK examples documentation routes complete runnable projects and guided recipes: the quickstart builds a first working TypeScript or Python bug-fixing agent; Hello World is a minimal TypeScript project to clone when starting from repo code; claude-agent-sdk-demos holds local-development demos from an email client to a multi-agent research system; and the Claude Cookbook Agent SDK series provides Python notebooks progressing from a one-liner research agent to multi-agent systems. This entry records only the public documentation-listed example entrypoints and their purpose, not inferred repository license or implementation detail.
doc_mcp_mcp_json_direct_edit .mcp.json direct edit: project MCP server configuration file format official-public-docs-derived The official quickstart allows editing .mcp.json directly to record project MCP servers; file location, schema and team sharing are subject to documented project configuration rules.
repo_qwen_github QwenLM/Qwen3 GitHub Repository open-source-repository-verify-license-per-model-card Qwen 官方 GitHub 组织下的 Qwen3 模型与相关开源项目仓库,承载开源权重发布、示例与工具链;API 托管调用走 Model Studio/DashScope,二者边界分开。
repo_openai_codex openai/codex 官方代码仓库 apache-2.0-open-source-cli-repository-verify-license openai/codex 是 Codex CLI 及其 IDE 扩展、桌面形态的官方开源仓库;CLI 在本地终端读取仓库、规划改动、编辑文件并在沙箱内运行命令,提供会话恢复、图像输入、子代理、网页搜索、云端交接、MCP、代码评审、技能/插件与非交互 exec 模式。
repo_qwen_agent_github QwenLM/Qwen-Agent 官方仓库 open-source-agent-framework-repository-verify-license QwenLM/Qwen-Agent 是 Qwen-Agent 框架的官方开源仓库;框架提供 LLM、Prompt、Assistant、工具等原子与高层组件,封装工具调用模板与解析,内置 RAG、代码解释器、GUI 与 MCP 可选依赖,并可连接 DashScope 或自管 OpenAI 兼容模型服务。
repo_openai_agents_python openai/openai-agents-python 官方代码仓库 open-source-sdk-repository-verify-license openai/openai-agents-python 是 Python Agents SDK 官方仓库,承载 Agent、Runner、工具、护栏、会话、追踪、沙箱与实时代理实现及示例;PyPI 包名 openai-agents。
repo_qwen_code_github QwenLM/qwen-code Official GitHub Repository open-source-cli-agent-project-repository-verify-license QwenLM/qwen-code 是 Qwen Code 开源终端编程代理的官方 GitHub 仓库;CLI 由 Qwen3-Coder 系列模型驱动,覆盖终端、IDE、无头 CI 与 SDK 形态。仓库制品与托管模型服务分开建模。
repo_qwen3_coder_github QwenLM/Qwen3-Coder Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen3-Coder 承载 Qwen3-Coder 代码模型系列的官方开源仓库,包含模型发布材料、示例与相关工具链;仓库制品不等同于 DashScope 商业 API 服务。
repo_openai_agents_js openai/openai-agents-js 官方代码仓库 open-source-sdk-repository OpenAI Agents SDK TypeScript/JavaScript 官方仓库,对应 npm 包 @openai/agents;提供 Agent、Runner、Handoffs、Guardrails、Sessions、Tracing、沙箱代理与实时代理等组件,与 Python Agents SDK 并列。
repo_gemini_cli_github google-gemini/gemini-cli official GitHub repository official-open-source-repository-verify-license Gemini CLI 官方公开 GitHub 仓库,承载 CLI 源码(packages/cli 客户端与 packages/core 本地核心服务)、文档、示例与 Issue Tracker;Apache 2.0 许可状态以仓库 LICENSE 为准。
repo_openai_python openai/openai-python 官方 Python SDK 仓库 apache-2.0-verify-repository-license OpenAI 官方 Python API 库源码仓库,对应 PyPI 包 openai;提供同步与异步客户端、类型化请求/响应模型,访问 OpenAI REST API(Responses、Chat Completions、Embeddings、Realtime 等接入面)。仓库许可证为 Apache 2.0。
repo_openai_node openai/openai-node 官方 Node / TypeScript SDK 仓库 apache-2.0-verify-repository-license OpenAI 官方 Node.js / TypeScript / JavaScript API 库源码仓库,对应 npm 包 openai;支持 Node LTS、Deno、Bun 与 Edge Runtime,覆盖 Responses、Chat Completions、Embeddings、Realtime 等 REST 接入面。仓库许可证为 Apache 2.0。
repo_openai_cookbook openai/openai-cookbook 官方示例代码与指南仓库 open-source-example-guides-repository-verify-license OpenAI 官方 Cookbook 仓库,维护配合 OpenAI API 使用的示例代码与任务指南,覆盖 Responses API、函数/工具调用、Embeddings 检索、Realtime 语音、Agents SDK、Web Search 与 File Search 等主题;在线版本发布于 cookbook.openai.com。
repo_qwen_huggingface Qwen Official Hugging Face Model Hub Organization official-model-weights-hosting-channel Qwen 团队在 Hugging Face 的官方组织主页,托管 Qwen3、Qwen3-Coder 及多模态系列开放权重模型;与 ModelScope、Kaggle 并列作为权重分发渠道,正式模型家族与仓库关系在本体中分开建模。
repo_openai_go openai/openai-go 官方 Go SDK 仓库 apache-2.0-verify-repository-license OpenAI 官方 Go API 库源码仓库,承载 openai-go 模块的类型化客户端与 REST 接入面封装。
repo_openai_java openai/openai-java 官方 Java SDK 仓库 apache-2.0-verify-repository-license OpenAI 官方 Java SDK 源码仓库,承载 com.openai:openai-java 的类型化请求/响应与客户端实现。
repo_openai_dotnet openai/openai-dotnet 官方 .NET SDK 仓库 mit-verify-repository-license OpenAI 官方 .NET SDK 源码仓库,承载 C# 客户端与流式响应封装实现。
repo_openai_ruby openai/openai-ruby 官方 Ruby SDK 仓库 apache-2.0-verify-repository-license OpenAI 官方 Ruby SDK 源码仓库,承载 openai gem 的客户端、类型声明与连接池实现。
repo_openai_openapi openai/openai-openapi 官方 OpenAPI 规范仓库 mit-verify-repository-license OpenAI 官方 OpenAPI 规范仓库,发布 OpenAI REST API 的机器可读接口契约;SDK 客户端类型模型由该规范生成。
repo_qwen25_github QwenLM/Qwen2.5 Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen2.5 承载 Qwen2.5 稠密开放权重语言模型系列(0.5B–72B)的官方 GitHub 仓库,含模型发布材料、示例与工具链;云端 Qwen2.5-Turbo / Qwen2.5-Plus 托管模型走 Model Studio,与开放权重分开建模。
repo_qwen25_coder_github QwenLM/Qwen2.5-Coder Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen2.5-Coder 是 Qwen2.5-Coder 代码专用开放权重模型系列的官方 GitHub 仓库,覆盖代码生成、代码推理与修复相关发布材料与示例;仓库制品与托管模型服务分开建模。
repo_qwen25_vl_github QwenLM/Qwen2.5-VL Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen2.5-VL 是 Qwen2.5-VL 视觉多模态开放权重模型系列的官方 GitHub 仓库,承载图文/视频理解模型发布材料与示例;与本体中 Qwen-VL 开放权重家族条目关联,托管多模态模型走 Model Studio。
repo_genai_python googleapis/python-genai (Google GenAI Python SDK source repository) official-open-source-repository-verify-apache-2-0 googleapis 组织下 Python GenAI SDK 官方源码仓库,托管 Client、types、chat、files、caches、live 与 interactions 等模块实现及示例;对应 PyPI 包 google-genai。
repo_genai_js googleapis/js-genai (Google GenAI TypeScript/JavaScript SDK source repository) official-open-source-repository-verify-apache-2-0 googleapis 组织下 TS/JS GenAI SDK 官方源码仓库,托管 GoogleGenAI 类、models/chats/files/live 等子模块与函数调用、MCP 实验性支持;对应 npm 包 @google/genai。
repo_genai_go googleapis/go-genai (Google GenAI Go SDK source repository) official-open-source-repository-verify-apache-2-0 googleapis 组织下 Go GenAI SDK 官方源码仓库;对应 go.dev 模块 google.golang.org/genai,提供 Client 与 interactions/models 等调用实现。
repo_genai_java googleapis/java-genai (Google GenAI Java SDK source repository) official-open-source-repository-verify-apache-2-0 googleapis 组织下 Java GenAI SDK 官方源码仓库;对应 Maven 构件 com.google.genai:google-genai,含 Client、请求构建器与示例代码。
repo_genai_dotnet googleapis/dotnet-genai (Google GenAI .NET SDK source repository) official-open-source-repository-verify-apache-2-0 googleapis 组织下 .NET GenAI SDK 官方源码仓库;对应 NuGet 包 Google.GenAI,含 IChatClient 适配与生成内容、媒体、嵌入、缓存、批处理实现。
doc_action_examples_directory Action 官方 examples 工作流目录 unlicensed-documentation anthropics/claude-code-action 仓库 examples 目录提供开箱即用的场景化 workflow;示例默认 API key 认证,订阅认证需将 anthropic_api_key 行替换为 claude_code_oauth_token 对应 secret。
repo_openai_cli openai/openai-cli 官方 CLI 源码仓库(Apache-2.0) apache-2.0-open-source-cli-repository-verify-license OpenAI 官方托管的 openai/openai-cli 源码仓库,提供 OpenAI REST API CLI 的发布二进制、安装方式(Homebrew、预编译二进制、Go 安装)、命令参考与开发指南;仓库 LICENSE 为 Apache License 2.0。开源代码许可与 CLI 调用 OpenAI 托管 API 的服务条款分开标注。
repo_dashscope_sdk_python_github dashscope/dashscope-sdk-python Official GitHub Repository open-source-sdk-apache-2.0-verify-repository DashScope Python 官方客户端库 dashscope 的上游 GitHub 仓库,承载文本生成、多模态对话、Embedding、语音与应用调用等 SDK 源码与发布材料;2.0 起提供资源式 dashscope.Client。
repo_dashscope_sdk_nodejs_github dashscope/dashscope-sdk-nodejs Official GitHub Repository official-client-sdk-verify-repository-license DashScope Node.js 官方客户端(npm 包 dashscope-sdk-official)的上游 GitHub 仓库,覆盖单/多轮文本、流式对话、OpenAI 兼容 Chat Completions、图像视频异步任务、多模态对话、Embedding、语音与 Omni Realtime 等接口。
repo_agentscope_github agentscope-ai/agentscope Official GitHub Repository open-source-agent-framework-verify-repository AgentScope 多代理框架与 Runtime 的官方 GitHub 仓库,承载 ReAct 代理、工具管理、上下文压缩与记忆、事件总线、权限与人在回路、中间件、代理服务(多租户多会话)、团队编排与持久化等源码。
repo_adk_python ADK python 源码仓库 official-open-source-repository-verify-apache-2-0 google/adk-python ADK Python 核心源码仓库(pip google-adk),官方 Apache-2.0;承载 LlmAgent、工具、Runner、会话服务与评估实现。
repo_adk_js ADK js 源码仓库 official-open-source-repository-verify-apache-2-0 google/adk-js ADK TypeScript/JavaScript 核心源码仓库(npm @google/adk),官方 Apache-2.0;承载 LlmAgent 与工具、会话编排实现。
repo_adk_go ADK go 源码仓库 official-open-source-repository-verify-apache-2-0 google/adk-go ADK Go 核心源码仓库(go module google.golang.org/adk),官方 Apache-2.0;承载 llmagent、模型与工具绑定实现。
repo_adk_java ADK java 源码仓库 official-open-source-repository-verify-apache-2-0 google/adk-java ADK Java 核心源码仓库(Maven com.google.adk:google-adk),官方 Apache-2.0;承载 LlmAgent Builder、工具与会话编排;Kotlin JVM 实现复用同一 JVM 构件体系。
repo_qwen_modelscope Qwen Official ModelScope Organization official-model-weights-hosting-channel Qwen 团队在 ModelScope 的官方组织主页(modelscope.cn/organization/Qwen),托管 Qwen3、Qwen3-Coder、Qwen-VL 等开放权重模型与量化版本;与 Hugging Face 组织渠道并列,模型家族与分发渠道在本体中分开建模。
repo_dashscope_sdk_java_github dashscope/dashscope-sdk-java Official GitHub Repository open-source-sdk-apache-2.0-verify-repository DashScope Java 官方客户端(Maven 构件 com.alibaba:dashscope-sdk-java)的上游 GitHub 仓库,承载 Generation、MultiModalConversation、MultiModalDialog 等文本与实时多模态对话 SDK 源码;Java 常规聊天调用亦可用 OpenAI 兼容 SDK,本条目仅建模 DashScope 原生 Java SDK。
repo_qwen3_vl_github QwenLM/Qwen3-VL Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen3-VL 是 Qwen3-VL 视觉多模态大模型系列的官方 GitHub 仓库,承载图文/视频理解模型发布材料、评测与示例;与本体中 Qwen-VL 开放权重家族条目关联,托管多模态调用走 Model Studio。
repo_qwen3_omni_github QwenLM/Qwen3-Omni Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen3-Omni 是 Qwen3-Omni 原生端到端全模态大模型的官方 GitHub 仓库,覆盖文本、图像、音频、视频理解与音频生成;与本体中 Qwen Omni 开放权重家族条目关联。
repo_qwen3_embedding_github QwenLM/Qwen3-Embedding Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen3-Embedding 是 Qwen3 嵌入向量(Embedding)与文本重排(Rerank)模型系列的官方 GitHub 仓库;与本体中 Qwen Embedding & Rerank 家族条目关联,托管嵌入服务走 Model Studio / DashScope。
repo_qwen3_asr_github QwenLM/Qwen3-ASR Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen3-ASR 是 Qwen3 开源自动语音识别(ASR)模型系列的官方 GitHub 仓库;与本体中 Qwen-Audio 语音模型家族条目关联。
repo_qwen25_omni_github QwenLM/Qwen2.5-Omni Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen2.5-Omni 是 Qwen2.5-Omni 端到端多模态模型的官方 GitHub 仓库,支持文本、音频、图像理解与语音输出;与本体中 Qwen Omni 家族条目关联。
repo_qwq32b_github QwenLM/QwQ-32B Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/QwQ-32B 是 QwQ-32B 推理模型的官方 GitHub 仓库,关联本体中的 QwQ-32B 开放权重模型条目;Hugging Face 为模型权重分发渠道。
repo_adk_kotlin ADK Kotlin source repository official-open-source-repository-verify-apache-2-0 google/adk-kotlin 是 ADK Kotlin 实现的官方源码仓库,承载 LlmAgent、工具、会话编排等 Kotlin/JVM 代理开发抽象;许可证与构件版本以仓库和官方发布为准。
repo_qwen3_tts_github QwenLM/Qwen3-TTS Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen3-TTS 是 Qwen3 开源语音合成(TTS)模型系列的官方 GitHub 仓库,覆盖语音克隆、语音设计、流式语音生成与自然语言语音控制;与本体中 Qwen-Audio 语音模型家族条目关联,托管语音调用走 Model Studio / DashScope。
repo_qwen3_vl_embedding_github QwenLM/Qwen3-VL-Embedding Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen3-VL-Embedding 是 Qwen3 视觉向量嵌入与对应重排模型系列的官方 GitHub 仓库;与本体中 Qwen Embedding & Rerank 家族条目关联,托管嵌入与检索服务走 Model Studio / DashScope。
repo_qwen_code_action_github QwenLM/qwen-code-action Official GitHub Repository apache-2.0-verify-repository-license QwenLM/qwen-code-action 官方仓库承载 GitHub Action 源码、输入输出配置、示例工作流与凭证最佳实践;用于追溯 ci_qwen_code_action 的公开实现来源。
repo_qwen3_github QwenLM/Qwen3 Official GitHub Repository open-weight-apache-2.0 QwenLM/Qwen3 是 Qwen3 开源权重语言模型系列的官方 GitHub 仓库,承载 dense 与 MoE 模型的发布材料、示例、文档与讨论;与本体中 Qwen3 开放权重模型锚点关联,云端托管调用走 Model Studio / DashScope,分开建模。
repo_qwen_image_github QwenLM/Qwen-Image Official GitHub Repository open-source-repository-apache-2.0-verify-weight-model-card QwenLM/Qwen-Image 是 Qwen 开放权重图像模型的官方 GitHub 仓库,覆盖 Qwen-Image 文生图与 Qwen-Image-Edit 图像编辑变体;20B MMDiT 图像基础模型强调复杂文字渲染与精确编辑。仓库与本体中百炼托管 Qwen 图像模型家族条目关联,本地开放权重与云端托管 API 分开记录。
repo_qwen38_github QwenLM/Qwen3.8 Official GitHub Repository open-source-repository-apache-2.0-verify-weight-model-card QwenLM/Qwen3.8 是 Qwen3.5、Qwen3.6、Qwen3.8 开放模型系列的官方 GitHub 仓库,发布系列说明、Issues 与 Discussions 协作入口;仓库与本体中对应开放权重模型锚点关联。
repo_qwen_audio_github QwenLM/Qwen-Audio Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen-Audio 是 Qwen-Audio 音频语言模型(语音理解与音频对话)的官方 GitHub 仓库,属于 Qwen-Audio 语音模型家族的早期开源权重发布材料;与本体中 Qwen-Audio 语音模型家族条目关联,云端托管调用走 Model Studio / DashScope,分开建模。
repo_qwen3_asr_toolkit_github QwenLM/Qwen3-ASR-Toolkit Official GitHub Repository open-source-sdk-mit-verify-repository QwenLM/Qwen3-ASR-Toolkit 是官方 Python 工具包仓库,提供 Qwen3-ASR API 的并行高吞吐调用、健壮长音频转写与多采样率支持;与本体中 Qwen-Audio 语音模型家族及 Qwen3-ASR 开源仓库条目关联。
repo_qwen_cookbook_github QwenLM/Qwen-Cookbook Official GitHub Repository open-source-examples-repository-verify-license-per-file QwenLM/Qwen-Cookbook 是 Qwen 官方开源示例与指南仓库,汇集代码片段、进阶用法与构建 Qwen 应用的操作 walkthrough;与本体中 Qwen-Agent 框架及 Qwen 模型系列条目关联,作为开发者示例制品记录。
repo_qwen3guard_github QwenLM/Qwen3Guard Official GitHub Repository open-source-repository-apache-2.0-verify-weight-model-card QwenLM/Qwen3Guard 是 Qwen3Guard 多语言护栏模型系列的官方 GitHub 仓库,承载系列发布材料、说明与协作入口;仓库制品与本体中 Qwen3Guard 模型系列锚点关联。
repo_qwen_image_21_github QwenLM/Qwen-Image-2.1 Official GitHub Repository open-source-repository-verify-license-per-model-card QwenLM/Qwen-Image-2.1 是 Qwen 开放权重图像生成模型 2.1 版本的官方 GitHub 仓库;仓库与本体中 Qwen 图像模型家族条目关联,本地开放权重与云端托管 API 分开记录。
repo_qwen_mm_plugins_github QwenLM/Qwen-MM-Plugins Official GitHub Repository apache-2.0-open-source-repository-verify-license QwenLM/Qwen-MM-Plugins 是 Qwen 官方多模态代理插件仓库:每个能力可独立安装为代理 Skill,并附带可选 MCP 服务器;覆盖本地图片、视频、文档、三维文件读取及视频记忆、编辑、硬件与空间推理等能力。插件可用于 Qwen Code 等多种代理 harness。
repo_qwen_open_computer_use_github QwenLM/open-computer-use Official GitHub Repository apache-2.0-open-source-repository-verify-repository-license QwenLM/open-computer-use 提供代理可用的 Computer Use 与 Browser Use 运行时:原生桌面驱动、CLI 与 MCP、TypeScript 与 Python SDK、常驻 JavaScript MCP 服务器及 Chrome 扩展;通过桌面辅助功能接口控制 macOS、Linux 与 Windows。
repo_openai_tiktoken openai/tiktoken 官方 BPE 分词器仓库 mit-verify-repository-license tiktoken 是 OpenAI 官方维护的快速 BPE tokenizer 仓库,用于 OpenAI 模型相关文本的 token 计数;它属于本地客户端辅助库,不等同于服务端模型服务、API 用量计费或模型权重分发。
repo_qwen38_flash_next_github QwenLM/Qwen3.8-Flash-Next Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen3.8-Flash-Next 是 Qwen3.8-Flash-Next 开放权重模型的官方 GitHub 仓库,链接 Hugging Face 与 ModelScope 权重分发渠道;仓库与百炼 / DashScope 商业 API 服务分开记录。
repo_qwen_agentworld_github QwenLM/Qwen-AgentWorld Official GitHub Repository open-source-model-repository-verify-license-per-model-card QwenLM/Qwen-AgentWorld 是 Qwen-AgentWorld-35B-A3B 模型与 AgentWorldBench 发布材料的官方 GitHub 仓库;正式 ABox 只挂载模型与仓库制品,评测数据集留在候选层。
repo_qwen_live_delivery_plugin_github QwenLM/Qwen-Live-Delivery-Plugin Official GitHub Repository apache-2.0-open-source-repository-verify-license QwenLM/Qwen-Live-Delivery-Plugin 承载长任务代理交付插件的官方源码、Skill、MCP 工具、Hooks 配置与文档;仓库制品与阿里云托管模型服务分开记录。
repo_gemini_cli_action_github google-github-actions/run-gemini-cli Official GitHub Repository official-open-source-repository-verify-apache-2-0 run-gemini-cli 官方仓库承载 GitHub Action 源码、输入输出配置、示例工作流、认证与扩展说明;用于追溯 ci_gemini_cli_action 的公开实现来源。
repo_modelstudio_cli_github modelstudioai/cli Official GitHub Repository apache-2.0-open-source-repository-verify-license modelstudioai/cli 是 Bailian CLI 的官方 GitHub 源码仓库,Apache-2.0 许可证,承载命令行工具 monorepo、TypeScript 源码、文档与示例;仓库制品与托管模型服务、商业云平台分开建模。
repo_openai_codex_action openai/codex-action 官方 GitHub Action 源码仓库 apache-2.0-verify-repository-license Codex Action 的官方源码仓库,README 记录工作流示例、输入项、权限剖面、安全策略和 runner 操作系统边界;仓库源码许可证为 Apache License 2.0。
repo_openai_codex_security openai/codex-security 官方 CLI、TypeScript SDK 与 Action 源码仓库 apache-2.0-verify-repository-license Codex Security 官方源码仓库,承载 CLI、TypeScript SDK、安全工作流文档、扫描/发现状态存储与 GitHub Action 自动化;仓库源码许可证为 Apache License 2.0。
repo_openai_mcp_tunnel_client openai/tunnel-client 官方 Secure MCP Tunnel 客户端源码仓库 apache-2.0-verify-repository-license Secure MCP Tunnel 客户侧 CLI、Go SDK、队列协议与架构文档的官方源码仓库;仓库源码许可证为 Apache License 2.0,托管隧道端点与商业服务边界按官方条款单独标注。
repo_qwenpaw_github agentscope-ai/QwenPaw Official GitHub Repository apache-2.0-open-source-repository-verify-license agentscope-ai/QwenPaw 是 QwenPaw 个人助理的官方 GitHub 仓库,承载 Python 源码、Console/TUI/桌面端文档、渠道、技能与插件、MCP、记忆配置、发布说明和示例;本节点作为产品源码制品挂载,不建模为模型服务或独立 SDK。
repo_openai_whisper openai/whisper 官方 Whisper 开源代码与模型仓库 mit-verify-repository-license Whisper 是 OpenAI 官方通用语音识别项目,代码与模型权重在 MIT 许可证下公开;仓库承载语音识别、多语言转写、语音翻译与语言识别相关模型、代码与示例。它与托管音频 API 中的 legacy whisper-1 分开标注:开放分发的本地模型仓库不代表 OpenAI 托管推理服务、API 配额或云端模型部署。
repo_openai_guardrails_python openai/openai-guardrails-python 官方 Guardrails Python 仓库 mit-verify-repository-license openai/openai-guardrails-python 是 Guardrails Python 预览版官方源码仓库,承载输入/输出检查配置、Python 客户端封装、Agents SDK 集成示例与官方文档链接;仓库许可证为 MIT。
repo_openai_guardrails_js openai/openai-guardrails-js 官方 Guardrails TypeScript 仓库 mit-verify-repository-license openai/openai-guardrails-js 是 Guardrails TypeScript 预览版官方源码仓库,承载 JS/TS 客户端封装、输入/输出检查、配置向导、迁移说明、Agents SDK 集成示例与官方文档;仓库许可证为 MIT。
repo_openai_terraform_provider openai/terraform-provider-openai 官方 Terraform 提供者仓库 apache-2.0-verify-repository-license OpenAI 官方 Terraform Provider 源码仓库,用基础设施即代码管理 OpenAI 管理 API 的组织资源(项目、用户、组、角色、服务账号、证书、速率限制与支出告警)、项目级 Webhook 端点与事件类型、Codex 工作区身份提供者与联合规则,以及面向 ChatGPT 工作区或 API 组织的租户级共享身份提供者与规则;Webhook 管理在 README 中标注为 beta。
repo_openai_chatkit_python openai/chatkit-python 官方 ChatKit Python 仓库 apache-2.0-verify-repository-license openai/chatkit-python 是 ChatKit Python 后端 SDK 的官方源码仓库,承载后端 SDK 实现、依赖声明、示例与官方文档链接;仓库 LICENSE 为 Apache License 2.0。
repo_openai_chatkit_js openai/chatkit-js 官方 ChatKit JS/React SDK 仓库 apache-2.0-verify-repository-license openai/chatkit-js 是 ChatKit JS/React 前端 SDK 的官方 monorepo,承载 @openai/chatkit 与 @openai/chatkit-react 包实现、组件绑定、示例与文档链接;仓库 LICENSE 为 Apache License 2.0。
repo_agentscope_go_github agentscope-ai/agentscope-go Official GitHub Repository open-source-repository-verify-apache-2-0 agentscope-ai/agentscope-go 是 AgentScope Go 实现官方源码仓库;README 徽章与仓库 LICENSE 标注 Apache-2.0,承载代理、工具、权限与多代理工作流的 Go 实现。
repo_agentscope_java_github agentscope-ai/agentscope-java Official GitHub Repository open-source-repository-verify-apache-2-0 agentscope-ai/agentscope-java 是 AgentScope Java 实现官方源码仓库;README 徽章与仓库 LICENSE 标注 Apache-2.0,承载 Java 代理运行时和模型扩展模块集成。
repo_agentscope_typescript_github agentscope-ai/agentscope-typescript Official GitHub Repository open-source-repository-verify-apache-2-0 agentscope-ai/agentscope-typescript 是 AgentScope TypeScript/JavaScript 实现官方源码仓库;README 徽章与仓库 LICENSE 标注 Apache-2.0,承载核心库和 TypeScript/JS 代理开发抽象。
repo_antigravity_sdk_python google-antigravity/antigravity-sdk-python official GitHub repository official-open-source-repository-verify-apache-2-0 Antigravity Python SDK 的官方源码仓库,承载代理循环、工具调用、声明式策略、生命周期钩子、程序化子代理与示例代码;README 说明 SDK 依赖平台 wheel 内发布的编译运行时,仅克隆仓库不足以直接运行。仓库根目录 LICENSE 为 Apache-2.0。
repo_openai_auth_javascript openai/auth-javascript 官方 Sign in with ChatGPT Auth JS/React 仓库 apache-2.0-verify-repository-license openai/auth-javascript 是 Sign in with ChatGPT JavaScript、TypeScript 与 React 认证 SDK 的官方 monorepo,承载 core 与 react 包、Auth.js 和浏览器示例、接入文档及 Apache-2.0 LICENSE。
repo_agentscope_samples_github agentscope-ai/agentscope-samples Official GitHub Repository apache-2.0-open-source-repository-verify-license AgentScope 官方 Python 示例仓库,汇集命令行工具、浏览器使用、聊天机器人、多智能体对话/辩论、深度研究与全栈 Runtime 等可运行示例;作为 AgentScope 框架的示例制品记录,不声明为独立 SDK、模型权重发布或托管服务。
repo_gemini_api_cli_github google-gemini/gemini-api-cli official GitHub repository official-open-source-repository-verify-apache-2-0 Official public source repository for the Gemini API CLI. It carries the CLI source, README documentation and issue tracker; the root LICENSE file identifies Apache-2.0. Model service terms and API-key access remain separate from this repository license.
repo_openai_fence openai/fence 官方 GitHub Action 源码仓库 mit-verify-repository-license openai/fence 仓库承载 Fence GitHub Action 的源码、实现文档、配置示例、威胁模型、安全指南与测试资产;仓库源码在 MIT 许可证下公开。该仓库节点与运行时安全规则分开建模:开源许可证不覆盖工作流凭证、网络放行策略或 runner 宿主安全责任。
repo_dashscope_agenticx_github dashscope/dashscope-agenticx Official GitHub Repository mit-verify-repository-license dashscope/dashscope-agenticx 是 AgenticX 官方源码仓库;pyproject.toml 声明 MIT 许可证,承载运行时、事件模型、应用清单、CLI/嵌入接口和官方模板。源码许可证不等同于 DashScope / Model Studio 云端 API 的计费、权限与服务条款。
repo_agentscope_reme_github agentscope-ai/ReMe Official GitHub Repository apache-2.0-open-source-repository-verify-license agentscope-ai/ReMe 是 ReMe 官方源码仓库;根目录 LICENSE 为 Apache-2.0,承载文件原生记忆模型、记忆索引、主动运行时、Studio 与代理集成代码。索引和派生缓存可由用户持有的 Markdown 源文件重建。
repo_dashscope_cookbook_github dashscope/dash-cookbook Official DashScope Examples Repository apache-2.0-open-source-repository-verify-license dashscope/dash-cookbook 是 DashScope / Model Studio 官方示例与 Notebook 仓库,覆盖基础 LLM 调用、Embedding 与向量检索、RAG、Assistant API、多代理应用和 DashVector 示例;示例仅为开发指南,不构成模型权重许可证或云端 API 服务条款。
repo_agentscope_skills_github agentscope-ai/agentscope-skills Official GitHub Repository apache-2.0-open-source-repository-verify-license agentscope-ai/agentscope-skills 是官方 Skill 源码仓库;根目录 LICENSE 为 Apache-2.0,承载可复制到代理技能目录的独立知识包。Skill 包只提供上下文指引,不改变底层模型或 AgentScope 框架的服务条款。
repo_agents_cli_github google/agents-cli official GitHub repository apache-2.0-open-source-repository-verify-license Official public source repository for the ADK Agents CLI toolchain. The Python package metadata identifies google-agents-cli, Apache-2.0 licensing, and a Google LLC author; the repository README documents the CLI and skills for building and deploying agents on Google Cloud. Repository source license remains separate from hosted model-service and platform terms.
repo_adk_web_github google/adk-web official GitHub repository apache-2.0-open-source-repository-verify-license Official public source repository for the ADK Web built-in developer UI. The README describes it as the ADK web interface used to develop and debug agents; the root LICENSE identifies Apache-2.0. The repository is a client-side development surface source and does not imply production hosting qualification beyond the ADK documentation.
repo_gemini_skills_github google-gemini/gemini-skills official GitHub repository apache-2.0-open-source-repository-verify-license Official public GitHub organization repository containing reusable Gemini API, SDK and model-interaction skill packs. The README lists Gemini API development, Gemini API CLI, Live API and Omni Flash skills and describes installation into supported coding assistants; the root LICENSE identifies Apache-2.0. The README's unsupported-project disclaimer does not change the public repository Apache license record.
repo_adk_docs_github google/adk-docs official ADK documentation source repository apache-2.0-open-source-repository-verify-license Official public source repository for the Google Agent Development Kit documentation and supporting ADK project assets. The README introduces ADK as an open-source, code-first toolkit for building, evaluating and deploying AI agents; the root LICENSE identifies Apache-2.0. This artifact anchors the public documentation source for the existing ADK framework instance.
repo_openagentpack_github modelstudioai/OpenAgentPack Official GitHub Repository apache-2.0-open-source-repository-verify-license Official source repository for OpenAgentPack: declarative agent assets, Git/YAML review workflow, Terraform-style state and plan/apply, project Build/Publish snapshots, Playground session preview, provider adapters and the TypeScript SDK.
repo_openagentkit_github modelstudioai/OpenAgentKit Official GitHub Repository apache-2.0-open-source-repository-verify-license Official source repository for OpenAgentKit, including web experience app, admin console, Kit Server, chat UI components, protocol/SDK session packages, developer skills, architecture/protocol documentation and examples.
repo_openwork_github modelstudioai/openwork Official GitHub Repository apache-2.0-open-source-repository-verify-license Official source repository for OpenWork, the desktop workspace around an agent runtime: sessions, project context, file previews, permission confirmation, external data sources, tool connections, skills and long-running task management.
repo_modelstudio_cmaas_github dashscope/dashscope-confidential-maas Official GitHub Repository apache-2.0-open-source-repository-verify-license Official Confidential Model as a Service (CMaaS) solution repository for Model Studio: attested TEE inference with secure channels, remote attestation and verified software provenance. It includes the Go client SDK, session manager, reference CLI, OpenAI-compatible and Anthropic-compatible proxies and an offline transparency-report audit tool.
repo_openai_developers_cursor openai/openai-developers-for-cursor 官方 Cursor 插件仓库 apache-2.0-verify-repository-license 该官方仓库承载 OpenAI Developers Cursor 插件的源码、插件清单、MCP 配置、技能目录、测试与 Apache-2.0 LICENSE;README 记录团队市场导入、安装验证与公开文档 MCP 使用方式。
repo_openai_developers_claude openai/openai-developers-for-claude 官方 Claude Code 插件仓库 apache-2.0-verify-repository-license 该官方仓库承载 OpenAI Developers Claude Code 插件的市场清单、plugin 元数据、MCP 配置、技能目录、测试与 Apache-2.0 LICENSE;README 记录 marketplace 添加、仓库安装、命令行安装与文档 MCP 使用方式。
repo_openai_codex_plugin_cc openai/codex-plugin-cc 官方 Claude Code Codex 插件仓库 apache-2.0-verify-repository-license 该官方仓库承载 Codex for Claude Code 插件的 TypeScript/JavaScript 源码、Codex app server 类型生成、测试、命令/子代理/hook 配置与 Apache-2.0 LICENSE;README 记录安装、审查命令、委托救援、会话迁移、后台任务管理与本地 Codex 配置复用规则。
repo_piccolo_github agentscope-ai/Piccolo Official GitHub Repository apache-2.0-open-source-repository-verify-license Official source repository for the Piccolo decision-model family, including model guide, decision playground references, foundation/VL checkpoint metadata and local-run workflow examples.
repo_agentteams_github agentscope-ai/AgentTeams Official GitHub Repository apache-2.0-open-source-repository-verify-license Official source repository for AgentTeams, covering team delivery workflows, Manager/Worker recovery, task-room archival, approval controls, runtime diagnostics, dashboard coordination and the documented worker runtime integrations.
repo_modelstudio_skills_github modelstudioai/skills Official GitHub Repository apache-2.0-open-source-repository-verify-license Official source repository for the Model Studio verified Agent Skills collection, including optional CLI-linked extension skills and curated third-party workflow packs grouped by development, design, documentation, video production and testing use cases.

Channel

ID 名称 许可证状态 摘要
chan_teleport --teleport 会话迁移(云端/移动端拉回终端) proprietary-all-rights-reserved 在 Web 或移动 App 启动长任务后,用 claude --teleport 拉回终端继续;需要 claude.ai 订阅
chan_desktop_handoff /desktop 终端会话移交桌面应用 proprietary-all-rights-reserved /desktop 将当前终端会话移交桌面应用做可视化 diff 评审;需要 claude.ai 订阅;macOS 与 x64 Windows 可用
chan_telegram Telegram 频道插件 proprietary-all-rights-reserved 官方研究预览频道插件;DM 按发送者白名单准入,配对码完成 bootstrap;经 --channels 启用
chan_discord Discord 频道插件 proprietary-all-rights-reserved 官方研究预览频道插件;DM 白名单配对;启动命令 claude --channels plugin:discord@claude-plugins-official
chan_imessage iMessage 频道插件 proprietary-all-rights-reserved 官方研究预览频道插件;给自己发消息自动绕过准入,其他联系人经 /imessage:access allow 添加
chan_fakechat Fakechat 本地演示频道 proprietary-all-rights-reserved 官方演示频道,本地 localhost:8787 聊天 UI;无需认证与外部服务;用于频道机制联调
chan_claude_slack Claude in Slack:频道/线程 @Claude 触发云会话 capability-derived 在团队频道或线程中 @Claude 提及,由云端会话派生任务;与本地 Channels 推送、Remote Control、普通 MCP Server 场景区分
chan_permission_relay_gate Channel 权限转发受发送者白名单门禁约束 configuration-documentation 声明权限转发能力的频道,可代批/代拒工具调用;仅白名单内可信发送者拥有该权限;白名单由配对码审批或 handle 授权建立
chan_managed_enable Channels 托管开关与允许插件清单(channelsEnabled / allowedChannelPlugins) configuration-documentation Team/Enterprise 与托管组织可经 channelsEnabled 控制可用性;allowedChannelPlugins 替换默认官方白名单,限定插件与市场来源
chan_dev_flag 开发频道加载标志 --dangerously-load-development-channels configuration-documentation 研究预览期用于测试自建频道;接受 plugin:@ 或 server: 形式;预览期 --channels 与该标志不显示在 claude --help
chan_pairing_code 频道配对码流程(Telegram/Discord 私信配对后加入白名单) configuration-documentation 先给 bot 发消息获得配对码,会话内审批通过后发送者 ID 进入白名单;iMessage 自发消息绕过门禁,其他联系人按 handle 授权
feat_slack_related_channel_watch Slack 主动关注相关公开频道 changelog-derived Claude Tag 变更:Claude 会主动开始关注对话依赖的相关公开频道(例如事故频道),而不只在被要求时关注。边界:频道关注属于 Slack 上下文衔接行为,不扩大频道内工具权限。
fix_slack_thread_other_channel_follow 跨频道相关 Slack 线程跟随修复 changelog-derived Claude 会跟随另一频道中仅被读取过的相关 Slack 线程,使依赖该线程的对话收到后续更新。
fix_slack_configure_save_error_clarity Slack 频道配置页保存错误提示区分过长指令与失去访问权限 changelog-derived 2.1.289 修复:Slack Configure 页保存失败时,频道指令过长提示应缩短指令;失去访问权限导致的保存被拒不再提示重试。边界:提示文案改进,不改变频道权限、连接器或仓库授权。
fix_slack_auto_channel_remove_scope_guard 自动创建频道设置不再提供无效移除范围选项修复 changelog-derived 2.1.289 修复:对于自动创建设置的 Claude Tag 频道,管理员界面不再提供始终失败的 Remove this scope 选项。边界:仅移除无效管理入口,不改变频道加入范围或成员可见性。
fix_remote_control_mac_idle_sleep macOS 空闲睡眠期间 Remote Control 会话不再中途停止 changelog-derived changelog 修复:macOS 上由 claude remote-control 启动的 Remote Control 会话,不再因机器进入空闲睡眠而在回合中途停止。边界:记录操作系统电源状态对遥控通道的公开影响,不收录睡眠唤醒内部进程机制。
fix_remote_control_queued_message_resume Remote Control 退出时排队消息保留并在下次恢复到达 official-public-changelog-entry Remote Control 不再在消息刚到达时即标记已读;终端退出时仍排队的消息会在下次恢复时送达。
cap_slack_searchable_channels_admin_scope Claude Tag 可搜索 Slack 频道管理员设置(组织/工作区/频道级) official-public-changelog-entry 管理员设置“Channels Claude can search”按组织、工作区或频道限制 Slack 搜索范围。
fix_slack_access_bundle_rule_plugins_list 规则附着访问包的 Slack 频道展示连接器与插件 official-public-changelog-entry 频道通过 attach rule 获得访问包时,配置页不再遗漏连接器或插件列表;规则附着的访问包会正常显示。
fix_remote_control_idle_during_compact Remote Control 压缩期间空闲状态误报修复 official-public-documentation 桌面应用或 VS Code 托管的 Remote Control 会话在 /compact 运行时曾显示为空闲;修复覆盖压缩期间状态展示。
tool_monitor_ws_subprotocols Monitor WebSocket:protocols 子协议握手字段 capability-derived Monitor 的 WebSocket 源使用 ws 输入替代 command;protocols 字段列出握手期间提供的 WebSocket 子协议名,每项必须是合法子协议 token,且列表不得重复。
add_remote_control_fork_background_session_from_app 从 Claude 应用分叉 claude --remote-control 或 /remote-control 会话,分叉以后台会话在本机运行 changelog-derived 新增能力:可从 Claude 应用启动 Remote Control 会话的分叉;分叉会话作为后台会话在用户计算机上运行。
doc_mobile_dispatch_message_task_boundary 移动端 Dispatch 是在应用内发送消息的任务通道 official-doc-derived Claude Code 没有独立移动应用;云会话和 Remote Control 都位于 Claude 应用的 Code 标签页,Dispatch 是在应用内以消息方式触达的任务。
entry_2_1_332_synthetic_midturn_relayed_message_flag SDK and claude -p relayed mid-turn messages mark synthetic text with isSynthetic official-changelog-derived-entry Changelog 2.1.332: where feature flags are not fetched (for example clouds or telemetry off), SDK and claude -p mid-turn messages count as the user's from Opus 4.8 onward; relayed text is marked isSynthetic: true. This distinguishes relayed application messages from ordinary user input in the message stream.
doc_otel_w3c_trace_context_propagation SDK propagates W3C TRACEPARENT and TRACESTATE into the CLI subprocess official-document-derived-entry Official observability documentation: when query() runs inside an active application OpenTelemetry span, the SDK injects TRACEPARENT and TRACESTATE into the child process environment. The CLI reads them so claude_code.interaction becomes a child of the application span; OTLP event records emitted during the run carry matching trace_id and span_id for joining events to spans.
cmd_install_slack_app /install-slack-app: install Claude Slack app through browser OAuth flow official-public-docs-derived Official commands documentation: /install-slack-app installs the Claude Slack app and opens a browser to complete the OAuth flow. It records the Slack application installation entry point; OAuth consent and workspace access remain outside this local ontology instance.
doc_cross_session_machine_transport Cross-session machine transport: local socket/pipe, Remote Control relay or cloud server channel official-public-docs-derived Same-machine messages use a per-session Unix socket or Windows named pipe and never Anthropic servers; another-machine sessions relay through Anthropic servers over Remote Control; cloud sessions receive messages directly through Anthropic servers.
setting_preferred_notification_channel preferredNotifChannel 任务完成或权限等待的通知渠道选择 public-documentation-setting-no-source-code Chooses how Claude Code notifies when a task completes or a permission prompt waits; Mod notifications use the same setting; appears in /config as Local notifications.
doc_cross_session_cloud_machine_one_way_reply_boundary Cross-machine and cloud messages are one-way; cloud session replies cannot use SendMessage official-doc-derived Official cross-session messaging documentation: a cloud session, including a self-hosted runner, cannot use SendMessage to answer a message from another machine even when the message carries a reply address; the message still arrives, and the cloud response is read in its transcript at claude.ai/code. To receive a reply from a session on another machine, the local session must be connected to Remote Control before Claude sends; otherwise the message carries no reply address and the receiving Claude cannot answer.
ch_cloud_remote_upload_timeout_30_to_35_seconds_fix Changelog fix: cloud and Remote Control file upload waits 35 seconds after prior 30-second timeout capability-derived 官方 changelog 修复:云端与 Remote Control 会话发送文件时,上传在 30 秒超时刚结束即失败;修复后等待窗口为 35 秒。边界:只记录公开超时调整,不记录传输分片或内部重试算法。
doc_screen_reader_bell_notification_events Screen reader terminal bell attention events(回复完成、提示等待、长工具结束铃声) official-public-documentation 屏幕阅读器模式下 Claude 完成回复、提示或对话框等待答复、运行超过 5 秒的工具结束时响终端铃声;铃声是标准终端提示,可在终端应用内静音。非屏幕阅读器模式可将 preferredNotifChannel 设为 terminal_bell 获取类似等待提示。
doc_self_hosted_remote_capture_endpoint Remote self-hosted test runner forwards captured replies to driver endpoint through POST official-public-document When test runners and the CI driver do not share a filesystem, such as a separate Kubernetes fleet, the Stop hook variant replaces the local file write with a POST to an endpoint controlled by the driver. E2E_REPLY_URL names that endpoint; the local directory capture applies only to co-located runners.
doc_self_hosted_scm_connector_reserved_ws_boundary Self-hosted SCM connector: standing orchestrator-to-control-plane WebSocket for internal GHE routing official-public-docs-derived The reserved SCM connector is a standing WebSocket from the orchestrator to Anthropic's control plane so hosted pre-session flows such as repository picker and ref resolver can reach an internal-network GitHub Enterprise Server. The SCM connector itself is not available; if its host flag is set, the orchestrator keeps retrying it while runners still start queued sessions.
doc_deployment_container_proxy_socket_network_none_allowlist With --network none, a host-side proxy socket carries outbound traffic; proxy allowlists, injected credentials and traffic logging are deployment controls official-public-documentation-entry Official secure-deployment documentation: --network none blocks DNS and direct external connections inside the container. A proxy runs on the host and exposes a Unix socket mounted into the container, so outbound requests leave through that proxy. The proxy may enforce domain allowlists, inject credentials and log traffic; the allowlist still permits any request to an allowed domain, so operators list only needed domains.
doc_error_waiting_banner_gateway_45_seconds 网关等待横幅:ANTHROPIC_BASE_URL、Claude apps gateway 与 AWS base URL 连接 45 秒阈值 proprietary-all-rights-reserved 官方错误参考:v2.1.309 起,连接到非 Anthropic API 主机(ANTHROPIC_BASE_URL)、Claude apps gateway 会话,或设置 ANTHROPIC_AWS_BASE_URL 的 Claude Platform on AWS 时,无数据等待横幅在 45 秒后出现;更早版本这些连接沿用 20 秒阈值。
doc_workflow_scheduled_task_option_selection Scheduled Claude workflows: cloud routine, desktop local task and GitHub Actions CI option boundary official-public-docs-derived Official common-workflows documentation selects a scheduler by where the task should run: cloud scheduled tasks are Anthropic-managed and can run even when the computer is off, triggered by schedule, API call or GitHub event and configured at claude.ai/code/routines; desktop scheduled tasks run on the user's machine through the desktop app for local files, tools or uncommitted changes; GitHub Actions run in the repository CI pipeline for repo-event-driven work. This entry records option placement and boundary only.
doc_workflow_pipe_claude_noninteractive_scripting Pipe Claude into scripts: non-interactive CLI input for CI, pre-commit hooks and batch processing official-public-docs-derived Official common-workflows documentation runs Claude non-interactively for CI, pre-commit hooks or batch processing, exemplified by piping recent git history to claude -p with a summarization prompt. The entry links this public pipe-and-script workflow to the documented non-interactive mode, output formats, permission flags and fan-out patterns; it does not model internal process spawn or headless transcript internals.
doc_mcp_other_surfaces_connection MCP server connection from other Claude Code surfaces official-public-docs-derived MCP quickstart notes the same configured server can connect from other Claude Code surfaces; availability across surfaces depends on configuration scope and the host surface's supported MCP runtime.
doc_channel_supported_channels Supported inbound channels: external hosts that push events into a running session official-public-docs-derived Channels documentation lists the supported inbound channel surface for delivering external events or messages to a running Claude Code session; each channel runs through its own connector and permission handling.
doc_slack_retired_replacement_plans Claude Code in Slack retired: replacement entry points by Team/Enterprise and Pro/Max/Ultra plans official-public-docs-derived Official Slack page: the earlier Claude Code in Slack integration is retired. In a workspace not connected to Claude Tag, @Claude replies that the workspace is not set up for Claude Tag. Team and Enterprise plans use Claude Tag when present (with admin setup and migration guidance); Pro, Max and Ultra individual plans cannot use Claude Tag and start tasks in Projects (where available) or cloud sessions. The entry records the documented plan-based replacement boundary only; it does not model the Slack app internals or approval policy.
doc_network_https_proxy_variable HTTPS_PROXY 环境变量:标准出站代理配置与小写回退顺序 configuration-documentation 官方企业网络配置文档:Claude Code 遵循标准代理环境变量;HTTPS_PROXY(及 HTTP_PROXY、NO_PROXY)在启动前于 shell 或 settings.json 配置。小写变体同样有效,Claude Code 按 https_proxy、HTTPS_PROXY、http_proxy、HTTP_PROXY 的顺序取第一个已设置项。loopback(localhost、::1、127.0.0.0/8)的 WebSocket 连接不经代理;桌面应用托管提供商连接的会话中代理变量只从托管设置与 ~/.claude/settings.json 读取。
entry_2_1_332_remote_control_fork_background_session Fork a --remote-control or /remote-control session from the Claude app; fork runs as a background session on your computer official-document-derived-entry 支持从 Claude 应用分叉以 claude --remote-control 或 /remote-control 启动的会话;分叉会话作为后台会话在本机运行。
doc_channel_one_way_two_way_direction Channel one-way vs two-way direction: one-way forwards alerts/webhooks/monitoring events; two-way chat bridge exposes a reply tool official-public-docs-derived 通道方向分单向与双向:单向通道转发告警、Webhook、监控事件供 Claude 行动;双向通道(如聊天桥接)额外暴露回复工具让 Claude 发回消息。是否声明 tools 能力是区分单向/双向的依据,与权限转发等其他能力无关。
channel_vertex_agent_platform Vertex AI / Gemini Enterprise Agent Platform cloud-enterprise-channel-entry Vertex AI(现 Google Cloud Agent Platform / Gemini Enterprise Agent Platform)是企业级托管通道,提供 Agent Engine、Cloud Run/Docker 部署承接 ADK 代理,以及企业账号、配额、审计与数据边界;区别于个人 Gemini API 与 AI Studio。
entry_2_1_332_remote_control_waiting_dialog_mcp_queued_status Remote Control 会话等待对话框或 MCP 队列时不再误报运行中(2.1.332) official-changelog-documented 修复桌面应用、VS Code 或 Agent SDK 中会话等待对话框或 MCP 服务器队列时仍显示运行中的状态误报。
entry_2_1_332_remote_control_idle_during_compact Remote Control 桌面/VS Code 托管会话在 /compact 运行期间不再显示空闲(2.1.332) official-changelog-documented 修复桌面应用或 VS Code 托管的 Remote Control 会话在 /compact 运行期间显示为空闲的问题。
entry_2_1_332_remote_control_waiting_session_status_mislabeled Remote Control no longer shows a waiting session as running configuration-documentation Remote Control 在桌面应用、VS Code 或 Agent SDK 中,等待中的会话不再被显示为运行状态;记录跨设备会话状态展示边界。
entry_2_1_212_remote_control_ready_push_notification_optin 未显式启用 Remote Control 的会话不再触发 session ready 推送通知 official-documentation-entry 修复 Remote Control 的 session ready 推送通知在未显式启用 Remote Control 的会话上触发的问题。
entry_2_1_330_connector_same_url_different_name_drop_fix claude.ai connectors sharing server URL no longer dropped by name (2.1.330) proprietary-all-rights-reserved 共享同一服务器 URL 的不同命名 claude.ai 连接器不再被丢弃。
entry_2_1_281_slack_guest_join_leave_scope_notice Slack:访客加入或最后一名访客离开时,在频道内给出 Restrict / Channel only guest 设置下响应方式变化的提示 official-public-document-entry A short notice in the Slack channel when a guest joining, or the last guest leaving, changes how Claude responds under a Restrict or Channel-only guest setting.
entry_2_1_281_slack_routine_silent_fail_enterprise_grid_fix 此前在加入 Enterprise Grid 前连接的 Slack 工作区中,定时 Routine 静默失败;该问题已修复 official-public-document-entry Fixed scheduled routines silently failing to run in Slack workspaces connected to Claude before the workspace joined its Enterprise Grid.
entry_2_1_281_slack_file_scan_outage_retry Slack 文件扫描短时故障不再要求重新上传文件;现在重试扫描,并在扫描器不可用时告知 official-public-document-entry Claude no longer asks to re-upload a Slack file when a brief file-scanning outage, not the file, was the problem; it retries the scan and reports scanner downtime.
entry_2_1_281_slack_bullet_markdown_preserve_leading_char Slack 回复中以 +、- 或 * 开头的项目符号不再渲染为空 bullet 加嵌套项;字符保留为单一 bullet official-public-document-entry A Slack reply bullet whose text starts with +, - or * no longer renders as an empty bullet with a stray nested item; it keeps the character in one bullet.
entry_2_1_281_web_failed_setup_script_notice_names_script 云环境安装脚本失败的 Slack 通知不再是泛化的“mention me to retry”;现在命名脚本并要求先修复 official-public-document-entry The Slack notice for a failed cloud environment setup script names the setup script and says to fix it first, instead of a generic “mention me to retry”.
entry_2_1_305_remote_control_spawn_mode_saved_per_folder Remote Control spawn-mode messages: pressing w reports the mode is saved for the folder; a later remote-control start notes where the saved mode came from official-public-docs-derived Official changelog improvement: Remote Control spawn-mode messages clarify that pressing w saves the mode for the folder; a later claude remote-control start using the saved mode says where it came from. Records the per-folder saved spawn-mode boundary; Remote Control session routing follows official documentation.
entry_2_1_302_claude_tag_admin_four_tabs_bundles_connectors_skills_channels Claude Tag admin settings organize access into four tabs: Bundles, Connectors, Skills and plugins, and Channels official-public-docs-derived Official changelog change: Claude Tag administrative settings group Claude's access into four tabs: Bundles, Connectors, Skills and plugins, and Channels. Records the Claude Tag administration navigation boundary; channel and bundle permissions remain official enterprise documentation scope.
entry_2_1_330_remote_control_mobile_diff_pr_status_hidden Remote Control 移动端不再隐藏 Diff 与 PR 按钮或把停止会话显示为运行中 changelog-derived 官方 changelog 2.1.330:会话进行中开启 Remote Control 后,移动应用曾隐藏 Diff 与拉取请求按钮,或把已停止会话显示为工作中;修复状态与按钮呈现。边界:遥控会话界面状态行为,不收录同步内部结构。
doc_cloud_cli_followup_queue_no_reply CLI cloud follow-up queues a message and exits without waiting for the reply official-public-docs-derived Official cloud documentation: after a cloud session is running, claude --cloud sends a follow-up from any logged-in machine. The CLI authenticates with Anthropic account credentials, sends no local session state, queues the message into the session, and exits without waiting for a reply; stdin can supply the message instead of an argument.
chan_qwen_code_im_repo_channels Qwen Code 消息与代码托管频道 open-source-cli-agent-project-verify-repository Qwen Code channels 将 Telegram、微信、QQ、钉钉、钉钉工作区、企业微信、飞书以及 GitHub/GitLab 仓库消息路由到同一 agent 进程;各频道维护独立会话、工作目录与配置,在 settings.json 的 channels 段声明,并通过 qwen channel start 启动。

HookEvent

ID 名称 许可证状态 摘要
hook_session_start SessionStart / Setup capability-derived 会话开始或恢复时触发;Setup 对应 --init-only/--init/--maintenance 的一次性准备
hook_user_prompt UserPromptSubmit / UserPromptExpansion capability-derived 提示提交后、模型处理前触发;命令展开前可阻断扩展
hook_pre_tool_use PreToolUse capability-derived 工具参数生成后、执行前;可 allow/deny/ask/defer,可修改工具输入与附加上下文
hook_post_tool_use PostToolUse / PostToolUseFailure / PostToolBatch capability-derived 工具成功/失败后运行;批量并行工具调用解析完成后触发 PostToolBatch
hook_permission PermissionRequest / PermissionDenied capability-derived 权限决策节点;PermissionDenied 可返回 retry:true 允许模型重试被拒工具
hook_file_changed FileChanged capability-derived 文件变更后触发;无决策控制,不能阻断写入
hook_pre_skill_shell PreSkillShellCommand capability-derived 技能注入 Shell 命令运行前拦截;可阻断命令,不能批准或修改命令
hook_session_end SessionEnd 会话结束事件 official-public-documentation 会话结束时触发的每会话级 Hook;可衔接 transcript 归档与结束原因分类;不属于可阻断已发生动作的事件。
hook_stop capability-derived Stop 停止事件 per-turn 事件;Claude 准备停止时触发;exit 2 可阻止停止并继续对话
hook_stop_failure capability-derived StopFailure 停止失败事件 per-turn 事件;停止失败时触发,按错误类型匹配(rate_limit/auth/billing/model_not_found 等);决策输出被忽略
hook_notification capability-derived Notification 通知事件 Claude Code 发送通知时触发;按通知类型匹配;exit 2 与 stderr 被忽略,无决策控制
hook_message_display MessageDisplay 消息展示事件 official-public-documentation 助手消息文本展示期间触发;无 matcher 支持,消息每次出现都会触发。
hook_subagent_start capability-derived SubagentStart 子代理启动事件 按代理类型匹配(general-purpose/Explore/Plan/自定义或插件代理名);无阻断能力
hook_subagent_stop capability-derived SubagentStop 子代理停止事件 按代理类型匹配;exit 2 可阻止子代理停止
hook_pre_compact capability-derived PreCompact 压缩前事件 按压缩触发原因匹配 manual/auto;上下文压缩前触发
hook_post_compact capability-derived PostCompact 压缩后事件 按压缩触发原因匹配 manual/auto;上下文压缩后触发
hook_config_change capability-derived ConfigChange 配置变更事件 按配置来源匹配 user/project/local/policy_settings/skills;exit 2 可阻止配置生效(policy_settings 除外)
hook_teammate_idle capability-derived TeammateIdle 队友空闲事件 队友代理进入空闲时触发;exit 2 可阻止其空闲、继续工作;无 matcher
hook_task_created capability-derived TaskCreated 任务创建事件 任务创建时触发;exit 2 可回滚任务创建;无 matcher
hook_task_completed capability-derived TaskCompleted 任务完成事件 任务完成标记时触发;exit 2 可阻止标记完成;无 matcher
hook_pre_model_switch PreModelSwitch 模型切换前事件 official-public-documentation 按切换目标模型规范名匹配;在模型切换发生前触发。
hook_post_model_switch PostModelSwitch 模型切换后事件 official-public-documentation 按切换后的模型规范名匹配;在模型切换发生后触发。
hook_instructions_loaded InstructionsLoaded 指令文件加载事件 能力派生 CLAUDE.md 或 .claude/rules/*.md 加载进上下文时触发;会话开始及会话中惰性加载时均触发,无决策控制
hook_cwd_changed CwdChanged 工作目录变更事件 能力派生 工作目录变化(如执行 cd)时触发;无 matcher 支持,每次发生都触发;可配合 direnv 等做环境反应式管理
hook_directory_added DirectoryAdded 工作目录添加事件 能力派生 会话中途经 /add-dir 或 SDK register_repo_root 控制请求添加工作目录时触发;按 slash_command 或 register_repo_root 匹配
hook_worktree_create WorktreeCreate 工作树创建事件 能力派生 经 --worktree、isolation: worktree 或后台会话创建 git worktree 时触发;替代默认 git 行为
hook_worktree_remove WorktreeRemove 工作树移除事件 能力派生 移除由 WorktreeCreate 钩子创建的 worktree 时触发
hook_elicitation Elicitation MCP 用户输入请求事件 能力派生 MCP Server 在工具调用期间请求用户输入时触发;按 MCP 服务器名匹配
hook_elicitation_result ElicitationResult MCP 输入结果事件 能力派生 用户响应 MCP elicitation 之后、响应发回服务器之前触发;按 MCP 服务器名匹配
hook_cadence_session Hook 事件节奏:每会话级(SessionStart / SessionEnd) configuration-documentation Hook 事件按触发节奏分组;每会话级在会话开始或结束时触发一次
hook_cadence_turn Hook 事件节奏:每回合级(UserPromptSubmit / Stop / StopFailure) configuration-documentation 每回合级事件在一次用户或自主回合前后触发
hook_cadence_toolcall Hook 事件节奏:每次工具调用级(PreToolUse / PostToolUse) configuration-documentation 工具调用级事件在代理循环内每个工具调用前后触发;EndConversation 调用跳过两者
hook_event_user_prompt_expansion UserPromptExpansion 提示词展开事件 capability-derived 用户命令展开为提示词、到达模型之前触发;可阻止展开
hook_event_permission_request PermissionRequest 权限请求事件 capability-derived 工具调用需要权限决策时触发
hook_event_permission_denied PermissionDenied 自动模式拒绝事件 capability-derived auto 模式拒绝工具调用时触发;hookSpecificOutput.retry=true 告知模型可重试被拒调用;分类器无裁决时 retry 被忽略
hook_event_post_tool_use_failure PostToolUseFailure 工具失败事件 capability-derived 工具调用执行失败后触发;与成功后的 PostToolUse 并列。
hook_event_post_tool_batch PostToolUseFailure 后批量并行工具回调事件 capability-derived 一批并行工具调用全部解析完成、下一次模型调用之前触发
hook_user_prompt_submit UserPromptSubmit 提示词提交事件 capability-derived 提示词提交后、Claude 处理前触发;Claude Code 自主启动的回合同样触发;无 matcher 支持,每次发生都触发
hook_matcher_field Hook matcher 按事件类型匹配不同字段 configuration-documentation 工具事件匹配 tool_name;SessionStart 匹配启动方式;Notification 匹配通知类型;ConfigChange 匹配配置来源;无 matcher 支持的事件忽略该字段
hook_matcher_regex matcher 字面匹配与正则路径规则 configuration-documentation | 分隔多值为字面匹配;其余字符走 JS 正则未锚定;FileChanged/StopFailure 仅允许字母数字下划线与 |;整串匹配需 ^...$ 锚定
hook_if_field Hook 处理器 if 字段按权限规则语法过滤工具参数 configuration-documentation 工具事件可在单个处理器上设 if,用权限规则语法同时匹配工具名与参数,如 Bash(git )、Edit(.ts)
hook_exit2_block_matrix Exit code 2 阻塞能力矩阵(按事件区分) configuration-documentation PreToolUse/UserPromptSubmit/Stop/SubagentStop/TaskCreated 等可阻断;PostToolUse/Notification/SessionEnd 等已发生或不可阻止,退出码仅回显 stderr;PermissionDenied 用 JSON retry 控制重试
hook_session_start_async SessionStart 后台运行与等待语义 configuration-documentation 交互启动/resume/clear 时 SessionStart 在后台运行,用户可先输入;首条回复等待钩子完成;会话内 /resume 切换等待钩子结束;Esc 可收回提示不发送
hook_subagent_stop_input SubagentStop 输入字段(agent_id/agent_type/transcript/last message) capability-derived 子代理停止钩子除公共输入外接收 stop_hook_active、agent_id、agent_type、agent_transcript_path(嵌套 subagents/ 目录)与 last_assistant_message;主会话 transcript_path 与子代理 transcript 分离
hook_permission_agent_type_exclusion PermissionRequest 钩子排除 agent 类型处理器 configuration-documentation PermissionRequest 钩子中 agent 类型处理器不再运行(其回答无法允许或拒绝请求);改为报错指向 command 或 http 钩子
hook_pretooluse_serialize_block PreToolUse/PermissionRequest 钩子输入序列化失败时阻塞调用 configuration-documentation 钩子匹配失败或工具输入无法序列化为 JSON 时,PreToolUse 与 PermissionRequest 不再被跳过;调用被阻塞
feat_idle_prompt_hook_background idle_prompt 通知钩子在后台代理运行期间不再触发 capability-derived 修复:后台代理仍在运行时 idle_prompt 通知钩子不再误触发
feat_instructions_loaded_agent_fields InstructionsLoaded 钩子补全 agent_id / agent_type 与 effort 字段 capability-derived 子代理文件访问加载规则或嵌套 CLAUDE.md 时,InstructionsLoaded 事件携带代理标识;文件访问加载的规则与嵌套指令同时上报 effort
fix_plugin_toolcall_hook_worktree_subagent 插件 tool.call Hook 影响 worktree 子代理 Bash 与文件搜索修复 changelog-derived 插件 tool.call Hook 不再导致 worktree 子代理中 Bash 失败,或文件搜索进入错误目录。
fix_unanswered_permission_tool_decision_event 未答复权限请求遗漏 tool_decision 事件修复 changelog-derived -p 或中断回合中未获答复的权限请求不再遗漏 tool_decision 事件。
fix_synced_plugin_sessionstart_hook_cloud 同步插件的 SessionStart Hook 在新云会话未运行修复 changelog-derived 2.1.289 修复:来自已同步插件的 SessionStart hooks 不再在新建云会话中遗漏。边界:恢复 Hook 执行链路;Hook 处理器自身仍受托管策略、命令权限与敏感数据边界约束。
fix_hook_summary_internal_callback_count Hook 摘要与调试日志误计内部回调数量修复 changelog-derived 2.1.289 修复:transcript 的 N hooks ran 摘要与 verbose debug matched-hooks 计数不再纳入 Claude Code 内部回调,一个配置 Hook 不再显示为两个。边界:仅修正计数展示,不改变 Hook 匹配、阻塞或审批优先级。
fix_tool_hook_nontext_object_api_400 工具或钩子返回非文本对象不再触发 API 400 changelog-derived changelog 修复:工具或 Hook 返回对象、数字、布尔值而非文本时,连同已恢复会话在内不再导致后续 API 请求 400;非文本结果按允许的结果类型处理。边界:记录公开结果类型约束,不解析 Hook 内部回调调用结构。
hook_notification_matcher_type_values Notification 事件 matcher 通知类型枚举 configuration-documentation 官方 Hooks 文档:Notification 的 matcher 按通知类型过滤,文档列出 permission_prompt、idle_prompt、auth_success、auth_storage_failure、elicitation_dialog/url_dialog/complete/response、agent_needs_input、agent_completed、quota_auto_resume_fired/stale/disabled 与 plugin_notification 等类型。边界:只记录公开 matcher 标签,不收录通知内部载荷。
hook_event_handler_type_support_matrix Hook 事件与处理器类型支持矩阵(command/http/mcp_tool/prompt/agent) configuration-documentation 官方 Hooks 文档:PreToolUse、PostToolUse、PostToolUseFailure、PostToolBatch、Stop、SubagentStop、TaskCreated/Completed、TeammateIdle、UserPromptSubmit/Expansion、PermissionDenied 等支持命令、HTTP、MCP 工具、提示与代理处理器;PermissionRequest 不支持 agent;ConfigChange、CwdChanged、DirectoryAdded、Elicitation、FileChanged、InstructionsLoaded、MessageDisplay、Notification、压缩/模型切换、PreSkillShellCommand、SessionEnd、StopFailure、SubagentStart 与 Worktree 事件仅支持命令、HTTP 与 MCP 工具处理器。
hook_setup_lifecycle_matcher Setup 生命周期事件与 init/maintenance 启动标志匹配 configuration-documentation 官方 Hooks 文档:Setup 在使用 --init-only,或以 -p 模式使用 --init/--maintenance 时触发;matcher 可区分 init 与 maintenance。该事件面向 CI 或脚本中的一次性准备动作。
hook_decision_output_format_compat PreToolUse 旧版 decision/reason 字段与 hookSpecificOutput 决策格式兼容 configuration-documentation 官方 Hooks 文档:PreToolUse 早期使用顶层 decision 与 reason 字段;现已弃用,应使用 hookSpecificOutput.permissionDecision 与 permissionDecisionReason;旧值 approve/block 映射为 allow/deny。PostToolUse、Stop 等其他事件继续使用顶层 decision/reason 格式。
subagent_stop_parent_scoped_task_arrays SubagentStop 的 background_tasks 与 session_crons 按父会话作用域传入 configuration-documentation 官方 Hooks 文档:SubagentStop 接收 background_tasks 与 session_crons 数组;两个数组都按父会话作用域组织,而不是子代理自身的后台任务或定时任务。
builtin_web_fetch_subagent_hook_scope 内置 web-fetch 子代理 SubagentStop 钩子仅托管设置生效 configuration-documentation 官方 Hooks 文档:对于内置 web-fetch 子代理,SubagentStop 钩子只运行托管设置中的配置;其他设置来源如需拦截该代理,应改为在 PostToolUse 中匹配 WebFetch。
fix_elicitation_block_decision_declined Elicitation/ElicitationResult block 决策拒绝规则 open-standard-reference Elicitation 与 ElicitationResult Hook 返回 {"decision":"block"} 不再被忽略;其语义等同退出码 2,拒绝 MCP 引导请求。
mcp_tool_hooks_wait_connecting 阻塞事件上的 mcp_tool 钩子等待 MCP 服务器连接,最长到 MCP 连接超时 changelog-derived 官方 changelog:PreToolUse 等阻塞事件上的 mcp_tool 钩子原先在 MCP 服务器仍连接时被跳过;修复后等待服务器连接,等待上限为 MCP 连接超时。
hook_pre_skill_shell_refusal PreSkillShellCommand 加载期内联 Shell 命令拒绝钩子事件 official-document-feature-entry Skill 或命令加载时触发,可拒绝其内联 Shell 命令;旧版本命名该钩子的设置文件会在启动时弹出对话框。
fix_prompt_hint_selected_text_fullscreen_label PromptHint hook 全屏页脚右侧标签存在时省略选中文本提示 official-public-documentation-entry Mod 的 PromptHint hook 收到的 hint 在全屏页脚右侧已有标签时,不再包含选中文本片段。
improvement_hook_overflow_large_log_truncation Hook 阻塞/失败或压缩后超大日志:约 50,000 字符以上文本截断,避免冻结与上下文溢出 changelog-derived 官方 changelog 2.1.332:Hook 在回合中阻塞或失败,或在 /compact 后附带超大日志时,约 50,000 字符以上的文本被缩短,防止冻结和上下文溢出。
fix_subagent_compaction_hook_missing_agent_fields 子代理压缩时,PreCompact、PostCompact 与压缩后 SessionStart proprietary-all-rights-reserved 子代理压缩时,PreCompact、PostCompact 与压缩后 SessionStart 钩子收到 agent_id 与 agent_type
doc_team_hooks_quality_gates Agent Teams quality-gate hooks(TeammateIdle / TaskCreated / TaskCompleted) proprietary-all-rights-reserved 队友空闲、任务创建、任务完成三个团队质量门 Hook;TeammateIdle 阻止空闲,TaskCreated/TaskCompleted 阻止对应状态流转。
doc_subagent_project_hooks 项目级 SubagentStart/SubagentStop 生命周期钩子与类型匹配器 official-public-documentation-entry settings.json 可配置响应子代理生命周期事件的项目级钩子;SubagentStart 在子代理开始时触发,SubagentStop 在完成时触发,匹配器按代理类型 frontmatter 名称或插件作用域标识定位。
cli_flag_include_hook_events --include-hook-events proprietary-cli-flag-documented-publicly 在输出流中包含 Hook 生命周期事件;SessionStart 与 Setup 始终包含,无需该开关。
doc_self_hosted_checkout_lifecycle_hook 自托管 Runner checkout 生命周期钩子 official-public-documentation-entry 官方自托管配置文档:checkout 钩子在会话取得仓库检出时运行,可处理检出目录、Git 凭证与失败状态;钩子失败会影响会话启动流程。
doc_self_hosted_post_session_lifecycle_hook 自托管 Runner post-session 生命周期钩子 official-public-documentation-entry 官方自托管配置文档:post-session 钩子在会话结束后运行,用于收尾、状态推送或清理;Runner 为该钩子提供独立超时预算,钩子与会话进程隔离。
entry_2_1_331_permissiondenied_retry_only_requested_call PermissionDenied retry:true resends only the originally requested call changelog-derived 官方 changelog 2.1.331:PermissionDenied 钩子的 retry: true 语义被限定为:仅当调用方最初请求该被拒绝调用时才重试;它不授权自动重试其他派生或后续调用。
entry_2_1_332_hook_output_infinite_memory_freeze_fix Hook unbounded output freeze and runaway memory fix changelog-derived 官方 changelog 2.1.332:多数情况下修复钩子持续输出导致的冻结与内存失控;条目记录钩子输出边界风险,不收录钩子脚本内容或内部进程实现。
change_hooks_menu_grouped_by_event_single_list /hooks 打开按事件分组的单一 Hook 列表,查看只需一次回车 changelog-derived /hooks 菜单原先需要多层回车才能查看配置 Hook;改动后打开一个按事件分组的 Hook 列表,查看某条 Hook 只需一次回车。
improve_hook_feedback_spinner_elapsed_time_esc_cancel SessionStart、UserPromptSubmit、PreToolUse、SessionEnd Hook 运行时 Spinner 显示耗时,Esc 可取消等待 SessionStart Hook 的提示 changelog-derived Hook 反馈改进:SessionStart、UserPromptSubmit、PreToolUse 与 SessionEnd 运行期间,加载指示器显示已用时间;等待 SessionStart Hook 的提示可用 Esc 取消。
entry_2_1_328_mcp_tool_hook_on_failure_block mcp_tool Hook:onFailure=block 在调用失败时阻断动作 official-document-derived-entry mcp_tool Hook 与 command、HTTP Hook 一样支持 onFailure: block;Hook 调用失败时阻断对应动作,避免在失败未处理时继续执行。
doc_http_hook_endpoint HTTP Hook 远端端点处理器(HTTP hooks) official-public-docs-derived Hook 处理器可指向 HTTP 端点;该通道与命令、MCP 工具、提示或子代理处理器并列,由 Hook 生命周期事件触发,请求与响应按 Hook 输入输出格式处理。
doc_hook_common_handler_fields Hook 处理器公共字段(Common fields) official-public-docs-derived 各类 Hook 处理器共享配置字段,与命令、HTTP、MCP 工具、提示/代理等特定字段分开;公共字段描述事件匹配、处理器位置与执行控制等通用配置。
doc_hook_prompt_agent_handler_fields Prompt / Agent Hook 处理器字段 official-public-docs-derived 提示型与代理型 Hook 的专用字段分组,用于描述提示或子代理处理器如何参与 Hook 事件;其专用字段与命令/HTTP/MCP 工具字段区分。
doc_hook_io_exit_code_contract Hook 输入输出与退出码契约(JSON input/output、Exit code output) official-public-docs-derived Hook 通过 JSON 输入接收事件上下文,并以退出码与 JSON 输出表达结果;退出码 0、2 及其他退出码分别对应继续、阻塞决策与其他处理路径。
doc_hook_updated_input_validation Hook updatedInput 输入校验:未知键丢弃、工具拒绝时阻断调用 official-public-docs-derived PreToolUse 与 PermissionRequest Hook 返回的 updatedInput 按 Claude 自身输入规则校验;未知键被移除,工具拒绝的输入会导致调用被拒绝;该字段用于改写工具参数,不替代权限审批。
doc_subagent_frontmatter_and_settings_hooks 子代理生命周期钩子:frontmatter 私有钩子与 settings 会话级钩子 official-public-documentation-entry 官方文档区分两种子代理钩子配置:代理 Markdown frontmatter 中的私有钩子,以及 settings.json 中覆盖主会话与子代理的会话级钩子;PreToolUse/PostToolUse 对子代理工具调用按主会话相同方式触发。边界:frontmatter 钩子通过 Agent 工具或 @-mention 派生为子代理,或经 --agent/agent 设置作为主会话运行时触发;主会话运行场景与 settings 钩子并存。
doc_mcp_task_elicitation_question_dialog MCP task elicitation question dialog and deferred answer official-public-documentation-entry A running task can open an elicitation dialog for input. With /tasks open the dialog stays hidden; declining answers the server, which decides whether the task continues. Outside interactive terminal sessions, some session types cancel the task instead of running elicitation hooks or SDK callbacks.
doc_worktree_non_git_vcs_hook_boundary Non-git VCS: WorktreeCreate/WorktreeRemove hooks replace default git worktree logic official-public-docs-derived Official worktree boundary: for SVN, Perforce, Mercurial, or other non-git systems, WorktreeCreate and WorktreeRemove hooks provide custom creation and cleanup. Because the hook replaces default git behavior, .worktreeinclude is not processed under --worktree; local configuration files must be copied inside the hook script.
doc_hook_determinism_vs_skill_interpretation Hook deterministic lifecycle execution versus skill instruction interpretation official-document-derived-entry Overview documentation: a hook fires on its lifecycle event without Claude deciding; a skill loads instructions that Claude interprets, so outcome can vary. Hooks are enforcement points; skills supply reasoning and reference material.
mod_event_middleware_observe_rewrite_answer Mod event handler: observe unchanged, rewrite event copy, or answer in place via next middleware chain official-doc-derived Official Mod events documentation: an on() handler receives the $ API, event e and next; it observes by returning next(e), rewrites by passing a modified event copy, or answers itself. Handlers form a middleware chain before Claude Code native behavior runs.
doc_large_codebase_sessionstart_hook_plugin_recommendation SessionStart hook maps launch directory to a repository-owned plugin recommendation official-document-derived-entry Official large-codebase documentation: after conventions live in plugins, a teammate in an unfamiliar tree may lack a signal for the area plugin. A SessionStart hook can read the launch directory from hook input, look it up in a committed path-to-plugin map, and print plain recommendation text to stdout; Claude Code adds that text to context before the first prompt.
doc_feature_hook_mcp_composition Hook + MCP composition: event trigger invokes external action through MCP official-public-docs-derived A hook runs on a matching lifecycle event and can trigger external actions through MCP; the hook supplies event timing, while MCP supplies the external service connection.
entry_2_1_332_hook_wildcard_pattern_long_command_freeze Permission rule or hook condition with several wildcards checked against a long command: freeze fixed official-public-docs-derived Official changelog fix: a freeze occurred when a permission rule or hook condition containing several wildcards was matched against a long command. The entry records the public matching-condition boundary and observed regression fix; it does not expose internal matcher implementation.
entry_2_1_332_hook_block_failure_turn_large_log_truncation Hook block or failure with large log: turn/after-compaction log text shortened around 50,000 characters official-public-docs-derived Official changelog fix: a hook blocking or failing during a turn, or after /compact, could freeze and overflow context with a very large log; text over about 50,000 characters is now shortened. The boundary concerns retained hook failure diagnostic size, not hook command internals.
entry_2_1_332_fullscreen_footer_selected_text_hint_label PromptHint hook hint omits selected-text hint when fullscreen footer has a right-hand label official-public-docs-derived Official changelog change: the hint received by a mod's PromptHint hook leaves out the hint for selected text when the fullscreen footer has a label on its right. This records hook input-content visibility boundary; mod rendering internals are not modeled.
entry_2_1_332_pretooluse_ask_reason_terminal_file_tools PreToolUse hook ask reason now shown on terminal Read, Grep, Glob, Edit and Write permission prompts official-public-docs-derived Official changelog fix: a PreToolUse hook's reason for asking was not shown on terminal Read, Grep, Glob, Edit and Write prompts. The entry records hook decision-reason visibility on those file-tool permission prompts.
hook_exit_code_stdout_stderr Hook 退出码、stdout 与 stderr 决策通道 official-public-documentation 命令钩子经 stdin 接收 JSON;退出码与 stdout/stderr 表达阻塞或非阻塞决策,事件专用 JSON 字段定义各事件支持的决策,stderr 可展示给 Claude。
hook_specific_output_worktree_path hookSpecificOutput.worktreePath 钩子返回工作树路径 official-public-documentation 事件专用钩子输出可提供 worktreePath;支持事件与字段范围以官方钩子参考为准,不从其他输出字段推断。
hook_specific_output_additional_context hookSpecificOutput.additionalContext 非错误对话上下文 official-public-documentation additionalContext 附加非错误反馈并延续对话;它补充阻塞决策理由,不替代拒绝原因或决策结果。
doc_agent_view_notification_hook_agent_input_completed Agent-view Notification hook: agent_needs_input and agent_completed background-session types official-doc-derived Official agent-view documentation: while agent view is open, a local background session needing input, finishing, or failing sends a notification through the configured terminal notification channel. The same Notification hook fires with the agent_needs_input or agent_completed type. Scheduled /loop sessions notify only when they need input. This entry records the documented hook type boundary, not an internal hook implementation.
entry_2_1_332_unread_subagent_report_background_ctrl_c 2.1.332 Ctrl+C exit: stopped background agent with an unread subagent report official-doc-derived Official changelog 2.1.332: Ctrl+C at the prompt no longer starts a new turn, and a double Ctrl+C exits as expected, when a background agent it stopped had an unread subagent report. This records the prompt-stop event boundary around the stopped background agent.
fix_mod_turn_step_hook_interruption_cancel_label 2.1.332 turn.step interruption reports Interrupted instead of user-cancel error official-public-changelog Changelog fix: when a turn is interrupted while a Mod turn.step hook is waiting, the interruption surfaces as Interrupted rather than a user-cancel error. Boundary: records public hook lifecycle and cancellation classification; no Mod internal queue or state machine is modeled.
doc_self_hosted_e2e_stop_capture_hook Self-hosted E2E test Stop hook captures final assistant reply for the local test driver official-public-document The test-only Stop hook receives last_assistant_message on stdin and appends it to E2E_REPLY_DIR/.txt. It requires jq, installs on the test runner only, is a no-op unless the driver listens, and must never fail the turn. A tool-use-only turn with no text yields an empty file rather than a null string.
doc_mod_events_hook_next_retry_answer Mod event hook can change arguments, retry through next(e), or answer a tool call without next official-public-documentation-entry Mod 事件钩子公开三种处置:把修改后的参数传给 next;首结果为 isError 时再次调用 next(e) 重试;直接返回带 result 的对象、不调用 next;内置工具结果形状须遵循工具自身约定。
doc_hook_locations_settings_project_plugin_and_skill_scope Hook configuration locations span settings files, plugins and skill/subagent frontmatter official-public-docs-derived Hooks 在 JSON 设置文件中定义;插件与技能/子代理 frontmatter 也可按同一格式声明。云端会话不读取本地用户设置;自托管环境运行操作员播种的 Runner 主机钩子及受管设置文件中的钩子。
doc_orchestrator_spawn_hook_concurrency_timeout On-demand runner orchestrator spawn-runner hook concurrency and process timeout official-public-docs-derived Orchestrator spawn-runner hooks run with a configurable maximum parallel count; the hook process tree terminates after the configured timeout. Default concurrency is 4 and default timeout is 60 seconds; timeout plus the five-second kill grace must remain below expected-spawn seconds.
entry_2_1_332_session_title SessionStart hookSpecificOutput.sessionTitle: set session title at startup and resume official-public-changelog-entry Official changelog: SessionStart hooks can set the session title through hookSpecificOutput.sessionTitle on startup and resume. The entry records the public hook output field and lifecycle point, not hook internals.
env_stop_hook_block_cap CLAUDE_CODE_STOP_HOOK_BLOCK_CAP: consecutive Stop or SubagentStop hook block cap configuration-documentation Official Hooks and environment documentation: maximum number of consecutive times a Stop or SubagentStop hook may block the turn from ending before Claude Code overrides it and ends the turn anyway. The default is 8; 0 disables the cap. The entry records the public iteration boundary only, not hook internals.
doc_sdk_hooks_page Agent SDK hooks: callback functions, available events, matchers, configuration and interception examples official-public-docs-derived Official SDK hooks documentation defines callbacks fired on agent events such as a tool being called, a tool returning, a subagent starting or stopping, idle state or execution stopping. Hooks are configured in the agent options hooks field; the page covers available events, matchers, callback inputs and outputs, asynchronous output, failure-blocking behavior and examples such as modifying tool input, adding context, blocking a tool, auto-approving specific tools, registering multiple hooks, filtering multi-tool matchers and tracking subagent activity. The entry records the public interception surface only.
doc_hook_timeout_budget Agent SDK hook callback timeout: per-event default budgets, SessionEnd 1.5s budget and cancellation boundary official-public-docs-derived Official SDK hooks documentation records that each callback runs under a matcher timeout in seconds; unset values use event defaults: 600 seconds for most events, 30 seconds for UserPromptSubmit, PreModelSwitch and PostModelSwitch, 10 seconds for MessageDisplay, and SessionEnd callbacks use the shorter 1.5-second SessionEnd timeout budget. On timeout Claude Code cancels the callback and discards output; event-specific handling blocks or continues as documented. The entry records only the public timeout budget and cancellation boundary, not internal scheduling or callback runtime internals.
doc_sdk_hook_event_input_shared_fields SDK hook input shared fields: session_id, cwd, hook_event_name and subagent agent fields official-public-docs-derived Official SDK hooks documentation states that all hook inputs share session_id, cwd and hook_event_name. agent_id and agent_type are populated when the hook fires inside a subagent; in TypeScript these fields are on the base hook input and available to every hook type, while in Python they are optional fields on PreToolUse, PostToolUse, PostToolUseFailure and related inputs. The entry records the shared event-input shape and subagent provenance boundary, not transcript storage or hidden session internals.
doc_sdk_hook_decision_priority Multiple PreToolUse hook decisions: deny over defer over ask over allow priority official-public-docs-derived Official SDK hooks documentation specifies that when multiple PreToolUse hooks return different decisions, deny takes priority over defer, which takes priority over ask, which takes priority over allow. This entry records only the public decision-precedence rule among matching hooks; it does not model hidden classifier decisions, internal message routing or tool policy storage.
doc_mod_tool_judge_event Mod tool.judge event: Auto Mode classifier decision hook before a call is judged official-public-docs-derived Official Mods reference: tool.judge fires when Auto Mode is about to ask its classifier about a tool call (requires Claude Code v2.1.326 or later). The hook returns next(e) to pass the event on unchanged or { decision } to supply a decision. The entry records the documented event trigger, version gate and return contract; it does not model classifier internals or model selection.
doc_mod_tool_run_event Mod tool.run event: hook after an allowed call passes approval and before it executes official-public-docs-derived Official Mods reference: tool.run fires when an allowed call is about to run (requires Claude Code v2.1.326 or later). The hook returns next(e), { deny: reason }, or { result }. The entry records the documented pre-execution event and return shapes; it sits after tool.call and tool.check approval decisions and does not alter those decisions.
doc_mod_tool_describe_event Mod tool.describe event: tool-description hook, deferred tool-search loading and prompt-cache break flag official-public-docs-derived Official Mods reference: tool.describe runs once for each tool when its description is first sent to Claude, and a second time for an MCP tool when Claude loads it through tool search, with e.description holding the loaded tool's text. The hook returns { description }, optionally with isDeferred true to place the tool behind tool search or false to load it upfront; breakPromptCache: true sends the changed description on the next turn. The entry records this documented description and deferred-loading boundary only.
doc_mod_tool_offer_event Mod tool.offer event: withhold a tool from the offered list; invalidate refresh boundary official-public-docs-derived Official Mods reference: tool.offer fires while Claude Code builds Claude's tool list and again when a tool is called (requires Claude Code v2.1.328 or later). The hook returns next(e) or { isOffered: false } to withhold the tool. Calling $.ui.invalidate('tool.offer') reruns the hook; returning { isOffered, breakPromptCache: true } refreshes the list and starts the prompt cache over (invalidate refresh requires Claude Code v2.1.331 or later). The entry records the documented offer-list hook and refresh boundary.
doc_mod_settings_hook_classic_event Mod settings hook event: classic. such as classic.Stop official-public-docs-derived Official Mods reference: each settings hook event is named classic., for example classic.Stop. The fields on event object e are documented on the Mods events page. The entry records the documented event naming and linkage; it does not model the internal settings subsystem or session state storage.
doc_mod_api_method_event Mods API method event: namespace.method hook such as fs.read, model.complete, ui.open official-public-docs-derived Official Mods reference: every Mods API method is also an event, named for its namespace and method, such as fs.read, model.complete or ui.open. A hook on one can return next(e), { deny: reason }, or { value }. Because some of these events also fire for Claude Code's own actions, a hook checks whether next.origin.plugin is engine before refusing one. The entry records the documented event naming, return contract and origin-check boundary.
doc_mod_other_mods_plugin_register_event Mod plugin.register event: intervene before another mod's hooks module loads official-public-docs-derived Official Mods reference: plugin.register fires when a hooks module is about to load, or, on v2.1.326 or later, a plugin without one. e.uses lists the module's events, Mods API calls, environment variables and state, as claude plugin validate prints them; each call is written without the $. prefix, such as fs.read. A hook can return { refuse: reason }; on v2.1.326 or later a refusal keeps out the whole plugin, and next({ ...e, provides: { ...e.provides, modules: [] } }) keeps out only its hooks module. Earlier versions ignore provides and load the module.
doc_mod_engine_create_namespace_event Mod engine.create event: Mods API construction hook that can add a namespace official-public-docs-derived Official Mods reference: engine.create fires while the Mods API is being built for this mod. A hook can return a changed Mods API to add a namespace; a mod in the prepend or append tier can also withhold one. When another mod's hook calls a method on a namespace added in engine.create, that method's $ calls run in the calling hook's context until every hook on the event returns. The entry records the documented construction hook and context boundary.
doc_agent_hook_timeout_turns_no_continue_on_block Agent-based hook: 60-second default timeout, up to 50 tool-use turns; ok/reason format; no impossible field and no continueOnBlock; on ok:false PreToolUse/PostToolUse continue like continueOnBlock official-public-documentation-entry Official hooks guide: type: agent hooks spawn a subagent that can read files, search code and use other tools to verify conditions before returning a decision; unlike prompt hooks, which make a single LLM call. Agent hooks use the ok/reason response format with a longer default timeout of 60 seconds and up to 50 tool-use turns. They do not support the prompt-hook impossible field. On ok:false, Claude Code handles an agent hook like a prompt hook with continueOnBlock: true on the same event, so on PreToolUse and PostToolUse the turn continues; agent hooks have no continueOnBlock field. The $ARGUMENTS placeholder is replaced with the hook's JSON input. The entry records this documented timeout, turn cap, missing-field and continuation boundary against the existing prompt/agent handler anchor.
doc_mod_event_plugin_register plugin.register Mod event: fired as each other Mod is about to load; carries e.tier, e.uses.calls and e.provides.modules official-public-docs-derived Official Mods admin documentation: each time another Mod is about to load, a Mod receives the list printed by claude plugin validate in a plugin.register event. The event carries e.tier (prepend / user / append / builtin), e.uses.calls (the mods API method names its code calls) and e.provides.modules. A Mod in prependPlugins can read that list and refuse the Mod; on v2.1.326 or later it can leave out the hooks module and load the rest of the plugin by clearing provides.modules, while earlier versions refuse the plugin whole. Event hooks can also observe any mods API call by its method name without the $. prefix.
doc_mod_event_command_run Mod command.run event: a registered user command is about to run; matcher narrows by command name official-public-docs-derived Official Mods reference: command.run fires when a command is about to run. The handler returns { text } to print in the transcript, {} for no output, or next(e). An on() matcher limits the hook to a command name, so other commands do not reach it. The entry records this documented pre-run command event and return contract; it does not model command registration internals.
doc_mod_event_command_describe Mod command.describe event: per-command description, argumentHint and hidden flag for the command list official-public-docs-derived Official Mods reference: command.describe runs once for each command when Claude Code builds the command list. The hook returns { description, argumentHint, isHidden } describing the listed command. The entry records this documented per-command description event; registration naming and built-in command collision rules remain separate command registration entries.
doc_mod_event_config_set Mod config.set event: a /config row is about to change; next with changed value or deny reason official-public-docs-derived Official Mods reference: config.set fires when a /config row is about to change. The hook returns next({ ...e, value }) to pass a changed row onward, or { deny: reason } to refuse the change. The entry records this documented configuration-row mutation event and return contract; managed settings merging itself stays an existing settings source entry.
doc_mod_event_config_describe Mod config.describe event: per-/config-row label, description and hidden flag official-public-docs-derived Official Mods reference: config.describe runs once for each /config row. The hook returns { label, description, isHidden } describing that row. The entry records this documented per-row description event; it sits alongside command.describe for the Mod command and configuration listing surface.
doc_mod_event_settings_read Mod settings.read hook: merged-settings or per-source read; e.layers and e.source markers; v2.1.304 gate official-public-docs-derived Official Mods reference: settings.read fires when a mod calls $.settings.read, or when Claude Code builds the session's merged settings; Claude Code's own read and e.layers require Claude Code v2.1.304 or later. e.layers holds one { source, settings } object per source in use, lowest precedence first; e.source names the single source a mod asked for and is absent on the own read or merged read. The hook returns next(e), { value }, or { deny: reason }. The entry records this documented settings-read hook; the $.settings.read API namespace method is a separate Capability entry.
doc_mod_event_agent_offer Mod agent.offer event: a subagent type is offered to Claude; withhold it with isOffered false official-public-docs-derived Official Mods reference: agent.offer fires when a subagent type is offered to Claude. The hook returns { isOffered: false } to withhold that subagent type from the offer list. The entry records this documented offer-list subagent event; the agent.spawn teammate/teammate-start lifecycle and $.agent.list statuses remain separate existing subagent entries.
doc_mod_event_telemetry_log Mod telemetry.log event: a telemetry record about to be logged; collector filter and deny reason contract official-public-docs-derived Official Mods reference: telemetry.log fires when a telemetry record is about to be logged. In an installed mod the hook carries the filter { to: 'collector' }; without it the mod fails claude plugin validate, and the '*' wildcard does not match these events. The hook returns next(e) or { deny: reason }. The entry records this documented telemetry record hook; OpenTelemetry exporter and signal configuration entries are separate.
doc_mod_event_telemetry_mark Mod telemetry.mark event: one feature-use mark about to be recorded; same collector filter and deny contract official-public-docs-derived Official Mods reference: telemetry.mark fires when one use of a feature is marked. It shares the telemetry.log contract: an installed mod uses the { to: 'collector' } filter, the wildcard does not match, and the hook returns next(e) or { deny: reason }. The entry records this documented feature-mark hook; it does not model telemetry aggregation, export transport or billing counters.
doc_mod_event_turn_start Mod turn.start event: a turn begins; hook passes next(e) to continue the middleware chain official-public-docs-derived Official Mods reference: turn.start fires when a turn begins. The hook returns next(e) to pass the event to the next handler in the chain. Turn events follow one answer from start to finish, including each request to the model within it. The entry records this documented turn-start event; the turn.step model-request hook and interruption classification remain separate existing entries.
doc_mod_event_turn_complete Mod turn.complete event: a turn ended; next(e) or a text line shown under the main answer official-public-docs-derived Official Mods reference: turn.complete fires when a turn ended. The hook returns next(e), or { text } to show a line under the main conversation's answer. The entry records this documented turn-complete event and return contract; interruption cancellation and the turn.step hook model-request stage are separate existing entries.
entry_2_1_332_sessionstart_synced_plugin_cloud_session_fix SessionStart hooks from synced plugins now run in new cloud sessions official-document-derived-entry 修复来自已同步插件的 SessionStart 钩子在新建云会话中不运行的问题。
entry_2_1_332_stop_prompt_hooks_repeat_block_label Stop prompt hooks 重复块只输出 500 字符条件标签,不再每块重发完整提示 official-public-changelog-entry 官方 changelog:修复 Stop prompt hooks 在对话每个块上重发完整提示;重复块现在用 500 字符标签命名条件。
entry_2_1_332_stop_prompt_hook_repeat_block_label Stop prompt hooks no longer resend their whole prompt on every conversation block; repeat blocks name the condition with a 500-character label official-public-docs-derived Official changelog: Stop prompt hooks previously re-sent their whole prompt on every block in a conversation; repeat blocks now name the condition with a 500-character label. The entry hangs off the existing stop-hook anchor and records this repetition reduction.
entry_2_1_332_added_a_preskillshellcommand_hook_event_that_can_refuse_a_skill_or_com Added a PreSkillShellCommand hook event that can refuse a skill or command’s inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start official-public-changelog-entry Added a PreSkillShellCommand hook event that can refuse a skill or command’s inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start
entry_2_1_332_added_an_opentelemetry_assistant_response_event_for_text_claude_sends_ Added an OpenTelemetry assistant_response event for text Claude sends through SendUserMessage or Cowork’s message tool, when response logging is on official-public-changelog-entry Added an OpenTelemetry assistant_response event for text Claude sends through SendUserMessage or Cowork’s message tool, when response logging is on
entry_2_1_332_changed_opentelemetry_tool_input_to_show_only_the_length_of_text_sent_ Changed OpenTelemetry tool_input to show only the length of text sent through SendUserMessage or Cowork’s message tool, unless response logging is on (OTEL_LOG_ASSISTANT_RESPONSES=1) official-public-changelog-entry Changed OpenTelemetry tool_input to show only the length of text sent through SendUserMessage or Cowork’s message tool, unless response logging is on (OTEL_LOG_ASSISTANT_RESPONSES=1)
entry_2_1_332_hook_wildcard_long_command_freeze 权限规则或 Hook 条件多个通配符匹配长命令时的冻结修复(2.1.332) official-changelog-documented 修复含多个通配符的权限规则或 Hook 条件对长命令做检查时的冻结问题。
entry_2_1_332_hook_unending_output_freeze_memory Hook 无结束输出导致的冻结与内存失控修复(2.1.332) official-changelog-documented 修复 Hook 持续打印无结束输出时多数场景下的冻结与内存失控。
entry_2_1_332_hook_missing_end_output_freeze_memory Hook without end output: freeze and runaway memory use fixed configuration-documentation 修复多数情况下 Hook 输出缺少结束标记导致的冻结与内存失控;记录 Hook 生命周期稳定性边界,不收录内部进程内存实现。
entry_2_1_331_forked_skill_hook_reason_not_shown_twice 2.1.332 PreToolUse hook ask reason no longer duplicated for forked skill official-changelog-entry Fixed a PreToolUse hook's reason for asking not showing on terminal Read, Grep, Glob, Edit and Write prompts; the forked-skill reason also no longer appears twice.
entry_2_1_332_hook_exit2_stdout_json_schema_validation Hook stdout JSON 未过 schema 校验时 exit code 2 按文档阻塞 official-documentation-entry 修复 Hook 退出码 2 在其 stdout JSON 未通过 schema 校验时未按文档阻塞回合的问题。
entry_2_1_212_hook_dir_double_star_condition_single_segment_match 单段 dir/** 的 hook if 条件只匹配 /dir;任意深度用 /dir/ official-documentation-entry 单段 dir/** 的 hook if 条件改为只匹配 /dir;需要任意深度匹配应写 /dir/。deny/ask 权限规则保持任意深度匹配。
entry_2_1_212_sessionstart_hook_source_fork_not_resume 会话作为 fork 启动时 SessionStart hook 报告 source 为 fork 而非 resume official-documentation-entry SessionStart hooks 在会话作为 fork 开始时报告来源 "fork",而不是 "resume"。
entry_2_1_332_pre_skill_shell_command_hook_event PreSkillShellCommand hook event (2.1.332) proprietary-all-rights-reserved Hook 事件,在技能或命令加载时可拒绝其内联 shell 命令;旧版本 settings 命名该事件会在启动时弹对话框。
entry_2_1_331_ide_autoconnect_question_yes_first_order /ide auto-connect and subagent clear/compact/rewind question Yes-first order (2.1.331) proprietary-all-rights-reserved 停止自动连接的 /ide 提问以及子代理视图中 /clear、/compact、/rewind 提问的选项顺序调整为 Yes 在前。
entry_2_1_331_stop_hooks_transcript_last_reply_subagent_stop_wait Stop and SubagentStop hooks wait for transcript last reply (2.1.331) proprietary-all-rights-reserved 读取 transcript 的 Stop hooks 在 Claude Desktop 中不再缺失最后回复;SubagentStop hooks 同样等待该回复。
entry_2_1_331_permissionrequest_skill_allow_rule_local_settings_save PermissionRequest hooks preserve Skill(name:*) allow rules outside local settings (2.1.331) proprietary-all-rights-reserved PermissionRequest hooks 不再把 Skill(name:*) 允许规则只保存在本地设置之外。
entry_2_1_330_prompt_hook_model_alias_field_accept Prompt hooks accept haiku/sonnet model aliases in model field (2.1.330) proprietary-all-rights-reserved prompt hooks 的 model 字段接受 haiku、sonnet 等模型别名。
entry_2_1_332_preskill_shell_command_hook_startup_dialog_old_version PreSkillShellCommand hook on 2.1.331 and older opens start dialog when named in settings (2.1.332) official-public-changelog-entry PreSkillShellCommand 可在技能或命令加载时拒绝其内联 shell 命令;在 2.1.331 及更早版本,settings 文件命名该事件会在启动时弹出对话框。
entry_2_1_331_sessionstart_hook_synced_plugin_cloud_session SessionStart hooks from synced plugins now run in new cloud sessions (2.1.331) official-public-changelog-entry 同步插件携带的 SessionStart hook 在新建云端会话中正常运行。
entry_2_1_331_hooks_ran_summary_excludes_internal_callbacks N hooks ran summary and debug matched-hooks count exclude internal callbacks (2.1.331) official-public-changelog-entry “N hooks ran” 汇总与调试日志匹配 hook 计数不再计入 Claude Code 内部回调,一个配置 hook 不再显示为两个。
entry_2_1_330_exitplanmode_missing_outdated_plan_hook_sdk_callback Hooks and SDK permission callbacks see missing or outdated plan on ExitPlanMode when plan written in same response (2.1.330) official-public-changelog-entry 同一响应内写出计划时,ExitPlanMode 上 hook 与 SDK 权限回调不再看到缺失或陈旧计划。
feat_21329_hooks_managed_settings_load_warning 托管设置中 Hooks 加载失败时,对话与 Claude Desktop 等非交互宿主给出警告 official-public-documentation 2.1.329:当托管设置里的 hooks 加载失败时,对话界面以及 Claude Desktop 等非交互宿主会显示警告。挂到 Hooks 生命周期锚点。
feat_21329_stop_hooks_monitor_classification Stop 与 SubagentStop hook 的 background_tasks 中 Monitor 脚本归类为 monitor 而非 shell official-public-documentation 2.1.329:Stop 与 SubagentStop hooks 在 background_tasks 列表中把 Monitor 脚本标记为 monitor,不再标记为 shell。挂到 Hooks 生命周期与 Monitor 锚点。
fix_permission_request_hooks_not_firing_print_mode PermissionRequest hooks fire in --print mode instead of being skipped official-public-changelog-entry PermissionRequest hooks run in --print mode; the permission-prompt lifecycle callback is not omitted there.
entry_2_1_317_sdk_hook_onfailure_block_callback_failure_blocks_action Agent SDK Hook 回调 onFailure: "block":回调失败时阻断动作,而非放行运行 official-document-derived-entry Agent SDK Hook 回调支持 onFailure: "block";Hook 回调失败时阻断对应动作,不再让动作在失败未处理时继续运行。
fix_hook_asyncrewake_missing_file_once asyncRewake hook with missing script reported once instead of repeated wake notifications official-public-docs-derived Official changelog: a hook configured with asyncRewake whose script file is missing no longer wakes Claude over and over with found-issues notifications; the broken hook is reported once. Boundary: hook script availability and hook event reporting; internal hook execution details not recorded.
fix_mcp_tool_hooks_wait_connect_timeout mcp_tool hooks on blocking events wait for the MCP server to connect, up to the MCP connect timeout official-public-docs-derived Official changelog: mcp_tool hooks on blocking events (PreToolUse and similar) are no longer skipped while their MCP server is still connecting; they now wait for it, up to the MCP connect timeout. Boundary: hook-to-MCP ordering; hook script internals excluded.
entry_2_1_309_hooks_module_nested_too_deep_error_names_file Hook module nested too deep to load now reports the file name instead of a bare stack-overflow message official-public-docs-derived Official changelog improvement: when a hooks module is nested too deeply to load, the error names the offending file rather than showing a bare stack-overflow message. Records a hook loading diagnostic boundary; hook event order and module resolution follow official hooks documentation.
entry_2_1_305_startup_hooks_spinner_sessionstart_setup VS Code startup-hooks spinner status with screen-reader announcement shown while SessionStart or Setup hooks run official-public-docs-derived Official changelog addition: VS Code shows a running start-up hooks spinner status, with a screen-reader announcement, while SessionStart or Setup hooks execute. Records a hook startup UI accessibility surface; hook event semantics follow official hooks documentation.
entry_2_1_304_mod_tool_check_decider_person Mod tool.check answer decider: "person" allows only the permission dialog or a host callback to approve; the ask is refused with the mod's reason when nobody can be asked official-public-docs-derived Official changelog addition: a mod's tool.check answer can set decider to "person"; only the permission dialog or a host callback may approve the ask, and if nobody can be asked it is refused with the mod's reason. Records a mod permission-decision boundary; mod hook events and settings follow official plugin/mod documentation.
entry_2_1_304_mod_tool_check_isreadonly_flag Mod tool.check event exposes e.isReadOnly, set when the tool call is read-only official-public-docs-derived Official changelog addition: a mod's tool.check event carries e.isReadOnly, set when the tool call is read-only. Records a read-only tool-call descriptor on the mod event; mod event contract and tool classification remain official documentation scope.
entry_2_1_304_hooks_settings_read_layers_rewrite_merged Mod settings.read hooks receive each settings layer and rewrite the merged settings, so a managed mod can make an organization setting a ceiling, including cleanupPeriodDays official-public-docs-derived Official changelog change: mods' settings.read hooks receive each settings layer and rewrite the merged settings; a managed mod can thereby cap an organization setting, including the cleanupPeriodDays retention sweep value. Records the settings-layer hook boundary; precedence and managed-settings scope follow official plugin documentation.
entry_2_1_302_prompt_agent_hooks_max_twelve_concurrent Prompt and agent hooks run at most 12 of one event concurrently; the rest wait their turn official-public-docs-derived Official changelog change: prompt and agent hooks cap concurrent execution of a single event at 12; remaining hooks wait their turn. Records a hook concurrency queue boundary; hook event order and failures follow official hooks documentation.
entry_2_1_301_mod_input_multiline_text_rows Mod Input rows add a multiline terminal text field: Enter submits; Shift+Enter or a backslash before Enter starts a new line official-public-docs-derived Official changelog addition: a mod's Input component gains rows for a multiline terminal text field; Enter submits, and Shift+Enter or a backslash before Enter inserts a new line. Records a mod UI input surface; mod component contract follows official plugin/mod documentation.
entry_2_1_330_approve_prompt_text_images_dropped_command_failed Text and images added when approving a permission prompt are dropped when the approved command or tool then fails changelog-derived 官方 changelog 2.1.330:审批权限提示时附加的文本与图片在获批命令或工具随后失败时被丢弃。条目记录权限提示附加输入留存边界。
entry_2_1_330_sessionstart_env_vars_lost_p_continue Environment variables written by a SessionStart hook are lost with claude -p --continue changelog-derived 官方 changelog 2.1.330:SessionStart hook 写入的环境变量在 claude -p --continue 时丢失。条目记录启动钩子环境变量传递边界。
entry_2_1_328_mcp_tool_hook_onfailure_block mcp_tool hook supports onFailure: block so a failing hook blocks the action changelog-derived 官方 changelog 2.1.328:mcp_tool hooks 与命令、HTTP hooks 一样支持 onFailure: block;hook 调用失败时阻止对应动作。
entry_2_1_330_sessionstart_hook_env_vars_lost_p_continue SessionStart Hook 写出的环境变量在 claude -p --continue 中不再丢失 changelog-derived 官方 changelog 2.1.330:SessionStart Hook 写出的环境变量在 claude -p --continue 中曾丢失;修复环境变量传递。边界:Hook 事件输出到会话环境的行为,不收录进程环境内部结构。
env_hook_effort_level CLAUDE_EFFORT Hook 可见的当前推理强度级别环境变量 official-doc-derived Hook 脚本环境中 $CLAUDE_EFFORT 携带本次运行的 effort 级别;若级别在启动后变更,可能先显示即将运行的级别。与 hook_event_name、agent_id、agent_type 同属 Hook 输入环境。
entry_2_1_331_subagent_stop_hook_wait_last_reply Stop / SubagentStop 钩子等待最后一条回复 configuration-documentation 官方 changelog 2.1.331:读取转录的 Stop 钩子在 Claude Desktop 原先缺失最后一条回复;SubagentStop 钩子现在同样等待该回复。边界:只调整钩子输入等待时机,不改变钩子拒绝或继续的退出码行为。
entry_2_1_332_preskill_shell_command_hook PreSkillShellCommand 钩子事件:技能/命令加载时拒绝其内联 shell 命令 official-document-derived-entry 技能或命令加载阶段触发的 Hook;可拒绝其内联 shell 命令;旧版本设置文件命名该事件会在启动时打开对话框。
entry_2_1_332_mod_turn_step_hook_interrupt_label Mod turn.step 钩子等待中被中断显示为 Interrupted 而非 user-cancel 错误 official-document-derived-entry 回合在 Mod 的 turn.step 钩子等待期间被打断时,提示为 Interrupted,不再显示 user-cancel 错误。
entry_2_1_332_pretooluse_hook_reason_not_terminal PreToolUse 钩子拒绝原因在终端 Read/Grep/Glob/Edit/Write 提示上显示修复 official-document-derived-entry PreToolUse 钩子请求审批的原因此前未在终端 Read、Grep、Glob、Edit、Write 提示上显示,现已修复。
doc_hook_prompt_based Prompt-based Hook(type: prompt):单轮模型评估返回 JSON 决策 official-public-docs-derived Prompt Hook(type: prompt)把 Hook 输入提示发给 Claude 模型做单轮评估,模型以 JSON 返回决策;与 Agent Hook 并列于命令、HTTP、MCP 工具处理器之外。默认超时 30 秒;支持的事件集合与 Agent Hook 相同,PermissionRequest 除外。
doc_hook_agent_based Agent-based Hook(type: agent):派生子代理多轮核查后返回 ok 决策 official-public-docs-derived Agent Hook(type: agent)类似 Prompt Hook,但派生一个可使用 Read、Grep、Glob 等工具的子代理检查文件或测试输出;子代理最多 50 回合后返回结构化 { ok: true/false } 决策,ok:false 按 Prompt Hook 的 continueOnBlock 阻塞处理。Agent Hook 默认超时 60 秒,无 continueOnBlock 字段,不支持 impossible 字段;行为实验性,生产流程优先命令 Hook。
setting_decision_reason decision_reason 权限决策原因 configuration-documentation 权限请求自动拒绝时记录的决策原因;本会话无审批界面。
doc_sdk_canusetool_dummy_pretooluse_hook_workaround Dummy PreToolUse hook workaround keeps the can_use_tool approval stream open official-public-docs-derived In the Agent SDK approval callback flow, a no-op PreToolUse hook returning continue_: true is registered so the stream remains open while can_use_tool processes a tool approval request. This is a host-application streaming workaround only; it does not grant tool access, bypass approval, or change the underlying permission decision.
hook_adk_callback ADK agent lifecycle callbacks official-documentation-capability ADK 回调在代理执行的不同阶段触发;BaseAgent 上有代理前后回调,LlmAgent 另提供模型与工具相关回调。回调可校验会话状态、记录运行开始,或在核心逻辑执行前返回跳过内容;不同 SDK 语言的方法名与返回类型以官方 API 文档为准。
doc_hook_monitor_command_matcher Match Monitor commands:Monitor 命令 Hook 匹配器语义 official-doc-derived 官方 Hooks 文档:匹配器包含 Monitor(如 Bash|Monitor、.* 或空匹配器)时,Hook 收到 Monitor 调用自身输入,allow 与 updatedInput 生效。if 条件应命名 Monitor(例如 Monitor(tail *)),遵循 Bash 匹配规则;若 if 命名 Bash,Hook 仍收到 Monitor 输入,但 allow 与 updatedInput 不生效;Bash 匹配器只运行于 Bash 调用。
doc_hook_post_tool_use_classifier_context classifierContext:PostToolUse 自动模式分类器结果注解 official-doc-derived 官方 Hooks 文档:PostToolUse 的 hookSpecificOutput.classifierContext 向 Auto 模式分类器补充工具结果上下文说明。该字段只是结果注解与补充证据,本身不授予审批、不替代权限决策,也不改变 Hook 的 allow/deny/ask/defer 优先级。
doc_hook_defer_tool_call_later_semantics Defer a tool call for later:延迟工具调用决策语义 official-doc-derived 官方 Hooks 文档:defer 决策把工具调用推迟到后续处理。交互式会话中该结果仅记录警告并被忽略;多个工具调用同时运行时,defer 同样带警告被忽略,工具回到普通权限流程继续执行。条目只记录公开决策行为与降级边界,不收录排队调度内部实现。
doc_mod_guard_filtered_prompt_skill_session_hooks Guard 跳过的用户 Mod 提示、技能、归因与会话钩子事件组(guard-filtered prompt, skill, attribution and session hook events) official-doc-derived 官方 Mod 组织管理文档:sec-default@builtin guard 加载时,用户安装 Mod 注册在 prompt.compose、prompt.section、prompt.context、prompt.attachment、skill.prompt、attribution.text、session.compact、settings.read 以及 session.append(door=attachment/hook-context/compaction)行上的钩子不会运行;v2.1.299 及以后 /plugin 的 Errors 标签页逐条列出这些被跳过的钩子。只有计入组织自有的 Mod 才能运行这些钩子;把 guard 从 prependPlugins 移除会恢复这些钩子,同时失去全部 guard 防护。classic. 设置钩子事件已单独建模;本条只归集其余被过滤事件与边界,不建模内部会话行存储或队列实现。
doc_otel_hook_registered_event claude_code.hook_registered: session-start inventory emitted once per configured hook official-public-docs-derived 官方 monitoring-usage 文档:会话启动时为每个已配置 Hook 记录一次,用于盘点车队中活跃 Hook;与每次执行的 hook_execution_start、hook_execution_complete 事件互补。
doc_otel_hook_execution_start_event claude_code.hook_execution_start: logged when one or more hooks begin executing for a hook event official-public-docs-derived 官方 monitoring-usage 文档:一个或多个 Hook 针对某 Hook 事件开始执行时记录;与 hook_execution_complete 成对,描述 Hook 执行起点。
doc_code_mode_repl_posttooluse_output_record Code Mode PostToolUse REPL hook reads tool_response output record (code, result, stdout, stderr, toolsUsed); redaction returns a changed updatedToolOutput copy official-public-document 官方 Code Mode 文档:检查或脱敏代码返回内容时,编写匹配 REPL 工具的 PostToolUse Hook;同一 Hook 在后台代码结束或代码抛出错误时同样运行。Hook 从 tool_response 读取输出记录,公开字段包含 code、result、stdout、stderr 与 toolsUsed;脱敏时返回 tool_response 的修改副本作为 updatedToolOutput。条目只记录 Hook 输入输出记录结构与返回通道,不收录示例机密值或内部脚本。
doc_code_mode_poll_event_hook_source_boundary poll_event source in hook input: earlier-version hooks should not block on background poll events; v2.1.328+ UserPromptSubmit hooks no longer receive Code Mode output official-public-document 官方 Code Mode 兼容边界:旧版本依赖 Hook 检查代码输出时,应先把检查迁移到 PostToolUse Hook,再升级到 v2.1.328 或更新版本;若停留在旧版本,Hook 不应在输入 source 为 poll_event 的后台轮询事件上阻断。v2.1.328 及之后 UserPromptSubmit Hook 不再接收代码输出。条目记录公开版本兼容条件与 Hook 事件来源边界,不推断未公开的后台事件调度算法。

MemoryFile

ID 名称 许可证状态 摘要
mem_agents_md AGENTS.md 指令文件 capability-derived 供其他编码代理使用的指令文件;无 CLAUDE.md 时由 Claude Code 读取,可与 CLAUDE.md 同时加载
mem_local_md CLAUDE.local.md 本地私有指令 capability-derived 不纳入版本控制的项目私有偏好;与 CLAUDE.md 同级加载,建议加入 .gitignore
mem_topic_file Auto Memory 主题文件 capability-derived 按主题拆分的记忆条目(user/feedback/project/reference);启动不加载,按需由文件工具读取
session_transcript_storage Transcript 存储位置与保留配置 configuration-documentation 默认 ~/.claude/projects//.jsonl;存储位置、项目目录名、保留天数与本地 GC 可经环境变量或 settings 配置;条目格式为内部实现,不建议脚本直接解析
mem_memory_md_index MEMORY.md 记忆索引文件 local-markdown-files 记忆目录索引,每条记忆一行;会话启动加载前 200 行或 25KB;详细笔记拆进主题文件,索引保持精简
mem_frontmatter_timestamp 记忆文件 frontmatter 与 modified 时间戳 local-markdown-files YAML frontmatter 记录记忆类型与 modified ISO8601 时间戳;时间戳标明事实新旧,供回读时判断时效性
mem_subagent_memory 子代理独立 Auto Memory 目录 local-markdown-files 主会话 auto memory 默认不载入子代理;fork 例外继承父对话与 system prompt;子代理自身记忆由 memory 字段开启,独立目录
settings_state_dotclaude ~/.claude.json 客户端自持状态文件(账号/MCP/项目信任/全局配置键) configuration-documentation 客户端自行写入,用户无需编辑;保存账号详情、MCP 服务器配置、每项目信任决策与 /config 写入的全局配置键
mem_custom_directory autoMemoryDirectory 自定义记忆目录设置 configuration-documentation settings.json 经 autoMemoryDirectory 指定记忆目录,取值须绝对路径或 ~/ 开头;项目级设置在工作区信任规则下生效;blockReadsOutsideWorkingDirectories 开启时不加载仓库设置所选目录
mem_toggle_scope Auto Memory 开关作用域与限制(/memory 切换 / autoMemoryEnabled / 环境变量) configuration-documentation 本地会话默认开启;自托管环境默认关闭;后台会话与被 Claude 会话派生的子会话内无法重新开启;/memory 切换写入用户设置,也可按项目关闭或经 CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 禁用
mem_project_instructions_mode 项目指令来源模式(claude-md / claude-md-and-agents-md / managed-only) configuration-documentation /config 中 Project instructions 决定优先读取 CLAUDE.md 还是 AGENTS.md;模式为 claude-md 或 managed-only 时不加载 AGENTS.md;版本与受限环境影响可用范围
mem_symlink_import CLAUDE.md 引用 AGENTS.md:@ 导入与符号链接约束 configuration-documentation CLAUDE.md 内 @AGENTS.md 先读导入文件再读其余指令;符号链接方案下 Edit/Write 拒绝穿链接写入;Windows 克隆场景建议使用导入而非链接
setting_global_config_file 全局配置键载体 ~/.claude.json(账号/MCP/项目状态/全局键) configuration-documentation ~/.claude.json 由 Claude Code 自持写入:账号详情、MCP 配置、每项目信任状态与 /config 全局配置键;全局配置键只能从此文件生效
feat_memory_critical_warn 内存临界占用告警与安全释放步骤 capability-derived 2.1.274 新增:内存使用进入临界时显示可见告警,给出释放内存或安全重启的步骤
fix_path_scoped_rules_load_on_edit Write/Edit 触发路径作用域规则与嵌套 CLAUDE.md 加载 changelog-derived 2.1.288 修复:Write 或 Edit 在路径作用域内创建或修改文件时,.claude/rules 与嵌套 CLAUDE.md 文件随之加载;此前仅 Read 触发。
mem_review_md REVIEW.md 代码评审指导文件 configuration-documentation 供 Code Review 遵循的仓库指导文件;只读取基准分支或默认分支上的 REVIEW.md,不采用 PR 自身改动带来的版本;与 CLAUDE.md 一起细化评审关注点。
fix_feedback_transcript_redacted_json_lines /feedback 导出 transcript 脱敏后 JSON 行有效性修复 proprietary-all-rights-reserved /feedback 保存到磁盘的 zip 中,会话 transcript 在密钥脱敏后不再包含无效 JSON 行。
fix_plan_file_fork_rewind_copy_warning Fork/Rewind 计划文件复制失败警告边界 official-public-documentation Fork 对话曾覆盖原对话计划文件;无法复制计划的 fork 或 rewind 现在显示警告,避免静默覆盖。
fix_concurrent_claude_json_save_corrupt_report 并发会话保存 ~/.claude.json 时不再误报损坏 proprietary-all-rights-reserved 另一个会话正在保存 ~/.claude.json 时,读取方曾报告配置损坏;修复避免并发保存期间的错误损坏判定。
doc_subagent_memory_scope_field Subagent memory persistent scope field (user / project / local) official-public-documentation-entry 子代理 memory 字段选择 user/project/local 持久记忆作用域并开启跨会话学习;该作用域与主会话 Auto Memory 目录分开建模。
mem_rules_directory .claude/rules/ 模块化规则文件目录 official-document-derived-entry 项目指令按主题拆分为 Markdown 规则文件;目录递归发现子目录;无 paths frontmatter 的规则启动时随 CLAUDE.md 同等优先级加载;任务专属指令应改用 Skill 以避免常驻上下文噪声。
mem_path_scoped_rules paths frontmatter 路径作用域规则 official-document-derived-entry 规则用 YAML frontmatter paths 字段限定匹配文件;Read/Write/Edit 或等价 Bash 读取触发;glob 模式相对规则基础目录解析;paths 是规则唯一读取字段;超出 1000 模式与 4 MiB 预算时按未展开字面量处理。
mem_rules_symlink_share 规则目录跨项目符号链接共享 official-document-derived-entry .claude/rules/ 目录支持符号链接以复用共享规则集;循环符号链接被检测并优雅处理;外部链接目录首次导入受项目信任与审批边界约束,用户级规则在非 Cowork 会话按个人配置信任加载。
mem_additional_dir_claude_md 附加目录 CLAUDE.md 加载开关 official-document-derived-entry --add-dir 默认不加载附加目录指令;CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 时加载附加目录 CLAUDE.md、.claude/CLAUDE.md、CLAUDE.local.md 与 rules;paths 作用域规则除外;local 来源被 --setting-sources 排除时跳过 CLAUDE.local.md。
mem_policy_scope_file 托管策略 CLAUDE.md(macOS/Linux/Windows 系统路径) configuration-documentation 组织 IT/DevOps 管理的最宽作用域指令,按平台位于 macOS /Library/Application Support/ClaudeCode、Linux/WSL /etc/claude-code、Windows Program Files 路径;与用户级、项目级、本地级指令分层加载。
mem_managed_claude_md_content_key 托管 CLAUDE.md:managed-settings.json 的 claudeMd 内容键 configuration-documentation managed-settings.json 的 claudeMd 键可直接写入组织级指令,无需单独部署系统路径 CLAUDE.md;该内容只在托管/策略设置中生效,用户、项目或本地设置中的同名键无效。
mem_claude_md_excludes_globs claudeMdExcludes:按绝对路径 glob 跳过祖先 CLAUDE.md official-document-derived-entry claudeMdExcludes 以路径或 glob 模式跳过大型 monorepo 中无关的祖先 CLAUDE.md;模式按绝对路径匹配,可在用户、项目、本地或托管层配置,数组跨层合并;不能排除托管 CLAUDE.md。
mem_at_path_import_depth @path 导入语法:递归引用最多四跳 official-document-derived-entry CLAUDE.md 用 @path/to/import 导入附加文件;相对路径按引用文件解析而非工作目录,导入文件可递归引用,最大深度为四跳;含空格路径需反斜杠转义,引号包裹路径不会被导入。
change_automemory_off_background_or_tool_spawned_session Auto-memory 不能从后台会话或 Claude Code 自有工具启动的会话开启;关闭仍允许 changelog-derived /memory 的自动记忆开关改动:后台会话以及由 Claude Code 自有工具启动的会话不能开启 Auto-memory;在这些环境中关闭开关仍然有效。
doc_context_agents_md_loads_in_place_of_claude_md AGENTS.md 可在项目指令上下文中等位替代 CLAUDE.md 加载 official-doc-derived 会话启动时 CLAUDE.md、自动记忆、MCP 工具名与技能描述进入上下文;AGENTS.md 文件可在该项目指令位置替代 CLAUDE.md 加载,额外输出风格或 --append-system-prompt 文本仍按自身规则加入。
doc_memory_import_at_path_recursive_depth CLAUDE.md @path 导入支持递归路径与四跳深度 official-doc-derived CLAUDE.md 使用 @path/to/import 语法导入文件;相对路径相对当前导入文件解析,导入文件可递归继续导入,最大深度为四跳;含空格路径需反斜杠转义,引号包裹的路径不会被导入。
doc_memory_project_instructions_file_selector Project instructions 配置选择 CLAUDE.md、AGENTS.md 或二者共同加载 official-doc-derived 会话内 /config 的 Project instructions 可选择只读 CLAUDE.md、CLAUDE.md 与 AGENTS.md 共同加载、仅 AGENTS.md 或托管受限模式;默认在缺少 CLAUDE.md 及 CLAUDE.local.md 时读取 AGENTS.md。重复加载的 AGENTS.md 会被跳过。
doc_memory_agents_md_hook_import_add_dir_difference 设置读取的 AGENTS.md 与 CLAUDE.md 在 Hook、附加目录和外部导入审批上的差异 official-doc-derived 通过 Project instructions 读取的 AGENTS.md 不触发 InstructionsLoaded Hook;--add-dir 附加目录下其 AGENTS.md 不随 CLAUDE.md 加载;工作目录外 @path 导入需要项目已批准外部导入。CLAUDE.md 导入或符号链接到的 AGENTS.md 仍按普通导入规则触发对应行为。
doc_memory_shared_file_cross_tool_migration 跨编码工具共享 AGENTS.md 与 /init、/import 指令迁移边界 official-doc-derived 项目同时存在 CLAUDE.md 或项目指令设为 claude-md 时,可用 CLAUDE.md 内 @AGENTS.md 导入保持共享;符号链接也是可选方式。/init 读取 Cursor、Copilot 等规则并生成 CLAUDE.md,启用新版初始化标志后可纳入 AGENTS.md、Devin、Windsurf、Cline 规则;/import 复制指令并携带 MCP server、命令、子代理与技能。
doc_memory_memory_command_file_view_edit /memory 命令列出用户与项目记忆文件并支持打开新建和切换自动记忆 official-doc-derived /memory 列出 CLAUDE.md、CLAUDE.local.md 及其他用户/项目作用域记忆文件,包含尚未创建的文件;可切换自动记忆、打开自动记忆目录,选择不存在的文件先创建;GUI 编辑器可与会话并行使用,终端编辑器会接管终端直到退出。
doc_rules_paths_frontmatter_file_scope .claude/rules files with paths frontmatter scoped to matching files official-document-derived-entry Overview documentation: rules files under .claude/rules can use paths frontmatter so language- or directory-specific guidance loads only when Claude works with matching files; this keeps CLAUDE.md focused on core conventions.
doc_feature_claude_md_skill_composition CLAUDE.md + Skills composition: always-on rules versus on-demand reference material official-public-docs-derived CLAUDE.md holds always-on project conventions; skills retain reference material loaded on demand when relevant, separating persistent rules from reusable specialized procedures.
entry_2_1_332_worktree_resume_rules_files_not_resent CLAUDE.md and rules files sent only once after EnterWorktree or resume under .claude/worktrees official-public-docs-derived Official changelog fix: CLAUDE.md and rules files were sent to the model a second time in most cases after a session moved into a worktree under .claude/worktrees with EnterWorktree, or resumed there. The entry records memory/rules-file injection dedup boundary across worktree transitions.
mem_env_additional_dirs_claude_md CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD 附加目录记忆加载 official-public-documentation 开启后加载 --add-dir 目录中的 CLAUDE.md、.claude/CLAUDE.md、CLAUDE.local.md 与匹配规则;带 paths 字段的路径作用域规则仍排除。
mem_env_new_init CLAUDE_CODE_NEW_INIT /init 交互式初始化流程 official-public-documentation 启用后 /init 询问要创建的 CLAUDE.md 文件、技能和钩子,经子代理探索并在写文件前呈现可审阅提案;变量只改变 /init 流程。
setting_copy_on_select copyOnSelect 关闭鼠标选择文本自动复制 public-documentation-setting-no-source-code Global config key in ~/.claude.json; turns off automatic copying of mouse-selected text in fullscreen rendering and agent view.
setting_pr_status_footer_enabled prStatusFooterEnabled 关闭页脚 PR 评审状态徽章与检查请求 public-documentation-setting-no-source-code Global config key; turns off the prompt footer PR review-status badge and the pull-request check behind it.
doc_large_codebase_rules_versus_per_directory_claude_md Per-directory rules files versus layered CLAUDE.md: path-scoped rules complement directory conventions official-doc-derived Official large-codebase and rules documentation: per-subdirectory CLAUDE.md files carry directory conventions on demand, while .claude/rules files with paths frontmatter scope a rule to matching source files. The rules directory memory anchor already records paths frontmatter; this entry records the large-codebase distinction that rules attach to file-match paths instead of inheriting across directories the way layered CLAUDE.md memory does.
fix_vscode_ntfs_memory_output_style_creation 2.1.332 VS Code NTFS creation of memories and project output styles fixed on Windows official-public-changelog Changelog fix: forking a conversation, opening and saving memories, and creating project output styles no longer fail on NTFS drives in VS Code 1.101/1.102 on Windows 11 24H2+. Boundary: filesystem creation behavior and Windows file-system compatibility; it does not expose internal file locking or plugin storage implementation.
review_md_at_included_files_rule REVIEW.md @ line includes a root-side file in place of that line official-public-docs-derived Official customize documentation: put an @ file-name line in root REVIEW.md; Code Review replaces that line with the included file contents. Included files belong beside REVIEW.md in the repository root and match the name exactly, including case, without spaces.
review_md_subdirectory_exclusion_limit REVIEW.md non-skill include paths from subdirectories are excluded official-public-docs-derived Official customize documentation: except for a skill file, a subdirectory path such as @docs/review-rules.md is not included. The root REVIEW.md lists files in one level; an @ line inside an included file or subdirectory REVIEW.md remains plain text, as does a Markdown link.
review_md_skill_source_copy_boundary SKILL.md included in REVIEW.md requires copied guidance, not direct skill runtime execution official-public-docs-derived Official customize documentation: to follow skill guidance, copy guidance from another file under .claude/ or from a bundled, personal, or plugin skill into a file beside REVIEW.md; Code Review cannot include those skill sources directly and does not run skills. The committed SKILL.md path follows .claude/skills//SKILL.md and remains under its size/count rules.
review_instructions_base_default_branch_boundary REVIEW.md and included files read from base or default branch, never PR changes official-public-docs-derived Official customize documentation: protected default branch reads default-branch files; a ruleset-protected base branch reads that base branch; unprotected defaults read the default branch; unverifiable protection reads none. The review and included files come from the same commit, never from the pull request's own changes.
managed_service_reads_both_instructions_local_claude_md_only Managed review reads REVIEW.md and CLAUDE.md; local review follows CLAUDE.md only and not REVIEW.md official-public-docs-derived Official local review documentation: the local review follows CLAUDE.md, including in a non-interactive -p run, and does not read REVIEW.md; REVIEW.md configures the managed Code Review service on GitHub pull requests. This separates managed-service review guidance from local session review input.
doc_security_review_rule_file_scope_locations_size_cap Security guidance and pattern files load from user/project/local scopes; concatenated guidance capped at 8 KB official-public-docs-derived claude-security-guidance.md and security-patterns.yaml are checked independently in user (~/.claude), project (.claude), and project-local (.claude/*.local.md) locations. Existing locations load and concatenate, with an 8 KB guidance-file cap; administrators may distribute organization rules through the user-scope file via device management.
fix_dotclaude_json_concurrent_save_not_corrupted 另一会话保存期间 ~/.claude.json 不再被误报损坏 official-public-documentation 2.1.332 修复:当另一个会话正在保存 ~/.claude.json 时,文件曾被报告为 corrupted;修复覆盖并发保存期间的状态文件读取边界。
mem_spec_md SPEC.md specification file produced by interview workflow and referenced for review configuration-documentation Official best-practices workflow: Claude can interview the user until answers form a spec, then write it to SPEC.md. Once SPEC.md exists, a fresh session builds from the written definition of done; a reviewer can compare the rate-limiter diff against SPEC.md, verify requirements and edge-case tests, and report correctness gaps while skipping style. The entry records the documented repository specification file, not an internal memory format.
glossary_claude_directory .claude directory: project-scoped settings, hooks, skills, subagents, rules and auto memory official-public-docs-derived 术语表定义:项目根 .claude/ 目录存放 Claude Code 读取的项目级配置——settings、hooks、skills、subagents、rules 与 auto memory;用户级默认配置位于 ~/.claude/。
entry_2_1_332_vscode_compaction_summary_own_prompt_history [VSCode] Fixed the compaction summary showing as your own prompt, and in Rewind and prompt history, after reloading, resuming or forking a compacted conversation official-public-changelog-entry 压缩摘要在重载、恢复或 Fork 压缩会话后不再在 Rewind 与提示历史中显示为用户自身提示。
mem_gemini_md GEMINI.md project context file capability-derived GEMINI.md 项目上下文文件,为 Gemini CLI 提供持久项目指令与上下文;层级与加载规则以官方文档为准。
entry_2_1_332_memory_frontmatter_inline_hash_truncation 记忆文件 frontmatter 值在内联 # 处不再被静默截断 official-documentation-entry 修复保存记忆文件时,frontmatter 值在内联 # 字符处被静默截断的问题。
entry_2_1_330_claudemd_memory_html_comment_link_reference_drop CLAUDE.md and memory files keep link refs beside HTML comment (2.1.330) proprietary-all-rights-reserved 含 HTML 注释的 CLAUDE.md 与记忆文件中的链接引用定义不再被丢弃。
doc_rules_user_level_preferences_file User-level rules files preferences.md and workflows.md under ~/.claude/rules/ apply across every project official-public-docs-derived Official memory documentation: personal rules live in ~/.claude/rules/ and apply to every project on the machine; the tree names preferences.md for personal coding preferences and workflows.md for preferred workflows. User-level rules load before project rules, so a project rule appears later in context; the two sets do not override each other. The entry hangs off the existing rules-directory anchor.
entry_2_1_325_temp_scratchpad_folder_kept_files_note 临时草稿文件夹提示:需保留的文件应移出可清空的临时 scratchpad 目录 official-document-derived-entry Claude 的指令提示会说明:希望保留的文件应移出临时 scratchpad 文件夹;该目录可被清空,不保证持久留存。
mem_gemini_memport Gemini CLI Memport @-import processor for GEMINI.md official-documentation-memory Memport(Memory Import Processor)通过 @file.md 语法把其他文件内容导入 GEMINI.md,将大型项目上下文拆分为可复用的模块化片段;由 CLI 在加载项目上下文时解析。
doc_memory_default_project_directory_worktree_share 默认自动记忆目录 ~/.claude/projects//memory:同一仓库 worktree 与子目录共享 local-markdown-files 每个项目使用默认自动记忆目录 ~/.claude/projects//memory; 路径由 Git 仓库派生,同一仓库内所有 worktree 与子目录共享一个自动记忆目录。目录包含 MEMORY.md 索引与按主题拆分的记忆文件。CLAUDE_CODE_PROJECT_DIR_NAME 与 autoMemoryDirectory 是另行建模的覆盖入口;本条目不替代其自定义路径规则。
doc_desktop_scheduled_task_prompt_file 桌面定时任务本地提示文件 scheduled-tasks//SKILL.md official-public-docs-derived 本地任务提示存放在 ~/.claude/scheduled-tasks// 目录(设置 CLAUDE_CONFIG_DIR 时位于其下);SKILL.md 使用 YAML frontmatter 记录 name 与 description,正文为任务提示,改动在下一次运行生效。调度计划、文件夹与启用状态不在该文件内保存。

PermissionMode

ID 名称 许可证状态 摘要
perm_manual 手动审批模式 Manual capability-derived 工作目录内工具调用按规则逐条提示审批;文件读取类工具对目录外路径仍提示
perm_auto 自动分类模式 Auto capability-derived 分类器替代用户决定多数权限提示;PermissionDenied 可经 retry 标记允许重试
perm_plan 计划模式 Plan capability-derived 先设计方案再编码;ExitPlanMode 提交计划待批准;恢复时满足条件可回到计划模式
perm_bypass 绕过权限 BypassPermissions capability-derived 跳过权限审批;由启动标志或 permissions.defaultMode 配置;恢复路径受规则约束
perm_rule_allow Allow 权限规则(免手动审批) configuration-documentation 规则命中后指定工具无需手动审批即可使用;规则按 deny→ask→allow 顺序求值,allow 不能从 deny 中切出例外
perm_rule_ask Ask 权限规则(每次确认) configuration-documentation 命中规则时每次调用都提示确认;与 allow 同优先级时,命中 ask 仍会提示,更具体的 allow 不能覆盖
perm_rule_deny Deny 权限规则(阻止调用) configuration-documentation 命中规则阻止工具调用;裸工具名会把工具从模型上下文中移除,作用域规则保留工具但拦截匹配调用;EndConversation 不可被 deny 移除
perm_default default 手动权限模式(Manual 别名) configuration-documentation 每个工具首次使用时提示审批;CLI/IDE/桌面称 Manual,manual 为接受的别名;与 auto(分类器审批)、plan、bypassPermissions 并列
cli_restricted --restricted 受限评测模式 capability-derived 共享机器评测 harness 驱动时使用:移除运行命令/代码的内置工具与 WebFetch(除非 --tools 单独命名);文件工具限制在工作目录;仅加载托管与 --settings;拒绝 bypassPermissions 与云会话创建
perm_bare_tool_removal 裸工具名 Deny:整工具移出上下文 capability-derived 裸工具名如 Bash 的 Deny 规则把工具从模型上下文整体移除;会话中途加入则下一工具调用即不可用;作用域规则 Bash(rm *) 保留工具仅拦截匹配调用;EndConversation 例外不能被移除
perm_workspace_trust 工作区信任对话框与 allow 规则生效前提 capability-derived 项目 .claude/settings.json 的 allow 规则与 additionalDirectories 须先接受工作区信任;deny/ask 不受信任影响;仓库内信任按 git 根键定,worktree 用主检出根;非交互 -p 与 SDK 会话不弹对话框
perm_hook_block_overrides 阻塞型 Hook 优先于 Allow 规则 configuration-documentation PreToolUse Hook 退出码 2 在权限规则求值前阻止工具调用;即使存在 allow 规则,阻塞 Hook 仍生效;可配合 Bash allow 清单与 Hook 拒绝特定命令
perm_rule_no_match_warning 未匹配已知工具的规则启动告警 configuration-documentation Deny/Ask 规则工具名匹配不到已知工具时启动告警以捕捉拼写错误;含 _ 或 * 的工具名以及已被移除的工具名豁免检查
feat_per_command_allowed_domains 自动模式沙箱命令级 allowed_domains configuration-documentation Bash/PowerShell/Monitor 在带沙箱的自动模式下可按命令配置允许域名;命令所需主机单独评审并仅对该命令开放,其他主机拒绝
setting_block_reads_outside permissions.blockReadsOutsideWorkingDirectories 工作区外读阻断 configuration-documentation true 来自任一来源覆盖托管 false;v2.1.257 起
setting_block_writes_outside permissions.blockWritesOutsideWorkingDirectories 工作区外写阻断 configuration-documentation true 来自任一来源覆盖托管 false;v2.1.314 起
setting_deny_instead_prompting permissions.denyInsteadOfPrompting 拒绝替代提示 configuration-documentation true 来自用户设置或 --settings 覆盖托管 false;v2.1.319 起
code_mode_perm_review Code Mode 权限审查:分类器审查代码而非逐个工具调用 capability-derived auto/bypass 模式下分类器审查整段代码;运行时计算出的值(如搜索得到的路径)不可见;PreToolUse hook 可匹配 REPL 并从 tool_input.code 读取 JS;ask 规则可要求逐段代码审批
perm_mode_tool_table 各工具类型 Manual 模式审批行为表 capability-derived 只读文件/Grep 在工作区与附加目录内免审批;Bash 除内置只读命令外需确认;文件修改需确认;WebFetch 除预批准文档域名外需确认;WebSearch 需确认
perm_pattern_depth 规则模式匹配深度:锚定与 gitignore 语义 configuration-documentation 裸文件名按 gitignore 语义任意深度匹配;单段目录模式在 Allow 下只匹配 cwd 锚定位置,Deny/Ask 下任意深度匹配;绝对路径与 **/ 形状在各规则类型下深度一致
perm_mcp_rule_pattern MCP 工具规则命名:mcp__server__tool 与通配符 configuration-documentation 整服务器 mcp__*;单工具 mcp__;特殊字符转下划线;插件服务器用插件作用域形式;服务器名含 __ 或结尾 _ 时用通配符整名
perm_plan_hook_approval 计划模式 Hook/Mod 审批受限:只读外调用不被 allow 放行 capability-derived plan 模式下除 ExitPlanMode 外,PreToolUse 的 allow 对文件编辑等非只读调用无效;updatedInput 仍生效;Mod 的 tool.check 同样只能阻断不能放行
perm_trust_key_scope 工作区信任键定范围:仓库根 / 启动目录 / 主检出 configuration-documentation 仓库内信任绑定 git 根(子模块除外);worktree 用主检出根;仓库外绑定启动目录及其子目录;家目录启动仅当会话有效不落盘;后台会话启动前同样检查信任
perm_approval_save_scope 永久审批规则落盘位置与有效期 configuration-documentation Bash 命令与 WebFetch 域名等永久审批写入仓库根 .claude/settings.local.json,worktree 解析到主检出;文件修改审批只持续到会话结束,不落盘
perm_end_conversation_exempt EndConversation 工具豁免裸名移除 capability-derived 除 EndConversation 外裸工具名 Deny 会把工具从上下文整体移除;Deny 规则不能移除 EndConversation,Ask 规则也不会对它提示
perm_rule_specificity 规则特异性不改变求值顺序:deny > ask > allow configuration-documentation 首个按顺序匹配的规则决定结果;宽 Deny 可覆盖窄 Allow,Allow 不能在 Deny 内开例外;Ask 与 Allow 之间同理
set_allowed_providers allowedProviders 托管设置:限定可用 API 提供商 configuration-documentation 托管设置键,限制机器可使用的 API 提供商:Anthropic API、自定义端点、Bedrock、Mantle、Vertex AI、Foundry、Claude Platform on AWS、Cloud gateway。
feat_desktop_policy_blocks desktop 策略块键(blockReadsOutsideWorkingDirectories / disableBypassPermissionsMode) changelog-derived Claude apps gateway Desktop 策略块支持的较新策略键:工作区外读阻断、禁用 bypassPermissions 模式。
feat_auto_mode_default_start 未配置权限模式时终端/VS Code 默认进入 auto mode changelog-derived 交互终端与 VS Code 会话在未配置权限模式时,各计划与提供商下默认以 auto mode 启动;permissions.defaultMode 仍可覆盖该默认。
setting_available_models_match availableModelsMatch 托管模型版本精确匹配规则 configuration-documentation 值为 exact 时 availableModels 条目仅允许所命名的模型版本;新版本在列入前保持阻断;2.1.283 新增
setting_chrome_mcp_allow allowClaudeInChromeWithManagedMcp 托管 MCP 下允许 Chrome 运行 configuration-documentation 托管设置:允许 claude --chrome 与独占 managed-mcp.json 并存;Chrome 被阻断时错误信息命名该设置;2.1.282 新增
feat_permission_read_ask_again 工作区外读取“本次允许、下次再问”审批选项 capability-derived 自动模式提示中新增 Yes, but ask again next time:允许单次工作区外读取,后续同类读取仍需审批
fix_inline_script_sandbox 内联脚本沙箱自动放行不再因等号重复审批 capability-derived 修复沙箱自动放行对 python3 -c、node -e 等内联脚本仅因包含 = 而每次请求审批的问题
perm_accept_edits acceptEdits 自动接受编辑模式 capability-derived acceptEdits 模式自动接受文件编辑,以及 mkdir、touch、mv、cp 等常见文件系统命令;适用路径限于工作目录和 additionalDirectories。
perm_dont_ask dontAsk 自动拒绝待审批调用模式 capability-derived dontAsk 自动拒绝所有否则需要提示的调用;AskUserQuestion、标记 requiresUserInteraction 的 MCP 工具、网络路径读取和组织设为 ask 的连接器,即使存在 allow 规则也会被拒绝。
perm_compound_command 复合命令子命令权限拆分规则 configuration-documentation 复合命令按 shell 操作符拆分为子命令;整条命令免提示要求每个子命令都被允许。审批复合命令时会为需要批准的子命令分别保存规则,单次最多保存 5 条。
perm_symlink_path_matching 符号链接请求路径与解析目标匹配规则 configuration-documentation 经符号链接访问文件时,权限规则分别匹配请求路径与解析目标;允许规则只在两者都匹配时生效,拒绝规则在任一匹配时生效。macOS/Linux 上经符号链接目录的 //、~/、/ 模式也作用于真实位置。
fix_dangerous_rm_shell_wrapper_permission_bypass bash -c / sh -c 包装脚本内危险 rm 权限检查绕过修复 changelog-derived 2.1.288 修复:bypassPermissions 模式或 shell allow 规则下,bash -c/sh -c 脚本内的危险 rm(如根目录或家目录)不再绕过审批;包装层不免除命令风险检查。
fix_compound_command_mod_approval_managed 复合命令嵌套权限规则与用户安装 Mod 审批在托管机上的保持修复 changelog-derived 2.1.289 修复:deny/ask 规则作用于复合 shell 命令嵌套片段时,不再被用户安装 Mod 在受管机器上的审批覆盖;边界:只修复规则与 Mod 审批优先级,不改变命令沙箱隔离。
fix_read_deny_symlink_ide_mention Read 拒绝规则覆盖 @提及与 IDE 符号链接选中文件 changelog-derived 2.1.289 修复:Read deny 规则现适用于消息 @ 提及、IDE 中修改或选择的符号链接文件,避免经由链接路径绕过读取审批。
fix_bash_env_prefix_permission_rule Bash 环境变量前缀与裸赋值命令的权限规则匹配修复 changelog-derived 2.1.289 修复:沙箱自动允许命令时,Bash deny/ask 规则不再漏掉环境变量前缀带展开值(如 TZ="$HOME" rm -rf build)或命令前裸变量赋值所包裹的命令;边界:只修正命令前缀匹配,不改变自动允许策略本身。
feat_auto_mode_long_history_compact 超长会话自动模式分类器容量不足时压缩兜底 changelog-derived 2.1.288 改进:会话长到客户端安全分类器无法逐条审查时,先压缩上下文,而不是对每次工具调用提示或失败。边界:属于 auto mode 兜底策略,不授予工具权限。
fix_auto_mode_nonbash_permission_rule_mismatch 自动模式拒绝非 Bash 工具时权限规则指向修复 changelog-derived 2.1.288 修复:自动模式拒绝非 Bash 工具时,不再把提示指向 Bash 权限规则;按实际被拒工具定位对应规则。
fix_sandbox_heredoc_auto_allow_repeat_prompt 沙箱自动允许下 heredoc 重复审批提示修复 changelog-derived 沙箱自动允许下,未加引号分隔符的 heredoc(如 python3 <<EOF)主体仅含纯文本和简单 $VAR 引用时,不再每次运行都要求审批。
fix_bash_bashpid_arithmetic_permission_prompt BASHPID 算术赋值 Bash 权限静默放行修复 changelog-derived Bash 权限检查在 BASHPID 赋值且值会被 shell 当作算术求值前提示,不再静默放行。
fix_chrome_allowed_site_screenshot_read_prompt Chrome 已允许站点截图与页面读取重复询问修复 changelog-derived 自动模式不可用(disableAutoMode 或旧模型)时,已允许站点的 Claude in Chrome 截图和页面读取不再每次询问;输入、导航与 JavaScript 仍需询问。
improve_permission_prompt_oldest_first 等待中的权限提示按最早优先展示,倒计时提示仍置顶 changelog-derived 2.1.289 改进:等待中的权限提示按最早请求优先排列,新提示不再覆盖正在阅读的旧提示;带倒计时的提示仍保持打开在顶部。边界:仅调整提示队列展示顺序,不改变 allow/ask/deny 规则求值或审批结果。
cap_subagent_permission_inheritance 子代理 permissionMode 随主会话模式继承与覆盖规则 configuration-documentation 子代理未设置权限模式时继承主会话模式;bypassPermissions、auto、plan 等主会话模式会覆盖子代理定义中的部分 permissionMode 值,dontAsk 仅拒绝会触发提示的调用。边界:继承只处理模式选择,allow/ask/deny 规则仍按主会话规则栈求值。
feat_bare_session_minimal_semantics --bare 最小会话语义:仅命令行 MCP、无后台任务与系统提醒 configuration-documentation --bare 会话只连接命令行显式命名的 MCP 服务器,不加载系统提醒与后台任务;shell 超时停止而不是转入后台运行。边界:最小会话仍遵守工具权限、网络与模型提供商边界,不成为无审批隔离模式。
fork_mode Fork mode 子代理分叉模式(CLAUDE_CODE_FORK_SUBAGENT) public-configuration-flag 控制子代理是否以后台分叉方式启动;默认为开启,关闭后 Claude 可等待子代理完成。
agent_type_allowlist Agent(agent_type) 子代理类型白名单 public-permission-configuration 限制可派生子代理类型的工具配置语法;未列入白名单的类型请求会失败。
perm_rule_tool_name_glob 工具名通配规则:全工具名匹配;* 匹配全部工具,mcp__* 匹配全部 MCP 工具 configuration-documentation Deny/Ask 规则的工具名位置接受 glob:模式必须匹配完整工具名;* 匹配每个工具,mcp__* 匹配所有服务器上的 MCP 工具。裸名 glob Deny 与裸工具名一样把工具移出上下文;EndConversation 在仍有其他工具时不能被移除。
feat_vscode_permission_rules_dialog VS Code Permission rules 规则对话框 proprietary-all-rights-reserved VS Code 权限规则对话框列出规则并可在 user、project、local 设置中增删;启动选项、会话临时规则与托管规则保持只读。
fix_bash_permission_variable_prefix_sandbox Bash 权限规则环境变量前缀与自动沙箱匹配修复 proprietary-all-rights-reserved 修复沙箱自动允许命令时,Bash deny/ask 规则漏掉环境变量前缀后展开命令;裸变量赋值出现在命令前的规则跳过问题也一并修复。
mcp_oauth_scope_reauth_prompt 工具调用期间 MCP 服务器请求更多 OAuth scope 时触发重新认证提示 changelog-derived 官方 changelog:MCP 服务器在工具调用过程中要求追加 OAuth 授权范围时,客户端给出重新认证提示;该边界作用于 MCP 授权范围与工具调用之间。
permission_mode_plan_shift_tab_announcement 批准计划时播报新权限模式;Shift+Tab 切换同样播报 changelog-derived 官方 changelog:批准计划后,屏幕阅读器会播报当前新权限模式;使用 Shift+Tab 切换权限模式时也触发该播报。
allowed_providers_managed_setting 托管设置 allowedProviders:限制机器可用 API 提供方(Anthropic、自定义端点、Bedrock、Mantle、Vertex、Foundry、AWS Claude Platform、Cloud 网关) configuration-documentation 官方 changelog:allowedProviders 托管设置限定机器可使用的 API 提供方;枚举覆盖 Anthropic API、自定义端点、Bedrock、Mantle、Vertex AI、Foundry、AWS 上的 Claude Platform 与 Cloud 网关。
per_command_allowed_domains_auto_mode 自动模式沙箱下 Bash/PowerShell/Monitor 按命令配置 allowed_domains:仅为该命令评审并开放所需主机 changelog-derived 官方 changelog:自动模式带沙箱时,Bash、PowerShell 与 Monitor 可按命令设置 allowed_domains;命令所需主机随命令一起评审并单独开放,其他主机被拒绝。
fix_bash_rule_env_var_prefix_expanded_value 环境变量前缀展开值命令的 Bash deny/ask 规则缺失修复 official-public-changelog 沙箱自动允许下,命令带环境变量前缀且变量值被展开时,Bash deny/ask 规则不再缺失;变量前缀不绕过命令规则。
fix_bash_rule_bare_variable_assignment_before_command 命令前裸变量赋值跳过 Bash 规则修复 official-public-changelog 沙箱自动允许下,命令前裸变量赋值不再导致 Bash deny/ask 规则被跳过;赋值前缀不改变命令主体判定。
fix_fork_subagent_keeps_plan_dontask_mode Fork 子代理继承父会话计划/dontAsk 权限模式 official-public-changelog Fork 子代理继承父会话计划模式与 dontAsk 模式,且不能自行退出计划模式;权限模式沿委派链路传递。
fix_background_subagent_permission_prompt_tool 后台子代理权限请求走提示工具修复 official-public-changelog claude -p --permission-prompt-tool 场景下,后台子代理权限请求进入提示工具,不再被自动拒绝。
fix_sandbox_inline_script_equals_approval 内联脚本含等号不再触发重复沙箱批准 official-public-changelog 沙箱自动允许下,python3 -c、node -e 等内联脚本不再仅因包含 = 就每次请求批准;批准判定基于命令实际风险。
agent_team_experimental_flag Agent Teams 实验开关 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 official-document-feature-entry Agent Teams 默认关闭,可通过环境变量或 settings.json 开启;用于多会话任务共享、代理间消息和集中管理。
feat_permission_refuse_skipped_rule_reason /permissions 拒绝启动即跳过的规则并说明原因 official-public-documentation-entry 权限规则若下次启动会被跳过(例如未指定工具名的 rm -rf),/permissions 拒绝该规则并展示原因。
entry_2_1_332_plan_mode_unjudgeable_command_approval Plan mode asks approval instead of refusing unjudgeable command official-document-derived-entry 桌面应用 Code 标签页与 VS Code 的计划模式中,当自动模式安全检查无法判断命令时,改为请求批准而不是直接拒绝。
entry_2_1_332_destructive_question_pgup_home_no_selection PgUp and Home choose No on destructive questions from agent view official-document-derived-entry 在代理视图的 /clear 等破坏性问题中,PgUp 与 Home 键选择 No。
perm_rule_hook_deny_ask_precedence 权限规则优先:PreToolUse Hook 不能绕过 deny/ask 规则 proprietary-all-rights-reserved PreToolUse Hook 决策不绕过权限规则;匹配的 deny 规则仍阻断调用,匹配的 ask 规则仍提示审批,即使 Hook 返回 allow 或 ask。
doc_subagent_disable_definition Agent(subagent-name) deny 规则禁用指定子代理 official-public-documentation-entry 在 permissions.deny 中使用 Agent(subagent-name) 可禁用内置或自定义子代理;也可用 --disallowedTools;要阻止任何子代理,需拒绝 Agent 工具本身。
doc_powershell_bash_deny_rule_link Windows Git Bash 下 Bash deny 规则同时关闭 PowerShell 工具的联动边界 official-public-documentation-entry Windows 安装 Git Bash 时,拒绝 Bash 也会在会话内关闭 PowerShell 工具;裸 Bash 或 Bash(git push *) 等作用域规则、设置文件与 --disallowedTools 均适用;Bash 规则本身不限制 PowerShell,PowerShell 有独立权限规则。
doc_perm_compound_command_separators Bash 复合命令分隔符与逐条放行规则 configuration-documentation Bash 规则识别 &&、||、;、|、|&、& 与换行等命令分隔符;复合命令要无提示运行,每个子命令都需匹配允许规则或属于只读命令,单条前缀规则不会放行整条复合命令。
doc_perm_agent_subagent_rule Agent(AgentName) 子代理权限规则 configuration-documentation Agent(Explore)、Agent(Plan) 或 Agent(自定义名称) 规则控制可用子代理;可加入 deny 数组,或通过 --disallowedTools CLI 标志禁用指定代理。
doc_perm_cd_directory_rule Cd 目录切换规则边界 configuration-documentation Cd 规则约束用户执行的 /cd 命令目标目录;Cd 不是模型可调用工具;裸 Cd deny 关闭整个 /cd,Cd() deny 拦截匹配目标,符号链接跳转路径也纳入检查。
doc_perm_read_only_bash_commands 内置只读 Bash 命令免提示集合与例外 official-public-documentation-entry ls、cat、echo、pwd、head、tail、grep、find、wc、which、diff、stat、du、cd 及只读 git 形式为内置只读命令;集合不可配置,可由 ask/deny 规则要求提示;写能力标志、未引用 glob 或其他守护进程场景仍可能提示。
doc_perm_powershell_alias_ast_compound_rule PowerShell 规则别名规范化、AST 解析与复合命令逐子命令检查 official-public-documentation-entry PowerShell 规则形态与 Bash 相同;常见别名先规范化为 cmdlet,匹配大小写不敏感;AST 解析管道、分号与 PowerShell 7+ 的 &&/||,复合命令中每个子命令都需允许。
doc_settings_list_merge_ordered_special_keys 列表型设置合并规则与 fallbackModel/modelPicker 等特殊有序键例外 official-doc-derived 同一列表键(如 permissions.allow)在多个设置文件中会合并而非择一;fallbackModel 作为有序链路取最高优先级文件整体值,modelPicker 携带 replace 标志且不合并行。条目记录公开设置优先级与合并口径。
doc_fork_mode_deny_agent_fork_boundary Fork 模式关闭边界:Agent(fork) deny 规则与 CLAUDE_CODE_FORK_SUBAGENT=0 official-public-documentation-entry 官方文档记录两种关闭 Claude 自行启动 fork 的路径:拒绝 Agent(fork) 只阻止自动 fork 派生,环境变量关闭 fork 模式;fork 模式自 v2.1.302 默认开启,交互式终端场景自 v2.1.232 默认开启。边界:本条目记录公开开关与等待行为约束,不记录未公开内部派生策略。
doc_perm_compound_unparseable_trailing_operator 复合命令尾部空操作数不可解析时不拆分匹配 official-document-derived-entry 官方权限文档:当 && 或 \|\| 后没有命令(如 npm test &&),命令视为不可解析;不会拆成子命令做 allow 规则匹配,因此前缀规则不能放行该命令。
glossary_permission_rule Permission rule: allow/ask/deny entry matched by tool name and argument pattern official-doc-derived Official glossary: rules evaluate deny→ask→allow with first match winning; permission rules are fine-grained controls layered above the broader permission mode. Existing rule records cover name wildcards and input-parameter matching.
entry_2_1_332_auto_mode_missing_mode_managed_platforms Bedrock Mantle, Agent Platform and Foundry sessions start in auto mode without a set mode official-changelog-derived-entry Changelog 2.1.332: terminal and VS Code sessions moved to Sonnet 5 or 5.5 on Bedrock Mantle, Google Cloud Agent Platform and Foundry start in auto mode when no mode is set; disableAutoMode set to disable stops this behavior. Records platform permission-mode default, not model weights or account credentials.
setting_skip_dangerous_mode_permission_prompt skipDangerousModePermissionPrompt: suppress confirmation before entering bypassPermissions official-document-derived-entry Official settings-reference: skipDangerousModePermissionPrompt=true skips the confirmation dialog before a session enters bypassPermissions, whether via --dangerously-skip-permissions or defaultMode. The dialog normally appears; an untrusted repository cannot skip it. Background sessions count only user and managed settings. This records the confirmation-skip boundary, not a bypass mechanism.
entry_2_1_332_managed_platform_auto_mode_disable_setting disableAutoMode: stop Bedrock Mantle, Agent Platform and Foundry sessions starting in auto mode official-public-docs-derived Official changelog boundary: terminal and VS Code sessions moved to Sonnet 5 or 5.5 on Bedrock Mantle, Agent Platform and Foundry start in auto mode when no mode is set; set disableAutoMode to "disable" to stop that default. This records the managed-platform mode configuration and does not change local permission-rule semantics.
doc_agent_view_dispatch_default_flags Agent-view dispatch defaults for permission mode, model, effort, agent, restricted and skip-permissions flags official-public-docs-derived Official agent-view documentation: opening claude agents with --permission-mode, --model, --effort or --agent sets defaults for every dispatched session; --effort accepts the top-level flag values including ultracode. --agent selects the subagent used when the dispatch prompt does not name one; it defaults to the agent setting or the built-in catch-all claude agent, and a subagent named in the prompt overrides both. --dangerously-skip-permissions is shorthand for bypassPermissions; --allow-dangerously-skip-permissions keeps bypassPermissions available in each Shift+Tab cycle without starting in that mode; --restricted starts every dispatched session in restricted mode.
doc_setting_switch_models_on_flag switchModelsOnFlag chooses automatic fallback versus pausing after a flagged request official-doc-derived Official settings-reference: when a safety classifier flags a request, true switches to the fallback model and continues; false pauses an interactive session so the user can switch or edit the prompt. In a context without a dialog, such as a -p run, the flagged request ends as an error.
setting_permissions_disable_bypass_permissions_mode permissions.disableBypassPermissionsMode: prevent entering bypassPermissions official-doc-derived Official settings reference: this key prevents anyone from entering bypassPermissions mode. Claude Code rejects the --dangerously-skip-permissions flag and ignores an agent definition's permissionMode: bypassPermissions, so a subagent keeps the parent session's permission mode. It is typically delivered through managed settings for organizational policy.
setting_denied_models deniedModels managed setting: block listed models even when availableModels permits them official-doc-derived 官方 settings-reference:deniedModels 为托管设置,用于阻断特定模型;即使 availableModels 允许该模型,deniedModels 仍可排除。该条目只记录模型允许/拒绝策略边界,不记录模型内部参数或未发布代号。
doc_perm_startup_selection_order Permission mode startup selection order: CLI flag, settings defaultMode, built-in default configuration-documentation Official permission-modes documentation: a new session resolves its mode from the --permission-mode/--dangerously-skip-permissions flag, then permissions.defaultMode in a settings file, then the built-in default. Project/local settings cannot force auto or bypassPermissions, and an unavailable auto mode falls back to Manual.
doc_perm_p_mode_read_plan_approval Plan mode: reads and classifier-approved commands; edits blocked until a plan is approved configuration-documentation Official permission-modes documentation: plan mode permits reads plus classifier-approved commands when auto mode is available; Claude Code blocks edits until the plan is reviewed and approved.
doc_perm_dontask_preapproved_only dontAsk: pre-approved tools and reads only; every other prompt-worthy call is denied configuration-documentation Official permission-modes documentation: dontAsk allows reads inside working directories and pre-approved tools; calls that would otherwise prompt are denied, while an installed mod may still approve selected calls. The mode targets locked-down CI and scripts.
doc_ship_steward_builtin_disable_env CLAUDE_CODE_DISABLE_SHIP turns off built-in /ship and /steward together for a custom command official-public-document A custom skill or command named ship, ship-local or steward collides with reserved built-in names and stops loading unless renamed. CLAUDE_CODE_DISABLE_SHIP=1 disables both built-in commands together, requires Claude Code v2.1.331 or later, and must follow removal of any off skillOverrides entry for the command. The repository .claude/skills/steward/SKILL.md remains instructions for PR Steward and the watch and is not counted as the conflicting custom command.
doc_provider_authentication_switch_env_vars 提供商认证切换环境变量:Bedrock、Mantle、AWS Platform、Google Cloud、Vertex 与 Foundry 开关 proprietary-all-rights-reserved 官方特性可用性文档:CLAUDE_CODE_USE_BEDROCK、CLAUDE_CODE_USE_MANTLE、CLAUDE_CODE_USE_ANTHROPIC_AWS、CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD、CLAUDE_CODE_USE_VERTEX、CLAUDE_CODE_USE_FOUNDRY 标识对应提供商认证路径;变量只记录选择边界,不记录凭证值。
doc_permission_agent_subagent_rule_scope Agent(AgentName) permission rule: named Explore, Plan or custom subagent control via deny rules or disallowedTools official-public-docs-derived Official permissions documentation: Agent(Explore) matches the Explore subagent, Agent(Plan) matches Plan, and Agent(my-custom-agent) matches a custom subagent by name. Such rules are added to the permissions deny array or supplied through the --disallowedTools CLI flag to disable a specific agent. This entry records the documented agent-name rule scope; MCP tool rules and input-parameter matching remain separate permission entries.
entry_2_1_332_compact_clear_rewind_background_transcript_target_dialog /compact /clear /rewind over a background agent transcript names the target and asks first official-document-derived-entry 在后台代理或队友的记录视图中输入 /compact、/clear、/rewind 此前会静默作用于主会话;现弹出对话框指明目标并先征求确认。
entry_2_1_332_plan_mode_approval_when_safety_check_unavailable Plan mode on desktop Code tab and VS Code asks for approval instead of refusing when no auto-mode safety check can judge a command official-public-docs-derived 2.1.332: for plans entered from Manual or Accept edits, plan mode requests approval rather than refusing a command the auto-mode safety check cannot judge.
entry_2_1_332_changed_terminal_and_vs_code_sessions_moved_to_sonnet_5_or_5_5_on_bedr Changed terminal and VS Code sessions moved to Sonnet 5 or 5.5 on Bedrock Mantle, Agent Platform and Foundry to start in auto mode if no mode is set; set disableAutoMode to \"disable\" to stop it official-public-changelog-entry Changed terminal and VS Code sessions moved to Sonnet 5 or 5.5 on Bedrock Mantle, Agent Platform and Foundry to start in auto mode if no mode is set; set disableAutoMode to \"disable\" to stop it
entry_2_1_332_changed_model_default_and_a_default_pick_to_move_to_an_older_model_whe Changed --model default and a Default pick to move to an older model when that model isn’t available, instead of stopping with an error; in auto mode, only to a model auto mode accepts official-public-changelog-entry Changed --model default and a Default pick to move to an older model when that model isn’t available, instead of stopping with an error; in auto mode, only to a model auto mode accepts
entry_2_1_332_changed_claude_desktop_s_code_tab_on_anthropic_s_api_to_ignore_a_claud Changed Claude Desktop’s Code tab on Anthropic’s API to ignore a CLAUDE_CODE_AUTO_COMPACT_WINDOW under 200K in your own settings beside a gateway address; use /autocompact instead official-public-changelog-entry Changed Claude Desktop’s Code tab on Anthropic’s API to ignore a CLAUDE_CODE_AUTO_COMPACT_WINDOW under 200K in your own settings beside a gateway address; use /autocompact instead
entry_2_1_332_permission_rule_skipped_at_start_refused_with_reason /permissions refuses a rule that would be skipped at the next start, such as rm -rf with no tool name, and shows the reason official-documentation-entry 2.1.332: /permissions refuses a rule that would be skipped at the next start, such as rm -rf with no tool name, and shows the reason.
entry_2_1_332_managed_platforms_auto_mode_default_when_no_mode_set Bedrock/Mantle/Agent Platform/Foundry sessions start in auto mode if no mode set; disableAutoMode disable stops it (2.1.332) official-public-changelog-entry 未设置权限模式时,Bedrock Mantle、Agent Platform 与 Foundry 上的会话默认进入 auto mode;设置 disableAutoMode 为 disable 可关闭。
entry_2_1_325_sandboxed_bash_default_permission_flow 沙箱 Bash 默认走常规权限流程;sandbox.autoAllowBashIfSandboxed=true 免提示 official-document-derived-entry 沙箱内 Bash 命令默认按常规权限流程询问;设置 sandbox.autoAllowBashIfSandboxed: true 可保持沙箱命令免提示运行;托管设置开启沙箱时同样适用该开关。
entry_2_1_302_permission_mode_default_third_party_provider_sdk claude -p and Agent SDK sessions with no permission mode start in default mode on third-party providers, with telemetry off or on a fresh install; --permission-mode auto keeps auto official-public-docs-derived Official changelog change: claude -p and Agent SDK sessions without an explicit permission mode start in default mode on third-party providers, with telemetry off or on a fresh install; --permission-mode auto retains auto mode. Records the default permission-mode selection boundary; mode semantics follow official permissions documentation.
entry_2_1_330_background_session_permission_mode_wake_after_plan 后台会话批准计划后不再唤醒回此前权限模式 changelog-derived 官方 changelog 2.1.330:后台会话在批准计划后,有时以先前权限模式唤醒;修复权限模式恢复路径。边界:权限模式状态衔接,不收录模式判定内部规则。

Plugin

ID 名称 许可证状态 摘要
plugin_bundle 插件打包单元 capability-derived 聚合 Skills、代理、Hooks、MCP Server;可按本地路径加载,账号级插件可经 ListPlugins/SearchPlugins 检索
plugin_manifest 插件清单 .claude-plugin/plugin.json configuration-documentation JSON 清单定义插件名称、版本、描述等元数据;插件目录聚合 skills、agents、hooks、hooks module、MCP servers 等组件为一体
plugin_marketplace 插件市场 marketplace.json 目录仓库 configuration-documentation 市场是带 .claude-plugin/marketplace.json 的目录仓库,列出插件及获取地址;属目录而非托管商店;按名称安装如 commit-commands@claude-plugins-official
feat_plugin_configure claude plugin configure 插件选项查看与 stdin 写入 changelog-derived 命令展示插件选项及未设置项;--values-stdin 从标准输入读取并保存新值。
feat_plugin_install_config plugin install --config 安装期配置捆绑 MCP 服务器 changelog-derived .= 语法在安装时设置 .mcpb 捆绑 MCP 服务器自身配置,无需进入 /plugin → Configure。
plugin_install_registry_only 插件安装来源限制:拒绝 git/文件夹 npm 源,依赖仅取 registry 包 configuration-documentation 2.1.287 起插件安装拒绝 npm 来源中的 git 仓库或本地文件夹;插件依赖只从 registry 包安装
feat_plugin_test_stale_mod_setting plugin test 远程 Mod 开关陈旧保存设置误报修复 changelog-derived 2.1.288 修复:claude plugin test 只读到过期保存设置时,不再把 Mod 报告为远程关闭。边界:测试命令读取状态修正,不改变 Mod 安装或授权。
fix_mod_stale_view_button_action Mod 旧视图按钮偶发执行其他按钮动作修复 changelog-derived Mod 按钮在 Claude Code 重启前绘制的视图上偶发执行其他按钮动作;修复旧视图按钮动作绑定。
fix_plugin_pane_unparsable_diff_plain_code 插件面板不可解析 diff 降级为普通代码绘制修复 changelog-derived 插件面板中一个 Code 元素持有无法解析的 diff 时不再空白;该元素降级为普通代码绘制。
fix_plugin_dir_configure_options_missing --plugin-dir 插件 /plugin 配置选项入口缺失修复 changelog-derived 通过 --plugin-dir 加载的插件在 /plugin 中不再缺失 Configure options 配置入口。
fix_plugin_install_github_https_fallback 无 SSH Key 机器 GitHub 源插件安装 HTTPS 回退修复 changelog-derived 无 GitHub SSH Key 的 macOS/Linux 机器上,GitHub 源插件安装不再失败;克隆回退 HTTPS 并打印提示。
fix_marketplace_ssh_https_both_errors 插件市场 SSH 与 HTTPS 失败错误同时展示修复 changelog-derived owner/repo 插件市场 SSH 与 HTTPS 都失败时,不再只显示第二次尝试错误;两种错误都展示,并优先展示传输层错误。
fix_plugin_async_handler_session_end 插件界面处理器异步抛错结束监督/后台会话修复 changelog-derived 2.1.289 修复:插件 on-screen handler 异步抛错时,不再结束监督会话与后台会话。边界:隔离插件界面异常,不授予插件中断会话生命周期的权限。
fix_plugin_pane_invalid_url_render 插件面板 localhost、@路径、大写主机与 file: 路径空白渲染修复 changelog-derived 2.1.289 修复:链接使用 localhost、路径中的 @、大写主机名或 file: 路径时,插件面板不再绘制空白。边界:只修正链接渲染识别;不安全文件或网络访问仍受既有插件与权限策略约束。
fix_mod_client_fault_isolation Mod Client 绘制失败独立隔离并触发 ui.fault changelog-derived 2.1.289 修复:Mod Client 在绘制期间失败时只隔离自身,不再拖垮周围 Mod 绘制;失败以 ui.fault 形式暴露。边界:故障隔离作用于界面组件,不改变 Mod 的后台逻辑或数据访问范围。
fix_mod_region_growth_interface_error 无高度 Mod 区域持续增长导致接口错误结束会话修复 changelog-derived 2.1.289 修复:未保留高度的插件区域持续增长时,不再引发 unrecoverable interface error 并结束会话。边界:修正布局尺寸边界处理,不扩展插件可写入的界面区域。
fix_plugin_background_task_stale_row 后台任务对话框全屏时插件提示行陈旧副本修复 changelog-derived 2.1.289 修复:Background tasks 对话框处于全屏状态时,插件在提示行上方显示的行不再保留陈旧副本。边界:属于插件界面刷新问题,不改变后台任务生命周期、通知或审批顺序。
fix_plugin_box_border_style_launch_crash 插件 Box 使用终端未知边框样式导致启动冻结或强退修复 changelog-derived 2.1.289 修复:插件绘制 Box 且边框样式不被终端识别时,不再在启动阶段冻结或强制退出。边界:处理终端渲染兼容,不扩展插件可调用的安全权限或外部工具范围。
fix_plugin_text_control_row_overdraw 制表符、转义与 C1 控制字符文本覆盖下方行修复 changelog-derived 2.1.289 修复:含制表符、孤立转义序列、C1 控制字符,或短文本同时含制表符与 CRLF 行尾时,不再绘制覆盖相邻行。边界:修正终端文本布局,不改变插件内容语义或权限规则。
fix_plugin_right_aligned_pane_close_mark Mod 面板或带区右对齐内容与关闭标记重叠修复 changelog-derived 2.1.289 修复:Mod pane 或 band 中的右对齐内容不再绘制到关闭标记或 [-] 下方;关闭标记与终端边缘保留一列间距。边界:仅调整界面边距,不改变 Mod 加载、卸载或工具授权。
fix_mod_band_failure_reason_layout Mod 带区绘制失败原因提示与相邻卡片避让修复 changelog-derived 2.1.289 修复:Mod band 绘制失败时,作者可见的失败行命名对应 Mod 且说明未绘制内容;失败带区不再短暂要求下方卡片避让。边界:失败隔离与诊断提示,不代表插件功能获得额外授权。
improve_plugin_marketplace_error_clarity 插件市场被忽略或拒绝原因与处理建议的清晰提示改进 changelog-derived 2.1.289 改进:插件市场错误信息用直白语言说明市场为何被忽略或拒绝,以及下一步应如何处理。边界:错误提示改进,不自动放宽市场来源、依赖安装或托管策略限制。
improve_plugin_dependency_install_retry 插件依赖未安装状态标注与未完成安装重试改进 changelog-derived 2.1.289 改进:插件列表标注哪些依赖尚未安装;更新插件时会重试此前未完成的安装。边界:依赖仍只按注册表包安装,不接受 git 仓库或本地文件夹作为 npm 依赖来源。
fix_mod_render_row_throw_engine_fallback Mod ui.render 行抛错时引擎回退绘制自有行 changelog-derived changelog 修复:Mod 的 ui.render 钩子写出使行绘制抛错的值时,引擎不再结束会话,改为由自身绘制该行并隔离失败区域。边界:记录渲染失败隔离行为,不收录 Mod 内部绘制实现或未公开接口细节。
fix_plugin_validate_clean_plugin_json plugin validate 不再误判官方市场插件并列出干净 plugin.json changelog-derived changelog 修复:claude plugin validate 在官方市场自身插件场景下不再跳过或误报;--json 输出可列出解析干净的 plugin.json 条目。边界:仅描述清单校验命令的公开行为,不推断插件市场内部审核流程。
fix_plugin_component_failure_message 插件失败组件展示携带的失败原因而非空 Error changelog-derived changelog 修复:插件界面组件失败且错误未携带消息时,不再只显示 Error 或空白;界面保留可追溯的失败来源与原因提示。边界:只记录用户可见失败提示口径,不收录插件运行时内部异常结构。
fix_mod_client_region_persistent_failure Mod Client 区域单次绘制抛错后不再整会话持续失败 changelog-derived changelog 修复:Mod Client 在终端绘制过程中抛错后,对应区域不再整段会话保持失败;后续绘制可恢复并隔离已失败的客户端区域。边界:属于前端区域故障恢复行为,不暴露 Mod Client 内部状态模型。
plugin_subagent_ignored_config_fields 插件子代理忽略 hooks / mcpServers / permissionMode configuration-documentation 官方子代理文档:出于安全原因,插件子代理不支持 hooks、mcpServers 与 permissionMode,加载时这些字段被忽略。需要这些能力时,应把代理文件复制到 .claude/agents 或 ~/.claude/agents;插件级能力则应放入插件 hooks/hooks.json 与 .mcp.json。
feat_plugin_npm_pack_ignore_scripts_integrity 插件 npm 源安装:npm pack --ignore-scripts 抓取并校验完整性,安装脚本不执行 changelog-derived 来自 npm 源的插件包以 npm pack --ignore-scripts 方式抓取并做完整性校验;包安装脚本不再随安装流程执行。
fix_plugin_install_id_collision_refused 插件安装 ID 近似冲突拒绝规则 proprietary-all-rights-reserved 插件 ID 仅以点、连字符、@ 或大小写区分时,安装不得落入另一插件缓存或数据目录;检测到冲突后拒绝安装。
fix_plugin_missing_version_restores_installed 无版本插件缓存缺失时保留已安装版本规则 proprietary-all-rights-reserved 未声明版本的插件在缓存文件缺失时,不再静默恢复来源最新提交,而是保留已安装版本。
fix_plugin_cache_miss_config_directory_move 插件与市场配置目录迁移后的 cache-miss 修复 proprietary-all-rights-reserved home 或配置目录移动后(如绑定挂载 devcontainer),用户插件和市场不再因 cache-miss 加载失败。
fix_plugin_eval_git_minimum_version plugin eval 要求 Git 2.31 或更高版本规则 proprietary-all-rights-reserved 已安装 Git 时,claude plugin eval 要求 Git 2.31 或更高;旧版本 Git 运行会被拒绝并提示所需版本。
fix_plugin_local_marketplace_reload 本地文件夹市场插件 stale 副本与符号链接热重载修复 proprietary-all-rights-reserved plugin list、plugin eval、plugin update 不再展示本地文件夹市场安装插件的陈旧副本;符号链接 --plugin-dir 支持热重载。
fix_plugin_pane_url_render 插件面板 localhost、@、大写主机与 file: 链接渲染修复 proprietary-all-rights-reserved 插件面板链接使用 localhost、路径含 @、大写主机名或 file: 路径时不再空白绘制。
fix_plugin_mod_unsupported_border_fault Mod 不支持边框样式启动冻结与故障隔离修复 proprietary-all-rights-reserved Mod 绘制终端不认识的 Box 边框样式时不再冻结或强制退出;故障组件单独失败并给出可读原因。
fix_plugin_async_handler_region_height_end 插件异步处理器与无高度区域导致会话结束修复 proprietary-all-rights-reserved 插件屏幕处理器异步抛错时,监督与会话代理不再结束;无高度且持续增长的插件区域不再造成接口错误结束会话。
fix_plugin_uninstall_case_id_collision 插件卸载大小写 ID 碰撞移除其他插件修复 proprietary-all-rights-reserved 两个插件 ID 仅大小写不同且被卸载插件缺少 enabledPlugins 条目时,不再移除另一个插件及其选项和密钥。
plugin_manage_installed_version_row Manage plugins 插件管理行显示已安装版本 official-document-feature-entry VS Code 的 Manage plugins 管理列表行展示插件已安装版本,便于区分本地与市场版本状态。
feat_plugin_optional_dependencies 插件清单 optionalDependencies 可选依赖声明 official-public-documentation 插件清单可声明 optionalDependencies;被列出的插件可作为依赖安装,也可单独禁用或卸载。
fix_plugin_partial_folder_missing_components 插件更新中断残留目录与技能/组件缺失修复 official-public-documentation 中断或失败的插件更新曾留下部分目录,后续加载时技能等组件缺失;修复目标是避免残留目录导致组件不全。
fix_plugin_temp_cache_folders_cleanup 插件缓存 temp_* 临时目录堆积清理规则 official-public-documentation 下载插件未能复制到位时,~/.claude/plugins/cache 下 temp_* 文件夹会堆积;该修复覆盖临时缓存目录清理。
entry_2_1_289_plugin_marketplace_sparse_git_subdir_http_fix plugin marketplace sparse and git-subdir plain http transport install fix official-public-document-entry 修复 marketplace add --sparse 与 git-subdir 插件安装在仓库经 plain http 提供时被“http 传输不允许”阻断的问题;仅记录安装来源边界修复。
entry_2_1_332_plugin_manage_installed_version_row Manage plugins row shows installed plugin version official-document-derived-entry 插件管理列表行展示已安装插件版本,便于识别当前安装版本。
doc_workflow_plugin_distribution 经插件分发工作流(Distribute a workflow in a plugin) official-public-docs-derived 工作流可打包进插件进行分发;插件清单与安装渠道负责交付,工作流脚本本身仍运行于代理编排环境。
fix_plugin_marketplace_plain_error_reason_and_action 插件市场被忽略或拒绝时用普通语言说明原因与处理方式 changelog-derived 插件市场加载失败或被拒绝时,错误提示原先不够明确;改进后直接说明市场为何被忽略或拒绝,以及下一步应如何处理。
change_plugin_install_npm_git_folder_refuse_registry_deps 插件安装拒绝 npm 源中的 Git 仓库或文件夹,依赖仅取注册表包 changelog-derived 插件安装规则改动:npm 来源如果是 Git 仓库或文件夹会被拒绝;插件依赖只从注册表包安装。
entry_2_1_329_marketplace_auto_update_status_row /status:Marketplace auto-update 行列出托管市场及其不自动更新原因 official-document-derived-entry /status 的 Marketplace auto-update 行命名受托管且不自动更新的插件市场,并说明原因;该状态用于市场更新策略诊断。
entry_2_1_323_plugin_engines_claude_code_version_range plugin.json engines["claude-code"]:版本范围外插件不安装、更新或加载 official-document-derived-entry 插件清单 engines["claude-code"] 声明兼容版本范围;范围外插件不会被安装、更新或加载,安装与更新选择最适合的最新版本。
plugin_publish_distribution Plugin publish distribution: marketplace listing, folder/zip share and per-marketplace auto-update official-doc-derived Official publish documentation: a plugin reaches users through a marketplace catalog, a sent folder, or a .zip; the plugin name and version are permanent release boundaries. Auto-update is a per-marketplace user-side background setting. This entry records public distribution routes only, not marketplace ranking, license, or compatibility claims.
plugin_dependency_semver_range Plugin dependency version range: semver constraint, marketplace resolution and cross-marketplace allowlist official-doc-derived Official dependencies documentation: a bare dependency string follows the version supplied by its marketplace; an object pins name, semver range such as ^2.0 or ~2.1.0, and optional marketplace. Pre-release ranges require an explicit pre-release suffix; cross-marketplace resolution follows an allowlist.
doc_plugin_workflow_namespaced_command Plugin workflow namespaced command: <plugin-name>:<workflow-name> official-public-docs-derived Official workflows documentation: plugin workflows are placed in the plugin-root workflows/ directory or referenced by the plugin manifest workflows field. Plugin workflows are namespaced by plugin name: a plugin named acme-tools whose script meta.name is release-audit runs as /acme-tools:release-audit.
doc_large_codebase_on_demand_skills_plugins_central_conventions Centralize stale layered conventions in on-demand skills and centrally owned plugins official-document-derived-entry Official large-codebase documentation: as per-directory CLAUDE.md files drift, conventions and reference material should move out of always-loaded instructions into mechanisms that load on demand. Skills hold reference material relevant to a task; plugins are versioned bundles of skills, hooks and commands owned centrally by the team maintaining the repository setup.
doc_large_codebase_lsp_code_intelligence_plugin Large-codebase LSP code-intelligence plugin lookup boundary official-public-docs-derived Code-intelligence plugins connect Claude to a language server so symbol definitions and callers are found through LSP navigation instead of broad file scans; each developer machine still needs the language-server binary for that language.
entry_2_1_332_plugin_cache_temp_folders_copied_into_place temp_* folders no longer pile up in ~/.claude/plugins/cache after a downloaded plugin cannot be copied into place official-public-docs-derived Official changelog fix: temporary folders prefixed temp_* accumulated in ~/.claude/plugins/cache when a downloaded plugin could not be copied into place. The entry records plugin installation cache cleanup boundary; filesystem copy internals are not modeled.
doc_setting_enabled_plugins enabledPlugins maps plugin@marketplace names to per-scope on/off booleans official-doc-derived Official settings-reference: enabledPlugins turns individual plugins on or off, keyed by plugin-name@marketplace-name. A plugin with no entry at any scope follows its manifest defaultEnabled value; the /plugin or claude plugin enable command writes this key when a user changes the setting.
doc_setting_extra_known_marketplaces extraKnownMarketplaces pre-registers additional marketplace sources by name official-doc-derived Official settings-reference: this object registers additional marketplaces so repository users or every managed-settings recipient receive the marketplace without manually adding it. Claude Code registers unknown marketplaces; whether an enabledPlugins-named plugin installs still depends on the plugin source and settings file. Repository entries are honored only after workspace trust acceptance.
doc_setting_prepend_plugins prependPlugins orders managed-plugin mods before every user-installed mod official-doc-derived Official settings-reference: prependPlugins lists managed plugins whose mods run before every mod installed by the user, in the listed order. In managed settings, an id whose plugin does not count as the organization's plugin is skipped; an id present in both prependPlugins and appendPlugins is prepended. Project, local and --settings files are ignored for this key.
doc_setting_append_plugins appendPlugins orders managed-plugin mods after every user-installed mod official-doc-derived Official settings-reference: appendPlugins lists managed plugins whose mods run after every mod installed by the user, in listed order. A plugin id listed in both prependPlugins and appendPlugins is prepended; managed settings skip plugins that do not count as the organization's plugin. The key ignores project, local and --settings files.
setting_plugin_trust_message pluginTrustMessage: organization text appended to the pre-install plugin trust warning official-doc-derived Official settings-reference: pluginTrustMessage adds an organization-owned message to the trust warning Claude Code shows before plugin installation, for example to confirm plugins from an internal marketplace have been vetted. The key is managed-scope; unset means Claude Code shows the standard warning alone.
setting_plugin_configs pluginConfigs: stored non-sensitive userConfig answers keyed by plugin ID official-doc-derived Official settings-reference: pluginConfigs stores non-sensitive answers to a plugin's userConfig dialog, keyed by plugin ID. Each entry has an options field mapping option names to strings, numbers, Booleans or string arrays, and an optional mcpServers field holding per-server user configuration. Claude Code writes this key to the user settings file.
setting_plugin_suggestion_marketplaces pluginSuggestionMarketplaces names sources for contextual plugin install suggestions official-doc-derived Official settings reference: this array names marketplaces whose plugins can appear as contextual install suggestions, spinner tips, and pinned entries at the top of the /plugin Discover tab. The built-in first-party frontend-design tip is unaffected; suggestions follow each marketplace entry's relevance declaration. The setting is Managed scope.
setting_disable_command_plugin_sources disableCommandPluginSources: block marketplace-declared command plugin installation source official-doc-derived Official settings-reference: when true, Claude Code never runs the command plugin source, does not install or update command-sourced plugins, and stops loading installed ones; false explicitly allows them. This records the source-switch boundary, not an installed plugin or marketplace catalog.
ch_plugin_marketplace_error_plain_words_and_dependency_listing Changelog improvement: plain-word marketplace ignore/refusal reason, missing-dependency listing and unfinished install retry capability-derived 官方 changelog 改进:插件市场被忽略或拒绝时用普通语言说明原因与处理方式;插件列表标注依赖未安装;更新插件时重试此前未完成的安装。
fix_mod_rtl_text_punctuation_layout 2.1.332 Mod right-to-left text punctuation and panel width layout fix official-public-changelog Changelog fix: Mods showing right-to-left text no longer place punctuation on the wrong side; band or pane width now fills correctly when the panel font lacks box-drawing characters. Boundary: public Mod UI rendering compatibility only, not font file, layout internals, or arbitrary Mod privilege.
doc_plugin_component_supported_component_type_set Plugin supported components: skills, commands, agents, hooks, MCP/LSP, executables, themes, channels, monitors official-doc-derived 官方组件文档列出可加入插件的组件类型:skills、commands、agents、hooks、MCP servers、LSP servers、executables、themes/output styles、channels 与 monitors;没有任何组件是必填项,插件无清单也可加载。
doc_mod_create_self_contained_component Create a mod: no Node.js, bundler or build step; session mod folder loads at turn end and reloads on changed turns official-public-documentation-entry 官方创建 Mod 文档说明:可由会话生成或手写;Mod 组件无需 Node.js、打包器或构建步骤;会话 mods 目录在回合结束时加载,变更后的回合结束时重载。
doc_marketplace_manifest_entry_name_source_description Marketplace entry fields: name identifier, source location, description and plugin entry rules official-public-documentation-entry 官方市场创建文档:市场条目含安装前缀识别用 name、插件获取位置 source、浏览展示 description;字段规则与相对路径来源以 marketplace reference 为准。
doc_plugin_eval_case_directory_prompt_grader_layout Plugin eval case directory: prompt.md or case.yaml plus at least one grader under graders/ official-public-document Each eval case is a subdirectory of the plugin's evals directory. It contains a prompt.md, a case.yaml, or both, and at least one grader as graders/.md or a graders entry in case.yaml; a graderless case fails to load. prompt.md frontmatter sets max_turns, timeout_seconds, model, tags and allowed_tools; the prompt body receives the exact user message and @path mentions are not expanded into attachments.
doc_plugin_eval_grader_types_cost_and_weights Eval graders: regex, tool_used, tool_order and file_exists are local; llm and baseline call a judge model; weight and arm control scoring official-public-document Grader frontmatter selects a type, optional weight and optional arm. regex, tool_used, tool_order and file_exists are computed from transcript and files with no model call; llm and baseline call a judge model and add usage cost. No custom-code grader exists. A grader marked with arm both scores in both with and without arms, while with-only graders are excluded from baseline scoring to keep the two arms comparable.
feat_easel_builtin_mod Easel: built-in Mod that draws charts on request and under MCP metrics results proprietary-all-rights-reserved Official changelog: Easel is a built-in Mod that draws charts when asked and under MCP metrics results; it is available on Pro, Max and, where available, Team and Enterprise on macOS and Linux, and automatic charts can be turned off in /config. The entry preserves the built-in Mod boundary.
doc_plugin_install_scope_user_project_local Plugin install scopes: user (~/.claude/settings.json), project (.claude/settings.json committed) and local (.claude/settings.local.json); local overrides project overrides user official-public-documentation-entry Official plugin install reference: User scope enables the plugin for the user across every project on the machine, recorded in enabledPlugins in ~/.claude/settings.json. Project scope enables it for everyone working in the repository, recorded in committed .claude/settings.json; committing the entry turns the plugin on for collaborators but does not download it to their machines, so each collaborator runs the project-scope install once per clone. Local scope enables it for the user in this repository only, in .claude/settings.local.json. Precedence runs local over project over user. A manifest defaultEnabled:false plugin installs but stays off until enabled. The entry records the documented three-scope enablement and download distinction.
doc_plugin_dependency_install_disable_uninstall Plugin declared dependencies: installed and enabled at scope; enable activates installed disabled deps; disable refuses while another plugin needs it; uninstalled deps remain until prune official-public-documentation-entry Official plugin dependency reference: enabling a plugin also enables its dependencies that are installed but disabled; if a declared dependency is not installed, enable fails and instructs the user to install it first. Disabling refuses while another plugin still needs the dependency. On uninstall, auto-installed dependencies remain until claude plugin prune removes them. The entry records the documented install, enable, disable and uninstall dependency transitions against the existing dependency version-range anchor; optionalDependencies semantics are covered by the separate optional-dependencies entry.
doc_settings_example_three_files_non_baseline Example settings files: developer ~/.claude/settings.json, team committed .claude/settings.json, organization managed-settings.json; plausible examples, not a recommended baseline; settings files accept no comments official-public-documentation-entry Official settings-example reference: the page holds three example settings.json files, one per saved-setting location: a developer's personal ~/.claude/settings.json, a team's committed .claude/settings.json, and an organization managed-settings.json. Each example has a copyable file tab and a commented what-each-key-does tab; Claude Code does not accept comments in a settings file, so the copy comes from the first tab. Key types and defaults follow the settings-reference rather than the example. The entry records the documented file roles, non-baseline status and no-comments boundary; it does not treat any sample value as a managed-policy requirement.
doc_plugin_bin_directory_path_sandbox_boundary Plugin bin/ directory added to the Bash tool shell PATH; PowerShell tool receives it outside the sandbox only, not inside; plugin hooks, monitors, MCP/LSP servers and mod processes run outside the sandbox official-public-documentation-entry Official plugin security reference: Claude Code adds each enabled plugin's bin/ directory to the PATH of the Bash tool's shell, so Claude's Bash commands can run any executable there. A command run with the PowerShell tool gets those directories on PATH when it runs outside the sandbox, and not when it runs inside it. Permission rules and the sandbox cover the tool calls Claude makes, not the code a plugin runs by itself: hooks, monitors, MCP servers, LSP servers and mod processes run outside the sandbox with full user permissions; a call to one of the plugin's MCP tools and a Bash command running a bin/ executable are themselves tool calls, so permission rules apply. The entry records this documented PATH visibility and sandbox division.
doc_plugin_monitor_background_shell_lifecycle Plugin monitors: background shell commands Claude Code starts at session start, on plugin reload, or the first named-skill run; lifecycle distinct from hooks and MCP servers official-public-documentation-entry Official plugin security reference: a plugin's monitors run as background shell commands that Claude Code starts on its own when the session starts, when plugins are reloaded, or the first time a named skill runs. Monitors are distinct from command hooks, MCP servers, LSP servers and mod processes listed in the same component inventory. The entry records the documented monitor start triggers and component distinction; it does not model monitor process supervision, restart policy or output channels beyond the public description.
entry_2_1_330_managed_marketplace_auto_update_optout 2.1.330 managed extraKnownMarketplaces auto-update by default on or after November 30, 2026; opt out with autoUpdate: false on the entry official-public-changelog-entry Official changelog 2.1.330 (November 20, 2026): on or after November 30, 2026, plugin marketplaces listed in managed extraKnownMarketplaces will auto-update by default. To opt one out, set "autoUpdate": false on its entry. The entry records the documented managed-source transition, date threshold and per-entry opt-out; marketplace installation trust and update verification are otherwise covered by the existing marketplace anchors.
doc_code_intelligence_plugins_page Code intelligence plugins: LSP language-server plugin for live diagnostics and symbol navigation; cloud-session non-start boundary official-public-docs-derived Official code-intelligence plugins page: a code intelligence plugin connects Claude Code to a language server for one language through LSP, giving live diagnostics (type errors, missing imports introduced by edits) and go-to-definition / references by symbol rather than text search. The plugin connects to the server only; it does not include the language-server binary, which must be installed first, then the plugin, then confirm the server starts. Plugins are installed from Anthropic's official marketplace. Code intelligence plugins work in terminal sessions; in cloud sessions Claude Code does not start plugin language servers, so diagnostics and code navigation are unavailable there. The entry records this documented plugin and LSP activation boundary; the LSP tool activation rule remains the existing LSP tool anchor.
doc_plugin_uninstall_keep_data_boundary claude plugin uninstall (alias remove/rm): --keep-data preserves persistent data dir; --prune removes unused auto-installed dependencies official-public-docs-derived 插件卸载命令:从指定作用域移除已安装插件;--keep-data 保留持久数据目录 ~/.claude/plugins/data//,--prune 清理无其他插件需要的自动安装依赖。卸载最后一个作用域的插件时会删除选项、密钥与数据目录;存在共用目录、安装记录读不回、settings_still_on 等情形时予以保留;--json 结果带 keptData 与 savedKept 字段。
doc_plugin_enable_disable_scope_goal_state plugin enable / plugin disable: scope auto-detected local→project→user; already in goal state returns already_in_goal_state; dependencies enabled together; disable fails when required by another plugin or org-synced official-public-docs-derived 插件启用与停用命令:省略 --scope 时按 local→project→user 顺序自动探测;高优先级作用域写覆盖、其他作用域失败;已处于目标状态时输出 already_in_goal_state。enable 连带启用声明依赖;disable 在插件被其他启用插件依赖、或组织要求为 synced 插件时失败;@synced 形式用于 claude.ai 同步插件。
doc_plugin_restore_set_as_aside_options plugin restore-set-aside <plugin>@<marketplace> (v2.1.321+): restore or discard options/secrets set aside when an org replaced a same-name marketplace; requires full qualified ID official-public-docs-derived 恢复或删除组织用同名市场替换插件时被搁置的选项与密钥;--discard 删除搁置值;必须传完整 name@marketplace ID,裸 name 匹配不到;目标 ID 已有选项值时保留现值、丢弃搁置值。要求 Claude Code v2.1.321 或更高版本。
entry_2_1_332_improved_claude_plugin_marketplace_add_on_windows_to_wait_and_try_agai Improved claude plugin marketplace add on Windows to wait and try again in some cases when another program, such as a virus scanner, briefly holds the downloaded files official-public-changelog-entry Improved claude plugin marketplace add on Windows to wait and try again in some cases when another program, such as a virus scanner, briefly holds the downloaded files
entry_2_1_332_fixed_temp_folders_piling_up_in_claude_plugins_cache_when_a_downloaded Fixed temp_* folders piling up in ~/.claude/plugins/cache when a downloaded plugin couldn’t be copied into place official-public-changelog-entry Fixed temp_* folders piling up in ~/.claude/plugins/cache when a downloaded plugin couldn’t be copied into place
entry_2_1_332_fixed_the_plugin_not_cached_error_pointing_to_plugin_instead_of_reload Fixed the plugin “not cached” error pointing to /plugin instead of /reload-plugins, the command that reloads plugins official-public-changelog-entry Fixed the plugin “not cached” error pointing to /plugin instead of /reload-plugins, the command that reloads plugins
entry_2_1_332_plugin_manage_plugins_version_row Manage plugins rows show installed plugin version official-document-derived-entry VS Code 与桌面端 Manage plugins 的列表行新增展示已安装插件的版本号。
entry_2_1_332_plugin_cache_temp_folders_cleanup 插件下载失败时 ~/.claude/plugins/cache 临时目录不再堆积 official-documentation-entry 修复下载插件无法复制到位时,temp_* 文件夹在插件缓存目录持续堆积的问题。
entry_2_1_332_plugins_settings_cli_flag_not_loading --settings CLI 标志启用的插件不再加载失败(v2.1.181 回归) official-documentation-entry 修复经 --settings CLI 标志启用的插件未加载的回归问题(自 v2.1.181 起)。
entry_2_1_331_manage_plugins_startup_blocking_plugin_load Manage Plugins loads when startup slow or blocked plugin present (2.1.331) proprietary-all-rights-reserved Claude Code 启动缓慢或启动失败时,Manage Plugins 仍可加载,便于关闭阻断启动的插件。
entry_2_1_330_plugin_concurrent_install_missing_installed_list Concurrent claude plugin commands no longer drop installed plugins (2.1.330) proprietary-all-rights-reserved 多个 claude plugin 命令并发运行时,插件不再从已安装列表中缺失。
entry_2_1_332_vscode_manage_plugins_installed_version_row Installed version shown in Manage plugins rows (2.1.332) official-public-changelog-entry Manage plugins 列表行显示插件已安装版本。
entry_2_1_331_plugin_marketplace_error_plain_words_refused_reason Plugin marketplace errors state plainly why ignored or refused and what to do (2.1.331) official-public-changelog-entry 插件市场错误以直白语言说明被忽略或拒绝的原因及处理方式。
entry_2_1_331_plugin_dependencies_uninstalled_listing_retry_incomplete_install Plugin listings note uninstalled dependencies; updating retries an unfinished install (2.1.331) official-public-changelog-entry 插件列表标注未安装的依赖;更新插件时重试此前未完成的安装。
entry_2_1_330_plugin_install_id_dot_dash_case_cache_folder_refused Plugin install refused when ids differ only in ., -, @ or case; avoids placing into installed plugin cache/data folder (2.1.330) official-public-changelog-entry 插件 ID 仅以点、连字符、@ 或大小写区分时,安装被拒绝,避免装入已安装插件的缓存或数据目录。
fix_plugin_marketplace_record_invalid_id_reloads installed_plugins.json holding a record under an invalid plugin id loads again instead of showing no plugins official-public-changelog-entry An invalid plugin-id record in installed_plugins.json does not blank the installed plugin list; the file loads again.
fix_plugin_no_version_restored_to_source_newest_commit Plugins that declare no version are restored to the installed record, not silently refreshed to the source's newest commit when cached files are missing official-public-changelog-entry Version-less plugins restore the installed record; missing cached files no longer silently move them to the source newest commit.
fix_plugin_update_recorded_commit_unknown_snapshot_link claude plugin update no longer clears a recorded commit and moves a plugin to version unknown when the official marketplace snapshot file is a link or too large official-public-changelog-entry Plugin update preserves the recorded commit when the marketplace snapshot file is a link or oversized; version unknown is no longer set from that condition.
fix_plugin_uninstall_options_secrets_kept_when_settings_enabled Plugin uninstall keeps saved options and secrets when the installed list could not be read after removal; it stops and names the file if the settings file still enables the plugin official-public-changelog-entry Uninstall does not delete saved options and secrets when the installed list is unreadable after removal; if the settings file still enables the plugin, the command stops and names the record.
fix_plugin_dir_no_git_own_version_enclosing_repository A plugin or marketplace directory with no git repository of its own no longer takes its version from an enclosing git repository such as a git-managed ~/.claude official-public-changelog-entry Version resolution does not inherit an enclosing git repository for a directory that has no repository of its own.
fix_known_marketplace_refresh_failed_kept_clone_setting known_marketplaces.json does not record a marketplace as refreshed when the remote was unreachable and CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE kept the existing clone official-public-changelog-entry A failed marketplace refresh with the keep-existing-clone setting does not mark the marketplace as refreshed in known_marketplaces.json.
fix_plugin_second_uninstall_update_enter_while_running Pressing Enter again while a plugin uninstall or update runs does not start a second uninstall or update of the same plugin official-public-changelog-entry A repeat Enter during an in-flight plugin uninstall/update does not queue a second operation for the same plugin.
fix_marketplace_add_held_key_instant_before_source_read A held y does not add a marketplace the instant the Add marketplace? question appears, before it can be read official-public-changelog-entry A held confirm key cannot approve marketplace add before the source question has been read and rendered.
entry_2_1_325_plugin_mcp_bundle_unpack_location_readonly_folder 插件 MCP 包(.mcpb/.dxt)解包到插件目录而非 .mcpb-cache,支持只读插件文件夹加载 official-document-derived-entry 插件 MCP 捆绑包 .mcpb、.dxt 解包到插件目录下,不再使用插件文件夹内的 .mcpb-cache,使只读插件文件夹可加载;URL 拉取的包仅重复下载一次。
entry_2_1_325_remote_marketplace_managed_plugins_org_scope 托管设置声明的远程市场插件经 prependPlugins/appendPlugins 计入组织;pluginDigests 弃用忽略 official-document-derived-entry 托管设置在 prependPlugins 或 appendPlugins 中声明、启用并列出的远程市场插件视为组织插件;pluginDigests 已弃用并被忽略。
entry_2_1_325_plugin_unsafe_path_link_validate_skip 插件加载跳过并由 claude plugin validate 报告插件文件夹内部分不安全路径与链接 official-document-derived-entry 插件加载时跳过部分不安全路径与链接;claude plugin validate 报告这类问题;仅限路径/链接校验,不涉及插件内部源码结构。
entry_2_1_325_marketplace_ref_full_commit_id_pin_branch_tag 市场引用接受分支/标签上任意提交的完整 ID 钉选;旧版本客户端无法克隆此类钉选则停止加载 official-document-derived-entry marketplace 引用可接受分支或标签上任意提交的完整 ID 作为钉选;该版本之前的客户端无法克隆此类钉选,被这样钉选的市场在旧客户端停止加载。
entry_2_1_331_plugin_autoupdate_dependency_plugins_named_separately Plugin auto-update notice names newly installed dependency plugins separately from updated plugins changelog-derived 官方 changelog 2.1.331:插件自动更新提示把新安装为依赖的插件与被更新插件分别命名;条目记录市场更新通知展示边界。
entry_2_1_331_plugin_install_marketplace_hang_managed_approval_unsolicitable plugin install and marketplace add hang with no output when managed settings need an approval that cannot be asked changelog-derived 官方 changelog 2.1.331:claude plugin install、marketplace add 等命令在托管设置需要无法询问的审批时挂起且无输出。条目记录市场命令审批等待边界,不记录内部审批通道。
plugin_gemini_extension Gemini CLI extension package (prompts, MCP servers, custom commands) official-documentation-extension Gemini CLI 扩展把提示词、MCP 服务器与自定义命令打包到同一目录,由 gemini-extension.json 清单声明;可按用户级或工作区作用域启用,启动时从 ~/.gemini/extensions 加载。
entry_2_1_331_plugin_install_marketplace_hang_managed_approval 托管设置需要无法询问的审批时 plugin install / marketplace add 不再挂起 changelog-derived 官方 changelog 2.1.331:claude plugin install、marketplace add 等命令在托管设置要求审批而无法弹出询问时曾无输出挂起;修复该挂起。边界:命令与托管设置审批交互,不收录审批服务内部。
entry_2_1_330_plugin_install_concurrent_list_missing 并发运行多个 claude plugin 命令时已安装插件列表不再缺失 changelog-derived 官方 changelog 2.1.330:多个 claude plugin 命令同时运行时,插件曾从已安装列表中消失;修复并发列表一致性。边界:插件安装列表行为,不收录插件目录内部结构。
env_plugin_git_timeout_ms CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS 插件市场 Git 超时 configuration-documentation 官方 changelog 2.1.329:插件市场默认 Git 超时由 30 秒调整为 120 秒,可用该变量配置。边界:只约束市场仓库克隆/拉取超时,不改变插件安装范围、信任规则或市场清单结构。
env_plugin_data CLAUDE_PLUGIN_DATA 插件持久状态目录变量(跨更新保留) configuration-documentation 官方 changelog:提供 ${CLAUDE_PLUGIN_DATA} 变量存放插件持久状态,插件更新后保留;卸载插件前会提示是否删除。边界:状态目录定位,不涉及插件代码执行授权。
entry_2_1_332_plugin_cache_temp_folders_pileup 插件缓存 temp_* 文件夹复制失败时不再堆积 official-document-derived-entry 下载插件无法复制到位时,~/.claude/plugins/cache 下的临时文件夹不再持续堆积。
entry_2_1_332_plugin_not_cached_reload_plugins 插件未缓存错误指向 /reload-plugins 而非 /plugin official-document-derived-entry 插件报 not cached 时错误提示指向执行重载的 /reload-plugins 命令,而非 /plugin。
cli_cmd_plugin claude plugin 插件管理命令(install/configure/validate/marketplace 等子命令分组) configuration-documentation 插件 CLI 父命令;子命令覆盖安装、选项配置、离线校验与市场管理,插件清单与市场边界由既有插件条目承载
doc_marketplace_deprecated_claude_code_plugins 已弃用 claude-code-plugins 市场:迁移至 claude-plugins-official official-public-docs-derived 官方文档记录 anthropics/claude-code 内的 claude-code-plugins 市场已弃用;插件安装应使用 <plugin>@claude-plugins-official,不再执行旧的 /plugin marketplace add anthropics/claude-code 步骤。既有已安装插件从官方仓库更新;本条目只记录弃用边界与迁移目标,不把旧市场列为当前支持目录。
feat_plugin_install_accept_command_hash Plugin install/update --accept-command <sha256>: accept the exact command hash shown by a prior --json run instead of -y official-public-changelog-entry 2.1.271 changelog entry: claude plugin install and claude plugin update accept --accept-command <sha256> to approve exactly the command a previous --json run displayed, replacing the generic -y confirmation. Scope: CLI plugin install/update approval flag; hash matches that recorded command only.
fix_plugin_zip_stale_extraction_overlapping_reload .zip 插件在多次重叠重载后不再从陈旧解压目录提供 official-public-changelog-entry Official changelog: a plugin loaded from a .zip no longer serves a stale extraction after several overlapping reloads. The entry records the reload packaging boundary only; internal archive extraction source code is excluded.
improve_marketplace_add_same_name_replacement_undo_notice marketplace add 同名替换时提示来源不同与撤销方式 official-public-changelog-entry Official changelog: claude plugin marketplace add now reports when it replaces a marketplace already added under the same name from a different source, and explains how to undo the replacement.
plugin_adk_plugins ADK Plugin workflow-lifecycle callback module official-documentation-extension An ADK Plugin is a custom code module executed at stages of an agent workflow lifecycle through callback hooks. Plugins package cross-cutting workflow functionality; ADK guidance recommends plugins over standalone callbacks for modular safety guardrails and policies.
entry_2_1_332_installed_plugins_json_managed_policy_rewrite_churn 托管插件策略下 installed_plugins.json 启动重写导致桌面会话重载 official-public-changelog-entry 官方 changelog 2.1.332:插件策略来自远程托管设置时,installed_plugins.json 几乎每次启动都被重写,使 Claude Desktop 每次打开会话都重载插件;记录该持久化抖动问题与托管策略边界。
doc_plugin_dependency_version_resolution Plugin dependency version resolution: tag range, combined constraints, non-git source and synced-plugin match official-doc-derived Official dependencies documentation: a constrained dependency resolves to the highest git tag satisfying the range; several installed plugins' ranges combine and must overlap; npm, archive and command sources are checked against the installed version while tag-based resolution does not control the fetched source; claude.ai synced plugins match by name and enabled status under the documented conditions. This record attaches to the existing semver-range, lifecycle and cross-marketplace allowlist anchors and excludes source-fetch credentials or internal resolver data.
doc_plugin_hook_shell_form_option_env_mapping Plugin Hook shell-form 选项环境变量映射(CLAUDE_PLUGIN_OPTION_<KEY>) configuration-documentation 官方 Hooks 文档:shell-form 插件 Hook 命令引用 ${user_config.*} 会报错而不做替换;应通过 $CLAUDE_PLUGIN_OPTION_<KEY> 读取选项值,例如 webhook_url 对应 $CLAUDE_PLUGIN_OPTION_WEBHOOK_URL,或把参数放入 args 切换为 exec form。边界:只记录选项传递约定与命令形态区分,不收录插件源码、密钥值或 Hook 内部授权判定;v2.1.207 之前旧客户端曾做 ${user_config.*} 替换。
doc_plugin_claude_security_scan Claude Security vulnerability-scan plugin: multi-agent findings review and manual patch workflow official-public-docs-derived Official claude-security plugin page: it runs a multi-agent vulnerability scan in a Claude Code session over a whole repository, branch/PR diff, or single commit. Agents map the architecture, hunt vulnerabilities, independently review findings, and write the report. The plugin makes no separate model API call; patches in the report patches/ folder are never applied automatically.
plugin_openai_developers_cursor OpenAI Developers Plugin for Cursor(官方 Cursor 插件包) apache-2.0-verify-repository-license openai/openai-developers-for-cursor 是 OpenAI 面向 Cursor 的官方插件包:插件清单声明 OpenAI Developers 扩展,mcp.json 配置公开 OpenAI Docs MCP 服务器;skills 覆盖 OpenAI 产品/API/模型/SDK 文档检索、本地 API Key 引导、API 故障排查、Agents SDK 规划与 ChatGPT Apps 项目实现。
plugin_openai_developers_claude OpenAI Developers Plugin for Claude Code(官方 Claude Code 插件包) apache-2.0-verify-repository-license openai/openai-developers-for-claude 是 OpenAI 面向 Claude Code 的官方插件包:marketplace 与 plugin 清单声明 OpenAI Developers 扩展,.mcp.json 捆绑公开 OpenAI Docs MCP 服务器;skills 覆盖产品、API、模型、SDK、提示词与模型升级咨询,以及 API Key 引导、故障排查、Agents SDK 规划和 ChatGPT Apps 项目实现/提交指引。
plugin_openai_codex_claude_code OpenAI Codex Plugin for Claude Code(官方 Codex 委托插件包) apache-2.0-verify-repository-license openai/codex-plugin-cc 在 Claude Code 内提供 Codex 委托工作流:/codex:review 与 /codex:adversarial-review 执行只读代码审查;/codex:rescue、/codex:transfer、/codex:status、/codex:result 和 /codex:cancel 处理任务委托、会话迁移、后台任务与结果读取。插件包装本机 Codex CLI 与 Codex app server,不启动独立 Codex 运行时。

Session

ID 名称 许可证状态 摘要
session_transcript 本地 transcript 会话记录 proprietary-all-rights-reserved 消息、工具调用与结果持续写入本地 .jsonl transcript,支撑 resume/continue/branch/fork
session_resume 会话恢复 Resume/Continue capability-derived --continue 重开最近会话;--resume 打开选择器或按名称/ID/transcript 路径恢复
session_branch 会话分支 Branch / Fork capability-derived /branch 或 --fork-session 复制对话历史;原会话保持不变,新分支独立会话 ID
session_compact 上下文压缩 Compact capability-derived /compact 用摘要替换历史;根目录 CLAUDE.md 压缩后重读注入;嵌套指令按需重载
session_clear 上下文清理 Clear capability-derived /clear 开启空上下文;前一会话保存,可 /resume 或回退菜单恢复
session_picker 会话选择器 Session Picker capability-derived --resume 打开的会话选择界面;可按名称/ID/transcript 路径或 PR 过滤恢复会话
session_naming 会话命名与生成标题 capability-derived 启动 -n、会话内 /rename、选择器 Ctrl+R 或 Remote Control 改名;未命名会话由后台小模型生成标题,默认目录名不是恢复句柄
session_checkpoint 检查点回溯 Checkpointing capability-derived 单会话内基于检查点的回退机制;区别于 --fork-session 的跨进程分支复制
session_script_export 脚本结构化会话接口(JSON / transcript 路径 / 事件流) capability-derived -p --output-format json/stream-json 输出结果、会话 ID、用量与成本;Hook 与状态栏命令接收 transcript_path;Agent SDK 按消息接收
session_script_json 脚本结构化会话接口 -p JSON / stream-json 能力派生 非交互运行 claude -p 以 --output-format json 或 stream-json 获取结果、会话 ID、用量与成本等结构化数据;可经 --resume 按会话 ID 追问
session_export /export 会话导出 能力派生 把当前会话复制到剪贴板或存为纯文本文件;消息与工具输出渲染为可读文本;区别于脚本解析用的 transcript 路径与 JSON 输出
session_resume_state 恢复状态还原:历史/中断工具/模型/后台任务 capability-derived 恢复 transcript 还原消息与工具结果;中断工具不重跑;模型沿用原会话;后台子代理/Bash/workflow 以未完成备注出现
session_perm_resume 恢复时权限模式还原规则 capability-derived 终端还原原权限模式;非交互 -p 按新运行默认;计划模式满足条件恢复;--permission-mode 等标志可覆盖
session_title_gen 标题生成:后台小模型摘要首条提示 capability-derived 未命名会话由后台小/快模型生成标题;计划接受后替换为计划标题;目录名+后缀的默认显示名不能作为 resume 句柄
session_purge 会话清理:claude purge / claude rm capability-derived purge 提前删除项目 transcript 与状态;rm 删后台会话后 transcript 仍留盘,可 --resume 找回
checkpoint_snapshot_100 检查点快照保留:最近 100 个检查点文件快照 capability-derived 每个启动一轮的提示生成新检查点;会话内保留最近 100 个检查点文件快照;淘汰旧检查点时删除无剩余引用的快照,每文件首份快照作为 VS Code 会话 diff 基线保留
checkpoint_rewind_actions /rewind 菜单操作:还原代码/对话/单向/总结 capability-derived 还原代码与对话、仅还原对话、仅还原代码、从此点向前总结、总结到此点、取消;代码还原选项仅在该检查点追踪到文件改动时出现
checkpoint_resume_persist 检查点随会话持久化,恢复后仍可 /rewind capability-derived 检查点与会话一并保存,resume 后可继续回退;快照按保留扫描默认约 30 天清理,快照缺失时回退可能报 No files were restored;cleanupPeriodDays 可调
feat_prompt_draft_recovery Ctrl+C 清空提示后草稿恢复(Up 键) capability-derived 2.1.288:被 Ctrl+C 清空的提示,在空提示行按 Up 可恢复草稿,含粘贴文本与图片
feat_transcript_self_heal 损坏 transcript 自愈与 tool_use_id 400 终止循环 capability-derived 2.1.274 修复:损坏记录尽量自愈;否则给出清晰错误并附 /rewind 提示,避免无限重试 unexpected tool_use_id 400
fix_fork_plan_mode_keep fork 子代理保留父会话计划模式 / dontAsk 模式 capability-derived fork 子代理运行在父代理权限模式下且不能退出计划模式;修复此前 fork 丢失 plan/dontAsk 模式的问题
fix_noninteractive_partial_response_retry 非交互会话与子代理部分响应续跑重试 changelog-derived 2.1.288 修复:响应中途 API 超时时,非交互会话与子代理从部分响应继续;仅思考内容的响应会重试。边界:不改变工具结果语义,只处理流响应中断。
fix_resume_pre286_thinking_dropped 恢复 2.1.286 及更早会话时早期思考内容丢失修复 changelog-derived 2.1.288 修复:恢复在 2.1.286 或更早版本开始的对话时,模型早期 thinking 不再被丢弃。
fix_fresh_env_model_limit_window 新环境或模型切换后首轮输出限额与压缩窗口沿用修复 changelog-derived 2.1.288 修复:全新环境或模型切换后的首个请求使用内置输出限额与自动压缩窗口;该请求最多等待 1.5 秒。边界:不改变模型服务授权,只修正首轮会话窗口沿用。
fix_cloud_session_refused_model_reply 云会话服务器拒绝模型后仍用被拒模型回复修复 changelog-derived 云会话重启并选中新模型后,即使服务器拒绝该模型,也不再用被拒模型回复;应回到可用模型通道。
fix_cowork_webfetch_prompt_unanswered_wait Cowork 云会话 WebFetch 权限提示超时后等待输入状态修复 changelog-derived Cowork 云会话中 WebFetch 权限提示五分钟未获答复后,不再一直标记等待输入,避免会话卡在待提示状态。
fix_background_session_plugin_reload_timers 插件重载禁用时后台会话定时器与读取被结束修复 changelog-derived 插件重载或禁用时,其后台定时器或读取仍在运行的后台会话不再被结束。
fix_claude3_pdf_entire_conversation_turn_failure 整份 PDF 进入对话后 Claude 3 会话每回合失败修复 changelog-derived 整份 PDF 进入对话后,Claude 3 Opus/Sonnet 会话不再每回合失败。
fix_cloud_compaction_restart_history_loss 压缩过程中重启的云会话丢失早期对话修复 changelog-derived 2.1.289 修复:云会话在压缩进行中重启时,不再丢失此前对话历史。边界:恢复会话记录衔接,不改变压缩策略、上下文窗口大小或模型选择。
fix_mid_session_repo_skills_plugins_late_load 会话中途添加仓库的技能、插件与 CLAUDE.md 延迟加载修复 changelog-derived 2.1.289 修复:云会话与 SDK 会话中途添加仓库后,其 skills、plugins 不再漏加载;CLAUDE.md 不再晚于 Claude 切换目录后才读取。边界:修正会话内仓库上下文装载顺序,不改变技能、插件或指令文件的授权来源。
feat_agent_reply_queued_delivery 代理回复排队送达与运行中斜杠命令延后执行 changelog-derived changelog 变更:Claude 代理回复以排队消息形式送达;回合运行期间发送的斜杠命令,除 /stop 外,在当前回合结束后再执行。边界:描述消息队列与命令调度顺序,不改变命令自身权限审批。
fix_resume_parallel_tool_call_history_loss 恢复崩溃会话时并行工具调用后的回合记录不再丢失 changelog-derived changelog 修复:使用 --resume 或 --continue 恢复此前崩溃或被杀掉的会话时,批量并行工具调用之后的历史回合不再丢失。边界:只处理会话记录恢复,不保证外部文件、仓库状态或后台进程自动还原。
fix_cloud_large_history_container_wake 超大历史云会话在 transcript 加载期间容器停止后仍可唤醒 changelog-derived changelog 修复:历史非常庞大的云会话在 transcript 加载期间容器停止后,不再永久无法唤醒;会话恢复路径纳入历史加载完成后的容器调度。边界:属于云会话生命周期公开行为,不收录容器编排或磁盘快照内部实现。
session_resume_active_goal_restore 恢复会话时活跃目标(goal)及其状态基线还原 configuration-documentation 官方 Sessions 文档:恢复会话会带入结束时仍活跃的 goal;其回合计数、计时器与 token 花费基线在恢复时重置。边界:只记录目标状态的恢复规则,不收录目标判定算法或内部提示构造。
session_resume_restorable_scheduled_tasks 恢复时还原未到期会话定时任务;后台 Bash/Monitor 任务不还原 configuration-documentation 官方 Sessions 文档:会话作用域、尚未到期的定时任务在恢复会话时还原;后台 Bash 命令与 Monitor 后台任务不在恢复范围内。边界:记录可恢复与不可恢复对象,不推断后台任务内部队列状态。
session_resume_unrestored_launch_flags 恢复会话时需重新传入的启动标志(MCP/插件/目录/设置/回退模型) configuration-documentation 官方 Sessions 文档:仍在运行的后台会话保留其启动标志;其余 --continue/--resume 路径不会自动还原 --mcp-config、--plugin-dir、--add-dir、--settings 与 --fallback-model,需要调用方再次传入。
session_picker_worktree_project_scope 会话选择器工作树、全项目范围展开与分支过滤快捷键 configuration-documentation 官方 Sessions 文档:会话选择器默认显示当前工作树(含后台会话);Ctrl+W 展开到仓库全部工作树,Ctrl+A 展开到本机全部项目,Ctrl+B 按当前 Git 分支过滤。
session_branch_state_inheritance 会话分支继承:进程内授权随分支;独立进程不继承;后台任务与 Remote Control 跟随分支 configuration-documentation 官方 Sessions 文档:/branch 复制对话历史;同一进程内的会话授权随分支保留,--fork-session 派生到独立进程则重新审批。后台子代理与 Bash 继续运行,输出进入新分支;已连接的 Remote Control 客户端跟随进入分支。
session_concurrent_resume_transcript_fork_guard 同一会话并发恢复共写 transcript;需 --fork-session 保留两份对话 configuration-documentation 官方 Sessions 文档:两个终端或两条 claude -p 命令同时恢复同一会话时都会写入同一 transcript;后续恢复可能丢失消息。为保留两份对话,每条命令都应添加 --fork-session。
bg_session Background session 后台会话 public-product-runtime-concept 独立于当前前台会话运行的 Claude Code 会话;可并行处理任务,恢复时可通过 attach 进入运行中的后台会话。
subagent_resume Resumed subagent 可恢复子代理 public-product-runtime-concept 通过 agent ID 或名称使用 SendMessage 继续先前子代理工作;Explore/Plan 一次性代理不返回 agent ID,不可恢复。
fix_resume_large_session_parallel_tool_hooks 大会话恢复保留并行工具调用与 Hook 输出 proprietary-all-rights-reserved 恢复 transcript 超过 5 MB 的大会话时,并行工具调用及其 Hook 输出不再从重载对话中丢失。
fix_cloud_session_persisted_folder_one_day 云会话持久化项目文件夹一天保留修复 proprietary-all-rights-reserved Web 云会话运行约六小时后,保存到持久会话文件夹的文件不再静默丢失;保存内容可保留至一天。
fix_session_remote_env_newest_twenty 云会话与 /remote-env 环境列表最新二十项规则 proprietary-all-rights-reserved 云会话创建和 /remote-env 原先只读取账号最新 20 个环境;修复保留该环境列表行为边界,避免遗漏更早环境。
session_held_message_always_deliver 跨会话挂起消息的 “Always deliver” 投递提示 official-document-feature-entry 来自其他会话的挂起消息在提示中提供 “Always deliver” 选项,用于控制后续消息投递提示。
session_flagged_model_footer 被标记消息处于不同模型时的页脚模型提示 official-document-feature-entry 当被标记消息所在会话处于另一模型时,页脚保留提示,直到用户通过 /model 选择模型。
session_save_partial_warning_compact 会话部分内容未保存时的 /compact 补救警告 official-document-feature-entry VS Code 与 Desktop Code 标签页提示部分会话无法保存,并说明可通过 /compact 保存相关内容。
session_resumed_missing_prior_notice 恢复会话早期消息未加载的提示通知 official-document-feature-entry 恢复会话时若早期消息未加载,VS Code 与 Desktop Code 标签页显示通知;终端已有同类提示。
checkpoint_midturn_message_no_snapshot 回合进行中发送的消息无独立检查点快照 official-public-document-entry Claude 工作期间输入的消息在检查点菜单中标记为 No code restore;该消息没有自己的文件快照,整回合文件改动通过启动提示对应的代码还原处理。
fix_code_mode_typed_message_esc_unanswered Code Mode 命令运行中输入消息与 Esc 未答复边界 official-public-documentation Code Mode 中命令运行时输入的消息,若在回复前按 Esc,曾留下未答复消息;修复后消息进入新回合,第二次 Esc 可停止。
fix_code_mode_resume_last_reply_after_script_stop Code Mode 脚本停止后恢复丢失最后回复修复 official-public-documentation Agent SDK 与 claude -p 的 Code Mode 会话在脚本运行中停止后恢复,有时丢失 Claude 最后回复;该修复覆盖恢复路径。
fix_needs_input_status_after_background_report 后台任务报告后 needs-input 状态保留修复 official-public-documentation Claude Desktop 中后台任务报告后,会话有时丢失“需要输入”状态;修复覆盖报告后的状态衔接。
improvement_proxy_413_compact_recovery 代理/网关请求体积限制下长会话与 /compact 恢复改进 official-public-documentation-entry 在代理或网关限制请求大小、每条消息和 /compact 返回 413 的场景下,改善长会话恢复能力。
entry_2_1_289_remote_env_cloud_session_limit Cloud session remote-env account environment count limit official-public-document-entry 云会话创建与 /remote-env 读取账号环境数量存在上限;该条目记录环境清单作用域与会话边界,不保存环境变量值。
entry_2_1_332_vscode_rewind_stops_self_paced_loop_warning VS Code /rewind restore stops self-paced /loop warning official-document-derived-entry 侧边栏 /rewind 恢复对话时若停止了自节奏 /loop,VS Code 给出警告说明。
entry_2_1_332_synthetic_relayed_midturn_message_flag SDK and claude -p relayed mid-turn message marked isSynthetic official-document-derived-entry 在未获取功能标志的云端或遥测关闭场景,SDK 与 claude -p 回合中消息按用户消息计数;转发文本标记 isSynthetic: true。
entry_2_1_332_code_mode_resume_script_variables_gone_notice Code Mode resume warns earlier script variables are unavailable official-document-derived-entry 恢复 Code Mode 会话时,代理预先获知早期脚本变量已不存在,避免把旧变量当作当前上下文。
entry_2_1_332_code_mode_worktree_changes_discard_confirmation Code Mode confirms before discarding worktree changes official-document-derived-entry Code Mode 在丢弃 worktree 改动前先请求确认,避免未提交变更被直接清除。
fix_idle_compaction_subscriber_weekly_limit 空闲压缩保留未达周限额的订阅会话 proprietary-all-rights-reserved 此前未达到每周额度的订阅会话会被跳过空闲压缩;修复后空闲压缩按订阅者周限额正常工作。
entry_2_1_332_resumed_session_early_messages_notice 恢复会话早期消息未加载提示 official-public-changelog-entry Claude Code 2.1.332:VS Code 与桌面 Code 标签页恢复会话时,若早期消息未加载会显示提示。边界:该提示只展示恢复状态,不补取、重建或改写缺失历史。
entry_2_1_332_partial_session_save_compact_warning 会话部分内容未保存与 /compact 恢复提示 official-public-changelog-entry Claude Code 2.1.332:VS Code 与桌面 Code 标签页在会话部分内容无法保存时给出警告,并说明可用 /compact 保存。边界:提示不保证历史完整,压缩仍受上下文窗口和权限规则约束。
doc_team_in_process_resumption_limit Agent Teams in-process teammate resumption limitation(进程内队友不可随 /resume 或 /rewind 恢复) configuration-documentation 官方 Agent Teams 限制:in-process 队友不随 /resume 或 /rewind 恢复;恢复后 lead 可能向已不存在的队友发消息,需要重新派生队友。
doc_team_shutdown_flow Teammate graceful shutdown flow(命名请求、批准退出或拒绝说明) proprietary-all-rights-reserved 队友优雅关闭流程:主会话发起关闭请求,队友完成当前请求或工具调用后响应;拒绝时附带原因,不强制终止。
doc_team_task_status_lag_limit Agent Teams task-status lag limitation(任务完成状态滞后阻塞下游) proprietary-all-rights-reserved 实验性团队限制:队友有时未把任务标记为完成,导致依赖任务保持阻塞;属于已知协调滞后,不是任务依赖规则失效。
checkpoint_subagent_edits_not_restored 检查点边界:子代理编辑通常不随会话检查点恢复 proprietary-all-rights-reserved 子代理使用文件编辑工具产生的改动一般不进入主会话检查点;是否可恢复取决于子代理运行方式,/rewind 不保证还原其文件改动。
checkpoint_external_changes_not_tracked 检查点边界:会话外部与并发会话改动不被跟踪 proprietary-all-rights-reserved 检查点只跟踪当前会话内编辑过的文件;手动外部改动或其他并发会话的编辑通常不捕获,除非恰好修改同一文件。
doc_session_delete_data 会话 transcript 与相关状态删除命令及保留期清理边界 official-public-documentation-entry transcript 按保留扫描规则过期;claude purge 可更早删除项目 transcript 与相关状态;后台会话用 claude rm <id> 删除后,其 transcript 仍按既有保留规则留在磁盘。
checkpoint_recent_snapshot_retention 检查点保留最近 100 个快照;旧快照引用解除后清理 official-public-documentation-entry 官方 Checkpointing:每次启动一轮提示产生新检查点;会话内保留最近 100 个检查点的文件快照。旧检查点被丢弃且不再有剩余检查点引用时,对应快照文件删除,但每个文件的首个快照除外。快照随会话保存,恢复会话后仍可 /rewind。
checkpoint_snapshot_retention_days_cleanup 会话快照默认约 30 天清理;cleanupPeriodDays 可调保留期 official-public-documentation-entry 官方 Checkpointing:文件快照由保留清扫按默认约 30 天删除;快照缺失后回滚到对应检查点可能失败并提示 No files were restored。可通过 cleanupPeriodDays 设置延长保留期。
session_resume_interrupted_tool_call_not_rerun 恢复会话时中断的工具调用不自动重跑 official-public-documentation-entry 官方会话恢复:从前次进程结束(例如崩溃)时仍在运行的工具不会在恢复后自动重新执行;transcript 中的历史消息、工具调用与结果按记录恢复,工具调用需要由后续提示再次触发。
doc_mcp_long_call_backgrounding 长时间 MCP 工具调用自动转入后台任务 configuration-documentation 主会话中仍在运行超过两分钟的 MCP 工具调用转入后台任务,避免阻塞会话;Claude 立即收到任务 ID 并继续工作;可由环境变量关闭自动后台化。
doc_session_naming_methods 会话命名方式与按名称恢复 official-public-documentation-entry 会话可在启动时用 -n、会话内 /rename、选择器 Ctrl+R、计划接受生成标题、claude.ai/桌面应用重命名;命名后可用 --resume 或 /resume 恢复,跨工作树按精确名称与歧义选择器处理。
doc_session_resume_id_lookup_order 按会话 ID 恢复的查找顺序与唯一匹配边界 official-public-documentation-entry --resume 先查当前项目目录及其 Git 工作树,再查本机其他项目;跨项目 ID 仅当另一个项目唯一持有含消息的 transcript 时解析,重复副本不会任意恢复。
doc_session_resume_worktree_project_behavior 其他工作树与无关项目的恢复位置规则 official-public-documentation-entry 同一仓库其他工作树就地恢复;工作树已删除时回到当前目录恢复;无关项目不会跨目录打开,而是复制 cd 与恢复命令到剪贴板,项目目录不存在时再落到当前目录。
doc_session_purge_background_transcript_retention claude purge 删除本地状态与后台会话 transcript 保留边界 official-public-documentation-entry purge 可提前清理项目 transcript 与相关本地状态;用 claude rm 删除后台会话时,transcript 仍留在磁盘并可通过 --resume 访问,后台会话删除不等于 transcript 删除。
doc_tool_end_conversation_lock_noninteractive_exit EndConversation 后会话锁定与非交互退出码边界 official-public-documentation-entry 交互会话被结束后锁定,仅 /clear、/resume、/help、/exit、/feedback 可运行;结束记录写入 transcript,历史不删除;-p 非交互恢复已结束会话报错并以退出码 1 退出,避免脚本误读成功。
doc_tool_background_command_lifecycle 后台命令生命周期:父级会话/子代理运行结束规则 official-public-documentation-entry 前台子代理启动的命令随该子代理结束;主会话或后台子代理启动的命令在最终响应后继续运行,直到退出、被停止或达到时限;非交互 -p 主会话在后台命令退出或超时前保持打开,后台子代理命令随运行退出停止。
doc_team_orphaned_tmux_session Agent Teams 遗留 tmux 会话清理边界 proprietary-all-rights-reserved Claude Code 会话结束后若 tmux 会话仍残留,说明团队会话未完全清理;官方排查方式是列出 tmux 会话并结束团队创建的对应会话。
doc_session_resume_running_background 恢复仍在运行的后台会话边界 proprietary-all-rights-reserved 用 --resume 或 /resume 恢复属于后台会话且仍在运行的对话时,Claude Code 打开该运行会话;命令带 --bg 时恢复动作属于后台派发。
doc_session_picker_keyboard_navigation 交互式会话选择器键盘导航与预览规则 proprietary-all-rights-reserved /resume 或无参数 claude --resume 打开交互式选择器;支持上下方向键或 k/j 导航、Enter 恢复、Space 预览、Ctrl+R 重命名,可输入字符搜索会话。
doc_session_resumed_restored_state 会话恢复可还原的对话与保存状态边界 proprietary-all-rights-reserved 会话从 transcript 加载后恢复历史消息、工具调用与结果;压缩会话从最后压缩摘要、未摘要消息及之后消息继续;其他可还原状态以会话保存内容为准。
doc_session_picker_project_worktree_scope 会话选择器默认项目目录与工作树范围 proprietary-all-rights-reserved 会话按项目目录存储;选择器默认显示当前工作树会话(含 bg 标记后台会话)以及通过 /add-dir 加入当前目录的其他项目会话,快捷键可扩大范围。
doc_worktree_parallel_isolated_sessions Git worktree 并行隔离会话工作流 proprietary-all-rights-reserved 不同终端可分别用 claude --worktree 创建独立并行会话,在各自 Git worktree 上处理功能或修复,避免编辑相互冲突。
cli_flag_session_id --session-id proprietary-cli-flag-documented-publicly 为会话指定明确的 UUID 标识;标识必须是有效 UUID。
cli_flag_all --all proprietary-cli-flag-documented-publicly 配合 --json 列出已完成的后台会话;默认只列活动会话。
cli_flag_cwd --cwd proprietary-cli-flag-documented-publicly 在 agent 视图中只显示指定目录下启动的会话。
cli_flag_from_pr --from-pr proprietary-cli-flag-documented-publicly 按 PR 号、GitHub/GitLab/Bitbucket URL 过滤会话选择器中的关联会话。
cli_flag_remote_control_name_prefix --remote-control-session-name-prefix proprietary-cli-flag-documented-publicly 未显式命名时,为自动生成的 Remote Control 会话名设置前缀;默认使用主机名。
cli_flag_keep_workers --keep-workers proprietary-cli-flag-documented-publicly 停止后台会话 supervisor 时保留后台会话,供下一个 supervisor 重新连接。
doc_worktree_transcript_follows_checkout Worktree 会话 transcript 随检出目录迁移 official-public-documentation-entry 官方 worktree 文档:Claude 进入或退出由 Git 创建的 worktree 时,会话记录跟随新的工作目录;恢复隔离在 worktree 的会话前,Runner/客户端会核验其仍是独立检出。
entry_2_1_332_long_session_resume_memory_improvement Long conversation resume peak memory improvement changelog-derived 官方 changelog 2.1.332:恢复长对话时的内存占用得到改进;条目记录会话恢复路径的内存口径,不推断具体内部缓存实现。
entry_2_1_332_rewind_point_large_tracked_file_freeze_fix Rewind point freeze after large tracked file rewrite fix changelog-derived 官方 changelog 2.1.332:大型被跟踪文件被重写后打开检查点回退点曾出现长时间冻结;修复后回退点打开路径与文件改写状态衔接。
entry_2_1_332_history_picker_shared_timestamp_stale_rows Fullscreen Ctrl+R history picker stale repeated rows on shared timestamp changelog-derived 官方 changelog 2.1.332:提示共享时间戳时,全屏 Ctrl+R 历史选择器曾出现陈旧或重复行;修复后历史条目按时间戳与提示内容区分展示。
doc_session_resume_dialog_usage_estimate Resume dialog usage-limit estimate proprietary-all-rights-reserved 会话恢复对话框按已保存对话估算 5 小时用量份额;估算不计已用额度,首次发送消息后才计入。
doc_session_picker_hidden_loop_p_sdk_bg Picker hides /loop, -p, Agent SDK and background sessions proprietary-all-rights-reserved 会话选择器不显示 /loop 首轮、-p、Agent SDK 及后台会话;后续在会话内运行 /loop 不会隐藏该会话。
doc_agent_view_attach_session Agent view 附着到会话(Attach to a session) official-public-docs-derived 用户可从代理视图附着到既有会话继续交互;附着关系依托会话 transcript 与恢复状态。
fix_worktree_subagent_claude_md_second_load worktree 隔离子代理首次读文件时不重复加载项目 CLAUDE.md 及其导入 changelog-derived 带 worktree 隔离启动的子代理原先在首次读取文件时,会从 worktree 副本第二次加载项目 CLAUDE.md 及其导入;修复后避免重复上下文加载。
fix_background_compact_clear_rewind_target_dialog 后台代理或队友转录中执行 /compact、/clear、/rewind 前先弹窗确认目标 changelog-derived 在查看后台代理或队友转录时输入 /compact、/clear 或 /rewind,原先会静默作用于主对话;修复后对话框先命名目标并请求确认。
feat_resume_background_session_open_and_accept_prompt /resume 或 --resume 可打开运行中后台会话,并把提示作为下一回合发送 changelog-derived 恢复正在后台运行的会话原先可能被拒绝;改进后 /resume 与 claude --resume 打开该后台会话,claude --resume "prompt" 给出的提示作为下一回合发送。
fix_resume_stop_hook_summary_without_hook_list_crash 恢复转录含无良好 Hook 列表的 stop hook 摘要时不再崩溃 changelog-derived 恢复会话保存转录中若存在 stop hook 摘要,却缺少格式良好的 Hook 列表,原先会触发不可恢复接口错误;修复后恢复路径可处理该残缺记录。
fix_messages_typed_while_claude_working_not_ignored Claude 仍在工作时输入的消息不被模型忽略 changelog-derived Claude 仍在处理任务期间,用户输入的消息有时会被模型忽略;修复后工作期间键入消息进入后续会话处理,不再被丢弃。
entry_2_1_332_proxy_gateway_long_conversation_size_limit_recovery 代理/网关请求体积限制下长会话压缩恢复改进 official-public-documentation-entry 官方 changelog 2.1.332:代理或网关存在请求体积限制时,长对话在消息与 /compact 路径下的恢复得到改进;条目记录网络体积限制与会话压缩边界,不推断内部重试算法。
doc_checkpoint_external_changes_not_tracked 检查点边界:外部与并发会话改动不被跟踪 official-public-docs-derived 官方 Checkpointing 限制:会话外部修改以及其他并发会话造成的改动不纳入 Claude 文件编辑检查点;恢复时不能依赖检查点还原这些外部改动。
doc_ultrareview_running_review_task UltraReview background running review tracked by /tasks proprietary-all-rights-reserved 审查通常 5–15 分钟,作为后台任务运行;保留会话到完成才能向 PR 发布结果;可在 /tasks 查看、打开详情或停止。
doc_checkpoint_bash_only_changes_not_tracked 检查点:仅 Bash 命令改动的文件不被跟踪 official-public-docs-derived 官方 checkpointing 文档:文件若先由文件编辑工具改过,/rewind 可撤销其后 Bash 造成的改动;只被 Bash 修改的文件不进入会话跟踪,需用 Git 等版本控制恢复。条目只记录跟踪边界,不推断内部 diff 存储。
doc_checkpoint_subagent_edits_restore_depends_on_mode 检查点:子代理编辑是否恢复取决于运行模式 official-public-docs-derived 官方 checkpointing 文档:子代理使用文件编辑工具的改动通常不被父会话检查点捕获;能否在 /rewind 时恢复取决于子代理运行模式,例如前台 fork 技能在本回合编辑工作树时按常规恢复。边界:不记录未公开的子代理 transcript 内部结构。
doc_checkpoint_mid_turn_message_no_own_checkpoint 检查点:回合进行中输入的消息没有独立检查点 official-public-docs-derived 官方 checkpointing 文档:Claude 仍在工作时输入的消息在 /rewind 菜单可标记为 No code restore;该消息自身没有检查点。要撤销消息之后产生的文件编辑,需选择启动本回合的 prompt 并恢复整回合代码改动。
doc_troubleshooting_compact_too_few_messages Not enough messages to compact:会话轮次过少导致无法压缩 official-doc-derived 性能排障中,/compact 返回 Not enough messages to compact 表示会话轮次太少无法摘要;即使上下文已满,单次大段粘贴占满上下文时也可能出现该情形。
doc_context_window_timeline_simulation Context window 交互时间线模拟:自动加载内容、读取成本与规则/钩子触发 official-doc-derived 官方上下文窗口页面提供会话从启动到压缩的交互模拟,展示哪些内容自动加载、每次文件读取消耗多少上下文,以及规则和钩子何时触发;模拟用于理解上下文占用,不提供后端常驻查询服务。
entry_2_1_330_vscode_fork_after_last_reply VS Code /fork:在最后一条回复之后分叉会话 official-document-derived-entry VS Code 提供 /fork 命令,在会话最后一条回复之后创建分叉;分叉会话保留既有对话上下文,并从分叉点继续尝试另一路线。
doc_session_resume_agent_definition_restriction 恢复会话保留 --agent/agent 设置的代理工具限制与模型;定义按原目录与恢复目录查找 configuration-documentation 官方 Sessions 恢复状态:以 --agent 或 agent 设置启动的会话恢复后继续作为该代理,保留其工具限制和模型;Claude Code 先在会话原始目录、再在恢复所在目录查找代理定义;两处都找不到时回退默认工具并给出代理缺失警告。边界:记录恢复查找顺序与限制继承,不收录代理定义内部提示。
entry_2_1_332_resumed_session_missing_messages_notice Notice that resumed session earlier messages were not loaded official-document-derived-entry VS Code and Desktop Code tab show a notice when earlier messages of a resumed session were not loaded, matching the terminal notice; resume records loaded-history availability, not missing content.
doc_subagent_startup_isolated_context 非 fork 子代理启动上下文:隔离窗口、任务消息与继承资料 official-public-documentation-entry 官方文档说明每个普通子代理启动于全新隔离上下文,看不到父对话历史、已调用技能或已读文件;Claude 撰写委派消息承载任务。初始上下文按文档列出系统提示、任务消息、CLAUDE.md 文件、git 状态、预加载技能和仅在具备 SendMessage 及至少一个具名代理时出现的兄弟名册。边界:omitClaudeMd、worktree 快照与内置 Explore/Plan/web-fetch 的跳过规则属于各自专项边界。
doc_subagent_autocompact_transcript_boundary 子代理自动压缩:上下文压缩触发、transcript compact_boundary 与 autoCompactWindow official-public-documentation-entry 官方文档记录子代理自动压缩事件在 transcript 文件中以 system/compact_boundary 条目落盘,compactMetadata 包含 trigger 与 preTokens;frontmatter autoCompactWindow 以 token 数设置单个子代理更早压缩,要求 v2.1.296 或更高版本。边界:本条目只记录公开压缩窗口与日志边界,不推断内部压缩算法或上下文替换实现。
doc_fork_inherits_parent_conversation Fork 子代理继承整段父会话上下文、提示、工具与模型 official-public-documentation-entry 官方文档定义 fork 为继承当前完整对话而非全新启动的子代理;适用于其他子代理需要过多背景、或需从同一出发点并行尝试多种方案的场景。可由 Claude 在 fork 模式开启时自行启动,也可通过 /subtask 加任务手动启动;fork 名称取自任务首词。边界:fork 的 worktree 隔离、权限模式继承与缓存复用由对应专项边界记录。
doc_fork_panel_observe_and_steer 运行中 fork 面板:行列导航、转录查看、后续消息、停止与关闭 official-public-documentation-entry 官方文档列出面板交互:上下箭头在行间移动,Enter 打开所选 fork 转录并发送后续消息,x 停止运行中 fork 或关闭已停止行,Esc 返回提示输入;打开子代理/fork 转录后,后续消息与技能进入该代理。边界:v2.1.314 之后 /btw 的回答行为另属交互命令文档,不在本条目展开。
doc_mcp_task_stop_follow_cancel_boundary Stop following an MCP task and request server cancellation official-public-documentation-entry A running task can be selected in /tasks and stopped; Claude Code stops following it and asks the server to cancel, although the server may still finish it. A disconnected server must reconnect before the cancel request can be sent; a stopped task cannot be followed again.
doc_mcp_task_exit_clear_resume_lifetime MCP task lifetime across exit, clear, branch, resume, fork, and one-shot runs official-public-documentation-entry A remote server task continues after exit; a stdio server process stops when Claude Code exits. The lifetime table distinguishes /clear, /branch, /resume, interactive resume, one-shot claude -p, new sessions, and --fork-session follow behavior.
doc_mcp_task_cloud_session_availability MCP Tasks in cloud sessions and supported claude.ai chats official-public-documentation-entry MCP tasks work in Anthropic-hosted cloud sessions and supported unified Claude chats with claude.ai connectors that support the tasks extension on protocol revision 2026-07-28.
doc_sdk_session_store_dual_write_boundary SessionStore local-first dual-write: external store mirrors local transcript official-doc-derived Official session-storage reference: the CLI subprocess writes each transcript batch to local disk first; the SDK then forwards the same batch to the external store append() method. The store is a mirror, not a replacement for local transcript handling during a fresh run.
doc_sdk_session_store_compaction_message_chain getSessionMessages returns post-compaction linked message chain official-doc-derived Official session-storage reference: getSessionMessages with sessionStore returns the linked message chain visible on resume after auto-compaction; earlier raw turns are replaced by a summary. Raw pre-compaction history and metadata require direct store.load(key).
doc_sdk_session_store_fork_id_remap forkSession rewrites sessionId and remaps message UUIDs under a new key official-doc-derived Official session-storage reference: forkSession reads source entries, rewrites every sessionId field, remaps message UUIDs, and appends transformed entries under a new key. An adapter byte-copy shortcut would retain references to the old session ID and is not used.
doc_sdk_session_store_subagent_subpath Subagent transcripts mirrored under subagents/agent- subpath official-doc-derived Official session-storage reference: subagent transcripts are mirrored with subpath subagents/agent-; listSubagents requires listSubkeys, getSubagentMessages falls back to the direct subpath when that method is absent, and resuming restores subagent files only when listSubkeys is implemented.
doc_sdk_tool_search_rediscovery_after_compaction Discovered tools are rediscovered after compaction removes discovery messages official-doc-derived Official tool-search reference: loaded tool definitions stay available until the SDK compacts the messages in which the tools were discovered; after that compaction, the agent searches again when the same tools are needed. This records context-lifetime behavior, not persistent tool registration.
improvement_long_conversation_resume_memory Memory use improved when resuming a long conversation official-doc-derived Changelog 2.1.332 improvement: resuming a long conversation uses less memory after the improvement. Entry records a public session resume resource characteristic; it does not disclose heap layout, compression internals or platform memory limits.
doc_team_teammate_finish_wait_workflow Agent Teams 等待队友完成与收尾流程(wait for teammates to finish) official-public-document-entry 官方团队流程中 lead 等待队友完成任务并汇总结果;条目记录会话协作收尾时机,区分既有优雅关闭流程与进程内队友不可恢复限制。
doc_worktree_pr_mr_ref_creation PR/MR number, GitHub URL or GitLab MR URL worktree creation reference official-public-docs-derived Official worktree workflow: --worktree accepts a #number, GitHub pull-request URL, or GitLab merge-request URL; Claude Code fetches the change's head commit from origin and creates .claude/worktrees/pr-<number>. The fetch never waits for terminal input and fails on password, passphrase, or new-host confirmation prompts.
doc_worktree_name_reuse_reset_boundary Existing worktree name reuse: reopen at old tip or reset to fresh default branch official-public-docs-derived Official worktree workflow: an existing worktree with the requested name is opened instead of creating a new one. With the fresh base, it resets to the default branch only when sandbox write restrictions are absent, there are no uncommitted or untracked changes, it remains on its created branch, and it has no own commits or a merged remote-branch-deleted state; otherwise it reopens at its old tip.
doc_cross_session_idle_notice notify_when_idle subscription: one idle/exit notice, 12-hour expiry and local-main-session-only scope official-public-docs-derived Official messaging docs: SendMessage can subscribe notify_when_idle so another local session sends one notice when it next goes idle or exits. A standalone subscription starts no turn or watched-session token spend; if the watched session is already idle the notice arrives immediately. Subscriptions expire after 12 hours, inbound controls apply to notices, and only the main conversation on this machine can subscribe to local sessions.
doc_headless_background_wait_exit claude -p background-work wait at exit: idle ceiling, commands, subagents, watches and loop wakeups official-public-docs-derived Official headless docs: after the turn finishes and stdin closes, a -p run can remain open for background commands, background subagents/workflows, Monitor watches and pending /loop wakeups. Unless a started background command still runs, Claude Code stops remaining work after a default 10-minute continuous idle wait and drops the partial result; CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS changes the ceiling, with 0 disabling it. MCP backgrounded tasks/calls are not waited on.
doc_headless_sigterm_exit SIGTERM non-interactive exit: unfinished turn, exit 143, process-tree termination and SessionEnd hooks official-public-docs-derived Official headless docs: SIGTERM stops a claude -p run with exit code 143, leaves the in-progress turn unfinished with no recorded result, terminates still-running Bash process trees, then runs SessionEnd hooks and exits. No new tool call, model request, or non-SessionEnd hook starts during exit. Use SIGINT or the Agent SDK interrupt() to end the turn instead; resume keeps the interrupted turn by default unless CLAUDE_CODE_RESUME_INTERRUPTED_TURN=1 continues it.
doc_headless_deleted_working_directory Deleted working-directory mid-session: session keeps running, warning emitted, shell commands fail until restored official-public-docs-derived Official headless docs: if the working directory of a claude -p or Agent SDK session is deleted mid-session, the session keeps running. When a turn starts while the directory is missing, a warning appears in stream-json output; shell commands fail until the directory exists again.
entry_2_1_332_session_save_compact_warning Session partial-save warning suggesting /compact in VS Code / Desktop Code tab official-document-derived-entry Changelog 2.1.332: when part of a session could not be saved, the VS Code and Desktop Code tab warn and explain saving the remaining session with /compact; records the warning affordance, not transcript contents.
doc_goal_status_clear_aliases Goal status check and clear aliases: stop, off, reset, none, cancel official-documentation-visible-source 无参数 /goal 查看当前条件、运行时长、评估轮次、token 消耗和最近评估原因;/goal clear 移除活跃目标,stop、off、reset、none、cancel 为 clear 别名,/clear 开启新会话也会移除目标。
doc_goal_noninteractive_loop_boundary Goal in non-interactive mode: single invocation loop and stream-json visibility official-documentation-visible-source /goal 可在 headless、Desktop 和 Remote Control 中使用;-p 调用在单次进程内运行到完成,默认文本输出只在循环结束时打印最终回复,可用 stream-json --verbose 观察每轮消息;Ctrl+C 可中断。
doc_goal_background_work_checkin Goal background-work deferral and idle check-in intervals official-documentation-visible-source 子代理或后台 Shell 仍运行时跳过本轮评估;后台工作结束后作为新回合交付结果。等待超过 30 分钟触发检查,后续间隔按倍率递增;交互会话最多三次空闲检查,第三次后暂停直到用户发消息。
doc_headless_background_wait_ceiling Headless background-work wait ceiling and MCP work exclusion official-documentation-visible-source claude -p 在 stdin 关闭后可等待后台命令、子代理、Workflow、Monitor 和待处理 loop 唤醒;默认连续空闲 10 分钟后停止并丢弃部分结果,可用 CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS 调整,0 表示不限时;后台 MCP 任务或自动转后台的 MCP 调用不在本次等待范围内。
glossary_cloud_session Cloud session: session kept running on cloud infrastructure after the laptop closes official-doc-derived Official glossary: a cloud session runs on Anthropic-managed infrastructure by default, or an organization-operated self-hosted environment; a local session on terminal/IDE/Desktop uses the machine itself. Remote Control continues a local session from another device and differs from a cloud sandbox session.
doc_workflow_usage_limit_pause_scope Workflow usage-limit pause scope versus failing agent official-public-docs-derived Official workflows documentation: an agent that reaches a claude.ai usage limit pauses rather than failing when the session is an eligible signed-in interactive terminal or local Code-tab session, autoContinueAtUsageLimit is enabled, the limit resets within the allowed window, and the run has not already waited twice. Non-interactive -p/Agent SDK sessions, background sessions, Remote Control or teammate sessions, SSH/WSL/Dispatch/scheduled-task sessions, corporate launcher sessions, and sessions with nonessential traffic disabled do not pause under these rules; on a third limit hit the agent fails.
doc_sdk_session_store_resume_temp_config_copy Store resume seeds temporary config directory; copied credentials and settings differ by SDK official-document-derived-entry Session-storage documentation: when resume or continue runs against a store, the SDK writes the transcript into a temporary config directory, points CLAUDE_CONFIG_DIR there, and deletes it at run end. TypeScript copies credentials, .claude.json and user settings while stripping incompatible plugin/marketplace and env keys; Python copies credentials and .claude.json only, so settings-file apiKeyHelper authentication may fail on Python resume.
doc_context_window_automatic_compaction_before_limit Automatic compaction runs near the context limit; a full window does not end the session official-document-derived-entry Official context-window documentation: Claude Code compacts automatically as it approaches the limit, so a full context window does not end the session. The automatic pass follows the same compaction behavior as /compact; users can also run a focused /compact before a long new task, and idle compaction applies separately to conversations left idle.
doc_worktree_interactive_cleanup_work_preservation Interactive worktree cleanup: changed files, submodule work and new commits kept or removed official-public-docs-derived Official worktree cleanup: when an interactive worktree session exits, Claude Code checks changed or untracked files, uncommitted work inside checked-out submodules and new commits. Another active session keeps the worktree and branch; a clean unnamed worktree is removed automatically, a named session prompts first, a worktree with pending work prompts to keep or remove, and an unverifiable state prompts rather than deleting. These rules apply to Git-created worktrees; a WorktreeCreate hook-created worktree uses WorktreeRemove cleanup.
doc_worktree_fresh_checkout_environment_setup Fresh worktree checkout environment: install dependencies or run project setup inside the worktree official-public-docs-derived Official worktree setup: a worktree starts as a fresh checkout, so its development environment must be initialized there; Claude can install dependencies on request, or the user can run project setup in the .claude/worktrees/ directory. Gitignored files such as .env are carried into new worktrees through the existing .worktreeinclude mechanism. This entry records the public fresh-checkout setup boundary, not package-manager or dependency internals.
cmd_tasks_bashes /tasks (/bashes): manage background work and finished subagents in the current session official-public-docs-derived Official commands documentation: /tasks views and manages background work in the current session, including subagents that have finished; it is also available as /bashes. This session-local task listing is separate from the agent-team teammate retention boundary and from cross-session messageable peers.
entry_2_1_332_piped_at_long_unbroken_string_freeze Prompt or piped input with an @ followed by a very long unbroken string: long-freeze condition fixed official-public-docs-derived Official changelog fix: a prompt or piped input holding an @ followed by a very long unbroken string, such as minified CSS with an embedded font, caused a long freeze. The entry records the public mention/input shape that exceeded parsing behavior; no internal parser structure is modeled.
entry_2_1_332_remote_control_dialog_mcp_question_running_status Remote Control session waiting on a dialog or MCP question no longer shown as running in Desktop, VS Code or Agent SDK official-public-docs-derived Official changelog fix: Remote Control could show a session as running in the desktop app, VS Code or Agent SDK while it waited on a dialog or an MCP server question. The entry records the cross-client status boundary between active processing and awaiting user/tool input.
entry_2_1_332_usage_limit_already_reset_remote_ide_sdk_report Usage limit reset no longer reported as reached to Remote Control, IDE and SDK clients official-public-docs-derived Official changelog fix: after a usage limit had already reset, Remote Control, IDE and SDK clients could still report it as reached. This records the public limit-state synchronization boundary across clients; account billing internals are not modeled.
entry_2_1_332_declined_permission_tool_call_not_done_summary Tool calls that never ran after a declined permission prompt are not counted as done in claude.ai summary official-public-docs-derived Official changelog fix: after declining a permission prompt in a session that had restarted, tool calls that never ran were counted as done in a claude.ai chat summary line. This records the permission-decline versus executed-tool accounting boundary.
entry_2_1_332_stats_large_damaged_transcript_input_lag_freeze /stats lag and transcript-keyboard freeze fixed for transcripts holding many damaged lines official-public-docs-derived Official changelog fix: resuming a session and /stats could freeze for seconds when a transcript held many damaged lines; keys also lagged while /stats read large transcripts, and debug logging with a language server flooding stderr worsened the lag. The entry records transcript corruption and diagnostic-volume performance boundary.
entry_2_1_332_cloud_default_model_refused_non_enforced_list Cloud session failing when gateway refused default model and non-enforced availableModels named neither it nor an older model official-public-docs-derived Official changelog fix: a session could fail when the cloud refused its default model and an availableModels list that was not enforced named neither that model nor an older model. This records cloud model-selection failure boundary between enforced and non-enforced lists.
entry_2_1_332_windows_company_pc_short_no_output_start_exit Windows company PC startup exiting with no output stability fix official-public-docs-derived Official changelog Windows improvement: Claude Code could exit with no output shortly after start on some company PCs; stability was improved. The entry records this public startup regression class; machine policy internals are not inferred.
doc_worktree_existing_name_reuse Worktree name reuse: existing named worktree opens instead of a fresh clone official-public-docs-derived Official worktree behavior: when --worktree names a worktree that already exists, Claude Code opens it rather than creating a second worktree. Under the default fresh base, a reopened clean worktree resets to the repository default branch only when the documented sandbox, cleanliness and branch conditions hold; this records the public reuse boundary, not local Git internals.
doc_checkpoint_double_esc_vim_input_history_boundary Checkpoint rewind double-Esc rule: empty prompt opens menu; text double-Esc clears and keeps input history official-public-docs-derived Official checkpointing documentation: /rewind opens the rewind menu; pressing Esc twice opens it when the prompt input is empty. In vim mode, double Esc is pressed from NORMAL mode. Outside vim mode, if the prompt contains text, double Esc clears the text instead; the cleared text remains in input history and can be recalled with Up after the rewind session.
doc_checkpoint_rewound_messages_return_boundary Rewound messages can return before the next prompt; restore conversation again or send a prompt before exiting official-public-docs-derived Official checkpointing edge case: messages returned after rewinding can reappear before the next prompt. To remove them again, run /rewind in the session and select the same prompt, then Restore conversation. Before exiting, send Claude a prompt because Claude Code saves the rewound conversation together with that prompt; restored files remain as rewind left them.
doc_checkpoint_clear_previous_session_rewind_entry Rewind after /clear exposes a previous-session resume entry until exit or another session resumes official-public-docs-derived Official checkpointing boundary: if /clear ran earlier in the same Claude Code process, the rewind menu shows an additional top entry labeled /resume (previous session). Selecting it resumes the conversation active before /clear. The entry remains available only until Claude Code exits or a different session resumes.
doc_checkpoint_guide_summary_preserves_files_and_transcript Checkpoint summary guidance: summary does not change files; original messages remain in transcript and optional context can guide focus official-public-docs-derived Official checkpointing summary rule: summarizing does not change files on disk, and original messages remain in the session transcript, so Claude can still reference their details. To guide summary focus, highlight a Summarize option and type instructions in the add-context row, or use the number key to summarize immediately without instructions. Summary stays in the same session as a targeted /compact; /branch or claude --continue --fork-session preserves the original session for an alternative branch.
doc_command_responder_queue_and_immediate Command while Claude responds: queue versus immediate command handling official-public-docs-derived Official commands documentation: most commands submitted while Claude is responding are queued until the current turn finishes; /status, /tasks and /usage run immediately without interrupting the response. Fullscreen dialog commands such as /theme and /help open immediately in current rendering; before v2.1.234 they were queued.
doc_session_store_fresh_run_local_durable_store_copy Fresh-session dual-write durability: local transcript outlives run; store receives mirror copy official-public-docs-derived Official SessionStore behavior notes: a fresh session, or a resume with no stored session, writes local transcript under the config directory as the durable run copy while the external store receives a mirror copy. A run resumed from the store deletes its local copy at run end, leaving the store as the only durable copy. A private temporary CLAUDE_CONFIG_DIR can prevent a fresh session from leaving local transcript.
doc_cross_session_noninteractive_inbound_socket_and_expiry Non-interactive -p session binds an inbox socket; held messages keep the dialogExpiry deadline and bare mode has no socket official-public-docs-derived Official cross-session messaging documentation: a claude -p session binds an inbox socket like an interactive session, so a long-running worker can receive messages and appears in the listing; bare-mode sessions do not bind the socket, cannot receive messages, and do not appear. A non-interactive session cannot show an approval dialog; a held message keeps the dialogExpiry deadline, five minutes by default, and is delivered if an allow mode or setting applies before expiry, otherwise dropped and reported expired to a reachable sender.
doc_agent_view_target_directory Repository, registered worktree, existing-session and grouped-row target directory selection official-public-docs-derived Official agent-view documentation: a new session runs in the directory agent view was opened from. Other targets are a child repository one level below the launch directory, registered git worktrees inside that repository's tree, any directory that already has a session in the list, a shell cd followed by claude --bg, or the selected row's directory when sessions are grouped by directory. Worktrees added outside the repository with git worktree add are not listed; a directory whose name contains a space is not listed.
doc_agent_view_background_work_carryover Background work carryover, relaunch-only dynamic workflow and stopping monitor boundary official-public-docs-derived Official agent-view documentation: when a session moves to the background, running background shell commands, backgrounded subagents and /loop scheduled tasks carry over with the session; a subagent carries over only when all work it started can move too. A running dynamic workflow continues only when Claude relaunches it in the background session; running monitors and shell commands started by a subagent stop with the process. A monitor already running stops when the session backgrounds; the Background this session dialog confirms before that stopping work.
setting_desktop_transcript_cleanup_days desktopSessionCleanupPeriodDays ages out Desktop or Cowork transcripts after both retention limits official-doc-derived Official settings reference: this age-limit-in-days setting applies to transcripts of sessions the user started or most recently continued in Claude Desktop or Cowork. Without it, transcripts are kept at any age except documented deleted-session cases. A transcript is deleted only after it is older than both this limit and cleanupPeriodDays; with cleanupPeriodDays at its default 30, a seven-day value still retains 30 days. The key is User or Managed scope and ignored in project/local settings.
setting_away_summary_enabled awaySummaryEnabled shows a one-line session recap after returning from away official-doc-derived Official settings reference: this Boolean shows a one-line session recap when the user returns to the terminal after a few minutes away; false, or disabling Session recap in /config, stops it. CLAUDE_CODE_ENABLE_AWAY_SUMMARY overrides the key for one session in either direction.
cli_flag_session_display_name --name / -n 会话显示名 official-public-documentation CLI 启动标志设置会话显示名;/resume 与终端标题可见,可按名称恢复。仅为展示名,不等同会话 ID。
cli_flag_cloud_session --cloud 云会话派发标志 official-public-documentation 按任务描述创建新云会话;配合 -p 时向既有云会话排队消息。边界为云会话派发,不描述模型或审批规则。
cli_flag_tmux_worktree --tmux 工作树 tmux 会话标志 official-public-documentation 创建工作树对应的 tmux 会话;必须搭配 --worktree,可使用 iTerm2 原生面板,--tmux=classic 选择传统 tmux。
doc_sdk_session_store_resume_temporary_config_dir SessionStore resume writes transcript to a temporary config directory official-doc-derived Official session-storage documentation: when resume or continue uses a SessionStore, the SDK requests the transcript before spawning the subprocess, writes it to a temporary config directory, points CLAUDE_CONFIG_DIR there, and deletes that directory when the run ends. The real config directory is seeded selectively; because the local transcript disappears with the temporary directory, the external store is the only durable copy on this resume path.
doc_worktree_binding_clear_recorded_in_transcript Worktree binding clearance is recorded in the session transcript official-doc-derived Official worktrees documentation: when a resumed interactive session cannot return to its worktree and the worktree binding is cleared, the clearance is recorded in the session transcript. If transcript writes are suppressed, the message instead records that the binding could not be cleared and Claude Code will re-check the worktree on a later resume.
setting_remote_default_environment_id remote.defaultEnvironmentId CLI 云会话默认云环境 ID public-documentation-setting-no-source-code Picks the default cloud environment for cloud sessions created from the CLI, such as claude --cloud; a self-hosted ccpool_ ID is read only from user and managed settings.
doc_agent_view_fork_copy_independent_session Agent-view /fork copies the conversation; the original and copy stay independent official-doc-derived Official agent-view documentation: /fork copies the current conversation into a new background session while the original keeps running. After the fork the two conversations are independent: work done by the copy does not enter the original on its own. Where cross-session messaging is enabled, either session's Claude may still explicitly message the other.
setting_auto_compact_enabled autoCompactEnabled: automatic near-limit conversation compaction on/off setting official-doc-derived Official settings reference: autoCompactEnabled has Claude Code compact the conversation automatically when context approaches the limit. true compacts automatically near the limit; false does not compact automatically, while the manual /compact command keeps working. The default is true; DISABLE_AUTO_COMPACT turns auto-compact off for one session, and whichever of the two turns it off, the other cannot turn it back on. If auto-compact is off, idle compaction turns off too.
setting_file_checkpointing_enabled fileCheckpointingEnabled: pre-edit file snapshots enabling /rewind restore official-doc-derived Official settings reference: fileCheckpointingEnabled has Claude Code snapshot files before each edit so /rewind can restore them. true snapshots before edits; false does not snapshot, so /rewind cannot restore files. The default is true; CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING turns checkpointing off for one session. In a -p run or Agent SDK session, Claude Code ignores this key unless managed settings set it to false, which keeps checkpointing off; without that false, enable it with the SDK enableFileCheckpointing option or the documented bare -p environment variable.
setting_idle_compaction idleCompaction: away-from-keyboard long-conversation compaction and summary-on-next-message official-doc-derived Official settings reference: idle compaction compacts a long conversation you have stepped away from; the next message sends a summary instead of the whole conversation. After compaction the terminal, VS Code chat panel, or desktop app shows the documented idle-compacted notice. It is on by default only for an interactive terminal session, VS Code chat panel, or desktop Code tab on the machine or SSH; auto-compaction must be on; the conversation uses the one-hour prompt cache TTL; context reaches the token threshold, changeable from the default 200,000; and about an hour has passed since the last request with the computer awake until then. Set the key to false to turn idle compaction off.
entry_2_1_332_compaction_summary_attribution_fix 2.1.332 压缩摘要在重载、恢复或分叉后不再显示为本人提示 official-public-changelog-entry 官方 changelog 2.1.332:修复压缩摘要在重新加载、恢复或分叉压缩会话后显示为用户自己的提示,并出现在 Rewind 与提示历史中的归属问题。条目只记录公开会话展示边界,不记录内部摘要算法或提示模板。
doc_session_independent_fresh_context Session independence: each new session starts a fresh context window capability-derived 新会话默认携带独立上下文窗口,不继承前一会话对话历史;跨会话持久信息依靠 Auto Memory、CLAUDE.md 等显式记忆与指令渠道。
doc_goal_single_active_per_session_condition_replaces_previous Goal: one active condition per session; a new /goal condition replaces the previous one official-doc-derived 官方 /goal 文档:每个会话最多一个活跃目标;再次运行 /goal 并给出条件会替换旧目标。设置目标立即以条件为指令启动回合,活跃期间显示运行时长;目标本身不改变权限模式。
doc_cloud_web_setup_local_gh_token_transfer /web-setup sends the local gh CLI token to the Claude account for cloud GitHub access official-public-docs-derived Running /web-setup in the terminal connects GitHub by sending the local gh CLI token to the Claude account. It covers repositories that token can access, independently of whether the Claude GitHub App is installed on the repository.
doc_cloud_team_enterprise_quick_setup_toggle Team/Enterprise Quick Setup org toggle hides /web-setup, GitHub App prompt and environment form steps official-public-docs-derived Quick Setup is an organization setting, off by default for Team and Enterprise. When enabled, members may connect GitHub with /web-setup, browser onboarding skips the Claude GitHub App install prompt, and onboarding creates the Default environment; an Owner toggles it in Organization settings > Claude Code.
entry_2_1_332_compaction_summary_output_limit_three_cutoff 2.1.332 compaction summary: after three cut-off replies, the retry asks for a shorter summary official-doc-derived Official changelog 2.1.332: compaction no longer fails when a summary keeps running past the output limit. After three cut-off replies, the final attempt asks for a shorter summary. This records the transcript/compaction recovery boundary, not internal prompt construction.
entry_2_1_332_language_server_stderr_debug_stats_lag 2.1.332 /stats input lag: language server stderr flood under debug logging no longer delays keys official-doc-derived Official changelog 2.1.332: keys no longer lag for seconds while /stats reads large session transcripts, including after the dialog closes, and with debug logging on while a language server floods stderr. This records the transcript-reading lag boundary; it does not expose language-server internals.
entry_2_1_332_remote_restart_local_mcp_session_id 2.1.332 local MCP servers keep the session ID after a Remote Control process restart official-doc-derived Official changelog 2.1.332: local MCP servers no longer see a new session ID after a Remote Control session's process restarts. This records the session-identity continuity boundary between the restarted session and its local MCP connections.
entry_2_1_332_idle_compaction_skipped_weekly_subscriber 2.1.332 idle compaction no longer skipped for subscribers still under the weekly limit official-doc-derived Official changelog 2.1.332: idle compaction is no longer skipped for subscribers who are still well under their weekly limit. This records the idle-compaction eligibility boundary against subscription usage limits.
entry_2_1_332_crash_kill_resumed_missing_last_messages 2.1.332 resumed conversation keeps its last messages after crash or kill on third-party providers official-doc-derived Official changelog 2.1.332: a resumed conversation no longer sometimes misses its last messages after a crash or kill on Bedrock, Google Cloud's Agent Platform, Foundry, and other third-party providers. This records the resume transcript completeness boundary across those provider runtimes.
doc_sdk_hosting_ephemeral_task_container_session Agent SDK ephemeral hosting: one container per task, destroyed on completion; TASK_PROMPT and max-turn error boundary official-doc-derived 官方 hosting 文档:临时模式为每个用户任务创建容器,任务完成后销毁;适合一次性排查修复、票据抽取、翻译与媒体转换。一次性入口读取 TASK_PROMPT 环境变量、调用 SDK 后退出;达到 turn 上限时结果消息 subtype 为 error_max_turns,query() 在产出该消息后抛出错误。
doc_sdk_hosting_long_running_persistent_session_query Agent SDK long-running hosting: persistent container, active session bound to long-lived query and subprocess official-doc-derived 官方 hosting 文档:长期模式运行持久容器实例,常容纳多个 SDK 进程,服务自主操作、内容服务或高流量消息流;容器暴露 HTTP/WebSocket 端点,把每个活跃会话映射到长生命周期 query 及其后端子进程。TypeScript 用 streamInput 追加回合,startup/prewarm 预热;Python 用 ClaudeSDKClient 跨回合保持会话。
change_self_hosted_runner_session_state_removal self-hosted-runner --remove-session-state deletes per-session _sessions directories after session ends official-doc-derived 官方 changelog 2.1.273:claude self-hosted-runner --remove-session-state(默认关闭)在会话结束时删除 /_sessions/ 下每个会话的目录。该条目记录 runner 会话状态清理开关与目录位置边界;不记录内部状态文件格式。
doc_watch_stopped_reason_classification PR Steward watch termination reasons: cancellation, session change, command takeover, deny rule, limit or stalled check-in official-public-document A running watch ends when the user cancels or stops the task, the original process closes and is not resumed with the watch, the user moves to another session, another loop or command replaces it, a deny rule blocks a watched command, the seven-day time limit is reached, a permission prompt/error/usage limit stalls the check-in, plan mode or background state blocks continuation, or the user stops it. The Stopped watching line reports the reason and any restart command.
doc_project_thread_instruction_context_overview_status Projects coordinate ongoing work: one thread per bug report/task, shared standing instructions, overview pane of finished/PR/waiting threads official-public-documentation-entry Projects 文档:bug 报告、堆栈或任务列表进入同一项目并各自形成线程;项目指令作为常驻上下文到达新线程;概览面板显示完成、待审 PR 与等待中的线程。
doc_ultrareview_background_task_tracking UltraReview background review task tracked through /tasks official-public-docs-derived 审查通常耗时 5–15 分钟并作为后台任务运行;/tasks 可查看运行/完成状态、详情或停止审查;停止后云端会话归档,不返回部分发现。
doc_worktree_isolated_subagent_per_agent_checkout Subagent worktree isolation: isolation: worktree gives each parallel agent its own checkout official-public-docs-derived 子代理可在独立 worktree 中运行以避免并行编辑冲突;自定义子代理可用 frontmatter isolation: worktree 固化。完成后若有变更文件、未跟踪文件或新提交则保留 worktree,否则可清理。
doc_cloud_session_per_task_session_and_branch Each cloud task receives its own session and branch; the agent pushes the branch at a stopping point for review or follow-up official-public-docs-derived Official cloud quickstart: after repository preparation and configured setup script, a cloud task gets its own session and its own branch, so tasks do not block each other. At a stopping point Claude pushes the branch to GitHub; the human reviews the diff, leaves inline comments, opens a PR, or sends another message to continue.
doc_session_plaintext_jsonl_transcript_disk_record Conversation, tool use and results are written as a plaintext JSONL transcript file on disk during the session official-public-docs-derived Official how-Code-works and directory documentation: Claude Code saves the conversation locally as it works. Each message, tool use and result passes through the session transcript and is recorded in a plaintext JSONL file on disk; this entry records the public transcript persistence boundary and its role in resume/continue/branch/fork, not internal transcript encoding details beyond that public statement.
entry_2_1_332_named_pipe_no_writer_timed_out_20_seconds Read, @-mentions and compaction fail after 20 seconds on a named pipe with no writer, such as a locked secrets-manager .env mount official-public-documentation-entry Official 2.1.332 changelog fixes Read, @-mentions and compaction hanging on a named pipe that nothing writes to, for example a .env mounted by a locked secrets manager. The read now fails after a 20-second timeout instead of waiting indefinitely.
doc_error_waiting_banner_local_20_seconds Waiting for API response 横幅:20 秒无数据时提示等待,尚未判定请求失败 proprietary-all-rights-reserved 官方错误参考:请求至少 20 秒未收到任何数据时出现 Waiting for API response · will retry in … · check your network 横幅;请求此时尚未失败,倒计时继续到中止停滞连接的时点。数据恢复或重试成功后横幅自行清除;若每次尝试都重复出现,应按网络问题排查。
doc_agent_view_background_session_kind_vs_interactive Agent-view 后台会话类型:background job attached/unattended,直接 claude 会话为 interactive official-public-documentation 官方 agent-view 文档:agent view 列表中的每个会话都按后台会话处理,无论当前是否附着;/status 在该会话中显示 background job · attached 或 background job · unattended。直接运行 claude 启动的会话绑定原终端,除非发送到后台,否则状态为 interactive。
fix_usage_limit_opening_phrases_not_red_error 以 You've used / You've hit 开头的回复不再显示为红色用量限制错误 official-public-documentation 2.1.332 修复:回复以 “You've used” 或 “You've hit your” 等短语开头时,曾被错误显示为红色 usage limit 错误;该修复区分普通提示与真正额度限制错误。
fix_vscode_rewind_checking_code_changes_process_hang VS Code /rewind 不再停留在 Checking code changes 而进程启动挂起 official-public-documentation 2.1.332 VS Code 修复:恢复对话时 /rewind 曾停留在 “Checking code changes…”,而 Claude 进程在启动阶段挂起;该修复覆盖回退检查点的界面状态与进程启动路径。
entry_2_1_332_remote_control_compaction_idle_status Remote Control sessions hosted by desktop app or VS Code no longer show idle while /compact runs configuration-documentation 由桌面应用或 VS Code 托管的 Remote Control 会话在 /compact 运行期间不再显示为空闲。记录跨设备会话状态展示边界,不收录会话内部线程或事件队列结构。
entry_2_1_332_desktop_needs_input_background_report_status Claude Desktop session keeps its needs-input status after a background task report configuration-documentation 后台任务报告到达后,Claude Desktop 会话不再丢失 needs-input 状态。记录公开桌面会话状态转换边界,不推断后台任务私有状态机。
entry_2_1_332_empty_session_background_transcript_load Moving an empty session to the background no longer fails with transcript load error configuration-documentation 空会话转入后台时不再出现 transcript 文件加载错误。条目记录会话落盘与后台恢复的公开边界,不建模 transcript 私有格式字段或磁盘缓存实现。
doc_troubleshooting_autocompact_thrashing_recovery Auto-compaction thrashing stop and recovery path official-public-documentation-entry Official troubleshooting documentation: after automatic compaction succeeds but a file or tool output refills the context window repeatedly, Claude Code stops retrying to avoid a non-progressing loop. Recovery uses smaller chunked reads, a focused /compact, a separate-context subagent, or /clear when earlier conversation is no longer needed.
doc_team_enabled_delegation_teammate_boundary Agent Teams enablement: experimental flag, ordinary delegation and teammate-launch boundary official-public-docs-derived Official agent-teams documentation: teams are disabled by default and enabled through CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in the shell or settings.json. While enabled, a subagent named by Claude launches as a teammate; team formation can occur without an explicit team request. Teammate spawning still requires an interactive session, so non-interactive headless runs do not create teammates under this documented boundary.
doc_session_transcript_on_disk_path_layout Session transcript storage: JSONL project path, long-name truncation hash and version-internal entry format official-public-docs-derived Official sessions documentation stores transcripts as JSONL at ~/.claude/projects//.jsonl; non-alphanumeric working-directory characters become hyphens. A converted project name over 200 characters is truncated to 200 characters plus a hash of the full path to stay within filesystem limits. Each line holds a message, tool use or result, a model request record, or metadata. The entry format is internal to Claude Code and can change between releases; scripts should use the documented session/script interface rather than parsing these files directly.
doc_project_organization Project organization: standing instructions, thread-level tasks and reviewable work official-public-docs-derived A project organizes ongoing work into threads against shared standing instructions; each thread carries its own task or report and produces reviewable changes rather than an unbounded background session.
doc_background_bash_memory_pressure_reap Background Bash memory-pressure reap: critical pressure stops idle sessions at least 30 minutes idle with no running turn or subagent; CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP=1 disables it official-public-documentation-entry Official interactive-mode reference: on macOS and Linux, Claude Code stops running background tasks when the operating system reports critical memory pressure, provided the session has been idle for at least 30 minutes and no turn or subagent is running. Set CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP to 1 to turn off memory-pressure stops. Background tasks are also terminated automatically when output exceeds 5GB, and a background command started by a foreground subagent ends when that subagent's run ends, whether finished, failed, or interrupted. The entry records the documented reap conditions, disable switch, output cap and subagent-owned command boundary.
doc_shell_mode_exclamation_prefix Shell mode with ! prefix: command and output enter context, real-time progress, Ctrl+B background, no Claude approval; outside strict sandbox the command runs outside the sandbox official-public-documentation-entry Official interactive-mode reference: prefixing input with ! runs a shell command directly without going through Claude. Shell mode adds the command and its output to conversation context, shows real-time progress and output, supports the same Ctrl+B backgrounding for long-running commands, requires no Claude interpretation or approval, and supports history and live file-path Tab autocomplete. Exit with Escape, Backspace, or Ctrl+U on an empty prompt; pasting text starting with ! into an empty prompt enters shell mode automatically. Unless the session uses a strict sandbox mode, shell-mode commands run outside the sandbox even when sandboxing is enabled, because the sandbox applies to commands Claude runs. respondToBashCommands=false adds output to context without a response. The entry records these documented shell-mode rules and sandbox distinction.
doc_queue_message_send_now_key_behavior Queued message send-now: Ctrl+Enter sends queued messages immediately (v2.1.275+); shell mode queues only; Ctrl+X Ctrl+S works in any terminal; Esc interrupts but keeps the queue official-public-documentation-entry Official interactive-mode reference: Ctrl+Enter or Ctrl+X Ctrl+S sends queued messages and the current draft right away. In shell mode the key only queues the command. In terminals that do not report extended keys, Ctrl+Enter arrives as plain Enter; Ctrl+X Ctrl+S works in any terminal. The behavior requires Claude Code v2.1.275 or later. Messages queued while tool calls run pass to Claude as soon as those calls finish within the same turn; commands and shell commands are held until the turn ends, then run one at a time in queue order. Esc interrupts Claude but keeps queued entries. The entry records the documented keybinding variants, version gate, shell-mode restriction and queue ordering.
doc_ship_watch_non_github_host_7d_limit Watch on GitLab, Bitbucket or Azure DevOps: branch watch lasts up to seven days and runs without the GitHub CLI official-public-docs-derived Official /ship documentation: on a host other than GitHub such as GitLab, Bitbucket or Azure DevOps, Claude can watch the branch for up to seven days. The watch needs git 2.38 or later and works without the GitHub CLI; /ship and /steward do not commit, push, or open anything when they start there. The entry records this non-GitHub host watch duration and tool boundary alongside existing watch termination reasons.
doc_ship_watch_end_cases_checkout_session Watch end cases: another branch checkout or changed git settings in the checkout; session end, another watch, /loop, /clear, /resume, /branch, or plan mode at the next check official-public-docs-derived Official /ship documentation: a watch ends in the checkout when another branch is checked out or git settings change. In the session it ends when the session ends, another watch or a /loop task starts, /clear, /resume or /branch runs, or the session is in plan mode when Claude next checks the pull request. An error, declined prompt, or usage limit can also end it early. The entry records these documented end conditions alongside existing watch termination reason classification.
doc_sdk_session_cross_host_file_move_and_state_fallback Cross-host resume: move the session JSONL file, or capture results as application state for a fresh session official-public-docs-derived Official sessions documentation: session files are local to the machine that created them. Besides attaching a SessionStore adapter to mirror transcripts to shared storage, a second approach is to persist ~/.claude/projects//.jsonl from the first run and restore it under ~/.claude/projects/ on the new host before calling resume. A third fallback does not rely on session resume at all: capture the needed results (analysis output, decisions, file diffs) as application state and pass them into a fresh session's prompt; this is often more robust than shipping transcript files around. The entry records these documented cross-host options; the SessionStore adapter mirroring stays on the existing multi-host durability anchor.
doc_cloud_web_quickstart_session 云端 Web 会话快速上手:浏览器/手机入口、隔离 VM 克隆与跨设备续接 official-public-documentation-entry 官方 web-quickstart 文档:云会话运行在默认由 Anthropic 托管的云基础设施上,可从 claude.ai/code 浏览器入口、Claude 移动应用、桌面应用或 claude --cloud 启动;会话在隔离 VM 中克隆选定 GitHub 仓库、完成修改并推送分支供审阅。会话跨设备保留,任务离开本机后仍可继续;需要本地配置、工具或环境的工作更适合本地会话或 Remote Control。云端会话适用 Pro、Max、Ultra 以及 Team 套餐或 Enterprise premium/Chat + Claude Code 席位。
entry_2_1_332_session_save_partial_warning VS Code / Desktop Code tab: partial session-save warning points to /compact official-public-changelog-entry 2.1.332 changelog: when part of a session could not be saved, VS Code and the Desktop Code tab show a warning explaining how to save it with /compact. The entry records the UI notice and its recovery command, not internal save internals.
entry_2_1_332_windows_company_pc_no_output_start_stability Windows: stability fix for some company PCs where Claude Code could exit with no output shortly after start official-public-docs-derived 2.1.332 changelog: improved stability on some Windows company PCs, where Claude Code could exit with no output shortly after start.
doc_cloud_environment_default_and_shared Cloud Default environment (onboarding-created, no own config) and Team/Enterprise Owner-created shared environment; selector per surface; project threads use project settings; archive affects new sessions only; running sessions retain attached secrets official-public-docs-derived Default 环境由 onboarding 创建、无自身配置:Limited 网络访问,无环境变量与 setup script,仅预装工具;多环境时按表面选择,组织默认环境由 Owner 设置填充,项目线程使用项目设置中的环境。Team/Enterprise 共享环境由 Owner 创建并对组织全体成员可用;Admin 不能打开 Cloud environments 管理页。归档影响新会话、不影响运行中会话;运行会话中的密钥保持附着。
entry_2_1_332_headless_resume_saves_cost_totals headless 恢复会话(-p --resume、SDK、VS Code 扩展重载)退出时保存成本与用量合计 official-public-changelog-entry 官方 changelog:修复 headless 恢复把成本和用量合计从零开始的问题;headless 会话现在在退出时保存这些合计。
cap_openai_sessions Agents SDK · Sessions(会话持久记忆层) open-source-sdk-documented-capability Sessions 是代理循环内维护工作上下文的持久记忆层,跨轮次保存历史与记忆控制;与 RunState、RunResult 配合避免重复追加同一消息。
entry_2_1_332_input_format_stream_json_mcp_startup_wait stream-json startup: the first turn no longer waits up to 2s for MCP servers deferred by tool search; their tools arrive on a later turn official-public-docs-derived Official changelog: in --input-format stream-json sessions, the first turn no longer waits up to two seconds for still-connecting MCP servers whose tools tool search defers; those tools arrive on a later turn. The entry hangs off the existing script/session JSON anchor and records the startup wait change.
entry_2_1_332_fixed_claude_md_and_rules_files_being_sent_to_the_model_a_second_time_ Fixed CLAUDE.md and rules files being sent to the model a second time, in most cases, after a session moves into a worktree under .claude/worktrees with EnterWorktree or is resumed there official-public-changelog-entry Fixed CLAUDE.md and rules files being sent to the model a second time, in most cases, after a session moves into a worktree under .claude/worktrees with EnterWorktree or is resumed there
entry_2_1_332_fixed_resuming_a_session_and_stats_freezing_for_seconds_when_a_transcr Fixed resuming a session and /stats freezing for seconds when a transcript holds many damaged lines official-public-changelog-entry Fixed resuming a session and /stats freezing for seconds when a transcript holds many damaged lines
entry_2_1_332_fixed_keys_lagging_for_seconds_while_stats_reads_large_session_transcr Fixed keys lagging for seconds while /stats reads large session transcripts, also after the dialog is closed, and with debug logging on while a language server floods its stderr official-public-changelog-entry Fixed keys lagging for seconds while /stats reads large session transcripts, also after the dialog is closed, and with debug logging on while a language server floods its stderr
session_gemini_checkpoint Gemini CLI checkpointing (session save/resume) capability-derived Gemini CLI 检查点机制,保存并可恢复对话会话状态。
entry_2_1_332_resumed_session_missing_early_messages_notice 恢复会话早期消息未加载时 VS Code/Desktop Code tab 提示(2.1.332) official-changelog-documented 恢复会话早期消息未被加载时,VS Code 与桌面 Code tab 给出提示,与终端既有提示一致。
entry_2_1_332_compaction_summary_output_limit_retry 压缩摘要超输出上限时三次截断后最后一次请求更短摘要(2.1.332) official-changelog-documented 压缩摘要越过输出限制时,三次截断回复后最后一次尝试请求更短摘要。
entry_2_1_332_rewind_large_tracked_file_rewrite_freeze 大跟踪文件被重写后打开 rewind 点的长冻结修复(2.1.332) official-changelog-documented 修复大型被跟踪文件被重写后打开 rewind 检查点时的长时间冻结。
entry_2_1_332_headless_cloud_foreground_fork_agent_call_finished headless 与云会话不再把前台分叉的 Agent 调用在分叉开始瞬间记为完成(2.1.332) official-changelog-documented 修复 headless 与云端会话将前台分叉的 Agent 调用在分叉刚启动时即报告完成的问题。
entry_2_1_332_idle_compaction_skipped_under_weekly_limit 订阅者仍远低于周限额时不再跳过空闲压缩(2.1.332) official-changelog-documented 修复订阅者用量仍明显低于每周限额时空闲压缩被跳过的问题。
entry_2_1_332_code_mode_esc_message_unanswered Code Mode 命令期间输入消息并在回复前按 Esc,消息不再遗留未答(2.1.332) official-changelog-documented 修复 Code Mode 中命令运行时键入消息、Claude 回复前按 Esc,导致消息无人应答的问题;现消息开启新回合。
entry_2_1_332_session_loses_needs_input_after_background_report 桌面应用后台任务报告后会话有时丢失 needs-input 状态修复(2.1.332) official-changelog-documented 修复 Claude Desktop 中后台任务报告后会话有时丢失“需要输入”状态的问题。
entry_2_1_332_background_empty_session_transcript_load_failure 空会话转入后台偶尔报 “Couldn’t load transcript from file” 的修复(2.1.332) official-changelog-documented 修复把空会话移到后台时偶尔失败并提示无法从文件加载 transcript 的问题。
entry_2_1_332_resumed_conversation_missing_last_messages_third_party Bedrock/Agent Platform/Foundry 等第三方上崩溃或杀掉后恢复会话丢失最后消息修复(2.1.332) official-changelog-documented 修复 Bedrock、Google Cloud Agent Platform、Foundry 等第三方提供方上会话崩溃或被终止后恢复时丢失最后消息的问题。
entry_2_1_332_empty_session_background_transcript_load_failure Empty session moved to background no longer fails transcript load configuration-documentation 空会话转入后台时不再出现 "Couldn't load transcript from file" 加载失败;记录后台会话 transcript 恢复稳定性边界。
entry_2_1_331_rewind_restore_failed_no_file_delete 2.1.331 Rewind does not delete files after a failed restore official-changelog-entry Fixed a rewind deleting files after a restore had failed; the checkpoint restore path keeps files intact when restoration does not succeed.
entry_2_1_332_resumed_session_earlier_messages_loaded_notice VS Code and Desktop Code tab show a notice when a resumed session's earlier messages were not loaded, matching the terminal notice official-documentation-entry 2.1.332: VS Code and Desktop Code tab show a notice when a resumed session's earlier messages were not loaded, matching the terminal notice.
entry_2_1_332_empty_session_background_transcript_load_fix moving an empty session to the background no longer fails with Couldn't load transcript from file official-documentation-entry 2.1.332: moving an empty session to the background no longer fails with Couldn't load transcript from file.
entry_2_1_331_vscode_rewind_dialog_overlay_and_focus 2.1.331 VS Code Rewind dialog: later prompts and message box no longer cover it; focus does not jump Never mind to Rewind official-changelog-derived-entry Official changelog 2.1.331: later prompts and the message box no longer cover the Rewind code dialog, and focus does not jump from Never mind to Rewind while file checking finishes. Records session/rewind client behavior; no restore storage layout.
entry_2_1_331_vscode_message_queued_behind_clear_not_lost 2.1.331 VS Code message queued behind a queued /clear is no longer lost official-changelog-derived-entry Official changelog 2.1.331: a message queued behind a queued /clear previously could be lost; the fix preserves the queued message ordering. Records session message queue behavior only.
entry_2_1_330_rewind_queued_prompts_stacked_skills_file_restore 2.1.330 Rewind no longer restores an older file version when queued prompts or stacked skills run together after a file-changing turn official-changelog-derived-entry Official changelog 2.1.330: /rewind previously could restore an older file version when two queued prompts, or stacked skills, ran together right after a turn that changed the file; the fix guards restore selection. Records session/rewind behavior; file history internals excluded.
entry_2_1_330_compacted_long_conversation_freeze 超长会话压缩后冻结数分钟修复 official-documentation-entry 修复压缩超长对话后 Claude Code 冻结数分钟的问题。
entry_2_1_330_resume_empty_session_missing_timestamp --continue/--resume 最后消息时间戳缺失或非法时打开空会话修复 official-documentation-entry 修复最后保存消息时间戳缺失或非法时,--continue 与 --resume 打开空会话或失败的问题。
entry_2_1_330_scheduled_loop_task_30_day_runtime 循环/定时任务与会话保持运行时最长 30 天生命周期 official-documentation-entry 循环定时任务与 /loop 在会话持续运行时最长运行 30 天(原为 7 天),并说明结束时间。
entry_2_1_330_monitor_keeps_earlier_conversation_in_memory 运行中的 Monitor 直到结束前保留早前对话于内存 official-documentation-entry 运行中的 Monitor 会把早前对话保留在内存直到结束;该项记录该内存保留行为边界。
entry_2_1_332_code_mode_background_slow_command_empty_output Code Mode 慢命令转后台且脚本空输出、后台命令时限可见性 official-documentation-entry 修复 Code Mode 未告知慢命令已转后台及其脚本空输出;claude -p 与 Agent SDK 后台命令时限也纳入提示。
entry_2_1_212_background_daemon_control_socket_successor 后台守护进程关闭时不再删除继任者的控制套接字 official-documentation-entry 修复被替换的后台守护进程在关闭时删除继任者控制套接字,导致下一个客户端杀掉健康替换进程的问题。
entry_2_1_212_idle_parked_background_session_keeps_daemon_alive ← 或 /background 停放且空闲的后台会话不再无限期保留守护进程与工作进程 official-documentation-entry 修复后台会话被停放为空闲后,后台守护进程与 worker 进程无限期存活的问题。
entry_2_1_212_completed_background_session_remove_via_rm_or_view 后台服务空闲后已完成后台会话可经 claude rm 或代理视图移除 official-documentation-entry 修复后台服务进入空闲后,已完成后台会话无法通过 claude rm 或代理视图删除的问题。
entry_2_1_212_non_git_folder_background_session_delete_view 非 Git 文件夹派发的后台会话可从代理视图删除 official-documentation-entry 修复从非 Git 文件夹派发的后台会话无法在代理视图删除的问题。
entry_2_1_212_stopped_background_session_unreadable_folder_restore 会话存储存在不可读文件夹时,重开停止的后台会话不再丢失已保存对话 official-documentation-entry 修复会话存储中存在不可读文件夹时,重开已停止后台会话无法恢复已保存对话的问题。
entry_2_1_332_claude_json_concurrent_save_corruption_report ~/.claude.json concurrent save corruption false report (2.1.332) proprietary-all-rights-reserved 另一会话正在保存 ~/.claude.json 时,当前会话不再误报该配置文件损坏。
entry_2_1_332_resumed_workflow_code_mode_waiting_background Paused Code Mode workflow resume waits on background work (2.1.332) proprietary-all-rights-reserved Code Mode 中恢复暂停的工作流时,不再在其他后台任务运行期间等待数分钟。
entry_2_1_330_subagent_progress_summary_short_notes_gateway_session Gateway terminal subagent progress summaries written from short notes (2.1.330) proprietary-all-rights-reserved 登录 Claude apps 网关的终端会话中,子代理进度摘要由简短笔记写成,而非整段对话。
entry_2_1_330_claude_daemon_logs_git_repo_no_log_file_exit claude daemon logs exits in git repo without log file (2.1.330) proprietary-all-rights-reserved git 仓库内不存在日志文件时,claude daemon logs 不再一直挂起不退出。
entry_2_1_331_remote_file_upload_timeout_35s_after_30s Cloud/Remote Control file upload waiting 35 seconds after finishing just past 30-second timeout (2.1.331) official-public-changelog-entry 云端与 Remote Control 会话文件上传在刚超过 30 秒超时完成时,现等待到 35 秒。
entry_2_1_331_oversize_remote_image_scale_down_8000px PNG/JPEG/WebP over 8000 pixels per side from remote session sent as scaled-down copy (2.1.331) official-public-changelog-entry 远端会话中单边超过 8000 像素的 PNG、JPEG、WebP 图片改为发送缩放副本。
entry_2_1_331_remote_attachments_first_16_of_17_to_20_files Claude apps messages with 17-20 attached files no longer deliver only first 16 (2.1.331) official-public-changelog-entry Claude 应用消息附带 17 到 20 个文件时,不再只送达前 16 个。
entry_2_1_331_remote_control_macos_idle_sleep_session_stop Remote Control claude remote-control sessions on macOS no longer stop mid-turn at idle sleep (2.1.331) official-public-changelog-entry macOS 上 claude remote-control 启动的 Remote Control 会话在机器空闲休眠时不再中途停止。
entry_2_1_330_remote_file_upload_timeout_network_502_503_504_retry_once Cloud/Remote Control file upload failing on timeout, network error or 502/503/504 retried once (2.1.330) official-public-changelog-entry 云端与 Remote Control 文件上传在超时、网络错误或 502/503/504 时重试一次。
entry_2_1_330_remote_file_send_temporary_failure_ask_again_minutes Claude notes a temporarily unsendable file can be asked for again in a few minutes (2.1.330) official-public-changelog-entry 文件因可能临时性原因无法发送时,说明可在几分钟后再次请求该文件。
entry_2_1_330_remote_large_file_streams_disk_memory_limit_named Large files sent from remote session stream from disk instead of memory; over-limit file refused with server limit named (2.1.330) official-public-changelog-entry 远端会话发送的大文件从磁盘流式读取而非载入内存;超限文件被拒绝并指明服务器限额。
entry_2_1_330_compact_clear_rewind_background_transcript_target_dialog /compact, /clear, /rewind typed in background agent or teammate transcript name target in dialog before acting (2.1.330) official-public-changelog-entry 在后台代理或队友 transcript 视图输入 /compact、/clear、/rewind 时,对话框先指明目标再操作,不再作用于主对话。
entry_2_1_330_background_job_done_while_waiting_approval Background jobs no longer show done while waiting for approval (2.1.330) official-public-changelog-entry 后台任务等待审批期间不再显示为已完成。
entry_2_1_330_commit_attribution_reminder_not_resent_tool_output_one_turn_fallback Commit attribution reminder no longer re-sent inside tool output when model fallback lasts one turn (2.1.330) official-public-changelog-entry 模型回退仅持续一个回合时,提交署名提醒不再在工具输出内重复发送。
entry_2_1_330_cloud_session_long_filename_attachment_reaches_session Files with very long names attached to a cloud session now reach it (2.1.330) official-public-changelog-entry 附到云端会话的超长文件名文件可正常送达会话。
entry_2_1_330_cloud_remote_env_reads_newest_20_environments Cloud session creation and /remote-env no longer read only newest 20 of account environments (2.1.330) official-public-changelog-entry 云端会话创建与 /remote-env 不再只读取账户环境中最新的 20 个。
entry_2_1_330_remote_control_message_read_arrival_queued_on_resume Remote Control marks message read when Claude starts on it; queued message lost on terminal quit arrives next resume (2.1.330) official-public-changelog-entry Remote Control 在 Claude 开始处理消息时才标记已读;终端退出时仍排队的消息会在下次恢复时送达。
entry_2_1_332_compact_repeated_failure_prompt_too_long Repeated auto-compaction failure no longer ends turn on Prompt-is-too-long (2.1.332) official-documentation-changelog-entry Fix: turns that repeatedly failed auto-compaction ended with 'Prompt is too long'; now one further compaction at the context limit can keep the session going.
entry_2_1_332_vscode_rewind_checking_code_changes_hang VS Code /rewind no longer stuck on Checking code changes when process hung at start (2.1.332) official-documentation-changelog-entry Fix: in VS Code, Rewind stayed on 'Checking code changes…' while Claude's process hung at its start; checkpoint/rewind startup path corrected.
entry_2_1_331_vscode_fork_overwrites_original_plan_file Forked conversation no longer overwrites original plan file; uncopyable plan warns (2.1.331) official-documentation-changelog-entry Fix: a forked conversation overwrote the original conversation's plan file; a fork or rewind that cannot copy the plan now shows a warning instead.
session_openai_conversation_id Responses API · conversationId(服务端对话资源) proprietary-cloud-api-session-primitive conversationId 是 OpenAI 托管的服务端对话状态标识,可跨 worker 或服务共享;与 previousResponseId 互斥,适合需要命名对话资源、跨系统复用的场景;客户端管理历史时不应与 session 层重复叠加。
session_openai_previous_response_id Responses API · previousResponseId(响应链续接原语) proprietary-cloud-api-session-primitive previousResponseId 是 Responses API 最简的服务端续接原语:下一回合只传新用户输入与上一响应 ID,无需创建完整对话资源;与 conversationId 互斥。
env_bridge_session_id CLAUDE_CODE_BRIDGE_SESSION_ID Remote Control 桥接会话 ID configuration-documentation 本地会话存在活动 Remote Control 连接时(v2.1.199+)由系统设置为对应 Remote Control 会话 ID;供 Hook 读取桥接会话标识。
env_session_id_subprocess CLAUDE_CODE_SESSION_ID 子进程会话 ID configuration-documentation Bash/PowerShell 工具子进程与 Hook 命令环境中自动设置为当前会话 ID;供脚本与 Hook 识别所属会话。
env_remote_session_id_cloud CLAUDE_CODE_REMOTE_SESSION_ID 云端会话远程会话 ID configuration-documentation 云端会话中自动设置为当前远程会话 ID;标识 claude.ai / Web 云端会话归属。
fix_resume_malformed_memory_notice_no_file_list Resume crash fix: malformed system message or memory-saved notice without file list no longer crashes session resume official-public-changelog-entry Saved transcript holding a malformed system message or a memory-saved notice without its file list no longer crashes resume; malformed records are tolerated rather than treated as a required list.
fix_resume_damaged_cached_message_list_rebuild Damaged cached message list is rebuilt instead of exiting with unrecoverable interface error official-public-changelog-entry A damaged cached message list is rebuilt on load; this closes one cause of long-running fullscreen sessions exiting with an unrecoverable interface error.
fix_resume_stop_hook_summary_malformed_list_crash Resume crash fixed: saved transcript stop hook summary lacks a well-formed hook list official-public-changelog-entry A saved transcript whose stop hook summary has no well-formed hook list no longer crashes resume; the missing hook list is treated as malformed rather than fatal.
fix_headless_resume_cost_usage_totals_persisted Headless resume (claude -p --resume, SDK, VS Code reload) saves cost and usage totals at exit instead of restarting at zero official-public-changelog-entry Headless resume no longer starts cost and usage totals at zero; headless sessions save their totals at exit for later resume.
fix_resumed_session_previous_turns_not_resent_changed_form Resumed sessions no longer resend earlier turns in changed form after resume official-public-changelog-entry Resumed sessions do not resend an earlier parallel tool-call turn, an MCP tool input, or an interrupted tool-search result in changed form, which previously could make the API drop prior reasoning.
fix_resume_pending_permission_prompt_history_diverges Session resumed after a restart during a pending permission prompt keeps the same history instead of sending a divergent one official-public-changelog-entry A session resumed after a restart while a permission prompt was pending no longer sends a different history; prior prompt-cache behavior stays intact from that point.
fix_resume_ended_during_tool_call_outcome_unknown Resume after a tool-call ending turn: Claude sees the call and outcome is unknown; manual resume adds no hidden Continue message official-public-changelog-entry When a session ends during a tool call, resume restores the call and marks its outcome unknown; a manual resume no longer inserts a hidden Continue message.
fix_advisor_unreadable_history_repaired_once Sessions whose earlier advisor result the API can no longer read repair their history once instead of failing every turn and losing reasoning repeatedly official-public-changelog-entry History for an advisor result the API cannot read is repaired once; the session no longer fails one request every turn or repeatedly loses earlier reasoning.
fix_resume_very_large_session_last_messages_only Resuming a very large session no longer restores only its last few messages official-public-changelog-entry Very-large session resume now restores the prior message history rather than only the last few messages; resume time for non-compacted large sessions was also improved.
fix_resume_unfinished_background_agents_no_turn_on_input Resume with unfinished background agents, shells or workflows starts no model turn on its own before input official-public-changelog-entry A resumed session with unfinished background agents, shells or workflows no longer starts a model turn by itself before the user types anything.
fix_background_subagent_message_lost_headless_sdk Messages to a finishing headless/SDK subagent are no longer silently lost official-public-changelog-entry Messages sent to a background subagent finishing its turn are retained in headless and SDK sessions instead of being silently dropped.
fix_finished_subagent_report_lost_after_compact A finished subagent report is retained after the launching conversation compacts before the report is read official-public-changelog-entry The report of a finished subagent survives compaction of the conversation that launched it, so it is still available when read afterward.
fix_background_shell_benign_nonzero_exit_reported_failure Background shell tasks no longer report benign non-zero exits (e.g. grep no matches) as failures official-public-changelog-entry Background shell tasks classify benign non-zero exits such as grep finding no matches separately from failures.
fix_subagent_progress_summary_replaced_by_runaway_reply A sub-agent progress summary is no longer replaced by a runaway multi-paragraph reply official-public-changelog-entry The sub-agent progress summary remains in place instead of being overwritten by an unbounded multi-paragraph reply.
fix_second_copy_background_command_after_compact A still-running background command (watch task, dev server) is not started a second copy after compaction official-public-changelog-entry After compaction, a watch task or dev server still running is not duplicated; only one background copy continues.
fix_ctrl_c_two_presses_exit_with_background_subagents Ctrl+C exits in two presses while background subagents run, instead of needing three or four official-public-changelog-entry Ctrl+C press count to exit while background subagents run is fixed to two presses.
fix_background_agent_notification_false_no_live_work Background agent notifications no longer claim the agent has no live background work while it still waits on its own background task and would resume official-public-changelog-entry A background agent still waiting on its own background task and due to resume is not reported as having no live work in notifications.
session_openai_assistants_thread Assistants API · Thread(助手与用户的对话线程) proprietary-cloud-api-session-primitive Thread 是 Assistants API 中助手与用户之间的对话会话,独立于 Assistant 对象存在;线程保存消息历史,当对话超出模型上下文长度时截断最旧消息。Assistants API v2 已弃用,新项目应迁移到 Responses API。
session_openai_assistants_run Assistants API · Run(线程上的助手执行任务) proprietary-cloud-api-session-primitive Run 在给定 Thread 上把 Assistant 与模型、指令和工具绑定并执行一次任务;应用通过轮询 Run 状态或订阅流式事件获取完成结果、工具调用与最终消息。Assistants API v2 已弃用,新项目使用 Responses API。
entry_2_1_325_teammate_session_folder_start_dir tmux/iTerm2 队友与代理视图新建会话从会话文件夹启动,而非上次 cd 目录 official-document-derived-entry tmux 与 iTerm2 中的队友,以及代理视图用 ← 打开的新会话,从所属会话的文件夹启动,而不是 shell 上次 cd 到的目录。
entry_2_1_325_bg_mcp_task_esc_answer_later_kept_in_tasks 后台 MCP 任务问题按 Esc“稍后回答”:不发送服务器,问题留在 /tasks official-document-derived-entry 后台 MCP 任务的提问按 Esc 选择稍后回答时,不向服务器发送任何内容,问题保留在 /tasks 列表中待后续处理。
entry_2_1_325_resume_teleport_disconnect_share_link_session /resume 与 /teleport 在已连会话带分享链接时先断开;无法核对时同样先断开,再用 /remote-control 重连 official-document-derived-entry 当已连接会话带有分享链接、或无法核对链接状态时,/resume 与 /teleport 先断开连接;之后运行 /remote-control 重新连接。
entry_2_1_325_headless_cached_account_data_wait_before_first_request claude -p 无缓存账户数据时先等待该数据再发首个请求,干净环境首跑可晚几秒启动 official-document-derived-entry 无缓存账户数据的 claude -p 在首个请求前等待账户数据就绪;干净环境首次启动因此可能延后几秒,避免首请求缺少凭证上下文。
entry_2_1_325_mcp_task_waiting_answer_told_to_claude_points_tasks MCP 任务等待用户答复时告知 Claude,并可指向 /tasks 列表 official-document-derived-entry MCP 任务等待用户回答时,Claude 会获知任务在等待,并能引导到 /tasks;改善后台任务与用户输入的衔接。
entry_2_1_317_disable_nested_session_id_runner_p_in_session_transcript CLAUDE_CODE_DISABLE_NESTED_SESSION_ID:Runner 上置 1 后 claude -p 复用外层会话 ID 与记录(旧版行为) official-document-derived-entry 在自托管 Runner 上将 CLAUDE_CODE_DISABLE_NESTED_SESSION_ID 置 1,使会话内运行的 claude -p 使用该会话的 ID 与 transcript,恢复早期版本行为。
entry_2_1_317_resume_hint_repeat_launch_flags_before_resume 退出时“Resume this session with”提示在 --resume 前列出启动标志(如 --chrome --debug)以便重复 official-document-derived-entry 退出时的会话恢复提示重复展示启动标志(例如 --chrome --debug),置于 --resume 之前,便于原样复现启动参数。
fix_resume_interrupted_turn_age_limit An interrupted failed turn older than the max-age limit is not rerun on resume official-public-docs-derived Official changelog: CLAUDE_CODE_RESUME_INTERRUPTED_TURN no longer re-runs a turn that failed with an API error over six hours earlier, or longer ago than CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS when set. Boundary: resume turn replay age guard; session transcript follows existing resume rules.
fix_scheduled_task_worktree_session_copy Saved scheduled tasks no longer run in the wrong session after scheduled_tasks.json is copied into another folder such as a new worktree official-public-docs-derived Official changelog: saved scheduled tasks no longer run in the wrong session after .claude/scheduled_tasks.json is copied into another folder, such as a new worktree. Boundary: scheduled task session binding; task prompt follows existing schedule rules.
fix_system_before_assistant_message_api_error Conversations no longer fail every turn with a role 'system' must precede an 'assistant' message API error official-public-docs-derived Official changelog: conversations no longer fail on every turn with the API error that role 'system' must precede an 'assistant' message. Boundary: message ordering validation; message payload contents excluded.
fix_tui_restart_finished_teammate /tui no longer refuses to restart because an agent-team teammate finished its work and is no longer shown in the agents panel official-public-docs-derived Official changelog: /tui no longer refuses to restart because of an agent-team teammate that had already finished its work and was no longer shown in the agents panel. Boundary: TUI restart and teammate panel state; agent internals excluded.
entry_2_1_314_idle_compaction_vscode_desktop_code_tab Idle compaction in VS Code and Claude Desktop Code tab: a 200K+ token idle conversation is summarized and the summary reused on the next message after cache expiry official-public-docs-derived Official changelog addition: idle compaction runs in the VS Code and Claude Desktop Code tab; a conversation above roughly 200K tokens left idle is summarized, and the summary feeds the next message when the prompt cache has expired. Records the idle-compaction surface coverage; token threshold and cache timing follow official session/compaction documentation.
entry_2_1_314_cloud_scheduled_tasks_include_completed_button Cloud sessions Scheduled tasks page: Include completed button shows finished one-off tasks when they are the only hidden rows official-public-docs-derived Official changelog addition: a scheduled-tasks page control shows completed one-off cloud sessions directly, without opening the Sort menu. Records a cloud session task-list UI affordance; task retention and run lifecycle follow official cloud session documentation.
entry_2_1_314_subagent_result_memory_parent_session_turn Long headless/SDK turns with many subagents: parent session no longer retains each subagent's tool results until the turn ends official-public-docs-derived Official changelog improvement: in long non-interactive and SDK turns that launch many subagents, the parent session no longer keeps every subagent tool result in memory until the turn completes. Records session memory-management behavior; subagent isolation and result availability remain governed by official subagent documentation.
entry_2_1_314_resume_speed_memory_damaged_transcript --resume speed and memory use improved on damaged transcript files official-public-docs-derived Official changelog improvement: resuming from a corrupted or damaged transcript loads faster and uses less memory. Records a transcript-resume reliability improvement; transcript file format and recovery limits stay official-documentation scope.
entry_2_1_310_compaction_memory_large_transcript_noninteractive_sdk Non-interactive sessions (-p, Agent SDK) use less memory during compaction when the transcript file is very large official-public-docs-derived Official changelog improvement: compaction in -p and Agent SDK non-interactive sessions reduces memory use when the transcript file is very large. Records headless/SDK session compaction memory behavior; compaction window and limits remain official session documentation scope.
entry_2_1_304_compaction_summary_names_earlier_tools Compaction summary in the transcript view (Ctrl+O) adds the names of tools called earlier official-public-docs-derived Official changelog addition: the compaction summary shown in the transcript view (Ctrl+O) includes the names of tools called earlier in the session. Records a compaction summary content boundary; summary generation and context limits follow official session/compaction documentation.
entry_2_1_302_idle_compaction_config_row_and_notice /config Idle compaction row toggles idle compaction on or off; post-compaction notices explain how to turn it off official-public-docs-derived Official changelog addition: /config exposes an Idle compaction row to disable or re-enable idle compaction; notices shown after an idle compaction explain how to turn the feature off. Records the idle-compaction configuration surface; threshold and cache timing follow official session documentation.
entry_2_1_302_fork_subagents_default_on_headless_sdk_desktop_ide Fork subagents (subagent_type: fork) on by default in claude -p, Agent SDK, desktop app and VS Code; CLAUDE_CODE_FORK_SUBAGENT=0 turns them off; claude mcp serve never offers them official-public-docs-derived Official changelog change: fork subagents are on by default in claude -p, the Agent SDK, the desktop app and VS Code, as they already are in the terminal; CLAUDE_CODE_FORK_SUBAGENT=0 disables them, and claude mcp serve never offers fork subagents. Records the fork-subagent default and opt-out boundary; subagent isolation follows official subagent documentation.
entry_2_1_301_subagent_progress_trail_incremental_render Long-running subagent rendering: its progress trail updates incrementally instead of being reprocessed in full on every render official-public-docs-derived Official changelog improvement: while a long-running subagent works, its progress trail updates incrementally rather than being fully reprocessed on each render. Records a subagent UI rendering performance boundary; subagent transcript and status follow official subagent documentation.
entry_2_1_331_compact_summary_xml_tags_lost_part /compact and auto-compact sometimes lose part of the conversation summary when it quotes certain XML tags changelog-derived 官方 changelog 2.1.331:/compact 与自动压缩在摘要引用特定 XML 标签时偶发丢失部分对话摘要;条目记录压缩摘要完整性边界。
entry_2_1_331_cloud_silent_reply_retry_think_timeout Cloud sessions retry once when a reply went silent while Claude was still thinking; long-reply timeouts elsewhere changelog-derived 官方 changelog 2.1.331:云端会话或其他长回复在 Claude 仍思考时静默失败;Claude Code 现在重试一次。条目记录后台会话请求重试边界,不记录模型超时内部实现。
entry_2_1_331_windows_almost_out_of_memory_crash Possible Windows crash fixed when the machine is almost out of memory changelog-derived 官方 changelog 2.1.331:机器内存接近耗尽时可能崩溃的 Windows 场景修复。条目记录会话资源压力稳定性边界,不记录内存管理内部结构。
entry_2_1_331_cli_freeze_reply_quoted_text_missing_duplicate CLI freezes on some replies; quoted text sometimes goes missing or shows twice changelog-derived 官方 changelog 2.1.331:CLI 在部分回复上冻结;引用文本偶发缺失或重复显示。条目记录会话回复渲染稳定性边界。
entry_2_1_330_sleep_two_min_first_prompt_dead_connection_wait_three First prompt after a two-minute sleep waits three minutes on a dead connection on Linux and WSL changelog-derived 官方 changelog 2.1.330:Linux/WSL 上连接已死亡时,休眠两分钟以上后的首个提示曾等待三分钟;修复按失效连接快速处理。条目记录后台会话连接超时边界。
entry_2_1_330_incomplete_backup_claude_json_disk_full_good_displaced Incomplete backups of ~/.claude.json are kept and displace good ones when the disk is full changelog-derived 官方 changelog 2.1.330:磁盘满时 ~/.claude.json 备份不完整,且挤占有效备份位置。条目记录配置备份完整性边界,不记录备份文件内部格式。
entry_2_1_330_waiting_stopped_finished_background_agent_app_sdk Claude still waits for a background agent that was stopped just as it finished, in app or SDK sessions changelog-derived 官方 changelog 2.1.330:App 或 SDK 运行的会话中,Claude 仍等待刚结束即停止的后台代理。条目记录后台代理完成状态投递边界。
entry_2_1_330_background_session_wake_permission_mode_after_plan Background sessions sometimes wake in their previous permission mode after approving a plan changelog-derived 官方 changelog 2.1.330:后台会话批准计划后偶发以先前权限模式唤醒。条目记录后台会话权限模式恢复边界。
session_gemini_repl Gemini CLI terminal REPL session official-documentation-session Gemini CLI 在终端提供交互式 Read-Eval-Print Loop(REPL)会话,用户输入提示词后由客户端 packages/cli 与本地核心 packages/core 编排对 Gemini API 的请求与工具执行。
entry_2_1_327_subagent_resumed_by_sibling_follows_session_permission subagent resumed by a sibling message follows the session's permission settings changelog-derived 官方 changelog 2.1.327:由兄弟子代理消息唤起恢复的子代理改为遵循会话的权限设置;无人应答的场景下可被询问或拒绝,权限边界与父会话一致。
entry_2_1_332_desktop_needs_input_after_background_report Claude Desktop 后台任务报告后保留 needs-input 状态 changelog-derived 官方 changelog 2.1.332:后台任务报告到达后,桌面会话不再丢失“等待输入”状态。边界:状态呈现行为条目,不收录内部事件队列实现。
entry_2_1_330_compact_long_conversation_freeze_minutes 超长会话压缩后曾冻结数分钟的问题修复 changelog-derived 官方 changelog 2.1.330:压缩超长对话之后 Claude Code 曾冻结数分钟;修复该压缩后停顿。边界:会话压缩性能行为,不收录摘要生成内部实现。
entry_2_1_330_resume_empty_session_invalid_timestamp --continue/--resume 在最后消息时间戳缺失或非法时不再打开空会话 changelog-derived 官方 changelog 2.1.330:最后保存消息带缺失或非法时间戳时,--continue 与 --resume 曾打开空会话或失败;修复该恢复路径。边界:会话恢复记录校验,不收录 transcript 内部格式。
entry_2_1_330_fullscreen_plan_arrive_typing_lost 全屏模式计划到达时正在输入的剩余文本不再丢失 changelog-derived 官方 changelog 2.1.330:计划在全屏模式到达时,用户正在输入的其余内容曾丢失;修复输入保留。边界:输入界面状态行为,不收录计划消息内部结构。
selfhost_environment_group Self-hosted Environment: named runner group routed sessions official-document-derived-entry Named group of runners managed in claude.ai admin settings; cloud sessions are routed to the Environment rather than to an individual runner.
selfhost_environment_pool_alias Environment pool / pool_id API spelling alias official-document-derived-entry In API fields, token claims and metric names the Environment appears as pool with ID pool_id; the reference maps the spelling, including deprecated pool flag names.
env_resume_hint_command CLAUDE_CODE_RESUME_HINT_COMMAND 退出提示自定义恢复命令 configuration-documentation 官方 changelog 2.1.329:启动 Claude Code 的外部程序可设置该变量,使退出提示命名自身的恢复命令。边界:仅控制退出提示文本,不改变会话恢复机制、历史重放或权限继承。
env_exit_after_stop_delay CLAUDE_CODE_EXIT_AFTER_STOP_DELAY SDK 模式空闲退出延迟 configuration-documentation 官方 changelog 2.1.329:在指定空闲时长后自动退出 SDK 模式,供自动化工作流与脚本使用。边界:只控制退出时机,不改变后台任务等待规则、会话持久化或工具结果语义。
env_resume_interrupted_turn CLAUDE_CODE_RESUME_INTERRUPTED_TURN 恢复时续跑被中断回合开关 configuration-documentation 官方 changelog:会话恢复时是否重跑被中断的回合;修复 Hook continue:false 停止的回合被该变量重新执行的问题。边界:只影响恢复路径的回合重跑,不改变正常完成回合。
env_resume_interrupted_turn_max_age_ms CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS 可续跑中断回合的最大年龄(毫秒) configuration-documentation 官方 changelog:会话迁移到新 runner 时,超过该年龄的未完成工具调用回合不再续跑。边界:与中断回合开关配合,只约束旧回合恢复时限。
env_runner_session_uuid CLAUDE_RUNNER_SESSION_UUID 自托管 Runner 会话 UUID 注入 configuration-documentation 官方 changelog:自托管 runner 会话与其检出目录同时设置该会话 UUID;用于 runner 会话标识与关联。边界:标识变量,不携带凭证内容。
env_runner_correlation_id CLAUDE_RUNNER_CORRELATION_ID spawn-runner 钩子关联 ID 注入 configuration-documentation 官方 CLI 参考:使用 --environment 时,将关联 ID 作为 CLAUDE_RUNNER_CORRELATION_ID 传入 spawn-runner 钩子环境;要求 Claude Code v2.1.328 及以上。边界:仅传递关联标识。
env_runner_spawn_reason CLAUDE_RUNNER_SPAWN_REASON Runner 派生原因注入 spawn-runner 钩子 configuration-documentation 官方 changelog:编排器 spawn-runner 钩子环境中加入派生原因(例如 runner 类型),说明 Anthropic 为何发送该请求。边界:只记录派生原因,不控制派生决策。
env_session_id_substitution CLAUDE_SESSION_ID 技能可用的当前会话 ID 字符串替换 configuration-documentation 官方 changelog:为技能提供 ${CLAUDE_SESSION_ID} 字符串替换以访问当前会话 ID。边界:仅会话标识,不暴露会话历史内容。
entry_2_1_332_resumed_session_messages_not_loaded_notice 恢复会话早期消息未加载提示(VS Code / Desktop Code 标签页) configuration-documentation 官方 changelog 2.1.332:恢复会话时早期消息未被加载,Code 标签页给出提示(终端已有同类提示)。边界:只提示加载缺口,不补读或重建历史消息。
entry_2_1_332_declined_permission_tool_call_counted_done 拒绝权限后未运行工具调用被计入完成修复 configuration-documentation 官方 changelog 2.1.332:会话重启后拒绝权限提示,未实际运行的工具调用原先被计入聊天摘要的完成项;该版本修复。边界:只修正摘要计数,不改变权限审批结果或工具执行边界。
entry_2_1_330_monitor_keeps_earlier_conversation_memory Monitor 运行期间保留早期会话内存修复 configuration-documentation 官方 changelog 2.1.330:Monitor 在结束前原先一直保留早期对话占用内存;该版本修复该内存滞留路径。边界:只约束 Monitor 会话内存释放,不改变监控触发条件或事件上报。
entry_2_1_332_compaction_summary_three_cutoff 压缩摘要三次截断后要求更短摘要 official-document-derived-entry 摘要持续超出输出限额时,三次被截断回复后最后一次尝试改为请求更短摘要,避免压缩反复失败。
entry_2_1_332_rewind_point_large_file_freeze 大型跟踪文件被改写后打开回退点长时间冻结修复 official-document-derived-entry 大型被跟踪文件重写后打开 rewind 检查点不再长时间冻结。
entry_2_1_332_worktree_rules_files_second_send 进入 .claude/worktrees 工作树后 CLAUDE.md 与规则文件不再二次发送 official-document-derived-entry EnterWorktree 进入工作树或在工作树恢复会话时,规则文件多数情况下不再重复发给模型。
entry_2_1_332_transcript_damaged_lines_resume_stats_freeze transcript 含大量损坏行时恢复会话与 /stats 冻结数秒修复 official-document-derived-entry 会话记录存在大量损坏行时,恢复会话和 /stats 不再冻结数秒。
entry_2_1_332_claude_json_concurrent_save_corrupted 另一会话保存 ~/.claude.json 期间不再误报配置损坏 official-document-derived-entry 会话并发写入配置文件时,不再把正在保存的 ~/.claude.json 报告为损坏。
entry_2_1_332_idle_compaction_subscriber_weekly_limit 订阅者仍远低于周限额时不再跳过空闲压缩 official-document-derived-entry 订阅者用量仍在周限额以下时,空闲压缩不再被跳过。
entry_2_1_332_resumed_missing_last_messages_provider 第三方提供商崩溃/被杀后恢复会话不再丢失最后消息 official-document-derived-entry Bedrock、Google Cloud Agent Platform、Foundry 等第三方提供商崩溃或终止后,恢复会话不再丢失最后几条消息。
entry_2_1_332_empty_session_background_transcript_fail 空会话转入后台不再报 Couldn't load transcript from file official-document-derived-entry 空会话移到后台时不再出现无法从文件加载 transcript 的错误。
doc_mcp_cloud_session_elicitation_card 云会话 MCP elicitation 请求在 claude.ai/code 或 Desktop Code tab 卡片应答 official-public-docs-derived 官方 MCP 文档:云会话任务等待 MCP 服务器输入请求(取值或登录)时,请求以卡片出现在 claude.ai/code 或桌面应用 Code tab;表单模式填写字段后提交,URL 模式按卡片链接完成应答。条目记录云会话应答界面与事件衔接,不收录服务器认证内部流程。
doc_rc_connected_device_view What connected devices see:已连接设备可见的会话内容范围 official-public-documentation-entry 官方 Remote Control 文档:连接到本机会话的其他设备可看到会话对话与操作内容;可见范围、附件与终端专用命令的限制另由 Mobile / Remote Control 边界条目记录。
doc_rc_fork_session_from_browser Fork a session from your browser:浏览器端从会话分叉 official-public-documentation-entry 官方 Remote Control 文档:可在浏览器中对已连接会话执行分叉;分叉后的会话以后台会话在本机运行,分叉命名与后台运行边界由既有 fork 条目记录。
doc_rc_resume_after_server_stop Resume sessions after stopping the server:服务端停止后恢复遥控会话 official-public-documentation-entry 官方 Remote Control 文档:Remote Control 服务停止后,会话可在重新连接时恢复;恢复沿用既有会话与历史上下文,不同于新建云会话。
doc_rc_vs_cloud_session_runtime Remote Control vs cloud sessions:本机遥控会话与云端会话运行位置对比 official-public-documentation-entry 官方 Remote Control 文档对比:Remote Control 在本机运行本地会话,由手机/浏览器遥控;cloud session 运行在 Anthropic 托管云基础设施上。两者运行位置、断线行为与恢复方式不同,不互为同一部署形态。
doc_checkpoint_how_it_works How checkpoints work:检查点追踪、回溯与摘要的工作机制 official-public-documentation-entry 官方 Checkpointing 文档:检查点用于追踪 Claude 的编辑与会话对话,支持回溯和摘要以管理会话状态;具体追踪对象、不还原项与版本控制替代边界由既有限制条目记录。
doc_checkpoint_automatic_tracking Automatic tracking:检查点自动追踪 official-public-documentation-entry 官方 Checkpointing 文档:会话编辑与对话由检查点机制自动追踪,无需手动触发;自动追踪覆盖范围与不被追踪的外部改动边界分开记录。
doc_checkpoint_rewind_and_summarize Rewind and summarize:回溯消息并生成摘要 official-public-documentation-entry 官方 Checkpointing 文档:回溯(rewind)可回到早前消息并对上下文生成摘要;回溯后若在下一条提示前退出,已回溯消息可能再次返回,该返回边界由既有条目记录。
doc_project_sandbox_pause_resume_fresh_clone Project cloud thread sandbox: pauses between turns; on resume failure it continues from a fresh clone and uncommitted changes may be lost official-doc-derived 官方 Projects 文档:云线程沙箱在回合之间暂停、线程继续时恢复;若沙箱无法恢复,线程从全新克隆继续,未提交改动可能丢失;长任务应及时提交并推送进行中的工作。该边界仅限云线程本地文件状态;数据库、外部 API 与部署等远程动作不在文件检查点覆盖范围内,仍由权限模式与权限规则约束。
doc_worktree_subagent_background_cleanup_sweep 子代理与后台会话 worktree 周期性清扫清理规则 official-public-docs-derived 代理为子代理和后台会话创建的 worktree 由周期性 sweep 移除;保留时长遵循 cleanupPeriodDays 设置与仓库目录自动清理规则,未完成变更、未跟踪文件或新提交的 worktree 在退出交互会话时仍先检查工作内容。
doc_desktop_scheduled_task_missed_catchup_run 桌面本地定时任务漏跑补跑:七天内仅补最近一次 official-public-docs-derived 应用启动或电脑唤醒时,Desktop 检查过去七天内错过的运行;只针对最近一次错过时间启动一次补跑,更早的错过记录丢弃。每日任务错过六天,唤醒后只运行一次;补跑启动时显示通知。
env_claudecode_subprocess_marker CLAUDECODE Claude 派生子进程标记环境变量 official-doc-derived 官方 env-vars 文档:Claude Code 派生的 Bash/PowerShell 工具、tmux 会话、Hook 命令、状态行命令与 stdio MCP 服务器子进程中设置 CLAUDECODE=1;IDE 扩展也会设置该标记。脚本可用它识别运行在 Claude 派生子进程内;要区分直接由工具/Hook 启动的子进程与长生命周期 stdio MCP 服务器,应使用 CLAUDE_CODE_CHILD_SESSION。
env_claude_code_child_session_nested_detection CLAUDE_CODE_CHILD_SESSION 嵌套 Claude 子进程会话标记 official-doc-derived 官方 env-vars 文档:Bash/PowerShell/Monitor 工具、Hook 命令与状态行命令子进程中设置为 1;stdio MCP 服务器子进程不设置。与 CLAUDECODE 不同,IDE 扩展不设置该变量,因此可区分 Claude Code 直接启动的嵌套会话。嵌套交互式 claude TUI 会被排除在 --resume、--continue、上箭头历史与 claude agents 列表之外;非交互 claude -p 会话仍持久化;CLAUDE_CODE_FORCE_SESSION_PERSISTENCE 可覆盖该排除规则。
entry_2_1_332_noninteractive_mcp_first_turn_2s_wait_floor 非交互首轮 MCP 2 秒等待下限:--allowedTools / mcp_tool hook 命名的服务器在 STARTUP_WAIT_MS=0 时仍等待 official-public-changelog-entry Official changelog 2.1.332: the non-interactive first turn still waits up to two seconds for connecting MCP servers named by --allowedTools or an mcp_tool hook, even when CLAUDE_CODE_MCP_STARTUP_WAIT_MS is 0. This is a wait-floor rule for explicitly named/hook-provided servers and differs from the stream-json deferred-by-tool-search case, whose tools arrive on a later turn.
entry_2_1_332_subagent_background_reply_missing_usage_model_id Background or sub-agent final streamed reply missing token usage or model ID no longer reports a failed agent with lost result official-changelog-derived Official 2.1.332 changelog fix: sub-agents and background agents were reported as failed with the result never delivered when the final streamed reply omitted token usage or carried no model ID. This entry records the result-delivery condition and boundary; it does not model internal message serialization or wire-format internals.
doc_cloud_session_archive_unarchive Cloud session archive and unarchive: remove sidebar entry, restore from Archived tab official-public-documentation Archive removes a cloud session from the sidebar session list. Archived sessions appear under the Archived tab at claude.ai/code/sessions; Unarchive returns the session to the sidebar list. This entry models list lifecycle only, not transcript deletion or backup recovery.
doc_queued_message_take_back_before_read Queued message recall before read: ✕ returns text to composer; once read it stays official-public-documentation A message sent while Claude is working queues until Claude reads it. Clicking ✕ recalls the queued message and returns its text to the message box for editing or resending. If Claude has already read the message, it remains in the conversation.
fix_fork_receipt_rapid_repeat_click_background_session /fork 回执快速重复点击不再延迟会话后台化 official-changelog-derived 官方 2.1.332 changelog 修复:当前工具尚未完成期间,一秒内重复点击 /fork 回执原先不会让会话立即后台化;修复后重复点击不再阻塞后台化。边界:属于 CLI 回执交互与后台调度;不改变 fork 的状态继承、权限模式、工作树隔离或会话恢复规则。
fix_cloud_large_history_transcript_container_stop_wake 大历史云会话转录加载期容器停止后无法唤醒修复 official-public-docs-derived 历史记录很大的云会话在 transcript 仍加载时容器被停止,原先之后无法唤醒;修复覆盖该加载阶段容器停止场景。边界:只记录会话生命周期现象与修复范围,不记录内部容器调度或持久化算法。
session_adk_rewind ADK session Rewind prior request state restoration official-public-docs-derived ADK Session Rewind reverts a session to a previous request state, undoing a specified request and the requests after it to correct mistakes, explore alternatives or restart from a known good point. Rewind restores only ADK-managed session-level resources; app-level or user-level global resources are outside this restore scope.
session_adk_state_scratchpad ADK session.state per-conversation mutable scratchpad official-public-docs-derived session.state is the dedicated mutable key-value scratchpad for one agent conversation, holding information the agent must recall or track for the current exchange. The full history remains in session.events; whether state survives an application restart depends on the selected Session Service implementation.
session_openai_realtime_runtime_session Realtime Agent · RealtimeSession(实时会话运行对象) open-source-sdk-documented-capability RealtimeSession 是 RealtimeRunner 创建的长期实时会话对象:发送文本或音频输入、迭代会话事件、维护本地历史、在后台执行工具并同步护栏状态与当前代理;RealtimeAgent、RealtimeRunner 与 RealtimeModel 传输抽象围绕该会话生命周期协作。
doc_cloud_expired_vm_restoration_boundary Expired cloud VM restoration: history and MCP task tracking retained; other background work does not carry over official-public-docs-derived Official cloud documentation: after inactivity the VM is reclaimed; reopening provisions a fresh VM. Conversation history and tracking of MCP tasks still running on a connector are restored. Other stopped background work is not restored: shell commands, resumable subagents, session-scoped scheduled tasks and a /loop waiting for its next iteration must be rerun or rescheduled.
runner_order_id_spawn_key CLAUDE_RUNNER_ORDER_ID spawn-request idempotency key configuration-documentation Spawn-runner hook environment variable carrying an opaque, per-spawn-request idempotency key safe for Kubernetes-style resource names. The provisioner must deduplicate on order ID, not session ID, because a session repeats its ID across re-requests with a new order ID. Boundary: identifier only; it is not a credential or authorization claim.
runner_pool_id_environment_variable CLAUDE_RUNNER_POOL_ID runner environment identifier in ccpool_... form configuration-documentation Runner registration hook variable identifying the environment the new runner joins, represented in ccpool_... form. The variable name retains the older pool wording while CLI flags and env vars otherwise use environment. Boundary: environment identifier only, not an account secret, token, or authorization claim.
runner_exit_reason_session_variable CLAUDE_RUNNER_EXIT_REASON post-session termination reason configuration-documentation Post-session hook variable recording how the session ended. The hook cannot fire after abrupt runner termination such as VM preemption or power loss; workloads needing crash guarantees must snapshot periodically from inside the session. Boundary: records termination reason and lifecycle correlation only, not session contents.

Skill

ID 名称 许可证状态 摘要
skill_workflow 可复用技能工作流 capability-derived 提示词封装的重复工作流;经 Skill 工具执行,可声明 allowed-tools、disallowed-tools、hooks
wf_codebase_overview 工作流:代码库概览与定位相关代码 configuration-documentation 先宽后窄提问:高层概览 → 架构模式 → 数据模型 → 认证等专项;定位与某功能相关的代码;适配 monorepo/大型仓库配置
wf_bug_fix 工作流:错误复现与修复 configuration-documentation 提供报错信息与复现命令/堆栈 → 请求修复建议 → 应用修复;需说明间歇性或稳定复现步骤
wf_refactor 工作流:安全重构 configuration-documentation 识别遗留 API → 获取重构建议 → 保持行为不变地改造 → 跑测试验证;小步可测增量,必要时保持向后兼容
wf_test_generation 工作流:测试补全与用例生成 configuration-documentation 识别未覆盖函数 → 生成测试脚手架 → 补充边界/错误条件/异常输入用例 → 运行并修复失败;沿用项目既有测试风格与框架
wf_pull_request 工作流:变更总结与 PR 创建 configuration-documentation 总结变更 → 创建 PR → 补充描述上下文;会话经 gh pr create / glab mr create 或处理既有 PR 与 PR 关联;claude --from-pr 按 PR 过滤会话选择器
wf_documentation 工作流:文档补全与规范核对 configuration-documentation 识别缺注释函数 → 生成 JSDoc/docstring 等文档 → 补充示例与上下文 → 核对项目文档规范;指定文档风格与公开 API/复杂逻辑覆盖
wf_image_context 工作流:图片作为上下文输入 configuration-documentation 拖拽粘贴或提供图片路径;图片用于错误截图、UI 设计稿、数据库结构图等视觉上下文;可由视觉内容生成 CSS/HTML 建议;单会话可使用多张图片
wf_parallel_worktree 工作流:worktree 并行会话隔离 configuration-documentation claude --worktree 在独立分支检出中启动隔离会话;多终端并行编辑互不冲突;仓库需至少一次提交;清理与 .worktreeinclude 见 Worktrees 文档
wf_plan_before_edit 工作流:编辑前计划评审 configuration-documentation plan 模式下只读文件并提出计划,批准前不落盘;claude --permission-mode plan 或会话内 Shift+Tab 切换;状态栏显示 plan mode on
wf_pipe_noninteractive 工作流:管道输入与非交互批处理 configuration-documentation stdin 管道(如 git log | claude -p)配合 -p 非交互模式用于 CI、pre-commit 与批量处理;输出格式、权限标志与 fan-out 见非交互模式文档
skill_command_legacy 旧版命令文件 .claude/commands/(已并入 Skills 兼容保留) configuration-documentation 自定义命令已合并入技能;旧 .claude/commands/ Markdown 文件继续可用;多文件需求可迁移为技能
guide_academy Claude Academy 免费自学课程(Code 101 / Code in Action) documentation-public 官方自助课程集合,含 Claude Code 101 与 Claude Code in Action;文档导航条目
skill_claude_api claude-api 技能(推荐 ant apply 版本化管理 Managed Agents 资源) documentation-public 内置技能更新为推荐使用 ant apply 将 Managed Agents 资源保持为版本受控文件;2.1.282 changelog 记录
skill_when_to_use 技能 frontmatter: when_to_use 触发条件字段 configuration-documentation 追加到 description 的触发上下文(触发短语/示例请求);与 description 合计在技能列表截断于 1536 字符
skill_argument_hint 技能 frontmatter: argument-hint 自动补全提示 configuration-documentation 补全时显示的参数提示,如 [issue-number]、[filename] [format]
skill_user_invocable 技能 frontmatter: user-invocable 菜单可见性 configuration-documentation false 时仅 Claude 可调用:从 / 菜单隐藏且 /name 不运行;用于后台知识类技能;默认 true
skill_disallowed_tools 技能 frontmatter: disallowed-tools 本回合移除工具 configuration-documentation 技能激活时从可用工具池移除的工具;下一消息发送后限制解除;与 deny 规则一样不能在其他工具仍存在时移除 EndConversation
skill_model_override 技能 frontmatter: model 回合级模型覆盖 configuration-documentation 技能激活期间使用的模型,仅作用当前回合,不写入设置;被组织 availableModels 允许名单排除时沿用当前会话模型;fork 上下文下设置 fork 子代理模型
skill_effort_override 技能 frontmatter: effort 回合级推理强度覆盖 configuration-documentation 覆盖会话 effort 等级但不覆盖 CLAUDE_CODE_EFFORT_LEVEL 环境变量;可选 low/medium/high/xhigh/max,可用等级取决于模型;fork 下作用于 fork 子代理
skill_context_fork 技能 frontmatter: context=fork 子代理上下文运行 configuration-documentation 设为 fork 时在 fork 子代理上下文中运行;配合 agent 字段指定子代理类型
skill_background_flag 技能 frontmatter: background 后台等待开关 configuration-documentation 仅与 context=fork 配合;false 时在调用技能的回合等待 fork 子代理结果,而非后台运行;默认 true
skill_hooks_reg 技能 frontmatter: hooks 技能注册钩子 configuration-documentation 技能被调用时注册并在会话剩余期间运行的 Hooks;once 选项与技能 Hooks 限制见 Hooks 文档
skill_arg_indexed 技能参数占位符:$ARGUMENTS[N] 与 $N 索引形式 configuration-documentation 按 0 基索引取参数($ARGUMENTS[0] / $0);命名参数经 arguments 字段映射位置;索引位置无参数时保留字面文本,命名占位符展开为空字符串
feat_commit_verify_skill_pre_commit 提交前运行名为 verify 的项目/用户技能;纯文档或纯测试提交除外 changelog-derived 当项目或用户技能中存在名为 verify 的技能时,Claude 在提交前运行该技能;纯文档提交与纯测试提交不触发这一前置检查。
skill_mcp_server_publish MCP 服务器发布的 Skills(beta):server:skill 菜单条目 official-document-feature-entry MCP 服务器可在 beta 阶段发布 Skills;Claude Code / 菜单以 server:skill 形式显示,其他 Skills 保持原名称。
skill_reserved_computer_use_macos macOS computer-use 保留 Skill 名称冲突规则 official-document-feature-entry 开启 computer use 后,computer-use 成为保留 Skill 名称;同名用户 Skill 或命令停止加载,启动通知要求改名。
fix_project_skills_worktree_untracked_load --worktree 会话加载主仓库未跟踪 .claude/skills 项目技能 official-public-changelog-entry 修复 --worktree 会话中主仓库 .claude/skills 未被 Git 跟踪时项目技能未加载的问题。
entry_2_1_332_computer_use_reserved_skill_name_mac macOS computer-use reserved skill name blocks local command load official-document-derived-entry 开启 computer-use 的 Mac 上 computer-use 成为保留技能名;同名本地技能或命令停止加载,并在启动通知中提示改名。
doc_team_parallel_domain_review Agent team workflow: parallel domain code review(安全/性能/测试覆盖并行评审) configuration-documentation 官方 Agent Teams 工作流:把同一 PR 的评审标准拆成互不重叠的领域,由不同队友分别聚焦安全影响、性能影响与测试覆盖;lead 在队友完成后汇总发现。
doc_team_competing_hypotheses Agent team workflow: competing hypotheses investigation(对抗性假设排查) configuration-documentation 官方 Agent Teams 工作流:根因不明时派生多名队友各自调查独立假设,并互相反驳其他理论;通过辩论结构避免顺序调查被首个理论锚定,最终汇总共识发现。
doc_workflow_notes_noncode_folder 工作流:笔记与非代码 Markdown 目录处理 public-documentation-workflow Claude Code 可在笔记库、文档目录或 Markdown 集合中搜索、编辑和重组内容;.claude/ 目录与其他工具配置目录并存,文件在每次工具调用时新鲜读取。
wf_delegate_research_subagents Workflow: delegate research to subagents(委派研究任务给子代理) official-public-documentation-workflow 大型代码库探索在子代理独立上下文窗口中读取文件,仅回传结论摘要,以保持主会话上下文干净;边界是研究结果依赖子代理定义的工具、提示与权限。
wf_pipe_claude_scripts Workflow: pipe Claude into scripts(把 Claude 管道接入脚本) official-public-documentation-workflow 以非交互 claude -p 形式把 CLI 输出和标准输入接入 CI、pre-commit 钩子或批处理脚本;边界是输出格式、权限标志与 fan-out 模式需按 headless 文档配置。
doc_workflow_pr_session_resume_by_pr 工作流:PR 关联会话按 PR 恢复 official-public-documentation 通过 gh pr create、glab mr create 或处理现有 PR 建立会话关联;可用 claude --from-pr 打开按 PR 过滤的会话选择器,或在 /resume 选择器粘贴 PR URL。
doc_workflow_pipe_claude_into_scripts 工作流:非交互 CLI 管道接入脚本 official-public-documentation 将命令输出管道传给 claude -p 做 CI、预提交钩子或批处理;输出格式、权限标志与 fan-out 模式由非交互模式文档约束。
doc_action_skill_prompt_invocation Action prompt 输入调用仓库或插件 Skill proprietary-all-rights-reserved Action 的 prompt 输入既接受纯文本,也接受 Skill 调用;仓库 .claude/skills 技能需在 Action 步骤前运行 actions/checkout,打包插件技能需先安装对应插件市场与插件。
wf_codebase_exploration_recipe Common workflow: understand new codebase prompt recipe official-public-documentation 面向陌生代码库的概览、导航与窄化提问提示模式,可在任意 Claude Code 表面使用。
wf_bug_debugging_recipe Common workflow: fix bugs efficiently prompt recipe official-public-documentation 高效定位复现、缩小范围并修复缺陷的提示模式;与测试、重构和 PR 流程衔接。
wf_refactoring_recipe Common workflow: refactor code prompt recipe official-public-documentation 在保持行为与测试通过前提下进行小步重构的提示模式。
wf_test_workflow_recipe Common workflow: work with tests prompt recipe official-public-documentation 编写、运行与完善测试用例并匹配项目既有测试模式的提示模式。
wf_pull_request_recipe Common workflow: create pull requests prompt recipe official-public-documentation 汇总变更、生成 PR 描述并衔接评审完善的提示模式。
wf_documentation_recipe Common workflow: handle documentation prompt recipe official-public-documentation 补齐、核对与更新项目文档的提示模式,可衔接笔记与非代码目录。
wf_notes_noncode_recipe Common workflow: notes and non-code folder prompt recipe official-public-documentation 处理笔记、Markdown 与非代码目录内容的提示模式,避免把非代码资料误当源码改动。
wf_image_input_recipe Common workflow: work with images prompt recipe official-public-documentation 把图片作为上下文输入并引用文件、目录或图片的提示模式。
wf_capability_self_query_recipe Common workflow: ask Claude about its capabilities prompt recipe official-public-documentation 围绕可用能力、文档边界与示例问题进行自身能力查询的提示模式。
wf_resume_previous_conversation_recipe Common workflow: resume previous conversations prompt recipe official-public-documentation 跨多次会话恢复先前对话、延续未完成任务的提示模式。
wf_parallel_worktree_recipe Common workflow: run parallel sessions with worktrees prompt recipe official-public-documentation 使用 Git worktree 隔离并行会话,避免并发编辑相互冲突的提示模式。
wf_plan_before_editing_recipe Common workflow: plan before editing prompt recipe official-public-documentation 先形成计划并在改动落盘前评审的提示模式,受计划权限模式约束。
wf_research_delegation_recipe Common workflow: delegate research to subagents prompt recipe official-public-documentation 把研究任务委派给子代理,主上下文只保留结论的提示模式。
wf_script_pipe_batch_recipe Common workflow: pipe Claude into scripts prompt recipe official-public-documentation 将 CLI 管道接入脚本、CI 与批处理流程的提示模式。
doc_workflow_bundled 内置捆绑工作流(Bundled workflows) official-public-docs-derived 动态工作流提供可直接运行的捆绑流程;用户选择后由 Workflow 工具编排子代理执行。
doc_workflow_saved_reuse 保存并复用工作流(Save the workflow for reuse) official-public-docs-derived Claude 生成的工作流可保存为可复用流程;后续任务可再次加载同一脚本而不必逐轮重写。
doc_chrome_webapp_test_workflow Chrome Web 应用测试流程(Web app testing workflow) official-public-docs-derived Chrome 集成可用于本地 Web 应用测试、表单验证、视觉回归和用户流程检查;流程依托浏览器工具与会话上下文。
improve_verify_skill_run_before_commit_except_docs_tests 提交前运行名为 verify 的用户或项目技能;纯文档与纯测试提交除外 changelog-derived 当项目或用户技能包含名为 verify 的技能时,Claude 现在被要求在提交前运行;docs-only 与 tests-only 提交除外。
doc_team_plan_before_implement Agent Teams 队友先计划后实现(plan before implementing) official-public-document-entry 官方工作流建议队友在实施前先形成计划,使 lead 可在写代码前检查方向;条目记录流程顺序与评审时机,不包含内部提示模板。
doc_team_research_review_sequencing_workflow Agent Teams 先研究评审再实施的团队序列(research and review first) official-public-document-entry 官方建议从研究与评审类队友起步,先收集上下文和评估方案,再让实现队友动手;条目记录阶段顺序,不预设模型组合或内部提示。
doc_large_codebase_per_directory_skills Per-directory monorepo skills: package-scoped .claude/skills directories and frontmatter paths glob official-public-docs-derived Official large-codebase docs: a subdirectory can define package-scoped skills under its .claude/skills directory, committed beside that area’s code; Claude loads a relevant skill on demand. A repository-root skill can instead be scoped to matching files with the paths frontmatter glob. Skills loaded from --add-dir follow the documented additional-directory skill/CLAUDE.md boundary.
doc_skill_reference_vs_action Reference skill versus action skill: knowledge supply versus invocable workflow official-document-derived-entry Overview documentation: reference skills provide knowledge Claude uses through the session; action skills tell Claude to perform a specific workflow such as a /deploy checklist. The distinction separates reusable reference material from runnable procedures.
glossary_bundled_skills Bundled skills: prompt-based playbooks included with Claude Code official-doc-derived Official glossary: bundled skills such as /batch, /code-review, /debug and /loop differ from fixed-logic built-in commands; they give Claude a detailed prompt that can spawn agents, read files and adapt to the codebase.
doc_workflow_saved_meta_block_and_body Saved workflow meta block, JavaScript body and helper functions official-public-docs-derived Official workflows documentation: a saved .js workflow begins with an export const meta object literal containing name and description; the plain-JavaScript body orchestrates agents with agent(), pipeline(), and parallel(), and may also call phase() for titled progress groups, log() for messages, and read the global args. Non-literal values in meta remove /<name> autocomplete; body syntax errors are reported when the workflow runs.
doc_workflow_name_scope_project_personal_precedence Project and personal workflow loading: nearest project directory, project wins on name clash official-public-docs-derived Official workflows documentation: in a monorepo with several .claude/ directories, saving to the project location writes to the closest existing .claude/workflows/ between the working directory and repository root, or the root if none exists. Project workflows load from every such directory along the path; when two project entries define the same name, the one nearest the working directory runs. If a project workflow and a personal workflow share a name, the project workflow runs.
doc_extension_reference_skill_vs_action_skill Reference skill versus action skill official-public-documentation Reference skill 提供 Claude 在会话中使用的可复用知识;Action skill 指示 Claude 执行特定可调用工作流。
cmd_team_onboarding /team-onboarding: generate teammate onboarding guide from recent usage history official-public-docs-derived Official commands documentation: /team-onboarding analyzes the past 30 days of Claude Code sessions, commands and MCP server usage and produces a Markdown guide a teammate can paste as a first message to start quickly. Team and Enterprise claude.ai subscribers may also receive a share link a teammate can open directly in Claude Code.
doc_large_codebase_package_scoped_skill_directory Per-package .claude/skills directory and SKILL.md scoped skill boundary official-public-docs-derived A subdirectory can define stack-scoped skills under its own .claude/skills directory; SKILL.md frontmatter names and describes the skill, the skill loads on demand when relevant, and it is committed beside the package code.
doc_feature_skill_mcp_composition Skill + MCP composition: MCP connection supplied, skill documents usage patterns official-public-docs-derived In the documented feature layering, MCP provides the external connection while a skill teaches Claude how to use that connection well; the two are complementary rather than substitutes.
doc_feature_skill_subagent_composition Skill + Subagent composition: reusable skill spawns isolated parallel workers official-public-docs-derived A skill can delegate to subagents for parallel work; subagents run in isolated context and return summarized results, keeping the main conversation focused.
doc_command_skill_chain_six_limit Command skill chaining: up to six skills in one message official-public-docs-derived Official commands documentation: a terminal message can load several skills with separate slash entries; up to six skills may be chained, and trailing text is passed to each as arguments. This records the message-level composition limit, not per-skill internals.
doc_headless_stdin_pipe_and_script_reviewer Non-interactive stdin pipe feeds diff or log to claude -p; wrapper script acts as project linter or reviewer official-doc-derived Official headless documentation: a non-interactive call reads stdin, so a build log or diff can be piped in and the response redirected out; a package script can wrap claude -p as a project-specific typo linter or reviewer. Piping the diff means the reviewer does not need Bash permission to read it; this entry records the documented script boundary, not a general permission bypass.
ch_foreground_subagent_task_tracking_tools_fix Changelog fix: foreground subagent keeps enabled TaskCreate/Get/Update/List and TodoWrite tracking tools capability-derived 官方 changelog 修复:前台子代理有时缺少已启用的任务跟踪工具 TaskCreate、TaskGet、TaskUpdate、TaskList 或 TodoWrite;修复后跟踪工具随子代理启动配置保留。
doc_voice_dictation_push_to_talk_keybinding_binding Voice dictation voice:pushToTalk Chat binding defaults to Space and can be rebound official-doc-derived 官方语音口述文档:口述按键在 Chat 上下文绑定为 voice:pushToTalk,默认 Space;同一绑定同时控制 hold 与 tap 模式。可在 keybindings.json 改为 meta+k 等修饰键组合并取消 Space 绑定。
bundled_code_review_skill_no_disk_md Bundled /code-review instructions are built in; no on-disk SKILL.md to edit official-public-docs-derived Official local review documentation: /code-review is a bundled skill whose instructions are built into Claude Code, so there is no SKILL.md file on disk to open or edit; project rules belong in CLAUDE.md. A project or personal skill named code-review can replace the bundled command, while /review keeps running the bundled review.
skill_standard_open_standard Agent Skills open standard; Claude Code adds invocation control, subagent execution and dynamic context injection official-public-documentation-entry Official Skills documentation: Claude Code skills follow the Agent Skills open standard so the same skill format can work across multiple AI tools. Claude Code extends that standard with invocation control, subagent execution and dynamic context injection. This entry records the public standard-to-product boundary; it does not infer compatibility with any specific tool implementation.
skill_directory_supporting_files Skill supporting files and scripts are referenced through the skill directory via ${CLAUDE_SKILL_DIR} official-public-documentation-entry Official Skills documentation: a skill can include supporting files such as scripts beside SKILL.md. The ${CLAUDE_SKILL_DIR} substitution resolves to the directory containing the skill's SKILL.md; for plugin skills it points to the skill subdirectory inside the plugin rather than the plugin root. The variable lets bash injection commands reference bundled skill scripts or files independent of the current working directory.
mcp_skill_supporting_files_resource_delivery MCP-served skill supporting files are fetched as MCP resources; local-only skill features do not apply to the server-provided skill official-public-documentation-entry Official Skills documentation: MCP servers can provide skills, and Claude reads the skill's supporting files from the server as MCP resources. Because the server supplies the content, local-only skill features do not apply; the documentation lists ignored frontmatter/local behavior such as tool grants, hooks, model, effort, context, agent, background, shell, paths, metadata, commands, @ file references and the listed project/session placeholders. This entry records that availability boundary only, not server internals.
skill_stacked_invocation Stacked skill invocation: terminal stacks several skills; headless/SDK loads the first skill and passes the rest as arguments official-public-documentation-entry Official Skills documentation: in the interactive Claude Code prompt several skills can be stacked at the start of one message. In SDK or claude -p execution, Claude Code loads only the first skill; the remainder of the line becomes its arguments. Expansion stops at the first token that is not an inline user-invocable skill, and that token plus everything after it becomes argument text for every expanded skill.
skill_command_name_source_precedence Skill command-name source precedence follows the skill layout: frontmatter name, directory name, added-directory name, plugin namespace or synced account name official-public-documentation-entry Official Skills documentation: the command shown in the /menu and typed to invoke a skill comes from the layout rather than a single universal field. Personal/project skills use frontmatter name or the skill directory name; nested or added-directory clashes use the relative added-directory path before the skill directory name; plugin skills retain the plugin prefix and use the frontmatter name for the final command segment; synced account skills retain their account-origin display rule. This entry records public naming precedence, not hidden resolution implementation.
doc_pr_steward_repo_skill_instructions PR Steward repository instructions at .claude/skills/steward/SKILL.md for repo-specific behavior official-public-docs-derived 官方 PR Steward pull-request 文档:仓库可在 .claude/skills/steward/SKILL.md 保存供所有人 PR 使用的 Steward 指令;该文件是给代理的指令材料,边界是项目技能配置与人工评审规则不能替代审批、合并保护。
doc_security_scan_effort_low_medium_high claude-security scan effort low, medium, high: same independent verification; low skips the architecture map, high adds same-code vulnerability hunting official-public-documentation-entry Official Claude Security plugin reference: findings go through the same independent verification at low, medium and high. Low is a quick first look and skips the architecture map when scanning a codebase; medium is the default; high does what medium does plus more hunting for vulnerabilities in the same code. A large-repository scan that finds less can use high, rescan, or both; each can surface findings a medium scan misses. The change scan accepts --change-scan-effort high, which uses more agents, takes longer and costs several times as much, and lists vulnerabilities older than the change. The entry records the documented tier semantics and cost boundary.
doc_security_threat_model_command /claude-security:threat-model drafts .claude-security/threat-model.md; Claude reads code, connectors or pasted text after confirmation; a wrong draft can hide a later vulnerability official-public-documentation-entry Official Claude Security reference: /claude-security:threat-model starts Claude Code at the repository root and drafts a threat model that later scans can use. Claude reads code and any scan report, then asks about the system and what else it may read: folders, connectors, or pasted text. Before saving Yes the user checks the draft as .claude-security/threat-model.md, because a wrong statement can hide a vulnerability from a later scan; a scan report can also write CLAUDE-SECURITY-PRECONDITIONS.md recording whether each finding's preconditions are met, not met, or not shown. The entry records the documented command, output file and draft-trust warning.
doc_security_attack_surface_analysis /claude-security:attack-surface-analysis examines reachable default-config, pre-login-sensitive and security-feature-disabling combinations; separate from vulnerability scanning; findings untested until checked official-public-documentation-entry Official Claude Security reference: run /claude-security:attack-surface-analysis at the repository root, in auto mode where available. An analysis may take a long time and use significant tokens; until it ends, leave Claude Code open and do not commit, switch branches, or edit files. The analysis does not replace a scan that looks for vulnerabilities; it examines attacker-reachable parts of the project and proposes changes to shrink the surface. Its report and any attack-surface-patches are treated as untested until checked personally. The entry records this documented purpose, non-interruption rule and verification boundary.
entry_2_1_332_verify_skill_runs_before_commit verify project or user skill runs right before commit except docs-only and tests-only commits official-document-derived-entry 当项目或用户技能包含名为 verify 的技能时,Claude 现在会在提交前运行它;纯文档提交与纯测试提交除外。
entry_2_1_332_mcp_skills_server_prefix_menu MCP server skills appear as server:skill in the / menu; other skills keep their names official-public-docs-derived 2.1.332 beta: skills exposed from MCP servers render with a server:skill prefix in the slash menu; local and built-in skills retain their original names.
entry_2_1_332_dictation_stop_on_send_or_interrupt Tap-mode dictation stops on send, edit, panel cover, or recorder loss configuration-documentation 语音口述在发送提示词时停止;提示词被编辑、面板遮挡,或连接/独立录音程序丢失时停止并说明原因。记录停止条件边界,不收录音频内部编码或采集策略。
entry_2_1_331_mid_session_repository_skills_plugins_claudemd_late_load Repositories added mid-session in cloud/SDK sessions load skills, plugins and CLAUDE.md after directory change (2.1.331) official-public-changelog-entry 云端与 SDK 会话中途加入的仓库,在切换目录后加载其技能、插件与 CLAUDE.md,不再滞后。
entry_2_1_331_vscode_fix_with_claude_code_quick_fix VS Code 'Fix with Claude Code' quick fix for errors, warnings and failed tests (2.1.331) official-documentation-changelog-entry Added: 'Fix with Claude Code' as a quick fix for errors and warnings and for failed tests in the test peek and Test Results view; it puts the problem into the chat.
fix_claude_ai_synced_skills_org_off_recoverable_trash Skills synced from claude.ai move to recoverable trash when the organization turns Skills off; they stay available after the setting change before removal official-public-changelog-entry When the organization disables Skills, synced claude.ai skills move to recoverable trash instead of remaining enabled.
fix_claude_ai_synced_skills_signed_out_cleanup_period_days Skills synced from claude.ai do not stay on disk indefinitely after sign-out; copies not refreshed within cleanupPeriodDays move to recoverable trash at next launch official-public-changelog-entry After sign-out, synced skill copies older than cleanupPeriodDays move to recoverable trash at the next launch instead of persisting indefinitely.
entry_2_1_317_builtin_plugin_authoring_skill_share_mod_after_works 内置插件编写技能在自制 Mod 可用后一次性提供,帮助分享该 Mod official-document-derived-entry 内置插件作者技能在用户构建的 Mod 正常工作后一次性出现,辅助分享该 Mod;仅技能引导,不含内部实现细节。
entry_2_1_307_claude_api_api_version_2026_10_21 /claude-api api-version moves generated Claude API code to API version 2026-10-21 official-public-docs-derived Official changelog addition: the /claude-api skill exposes an api-version option that moves Claude API code to API version 2026-10-21. Records a bundled skill command surface; API versioning and compatibility remain official API documentation scope.
entry_2_1_304_claude_api_managed_agents_secure_compare /claude-api managed-agents-secure compares a Managed Agents agent's settings with Anthropic's published security guide without changing anything official-public-docs-derived Official changelog addition: the /claude-api managed-agents-secure option compares a Managed Agents agent's settings against Anthropic's published security guide, without modifying the agent. Records a read-only security review skill surface; the security guide itself remains official Managed Agents documentation.
skill_gemini_custom_command Gemini CLI custom command (reusable prompt shortcut, project or user scope) official-documentation-command 自定义命令把常用提示词保存为可复用的斜杠命令快捷方式,分为项目级与用户级;命令 prompt 支持 !{...} Shell 注入与参数替换,TOML 文件位于用户或项目 commands 目录。
skill_scope_enterprise_personal_project_plugin_account Skill 加载范围分层:enterprise / personal / project / nested / additional-directory / plugin / claude.ai 账号 official-public-documentation-entry 官方 Skills 文档:保存位置决定哪些会话加载技能;enterprise 托管目录、个人 ~/.claude/skills、项目 .claude/skills、嵌套子目录、--add-dir 附加目录、插件目录与 claude.ai 同步账号各自对应不同可见范围。
skill_added_directory_loads_commands_agents --add-dir / additionalDirectories 附加目录同时加载其 .claude/skills、commands 与 agents official-public-documentation-entry 通过 --add-dir 或 Agent SDK additionalDirectories(TS)/ add_dirs(Python)加入的目录,除技能外一并加载该目录的 .claude/commands/ 与 .claude/agents/。
skill_clash_prefixed_name 同名技能冲突:附加目录技能加 : 前缀;企业>个人>项目的来源优先级 official-public-documentation-entry 附加目录技能文件夹名与 enterprise/personal/project 或更早附加目录技能冲突时,菜单与调用以前缀形式展示;同名技能由来源层级决定 /name 实际运行哪一个。
skill_cowork_cloud_no_local_skills Cowork 与云端会话不读取本机 ~/.claude/skills,仅加载 claude.ai 账号启用并在会话启动时同步的技能 official-public-documentation-entry Cowork 会话与云端会话(含云端定时任务)不读取本机个人技能目录;交互式与定时 Cowork 会话加载账号启用的技能,会话启动时同步。
skill_synced_frontmatter_session_wide claude.ai 同步技能的 frontmatter 在各类会话中生效;allowed-tools 走正常权限流程 official-public-documentation-entry 同步技能 frontmatter 规则适用于所有会话形态;其工具授权进入正常权限流程;组织开启 allowManagedPermissionRulesOnly 时受托管权限规则约束。
skill_synced_body_cloud_isolated_container 同步技能正文按会话形态生效:云会话隔离容器内保留本地行为;Cowork 桌面会话受本机边界约束 official-public-documentation-entry 同步技能正文行为取决于会话运行位置:云会话在隔离容器中保持本地技能行为;桌面 Cowork 会话正文受本机环境与边界约束。
skill_invocation_restriction_fields 技能调用方控制:disable-model-invocation 禁止模型自动调用;user-invocable 控制菜单可见性 official-public-documentation-entry 默认人与模型都可调用任意技能;disable-model-invocation: true 阻止模型自动调用;user-invocable 控制该技能是否出现在调用菜单。
skill_injected_dynamic_context_command 动态上下文注入:!<command> 在技能内容发送前运行 shell,输出替换占位符 official-public-documentation-entry 技能正文用 !<command> 语法在内容发给 Claude 前执行 shell 命令;命令输出替换占位符,Claude 收到实际数据而非命令本身;同步技能正文的注入规则另见官方文档。
skill_run_in_subagent 技能可在子代理中运行:context=fork 隔离上下文;技能正文保持简洁,子代理返回摘要结果 official-public-documentation-entry 技能通过 context=fork 在子代理上下文中运行;正文保持简洁,子代理隔离执行并回交摘要,保持主会话聚焦。
skill_distribution_scopes 技能分发范围:项目技能提交版本控制、插件 skills/ 目录、托管设置组织级部署 official-public-documentation-entry 技能按受众在不同范围分发:项目技能提交 .claude/skills/ 到版本控制;插件在其 skills/ 目录组织;托管设置将技能部署到整个组织。
skill_content_types_reference_convention 技能内容类型:参考内容(知识/规范/模式/风格/领域知识)内联运行;其余为流程性指令 official-public-documentation-entry 技能文件可包含任意指令;按调用方式规划内容:参考内容提供当前工作可套用的知识、约定、模式、风格指南与领域知识,内联运行;其余为流程性步骤。
skill_command_name_position_in_message 技能名称在消息中的位置决定调用:置于开头直接运行;普通文本之后仅授权运行而不触发 official-public-documentation-entry 直接运行技能需把名称放在消息开头;名称出现在普通文本之后作为独立词时,仅赋予运行权限而不实际运行。
skill_supporting_files_skill_dir_ref 技能支撑文件与脚本经技能目录 ${CLAUDE_SKILL_DIR} 引用(既有锚点,补充目录内文件引用边界) official-public-documentation-entry 技能可附带脚本与支撑文件;文件通过技能目录变量引用,与技能目录一同打包;本地技能的支撑文件交付方式区别于 MCP 服务器技能的资源交付。
wf_recipe_quick_codebase_overview Get a quick codebase overview:快速代码库概览配方 official-public-documentation-entry 官方 Common workflows 配方:面向快速摸清代码库整体结构的提问组织方式;先高层概览再深入架构与数据模型,与既有宽到窄代码库概览工作流衔接。
wf_recipe_reference_files_directories Reference files and directories:引用文件与目录的工作流 official-public-documentation-entry 官方 Common workflows 配方:在提示中引用文件与目录的方式与上下文边界;引用范围、文件 mention 预算与禁用文件 mention 规则由既有工具条目覆盖。
wf_recipe_example_questions Example questions:能力询问示例问题集 official-public-documentation-entry 官方 Common workflows 配方:示例问题用于询问 Claude 自身能力与可用操作;与既有能力自检问答工作流衔接,示例问题不等于工具调用清单。
doc_skill_distribution_scopes 技能分发作用域:项目技能随版本控制提交、插件 skills/ 目录、托管设置组织级部署 official-public-documentation-entry 官方 Skills 文档按受众区分三种分发范围:项目技能把 .claude/skills/ 提交进版本控制;插件在插件内创建 skills/ 目录;组织级技能通过托管设置部署。边界:该条目只记录分发位置与作用域,不声明许可证或跨组织认证。
doc_skill_visual_output_html_pattern 技能脚本生成交互式 HTML 可视化:目录树、文件计数侧边栏与文件类型条形图 official-public-documentation-entry Skills 可捆绑任意语言脚本,生成在浏览器打开的交互式 HTML 输出。官方代码库示例包含可折叠目录树、文件大小与按文件类型着色;侧边栏汇总文件数、目录数、总大小与文件类型数量,条形图按大小展示前八类文件。脚本路径经 ${CLAUDE_SKILL_DIR} 解析;此条目不记录脚本内部算法。
doc_bundled_run_verify_recipe_skills 内置 /run、/verify、/run-skill-generator:运行应用、验证改动并把启动配方记录为项目技能 official-public-documentation-entry /run 启动并驱动应用观察改动;/verify 构建并运行应用确认代码改动有效,不回退到测试或类型检查;/run-skill-generator 记录可用的安装命令、环境变量与启动脚本,并落到 .claude/skills/run-/。缺少现成配方时,/verify 可把可行记录写入仓库根目录或 monorepo 触及包目录下的 .claude/skills/verify/SKILL.md。
skill_adk_agent_skill ADK Agent Skill packaged instructions, resources and tools official-documentation-capability ADK Agent Skill 是代理可按需加载的自包含功能单元,封装任务所需指令、资源与工具;SkillToolset 可向代理开放一个或多个 Skill,技能可在代码中定义或从文件系统加载。TypeScript 与 Kotlin 中的 Skills 特性为实验性。
skill_frontmatter_display_text_sanitization Skill frontmatter 展示文本消毒:去除控制字符并转义尖括号 official-public-docs-derived Official Skills documentation: Claude Code sanitizes display text supplied by a synced skill, such as its description. Control characters are removed; in Claude-facing text such as the description, angle brackets are escaped so the text cannot imitate Claude Code's internal formatting. Boundary: this records the public sanitization behavior only, not any internal parser or renderer implementation.
skill_frontmatter_yaml_parse_coercion_rules Skill frontmatter YAML 解析规则:未知字段忽略、布尔值兼容写法与坏 YAML 空字段加载 official-public-docs-derived Official Skills documentation: a frontmatter field name must match the documented table exactly; an unrecognized field is ignored without reporting an error. Boolean fields accept yes, no, on, off, 1 and 0 in any letter case, in addition to true and false. If the YAML between the opening and closing markers does not parse, the skill still loads with no fields set. Boundary: public parsing rules only; no internal parser code or algorithm detail is recorded.
skill_frontmatter_inert_spec_fields_metadata_map Skill Agent Skills 规格惰性字段:license/compatibility 仅接收不执行;metadata 非映射值丢弃 official-public-docs-derived Official Skills documentation: license records the license covering the skill and compatibility records intended product or prerequisite environment requirements; both are part of the Agent Skills spec, and Claude Code accepts the fields but does not act on their contents. metadata is a free-form YAML map for the author's own tooling; Claude Code does not act on it, and a value that is not a map is dropped. Boundary: this does not infer license compatibility or validate package licenses from these fields.
entry_2_1_332_synced_account_skills_folder_local_write_not_persisted 同步账号技能文件夹的 Write/Edit 结果:本地改动不会保存到账号,并提示如何保存 official-public-docs-derived 官方 changelog:写入或编辑同步到 claude.ai 的 account-skills 文件夹内文件时,工具结果会说明该改动没有保存到账号,并给出保存到账号的路径。边界:本地文件系统改动不等于账号侧同步持久化;账号技能同步、组织开关与权限规则仍是独立边界。
doc_chrome_form_filling_workflow Chrome 表单自动填写流程(Automate form filling workflow) official-public-docs-derived 官方 Chrome 文档示例:读取本地联系人表格(如 contacts.csv),逐行导航到 CRM 的 Add Contact 页面并填写姓名、邮箱、电话字段;流程属于浏览器数据录入自动化,站点权限与已登录会话边界沿用 Chrome 站点权限规则,不记录表单凭证或站点账号。
doc_chrome_data_extraction_workflow Chrome 网页结构化数据抽取流程(Extract data from web pages workflow) official-public-docs-derived 官方 Chrome 文档示例:导航到商品列表页,逐项抽取名称、价格、可用性并整理为 CSV 等结构化结果;流程只描述页面读取与本地结构化整理,不包含绕过站点访问控制或保存未授权数据。
doc_chrome_multisite_workflow Chrome 跨站点多标签协作流程(Run multi-site workflows workflow) official-public-docs-derived 官方 Chrome 文档示例:在多个标签页之间协调任务,例如先检查日历会议,再为外部参会者查询公司网站并补充备注;跨站点操作受当前会话、站点权限和已登录状态约束。
skill_simplify_command /simplify bundled cleanup and reuse skill official-doc-derived 官方命令参考:/simplify 评审已修改代码的清理机会并应用修复;四个评审代理并行覆盖复用既有 helper、简化、效率与抽象层级是否合适;不查找正确性 bug,正确性问题用 /code-review;可传入路径或 PR 引用限定目标。
skill_dataviz_command /dataviz bundled chart and dashboard design skill official-doc-derived 官方命令参考:/dataviz 为图表、图形和仪表盘提供设计指导;Claude 选择图表形式、按角色分配颜色,并用捆绑脚本校验调色板的色盲安全性与对比度,再应用标记、交互和可访问性规则;使用可被品牌替换的中性占位调色板。
skill_agentscope_skills AgentScope Skills Official Skill Pack Collection apache-2.0-open-source-repository-verify-license agentscope-skills 是 AgentScope 生态与 QwenPaw 应用的官方 Skill 包集合,可安装到 Claude Code、Cursor 等兼容编码助手;现有 AgentScope 库 Skill 与 nano-memory 持久记忆工作流,为代理提供 API、设计模式、示例和最佳实践上下文。
skill_gemini_api_skills Gemini API official Skill pack collection apache-2.0-open-source-repository-verify-license Collection of official public skill packs for Gemini API, SDK and model/agent interactions. The repository README groups skills for API application development, shell-based Gemini API CLI use, bidirectional Live API applications and Omni Flash video generation; the corresponding source repository carries the Apache-2.0 license record.
skill_modelstudio_skills Model Studio Official Agent Skills Collection apache-2.0-open-source-repository-verify-license The Model Studio skills repository is the official curated and verified Agent Skills collection for Alibaba Cloud Model Studio (DashScope). The core bailian-cli skill remains in the modelstudioai/cli repository; this repository supplies optional first-party extensions and curated third-party skills covering creation, development, design, documentation and testing workflows for compatible AI agents.

Surface

ID 名称 许可证状态 摘要
surface_terminal 终端 CLI 形态 proprietary-all-rights-reserved 命令行完整 CLI,文件编辑、命令执行、项目管理均在终端完成
surface_vscode VS Code / Cursor 扩展 proprietary-all-rights-reserved 编辑器内联 diff、@-mention、计划评审与会话历史
surface_jetbrains JetBrains IDE 插件 proprietary-all-rights-reserved IntelliJ/PyCharm/WebStorm 等交互 diff 与选择上下文共享;依赖独立安装的 CLI
surface_desktop 桌面应用 proprietary-all-rights-reserved 独立于 IDE/终端运行;可视化 diff、多会话并排、定时任务、云端会话
surface_web Web 浏览器形态 proprietary-all-rights-reserved 浏览器内无本地环境启动长任务,可处理本地不存在的仓库与并行会话
cli_subprocess_mode CLI 子进程调用模式(-p / JSON 输出) proprietary-all-rights-reserved 以子进程方式运行 CLI,使用 -p 标志与 --output-format json,供 Python/TypeScript 以外的语言驱动同一代理循环。
surface_terminal_cli Terminal CLI 终端命令行形态 proprietary-all-rights-reserved 功能最全的 CLI,直接在终端编辑文件、运行命令、管理项目;原生安装脚本、Homebrew、WinGet 三种安装渠道
feat_vscode_status_dialog VS Code Status 状态对话框(/status) proprietary-all-rights-reserved VS Code 面板:/status 打开,展示会话版本、账户、模型与服务器详情
feat_vscode_sandbox_dialog VS Code Sandbox 沙箱对话框(/sandbox) proprietary-all-rights-reserved VS Code 面板:展示沙箱模式、未沙箱回退与排除命令;从面板菜单或 /sandbox 打开
feat_vscode_chrome_dialog VS Code Claude in Chrome 对话框(/chrome) proprietary-all-rights-reserved VS Code 面板:扩展状态、安装、重连与权限页面、默认启用设置;从面板菜单或 /chrome 打开
feat_vscode_connector_check_connection VS Code claude.ai 连接器授权后检查连接入口 changelog-derived 2.1.288 VS Code 修复:授权后连接器仍显示 Needs authentication 时,MCP 服务器对话框提供 Check connection。边界:仅修复 IDE 连接器状态诊断,不扩展 MCP 权限。
fix_phone_cowork_session_prompt_suggestion 手机加入跨设备 Cowork 云会话时提示建议缺失修复 changelog-derived 手机加入由另一设备启动的 Cowork 云会话时,提示建议不再缺失。
fix_terminal_code_block_render_freeze 短代码块未闭合 script 标签与深层 ${} 替换导致渲染冻结修复 changelog-derived 2.1.289 修复:含大量未闭合