C Claude Code Internals
| EN | ES

隐藏功能

Claude Code 源代码包含几个未公开记录的功能标志和功能。这些是通过直接阅读源代码发现的。

10 功能标志 4 隐藏功能
i 这些是源代码发现,不是官方文档
这些功能是通过分析 Claude Code 源代码识别的。功能标志可能会在未来的版本中启用、 修改或删除。状态反映分析时的行为。

功能标志

PROACTIVE / KAIROS 实验性

Autonomous mode. Claude receives <tick> prompts that keep it alive and acts without user input. When terminal is unfocused it commits, pushes, and explores independently.

COORDINATOR_MODE 实验性

Multi-agent orchestration. The main session acts as a coordinator that dispatches work to sub-agents and synthesizes their results.

BRIDGE_MODE 已记录

IDE integration bridge. Connects Claude Code to VS Code, JetBrains, and other editors for inline suggestions and context sharing.

DAEMON 实验性

Background daemon mode. Claude runs as a persistent background process, processing tasks without a visible terminal session.

VOICE_MODE 仅内部

Voice input support. Enables speech-to-text for submitting prompts. Infrastructure exists in the source but not publicly released.

AGENT_TRIGGERS 实验性

Enables CronCreate, CronDelete, CronList and RemoteTrigger tools. Allows scheduling recurring agent tasks on a cron schedule.

MONITOR_TOOL 实验性

Enables the MonitorTool for performance and observability monitoring during agent execution.

CACHED_MICROCOMPACT 已记录

Auto-cleanup of old tool results in the context window. Replaces stale Read/Bash/Grep outputs with [Old tool result content cleared] to free token budget.

EXPERIMENTAL_SKILL_SEARCH 实验性

Skill discovery mechanism. Dynamically finds and loads available skills from the plugin system based on the current task context.

VERIFICATION_AGENT 已记录

Activates the built-in Verification Agent that runs in the background after implementations and emits PASS / FAIL / PARTIAL verdicts.

隐藏功能

除了功能标志,源代码还揭示了几个未 prominently 记录的内置功能。

Undercover mode

For internal Anthropic users, model names and IDs are hidden from the system prompt. This prevents unannounced models from leaking into commits, PRs, or conversation history.

Scratchpad

A temporary, isolated directory created per session. Claude can write freely here without triggering permission prompts. It's an alternative to /tmp and is cleaned up after the session.

User hooks

Shell commands configured in settings.json that execute in response to events (tool calls, session start, etc.). Claude treats hook output as if it came directly from the user.

Worktree detection

Claude detects if it's running inside a git worktree and adjusts behavior accordingly. Specifically, it will not cd to the original repo root and respects the worktree isolation.

用户钩子是最实用的隐藏功能
钩子让你自动运行 shell 命令以响应 Claude Code 事件:工具调用之前、会话之后、 特定触发器。它们在 settings.json 中配置, Claude 将其输出视为用户消息。这使得钩子成为自动化工作流的强大方式,无需更改提示词。